future-architect / vuls

Agent-less vulnerability scanner for Linux, FreeBSD, Container, WordPress, Programming language libraries, Network devices
https://vuls.io/
GNU General Public License v3.0
10.9k stars 1.16k forks source link

"Operation not permitted" error while scanning installed packages in MacOS #1804

Open satyam235 opened 9 months ago

satyam235 commented 9 months ago

What did you do? (required. The issue will be closed when not provided.)

I tried running a local MacOS Scan, which resulted in an "Operation not permitted" error while scanning for scanned packages

What did you expect to happen?

Vuls should scan for installed packages and complete the scan on mac.

What happened instead?

It resulted into an exception being raised.

time="Dec 6 16:35:10" level=error msg="Error on localhost, err: [Failed to scan installed packages. err: github.com/future-architect/vuls/scanner.(*macos).scanPackages /home/runner/work/vuls/vuls/scanner/macos.go:139

Please re-run the command using -debug and provide the output below.

Steps to reproduce the behaviour

Run a local mac scan with few applications that only admin can access.

Configuration (MUST fill this out):

Mac Ventura OS

Hash : ____

To check the commit hash of HEAD $ vuls -v

or

$ cd $GOPATH/src/github.com/future-architect/vuls $ git rev-parse --short HEAD

[servers.localhost] host = "localhost" port = "local" scanMode = [ "fast",]

satyam235 commented 9 months ago

@MaineK00n