Agent skill

Persist Maintain

by wgpsec in wgpsec/AboutSecurity

权限持久化方法论。当已获取目标系统权限后需要维持长期访问时使用。覆盖 Linux(cron/SSH key/webshell) 和 Windows(计划任务/服务/注册表/WMI) 持久化技术,以及 Web 层面的 webshell 部署和隐蔽策略

No licenceAuto-check passedProductivity & Automation

Install Persist Maintain

skills CLI
$ npx skills add wgpsec/AboutSecurity --skill persist-maintain -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install wgpsec/AboutSecurity persist-maintain --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/wgpsec/AboutSecurity.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/postexploit/persist-maintain .claude/skills/persist-maintain && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
persist-maintain
GitHub stars
1.8k
Token cost
~398 tokens
SKILL.md length
61 words
Files
4 (incl. references)
Skills in repo
74
Repo updated
First seen
Licence
None found

At a glance

权限持久化方法论。当已获取目标系统权限后需要维持长期访问时使用。覆盖 Linux(cron/SSH key/webshell) 和 Windows(计划任务/服务/注册表/WMI) 持久化技术,以及 Web 层面的 webshell 部署和隐蔽策略

  • Works in 3 steps: Web 层持久化 → 持久化决策树 → 多层持久化策略
  • Tasks that involve Scheduled and recurring tasks
  • SKILL.md covers ⛔ 深入参考(必读), Phase 1: Web 层持久化, Phase 2: 持久化决策树 and Phase 3: 多层持久化策略, plus 3 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Persist Maintain is an agent skill from wgpsec/AboutSecurity. 权限持久化方法论。当已获取目标系统权限后需要维持长期访问时使用。覆盖 Linux(cron/SSH key/webshell) 和 Windows(计划任务/服务/注册表/WMI) 持久化技术,以及 Web 层面的 webshell 部署和隐蔽策略

Its SKILL.md is about 400 tokens, which your agent loads only when the skill is triggered. The skill folder holds 5 other files, including reference files (for example `evals/evals.json`, `evals/recall.json` and `references/persistence-techniques.md`).

It sits in Productivity & Automation, covering Scheduled and recurring tasks. It works with Linux and PHP. The repository describes itself as: Everything for pentest. | 渗透测试知识库,以 AI Agent 可执行的格式沉淀安全方法论。

When your agent uses it

  • Tasks that involve Scheduled and recurring tasks

Example prompts

  • “/persist-maintain”

Workflow steps

3 steps, taken from the step headings in SKILL.md.

  1. Web 层持久化
  2. 持久化决策树
  3. 多层持久化策略

What it can do on your machine

Read from SKILL.md and the folder at commit d428372. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are php).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Persist Maintain loads about 398 tokens when it runs, and up to ~1k if it reads all its reference files. Until then it costs about 35 tokens; SKILL.md has 61 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~35
When it runs · the whole SKILL.md, loaded when a task matches
~398
With references · SKILL.md plus every file in references/, read only if the agent opens them
~1k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Without a licence we can't republish the file, so here is its outline and opening line. It has 61 words (~398 tokens).

name
persist-maintain
metadata.tags
persist,persistence,持久化,webshell,backdoor,后门,cron,scheduled task,service,维持访问
metadata.category
postexploit

Read the full SKILL.md on GitHub

Files

SKILL.md and 3 other files (references) in skills/postexploit/persist-maintain of wgpsec/AboutSecurity.

  • SKILL.md
  • evals/evals.json
  • evals/recall.json
  • references/persistence-techniques.md

Open the folder on GitHubat commit d428372

Compare with similar skills

