Skip to content

Commit 763a96f

Browse files
committed
Add nursery rules for Linux kernel rootkit techniques
1 parent cd272f5 commit 763a96f

2 files changed

Lines changed: 43 additions & 0 deletions

File tree

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
rule:
2+
meta:
3+
name: escalate privileges via commit_creds on Linux
4+
namespace: host-interaction/privilege
5+
authors:
6+
- Aryan Khandhadiya
7+
description: detect Linux kernel modules that escalate privileges using prepare_kernel_cred and commit_creds, a technique commonly used by rootkits
8+
scopes:
9+
static: function
10+
dynamic: call
11+
att&ck:
12+
- Privilege Escalation::Exploitation for Privilege Escalation [T1068]
13+
references:
14+
- https://inferi.club/post/the-art-of-linux-kernel-rootkits
15+
- https://www.kernel.org/doc/html/latest/security/credentials.html
16+
17+
features:
18+
- and:
19+
- os: linux
20+
- api: prepare_kernel_cred
21+
- api: commit_creds
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
rule:
2+
meta:
3+
name: register Netfilter hook on Linux
4+
namespace: host-interaction/network
5+
authors:
6+
- Aryan Khandhadiya
7+
description: kernel rootkits can register Netfilter hooks to inspect or modify packet flow
8+
scopes:
9+
static: function
10+
dynamic: call
11+
att&ck:
12+
- Defense Evasion::Impair Defenses [T1562]
13+
references:
14+
- https://inferi.club/post/the-art-of-linux-kernel-rootkits
15+
- https://www.kernel.org/doc/html/latest/networking/netfilter.html
16+
17+
features:
18+
- and:
19+
- os: linux
20+
- or:
21+
- api: nf_register_net_hook
22+
- api: nf_register_hook

0 commit comments

Comments
 (0)