9593d90385
Breaking change. Tool name, binary name, function/type names,
constant names, env vars, header guards, file paths, and GitHub
repo URL all rebrand IAMROOT → SKELETONKEY.
Changes:
- All "IAMROOT" → "SKELETONKEY" (constants, env vars, enum
values, docs, comments)
- All "iamroot" → "skeletonkey" (functions, types, paths, CLI)
- iamroot.c → skeletonkey.c
- modules/*/iamroot_modules.{c,h} → modules/*/skeletonkey_modules.{c,h}
- tools/iamroot-fleet-scan.sh → tools/skeletonkey-fleet-scan.sh
- Binary "iamroot" → "skeletonkey"
- GitHub URL KaraZajac/IAMROOT → KaraZajac/SKELETONKEY
- .gitignore now expects build output named "skeletonkey"
- /tmp/iamroot-* tmpfiles → /tmp/skeletonkey-*
- Env vars IAMROOT_MODPROBE_PATH etc. → SKELETONKEY_*
New ASCII skeleton-key banner (horizontal key icon + ANSI Shadow
SKELETONKEY block letters) replaces the IAMROOT banner in
skeletonkey.c and README.md.
VERSION: 0.3.1 → 0.4.0 (breaking).
Build clean on Debian 6.12.86. `skeletonkey --version` → 0.4.0.
All 24 modules still register; no functional code changes — pure
rename + banner refresh.
27 lines
1.2 KiB
Plaintext
27 lines
1.2 KiB
Plaintext
# Dirty Pipe (CVE-2022-0847) — auditd detection rules
|
|
#
|
|
# Detects the Dirty Pipe primitive pattern: a process splice()s a file
|
|
# into a pipe, then write()s to that pipe. The kernel bug allows the
|
|
# write to land in the page cache of the original file.
|
|
#
|
|
# False-positive surface: legitimate splice-then-write is rare in
|
|
# userspace; most uses of splice are file-to-file (e.g. cp via sendfile).
|
|
# Tuning may be needed in environments using nginx/HAProxy/etc.
|
|
#
|
|
# Drop these into /etc/audit/rules.d/ and reload auditd.
|
|
|
|
# Watch /etc/passwd, /etc/shadow, /etc/sudoers, /etc/sudoers.d/* for
|
|
# any modification by non-root — the Dirty Pipe payload typically
|
|
# overwrites these to gain root.
|
|
-w /etc/passwd -p wa -k skeletonkey-dirty-pipe
|
|
-w /etc/shadow -p wa -k skeletonkey-dirty-pipe
|
|
-w /etc/sudoers -p wa -k skeletonkey-dirty-pipe
|
|
-w /etc/sudoers.d -p wa -k skeletonkey-dirty-pipe
|
|
|
|
# Watch every splice() syscall — combined with the file watches above
|
|
# this catches the canonical exploit shape. (High volume on servers
|
|
# using nginx/HAProxy; consider scoping with -F gid!=33 -F gid!=99 to
|
|
# exclude web servers.)
|
|
-a always,exit -F arch=b64 -S splice -k skeletonkey-dirty-pipe-splice
|
|
-a always,exit -F arch=b32 -S splice -k skeletonkey-dirty-pipe-splice
|