Skip to content

Commit 7bb186f

Browse files
authored
Add nursery rules for Linux kernel rootkit techniques (#1136)
* Add nursery rules for Linux kernel rootkit techniques * Address review comments: update scopes, namespace, and authors
1 parent 03a20f6 commit 7bb186f

2 files changed

Lines changed: 41 additions & 0 deletions

File tree

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
rule:
2+
meta:
3+
name: escalate privileges via commit_creds on Linux
4+
namespace: host-interaction/process/modify
5+
authors:
6+
- aryanyk
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: span of calls
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+
features:
17+
- and:
18+
- os: linux
19+
- api: prepare_kernel_cred
20+
- api: commit_creds
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
rule:
2+
meta:
3+
name: register Netfilter hook on Linux
4+
namespace: host-interaction/network
5+
authors:
6+
- aryanyk
7+
description: kernel rootkits can register Netfilter hooks to inspect or modify packet flow
8+
scopes:
9+
static: instruction
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+
features:
17+
- and:
18+
- os: linux
19+
- or:
20+
- api: nf_register_net_hook
21+
- api: nf_register_hook

0 commit comments

Comments
 (0)