Tooluck logoTooluck
SKILL.md

offensive-persistence

Agent skill fromSnailSploit/Claude-Red

Comprehensive persistence tradecraft for authorized red team engagements covering Windows and Linux mechanisms. Windows techniques include registry Run/RunOnce keys, scheduled tasks, WMI event subscriptions, DLL search order hijacking, COM object hijacking, Startup folder drops, service creation, Security Support Provider (SSP) DLL injection, and Active Directory persistence (AdminSDHolder abuse, DCShadow, Golden Ticket, Silver Ticket, Skeleton Key, SID History injection). Linux techniques include cron and at jobs, systemd timers and services, SSH authorized_keys injection, shell profile backdoors (.bashrc/.bash_profile), PAM module backdoors, LD_PRELOAD hijacking, kernel module rootkits, web shells, and Git hook abuse. Provides operator-ready command sequences for SharPersist, Impacket ticketer, schtasks, sc.exe, crontab, and systemctl with OPSEC considerations for each method. Maps to MITRE ATT&CK T1547 (Boot or Logon Autostart), T1053 (Scheduled Task/Job), T1546 (Event Triggered Exe

How to install offensive-persistence

install offensive-persistence
# install the Claude-Red pack with the skills CLI
npx skills add SnailSploit/Claude-Red

# or add only this skill to Claude Code: copy the folder

Skills/post-exploitation/offensive-persistence/

# into

~/.claude/skills/offensive-persistence/ (all projects)

.claude/skills/offensive-persistence/ (one project)

Skills/post-exploitation/offensive-persistence/SKILL.md

MITFull file
1# Offensive Persistence
2
3Persistence ensures your access survives reboots, password changes, and routine
4maintenance. You plant mechanisms that re-establish a session or re-execute
5your payload without requiring a new initial compromise. The choice of
6persistence technique depends on your privilege level, the target operating
7system, the engagement scope, and the detection risk you can tolerate.
8
9This skill covers both Windows and Linux persistence methods, from simple
10registry keys to domain-level Active Directory backdoors. Every technique
11here assumes you already have code execution on the target. Apply these in
12authorized engagements only.
13
14## Quick Workflow
15
161. Assess your current privilege level (user-level vs admin/root vs domain admin).
172. Identify the target OS version and security controls in place.
183. Select a persistence mechanism matching your access level and stealth needs.
194. Validate the persistence survives a reboot or logoff event.
205. Document the exact mechanism and location for cleanup during engagement close.
216. Layer multiple persistence methods at different privilege levels when scope allows.
227. Prefer reversible methods that you can fully remove during remediation.
23
24---
25
26## Windows: Registry Autostart
27
28Registry Run and RunOnce keys execute commands at user logon or system startup.
29These are the simplest persistence mechanisms and work at both user and admin
30privilege levels.
31
32```powershell
33# User-level persistence (HKCU, no admin required)
34…

Excerpt shown under the repository's MIT license.

More skills in Claude-Red

Keep exploring

Similar skill repositories

thedotmack /

claude-mem
116k

Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More

CCCXGHGM+135 skills

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates