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

added detections for reading/writing shadow file, password database #949

Merged
merged 2 commits into from
Oct 30, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions nursery/get-password-database-entry-on-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ rule:
namespace: host-interaction/session
authors:
- michael.hunhoff@mandiant.com
- jonathanlepore@google.com
scopes:
static: basic block
jlmndt marked this conversation as resolved.
Show resolved Hide resolved
dynamic: call
Expand All @@ -17,3 +18,8 @@ rule:
- api: getpwuid_r
- api: getpwnam
- api: getpwnam_r
- api: getpwent
- api: fgetpwent
- api: getpwent_r
- api: fgetpwent_r

21 changes: 21 additions & 0 deletions nursery/get-shadow-password-file-entry-on-linux.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
rule:
meta:
name: get shadow password file entry on linux
jlmndt marked this conversation as resolved.
Show resolved Hide resolved
namespace: collection
authors:
- jonathanlepore@google.com
scopes:
static: function
dynamic: call
references:
- https://manpages.ubuntu.com/manpages/noble/man3/getspent.3.html
features:
- and:
- os: linux
- or:
- api: getspent
- api: getspent_r
- api: fgetspent
- api: fgetspent_r
- api: getspnam
- api: getspnam_r
16 changes: 16 additions & 0 deletions nursery/set-shadow-password-file-entry-on-linux.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
rule:
meta:
name: set shadow password file entry on linux
namespace: host-interaction/file-system/write
authors:
- jonathanlepore@google.com
scopes:
static: function
dynamic: call
references:
- https://manpages.ubuntu.com/manpages/noble/man3/putspent.3.html
features:
- and:
- os: linux
- or:
- api: putspent
Loading