ir-playbook-privilege-escalation

ir-playbook-privilege-escalation is a skill for Claude Code from gensecaihq/Wazuh-Autopilot. It costs 108 tokens per session (2,009 once invoked), scanned B, original, MIT.

An incident-response guide for investigating attempts to gain higher permissions on Linux or Windows systems. Privilege escalation means turning limited access into administrator or root access, often through settings, services, accounts, or software flaws.

In plain words
What is it for?
Use it to investigate sudo or su activity, SUID files, kernel modules, scheduled jobs, service changes, UAC bypasses, process injection, and unexpected administrator-group changes. It supports reviewing the account, command, host, and follow-on activity.
Why use it?
It helps responders determine whether an attacker moved from a normal account to powerful control and whether that access was used to persist. The guide covers both successful changes and warning signs such as repeated sudo failures.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Use it to investigate sudo or su activity, SUID files, kernel modules, scheduled jobs, service changes, UAC bypasses, process injection, and unexpected administrator-group changes. It supports reviewing the account, command, host, and follow-on activity.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/gensecaihq/wazuh-autopilot/ir-playbook-privilege-escalation
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add gensecaihq/Wazuh-Autopilot --skill ir-playbook-privilege-escalation
Clone the repo
git clone --depth 1 https://github.com/gensecaihq/Wazuh-Autopilot

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ir-playbook-privilege-escalation

README.md
[![agentmods](https://agentmods.dev/badge/skills/gensecaihq/wazuh-autopilot/ir-playbook-privilege-escalation/github.svg)](https://agentmods.dev/skills/gensecaihq/wazuh-autopilot/ir-playbook-privilege-escalation)
Your own site
<a href="https://agentmods.dev/skills/gensecaihq/wazuh-autopilot/ir-playbook-privilege-escalation"><img src="https://agentmods.dev/badge/skills/gensecaihq/wazuh-autopilot/ir-playbook-privilege-escalation/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ir-playbook-privilege-escalation

Your own site · 80×15
<a href="https://agentmods.dev/skills/gensecaihq/wazuh-autopilot/ir-playbook-privilege-escalation"><img src="https://agentmods.dev/badge/skills/gensecaihq/wazuh-autopilot/ir-playbook-privilege-escalation.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 108 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,009 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 2 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00108 $0.02009
Opus 5.5 $0.00043 $0.00804
Sonnet 5 $0.00022 $0.00402
Haiku 4.5 $0.00011 $0.00201

Measured yesterday against content hash 5cd6fec68d27, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-26, from the pricing page.

Security

Grade B, and why

ir-playbook-privilege-escalation scanned grade B with 2 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Asks for rootlowPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

| sudo failures | rules 5401 (L5), 5404 (L10, three failures), 5405 (L5, user not in sudoers) | group `sudo` |

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

Reaches for credential filesmediumPrivilege escalation

SSH keys, cloud credentials, git-credentials, .npmrc, /etc/shadow: reading these is how a config file becomes a credential leak.

| Critical file changes (FIM) | rules 550 (L7), 554 (L5) on `/etc/sudoers*`, `/etc/passwd`, `/etc/shadow`, systemd units | group `syscheck`; paths must be monitored |

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

backend/app/skills/ir-playbook-privilege-escalation/SKILL.md · 102 lines

How it starts

The opening of the file, as written. The whole thing — 102 lines — stays where its author put it; the contents beside it link to each section on GitHub.

IR Playbook — Privilege Escalation

Severity critical when escalation succeeds. MITRE ATT&CK TA0004: T1548 (.001 SUID, .002 UAC bypass, .003 sudo), T1068 (exploitation), T1055 (process injection), T1053.003 (cron), T1543 (services), T1547.006 (kernel modules), T1098 / T1484 (account and group changes). Rule IDs are from the stock Wazuh 4.14 ruleset (levels official). Full procedure and forensic commands: references/playbook.md.

1. Detection signals

Signal Wazuh rules (level) Notes
sudo failures rules 5401 (L5), 5404 (L10, three failures), 5405 (L5, user not in sudoers) group sudo
sudo to root / first-time sudo rules 5402 (L3), 5403 (L4) low level on their own — escalate when the user or command is unusual
su to root rules 5302 (L9, failed su to root), 5303 (L3, successful su to root) group su
auditd root transition rules 80721 (L10, user becomes root), 80742 (L5, user ID changed) requires auditd
New user / group, account changes (Linux) rules 5902 (L8), 5901 (L8), 5904 (L8), 2961 (L5, user added to group sudo) group adduser
Root crontab changed rule 2833 (L8) persistence after escalation
Unsigned / untrusted kernel module loaded rules 5132 (L11), 5133 (L11) T1547.006; kernel exploit/rootkit indicator
Critical file changes (FIM) rules 550 (L7), 554 (L5) on /etc/sudoers*, /etc/passwd, /etc/shadow, systemd units group syscheck; paths must be monitored
Windows UAC bypass rules 92046 (L12, fodhelper), 92055 (L12), 92056 (L14), 92305 (L12), 92306 (L12) Sysmon Event IDs 1 / 13
Windows admin group changes rules 60154 (L12, Administrators group), 60179 (L10, Remote Desktop Users), 60144 (L5, local group member added) Security log Event ID 4732
Special privileges on logon rule 67028 (L3, Event ID 4672) only meaningful for non-admin accounts
Process injection rules 92400 (L12), 92910 (L12) Sysmon Event IDs 8 / 10

Stock gaps (org must create, range 100000–120000): SUID/setcap use with GTFOBins arguments (custom rule 100610, auditd execve on chmod/setcap), pkexec abuse (custom rule 100613), systemd units created outside the package manager (custom rule 100616, FIM on /etc/systemd/system). Validate with wazuh-logtest before enabling.

Read the full file on GitHub · 102 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 102 lines · 108 tokens per session scan B 5cd6fec68d27

Subscribe to this mod's changes

ir-playbook-privilege-escalation is a skill published in the GitHub repository gensecaihq/Wazuh-Autopilot (57 stars, last pushed 2d ago), licensed MIT. It adds 108 tokens to every session and 2,009 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it B with 2 findings (asks for root, reaches for credential files). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-25.