pwned

pwned is a command for Claude Code from mukul975/Threatswarm. It costs 18 tokens per session (729 once invoked), scanned C, original, MIT.

A post-exploitation workflow for a target where shell access has already been obtained. Post-exploitation means examining and using that access after an initial system compromise.

In plain words
What is it for?
Use it during an authorized security assessment to document access, check for ways to gain higher privileges, collect credentials, and record evidence.
Why use it?
It organizes privilege escalation, credential collection, and movement to other systems, while requiring the target to be listed as in scope.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Use it during an authorized security assessment to document access, check for ways to gain higher privileges, collect credentials, and record evidence.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/mukul975/threatswarm/pwned
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.

Clone the repo
git clone --depth 1 https://github.com/mukul975/Threatswarm

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 pwned

README.md
[![agentmods](https://agentmods.dev/badge/commands/mukul975/threatswarm/pwned/github.svg)](https://agentmods.dev/commands/mukul975/threatswarm/pwned)
Your own site
<a href="https://agentmods.dev/commands/mukul975/threatswarm/pwned"><img src="https://agentmods.dev/badge/commands/mukul975/threatswarm/pwned/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 pwned

Your own site · 80×15
<a href="https://agentmods.dev/commands/mukul975/threatswarm/pwned"><img src="https://agentmods.dev/badge/commands/mukul975/threatswarm/pwned.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 18 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 729 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. 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.00018 $0.00729
Opus 5 $0.00009 $0.00365
Sonnet 5 $0.00004 $0.00146
Haiku 4.5 $0.00002 $0.00073

Measured 9d ago against content hash 82be592deb65, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade C, and why

pwned scanned grade C with 1 finding 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 9d ago.

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.

Reaches for credential fileshighPrivilege escalation

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

- Linux: read /etc/shadow if root, find config files with credentials
.claude/commands/pwned.md · 69 lines

What it actually says

Run full post-exploitation workflow on: $ARGUMENTS

Parse $ARGUMENTS: first word is TARGET, second word (optional) is SESSION_ID or access level (user/www-data/root/SYSTEM).

  1. Scope Check: Verify TARGET is in scope.txt. Stop if not found.

  2. Document Current Access:

    ═══════════════════════════════════════════
    POST-EXPLOITATION START
    Target:       TARGET
    Session ID:   SESSION_ID (if provided)
    Timestamp:    $(date -u +%Y-%m-%dT%H:%M:%SZ)
    ═══════════════════════════════════════════
    
  3. Invoke post-ex Agent for automated privilege escalation:

    • Detect OS type (Linux vs Windows)
    • Run LinPEAS/WinPEAS automated enumeration
    • Check SUID binaries, cron, sudo, capabilities (Linux)
    • Check SeImpersonatePrivilege, unquoted paths, AlwaysInstallElevated (Windows)
    • Document escalation path with ATT&CK TTPs
    • Target evidence dir: evidence/$(date +%Y%m%d)/TARGET/post_ex/
  4. Credential Harvesting: After any privilege escalation:

    • Linux: read /etc/shadow if root, find config files with credentials
    • Windows: invoke impacket-secretsdump locally, or mimikatz via Meterpreter
    • Pass any discovered hashes to password-attacks agent for cracking
    • Store: location reference only (NOT plaintext passwords)
  5. Domain Check: If target appears domain-joined:

    • Check for domain membership: realm list (Linux) or systeminfo | findstr /i domain (Windows)
    • If domain-joined: invoke active-directory agent for full domain compromise path
    • Run BloodHound collection from compromised host
  6. Lateral Movement Mapping:

    # SMB sweep for reachable hosts (from compromised machine)
    crackmapexec smb $INTERNAL_SUBNET/24 \
      -u $COMPROMISED_USER -H $NTLM_HASH \
      --continue-on-success 2>&1 | \
      tee evidence/$(date +%Y%m%d)/$TARGET/lateral/smb_sweep.txt
    
  7. Update Findings: Append to evidence/$(date +%Y%m%d)/TARGET/findings.md:

    ## Post-Exploitation — $(date -u +%Y-%m-%dT%H:%M:%SZ)
    
    | Step | Method | ATT&CK | Result |
    |------|--------|--------|--------|
    | Privesc | [technique] | [TTP] | [user → root/SYSTEM] |
    | Lateral | [technique] | T1021 | [hosts reached] |
    
  8. Print Summary:

    ═══ POST-EX RESULTS ════════════════
    Privilege Level: [user → root/SYSTEM]
    Hosts Reached:   X
    Credentials:     X hashes (see evidence/)
    Domain Admin:    [YES/NO]
    ════════════════════════════════════
    
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. 9d ago First seen · 69 lines · 18 tokens per session scan C 82be592deb65

Subscribe to this mod's changes

pwned is a command published in the GitHub repository mukul975/Threatswarm (78 stars, last pushed 4mo ago), licensed MIT. It adds 18 tokens to every session and 729 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it C with 1 finding (reaches for credential files). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other commands, from other repositories

recon

Run full recon pipeline on a target — subdomain enum (Chaos API + subfinder), live host discovery (dnsx + httpx), URL crawl (katana + waybackurls + gau), gf pattern classification, nuclei scan. Outputs to recon/ / directory. Usage: /recon target.com.

elementalsouls/Claude-BugHunter · 65 tokens

autopilot

Run autonomous hunt loop on a target — scope check → recon → rank surface → hunt → validate → report with configurable checkpoints. Usage: /autopilot target.com [--paranoid|--normal|--yolo].

elementalsouls/Claude-BugHunter · 49 tokens

hunt

Active vulnerability hunting. Two-track dispatcher — asks Red Team vs WAPT, hands off to hunt-dispatch skill and sibling commands. Usage: /hunt target.com | /hunt .target.com | /hunt targets.txt [--vuln-class X] [--source-code P] [--chrome].

elementalsouls/Claude-BugHunter · 63 tokens

token-scan

Meme coin and token security scan — checks for rug pull vectors (hidden mint, honeypot, fee manipulation, LP lock bypass, authority retention, bonding curve exploits, fake renounce, sandwich amplification). Manual 8-class grep audit (with an optional automated scanner if present). Usage: /token-scan [--chain solana].

elementalsouls/Claude-BugHunter · 79 tokens

triage

Quick 7-Question Gate triage on a finding before writing a report. Kills N/A submissions before they happen. Faster than /validate — for quick go/no-go decisions. Usage: /triage.

elementalsouls/Claude-BugHunter · 45 tokens

validate

Validate a finding — runs 7-Question Gate + 4-gate checklist. Kills weak findings before report writing. Prevents N/A submissions that hurt validity ratio. Usage: /validate.

elementalsouls/Claude-BugHunter · 41 tokens