Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Execsnoop not working on Mac OS X #104

Open
retpoline opened this issue Apr 25, 2021 · 2 comments
Open

Execsnoop not working on Mac OS X #104

retpoline opened this issue Apr 25, 2021 · 2 comments

Comments

@retpoline
Copy link

Not able to get execsnoop to work on OS X even after disabling SIP.

$ sw_vers
ProductName:	Mac OS X
ProductVersion: 10.15.7

$ csrutil status
System Integrity Protection status: disabled.

bash-3.2# ./execsnoop
Tracing exec()s. Ctrl-C to end.
./execsnoop: line 160: cd: /sys/kernel/debug/tracing: No such file or directory
ERROR: accessing tracing. Root user? Kernel has FTRACE?
    debugfs mounted? (mount -t debugfs debugfs /sys/kernel/debug)

Is there a workaround or config that enables tracing on Mac?

Thanks!

@banister
Copy link

best way is using openBSM on osx

@retpoline
Copy link
Author

best way is using openBSM on osx

Thanks @banister -- was looking around if there was an execsnoop equilivent or sample code out there for openBSM, but didn't find many similar utilities using it other than filewatcher.

Do you know if there's a similar implementation for execsnoop in openBSM?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants