diff --git a/nursery/escalate-privileges-via-commit_creds-on-linux.yml b/nursery/escalate-privileges-via-commit_creds-on-linux.yml new file mode 100644 index 00000000..5a2c334c --- /dev/null +++ b/nursery/escalate-privileges-via-commit_creds-on-linux.yml @@ -0,0 +1,20 @@ +rule: + meta: + name: escalate privileges via commit_creds on Linux + namespace: host-interaction/process/modify + authors: + - aryanyk + description: detect Linux kernel modules that escalate privileges using prepare_kernel_cred and commit_creds, a technique commonly used by rootkits + scopes: + static: function + dynamic: span of calls + att&ck: + - Privilege Escalation::Exploitation for Privilege Escalation [T1068] + references: + - https://inferi.club/post/the-art-of-linux-kernel-rootkits + - https://www.kernel.org/doc/html/latest/security/credentials.html + features: + - and: + - os: linux + - api: prepare_kernel_cred + - api: commit_creds diff --git a/nursery/register-netfilter-hook-on-linux.yml b/nursery/register-netfilter-hook-on-linux.yml new file mode 100644 index 00000000..3a454e9f --- /dev/null +++ b/nursery/register-netfilter-hook-on-linux.yml @@ -0,0 +1,21 @@ +rule: + meta: + name: register Netfilter hook on Linux + namespace: host-interaction/network + authors: + - aryanyk + description: kernel rootkits can register Netfilter hooks to inspect or modify packet flow + scopes: + static: instruction + dynamic: call + att&ck: + - Defense Evasion::Impair Defenses [T1562] + references: + - https://inferi.club/post/the-art-of-linux-kernel-rootkits + - https://www.kernel.org/doc/html/latest/networking/netfilter.html + features: + - and: + - os: linux + - or: + - api: nf_register_net_hook + - api: nf_register_hook