Persist Maintain next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Persist Maintain compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Persist Maintain this skillwgpsec/AboutSecurity1.8k—~398Automated safety check: PassNone
Daily Briefleiting-eric/DailyBrief364—~3kAutomated safety check: NotesMIT
Shadowvpn Deploy Clientmadeye/shadowvpn101—~2.4kAutomated safety check: NotesMIT
Managekenneth-liao/ai-launchpad-marketplace126—~4.1kAutomated safety check: PassNone
Daily UpdateAr9av/obsidian-wiki3.5k—~2.4kAutomated safety check: NotesMIT
Env Doctorcat-xierluo/legal-skills717—~756Automated safety check: PassMIT

Similar skills

  • Daily Brief

    leiting-eric/DailyBrief

    Operational knowledge for the daily-brief digest pipeline (this project).

    364 GitHub stars~3k tokensUpdated today
    Productivity & AutomationAuto-check: notes
  • Shadowvpn Deploy Client

    madeye/shadowvpn

    Deploy, install, and run the ShadowVPN client in a target environment — Linux (systemd), macOS (launchd), or Windows (Wintun, foreground launcher or scheduled-task service).

    101 GitHub stars~2.4k tokensUpdated 1 mo ago
    Productivity & AutomationAuto-check: notes
  • Manage

    kenneth-liao/ai-launchpad-marketplace

    Manage scheduled Claude Code tasks — add (recurring or one-off), list, pause, resume, remove, view results, and test execution of skills, prompts, and scripts with safety controls and notifications.

    126 GitHub stars~4.1k tokensUpdated 6 mo ago
    Productivity & AutomationAuto-check passed
  • Daily Update

    Ar9av/obsidian-wiki

    Run or configure the daily wiki maintenance cycle: check source freshness, refresh the index and hot.md, and manage its scheduled 9 AM launchd/systemd/cron reminder.

    3.5k GitHub stars~2.4k tokensUpdated yesterday
    Productivity & AutomationAuto-check: notes
  • Env Doctor

    cat-xierluo/legal-skills

    本机开发环境与全局包的体检、账本与安装纪律,覆盖所有包管理器(npm/npx、nvm、pip/pipx、uv、brew、bun)与运行时环境面(~/.local/bin 垫片、PATH、python 解释器版图、LaunchAgents、cron、shell rc 漂移对照)。当用户问「node/python 为什么是这个版本」「npm/pip…

    717 GitHub stars~756 tokensUpdated yesterday
    Productivity & AutomationAuto-check passed
  • Eradicating Malware From Infected Systems

    mukul975/Anthropic-Cybersecurity-Skills

    Systematically map and remove malware, backdoors, and attacker persistence mechanisms (registry Run keys, scheduled tasks, WMI subscriptions, services, cron/init.d) from infected Windows and Linux…

    34k GitHub stars~2.2k tokensUpdated 1 mo ago
    Productivity & AutomationAuto-check: warnings

More from wgpsec/AboutSecurity

