Skills for Real Engineers. Straight from my .agents directory.
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
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)
1# Offensive Persistence23Persistence ensures your access survives reboots, password changes, and routine4maintenance. You plant mechanisms that re-establish a session or re-execute5your payload without requiring a new initial compromise. The choice of6persistence technique depends on your privilege level, the target operating7system, the engagement scope, and the detection risk you can tolerate.89This skill covers both Windows and Linux persistence methods, from simple10registry keys to domain-level Active Directory backdoors. Every technique11here assumes you already have code execution on the target. Apply these in12authorized engagements only.1314## Quick Workflow15161. 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.2324---2526## Windows: Registry Autostart2728Registry Run and RunOnce keys execute commands at user logon or system startup.29These are the simplest persistence mechanisms and work at both user and admin30privilege levels.3132```powershell33# User-level persistence (HKCU, no admin required)34…
Excerpt shown under the repository's MIT license.
More skills in Claude-Red
Similar skill repositories
An agentic skills framework & software development methodology that works.
A single CLAUDE.md file to improve Claude Code behavior, derived from Andrej Karpathy's observations on LLM coding pitfalls.
Public repository for Agent Skills
Makes your AI agent think like the laziest senior dev in the room. The best code is the code you never wrote.
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
