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

Typo? unknown field uid #125

Closed
juresaht2 opened this issue Jan 9, 2024 · 2 comments
Closed

Typo? unknown field uid #125

juresaht2 opened this issue Jan 9, 2024 · 2 comments

Comments

@juresaht2
Copy link

I get the error:

augenrules: -F unknown field: uid

I assume this is a typo:
https://github.com/Neo23x0/auditd/blob/master/audit.rules#L464

## Privilege Abuse
### The purpose of this rule is to detect when an admin may be abusing power by looking in user's home dir.
-a always,exit -F dir=/home -F uid=0 -F auid>=1000 -F auid!=-1 -C auid!=obj_uid -k power_abuse

...should be...

## Privilege Abuse
### The purpose of this rule is to detect when an admin may be abusing power by looking in user's home dir.
-a always,exit -F dir=/home -F auid=0 -F auid>=1000 -F auid!=-1 -C auid!=obj_uid -k power_abuse
@Neo23x0 Neo23x0 closed this as completed in dfb7898 Jan 9, 2024
@Neo23x0
Copy link
Owner

Neo23x0 commented Jan 9, 2024

Thanks

@as9k1
Copy link

as9k1 commented Apr 20, 2024

Hey, I think the new version of this rule is unfortunately broken now, because AUID is now required to be both 0 and >=1000 at the same time, which is never going to happen.

The original version of the rule is working fine in my testing on Ubuntu 22.04. I don't see the "-F unknown field: uid"-issue that @juresaht2 reported (might be a different issue on his end).

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

3 participants