All 74 skills in this repo
  • A skill your agent uses whenever the user asks to add, absorb, migrate, port, update, merge, compare, or extract security knowledge into the AboutSecurity repository from any external resource such…

    1.8k GitHub stars~1.4k tokensUpdated yesterday
    Auto-check passed
  • Ad Persistence

    wgpsec/AboutSecurity

    AD 域环境持久化技术。当已获取域管/本地管理员权限、需要建立持久访问以确保重启或密码更改后仍能回到目标环境时使用。覆盖主机级持久化(计划任务/注册表Run/COM劫持/WMI事件订阅/Windows服务/启动文件夹)、域级持久化(Golden Ticket/Silver Ticket/Skeleton…

    1.8k GitHub stars~2.3k tokensUpdated yesterday
    Auto-check passed
  • Apt Emulation

    wgpsec/AboutSecurity

    APT 模拟与情报驱动红队方法论。基于已知 APT 组织的 TTP(MITRE ATT&CK)设计红队行动计划。当需要模拟特定威胁组织、设计高仿真攻击演练、或根据威胁情报制定攻击策略时使用

    1.8k GitHub stars~922 tokensUpdated yesterday
    Auto-check passed
  • Argocd Tactics

    wgpsec/AboutSecurity

    ArgoCD 后渗透方法论:Redis缓存投毒集群接管、SSO认证绕过、未授权API枚举、恶意Application部署、Webhook SSRF、默认凭据利用。

    1.8k GitHub stars~510 tokensUpdated yesterday
    Auto-check passed
  • C2 Beacon Analysis

    wgpsec/AboutSecurity

    C2 Beacon 配置提取与分析。当捕获到 Cobalt Strike/Sliver/Havoc 等 C2 框架的 Beacon 样本、内存 dump、或网络流量时使用。提取 C2 地址、通信协议、Malleable Profile、Watermark 等关键情报。红队视角:了解蓝队如何从 Beacon 提取 IOC 以改进 C2 OPSEC

    1.8k GitHub stars~1.2k tokensUpdated yesterday
    Auto-check passed
  • C2 Evasion Methodology

    wgpsec/AboutSecurity

    C2框架免杀方法论:分析 C2 源码、搜索检测规则(YARA/Sigma/Snort)、逐规则分析、修改源码绕过检测。当遇到 YARA/Sigma/Snort 规则触发告警、beacon/implant 被杀软检测到时使用。第一步:确认 implant/beacon 语言和架构;第二步:搜索对应检测规则并逐规则分析修改

    1.8k GitHub stars~557 tokensUpdated yesterday
    Auto-check passed

Works with

Questions about Persist Maintain

What does Persist Maintain do?

权限持久化方法论。当已获取目标系统权限后需要维持长期访问时使用。覆盖 Linux(cron/SSH key/webshell) 和 Windows(计划任务/服务/注册表/WMI) 持久化技术,以及 Web 层面的 webshell 部署和隐蔽策略. Persist Maintain is an agent skill from wgpsec/AboutSecurity.

When should I use Persist Maintain?

Persist Maintain fits situations like: tasks that involve Scheduled and recurring tasks.

How do I install Persist Maintain in Claude Code?

Run `npx skills add wgpsec/AboutSecurity --skill persist-maintain -a claude-code`. Or copy the skill folder (skills/postexploit/persist-maintain in wgpsec/AboutSecurity) into .claude/skills/persist-maintain in your project. Claude Code loads it when a task matches its description.

How do I install Persist Maintain in Codex?

Run `npx skills add wgpsec/AboutSecurity --skill persist-maintain -a codex`. Or copy the skill folder (skills/postexploit/persist-maintain in wgpsec/AboutSecurity) into .agents/skills/persist-maintain in your project. Codex loads it when a task matches its description.

Can I use Persist Maintain in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add wgpsec/AboutSecurity --skill persist-maintain -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/persist-maintain, .gemini/skills/persist-maintain, .github/skills/persist-maintain and .opencode/skills/persist-maintain in your project.

What does Persist Maintain need to run?

SKILL.md names no scripts, command-line tools or credentials: Persist Maintain is instructions for the agent only.

Does Persist Maintain access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Persist Maintain safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Persist Maintain use?

No licence was found for Persist Maintain or its repository. Without one, default copyright applies: ask the author before reusing or redistributing it.

How many tokens does Persist Maintain use?

About 398 tokens (SKILL.md is roughly 1.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 648 tokens, read only when the agent opens those files.

What are the alternatives to Persist Maintain?

Skills that share tags, products or a category with Persist Maintain: Daily Brief (leiting-eric/DailyBrief, 364 stars), Shadowvpn Deploy Client (madeye/shadowvpn, 101 stars), Manage (kenneth-liao/ai-launchpad-marketplace, 126 stars) and Daily Update (Ar9av/obsidian-wiki, 3.5k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Persist Maintain?

wgpsec (a GitHub organization) maintains it in wgpsec/AboutSecurity, which has 1,777 GitHub stars. The repository holds 74 skills in this directory. The repository was last updated on October 8, 2026.

Source: wgpsec/AboutSecurity on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.