hunt-rce
Skill0 starsChanged 3 months agoMITView on GitHub
RCE and remote code execution hunting methodology. TRIGGER: user is testing for RCE, command injection, code execution, or mentions headless browser exploitation, file write primitives, or protocol-level attacks.
4 other projects use a version of this.
Adopted by
Most recently taken up by
- Kur1sulab/blackboxtheir own version, first seen Aug 12, 2026
- Encod3d-Sec/TORCHtheir own version, first seen Aug 12, 2026
- elementalsouls/Claude-BugHuntertheir own version, first seen Jul 1, 2026
- H-mmer/pentest-agentstheir own version, first seen May 6, 2026
Other versions4 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 4
- elementalsouls/Claude-BugHunter★ 4.8ksame name
- H-mmer/pentest-agents★ 984same name
- Encod3d-Sec/TORCH★ 329same name
- Kur1sulab/blackbox★ 3same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository15 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- templates/CLAUDE.mdCLAUDE.md
- ffuf-web-fuzzingSkill
- hunt-aiSkill
- hunt-atoSkill
- hunt-bxssSkill
- hunt-idorSkill
- hunt-rbacSkill
- hunt-reconSkill
- hunt-ssrfSkill
- hunt-vibecodedSkill
- hunt-xssSkill
- js-analyzeSkill
- triage-findingSkill
- write-reportSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
19 rules. 0 are common, 16 are distinctive, and 3 are very specific to this project.
0
Common
Most of the 4 edited versions we read keep these.
16
Distinctive
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 17
Instead, RCE comes from chaining primitives: a file write becomes RCE via DLL hijack, an SSRF becomes RCE via cloud metadata → instance …
- Distinctive: line 24
When you find HTML-to-PDF or screenshot rendering:
- Distinctive: line 28
Use Chrome DevTools Protocol over WebSocket to read local files
- Distinctive: line 30
Use K8s service account token to access cluster API
- Distinctive: line 33
When target uses Perforce for version control:
- Very specific: line 39
Use client-WriteFile to write malicious DLL to application directory
- Distinctive: line 61
Document converters (LibreOffice, Pandoc)
- Distinctive: line 63
Import/export features using external tools
- Distinctive: line 70
Check CVE databases for that version
- Distinctive: line 71
Look at the User-Agent of server-side HTTP clients
- Very specific: line 72
Check navigator.userAgent in headless browsers via injected JS
- Distinctive: line 75
Look for these primitives that chain to RCE:
- Distinctive: line 103
Always check if you're in a container (Docker/K8s) — K8s secrets are at known paths
- Distinctive: line 104
Check for service mesh/sidecar proxies that might give access to other services
- Distinctive: line 105
Look for IAM roles/service accounts attached to the compute instance
- Distinctive: line 106
Document the full chain clearly — reviewers need to understand each step
- Very specific: line 115
No social engineering and no active network attacks (mDNS/ARP/DNS poisoning) unless the program's policy explicitly authorizes them.
- Distinctive: line 118
Do not use extracted cloud credentials to access the account or real data beyond the minimal proof they are valid.
- Distinctive: line 122
Run the finding through triage-finding before writing it up.
“Common” is measured: kept by at least 6 in 10 of the 4 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
hunt-rce — Remote Code Execution Hunting
You are assisting an authorized bug bounty hunter doing ethical testing under a program's published policy, whose RCE reports include headless Chrome exploitation chains, Perforce protocol abuse for arbitrary file write, and vulnerable component exploitation. Their RCE findings are typically chains: SSRF → LFI → RCE, or file write → DLL hijack → RCE.
Core Philosophy
RCE is the holy grail. In bug bounty, you rarely get direct eval(user_input).
Instead, RCE comes from chaining primitives: a file write becomes RCE via DLL
hijack, an SSRF becomes RCE via cloud metadata → instance credentials → deploy
pipeline. Think in chains.
RCE Chains (from real reports)
Chain 1: Headless Chrome → Debug Protocol → File Read → K8s Secrets
When you find HTML-to-PDF or screenshot rendering:
- Confirm JavaScript execution in the renderer
- Port scan localhost for Chrome DevTools port (30000-50000 range)
- Access '/json' endpoint on debug port to get WebSocket URL
- Use Chrome DevTools Protocol over WebSocket to read local files
- Read
/var/run/secrets/kubernetes.io/serviceaccount/token - Use K8s service account token to access cluster API
Chain 2: Perforce Client → Arbitrary File Write → DLL Hijack
When target uses Perforce for version control:
- Set up malicious Perforce server
- Coerce connection via an IN-SCOPE vector only (do NOT use social engineering or network poisoning unless the program's policy explicitly authorizes it — both are out of scope on nearly every program; if no in-scope vector exists, report the file-write primitive and explain the chain instead)
- Use
client-WriteFileto write malicious DLL to application directory - Application loads DLL on next startup → RCE
Key: Check if
P4CLIENTPATHis set. If not, the Perforce server can write ANYWHERE.
Chain 3: Vulnerable Component → Known CVE
Identify component versions and check for known RCE CVEs:
- HeadlessChrome/77.0.3844.0 → multiple RCE CVEs
- pdf.js 1.10.97 → CVE-2018-5158 (XSS that enables further chains)
- Old libcurl → protocol smuggling
- OpenSearch with vulnerable Chrome → RCE via reporting plugin
Chain 4: SSRF → Cloud Metadata → Deploy Key → Code Push
- SSRF to '169.254.169.254/latest/meta-data/iam/security-credentials/'
- Extract AWS credentials
- List accessible services (S3, CodeCommit, ECR)
- Push malicious code or container → RCE in deployment
Discovery Methodology
Step 1: Identify Code Execution Surfaces
- PDF generators (wkhtmltopdf, headless Chrome, Puppeteer)
- Image processors (ImageMagick, GraphicsMagick)
- Document converters (LibreOffice, Pandoc)
- Template engines (Jinja2, ERB, Handlebars)
- Import/export features using external tools
- Version control integrations (Git, SVN, Perforce)
- CI/CD pipelines accessible via API
Step 2: Version Fingerprinting
For every component you identify:
- Extract exact version from headers, error messages, or behavior
- Check CVE databases for that version
- Look at the User-Agent of server-side HTTP clients
- Check
navigator.userAgentin headless browsers via injected JS
Step 3: Primitive Hunting
Look for these primitives that chain to RCE:
- File write: upload features, Perforce, import tools
- File read: SSRF, LFI, directory traversal
- JS execution (headless): XSS in headless browser context, template injection
- Command injection: user input in system calls, filename handling
- Deserialization: Java/PHP/Python/Ruby object deserialization
Step 4: Chain the Primitives
Map your primitives to known escalation paths: File Write + DLL hijack, webshell, cron job, authorized_keys File Read + secrets, tokens, source code → auth bypass → more access JS Execution (headless) + Chrome debug protocol → file read → K8s secrets SSRF + cloud metadata → credentials → lateral movement Template Injection → code execution in server-side template engine
Impact Demonstration
For RCE, demonstrate:
- Command execution proof:
id,whoami,hostnameoutput - Or file read proof: sensitive file contents (tokens, configs)
- Environment context: are you in a container? What services are accessible?
- Blast radius: one pod? The whole cluster? All customer data?
For file-write-to-RCE chains, you may need to explain the chain rather than actually execute malicious code. Show the write primitive works, explain the RCE path.
Key Considerations
- Always check if you're in a container (Docker/K8s) — K8s secrets are at known paths
- Check for service mesh/sidecar proxies that might give access to other services
- Look for IAM roles/service accounts attached to the compute instance
- Document the full chain clearly — reviewers need to understand each step
Scope & Ethics Guardrails (beginner — do not skip)
- Prove execution with a HARMLESS command (
id,whoami,hostname) or a single benign file read. Never run destructive, persistent, or state-changing payloads on live infrastructure (no data deletion, no shells left behind, no crypto/DoS). - Once you have proof of execution, STOP. Do not pivot deeper, move laterally into the internal network, access customer data, or push code to real pipelines to "prove" blast radius — describe it instead.
- No social engineering and no active network attacks (mDNS/ARP/DNS poisoning) unless the program's policy explicitly authorizes them. They are out of scope almost everywhere.
- Do not use extracted cloud credentials to access the account or real data beyond the minimal proof they are valid.
- Confirm the asset is in scope before testing. RCE is high-stakes — if any step could cause damage or leave scope, stop and ask the user first.
- Run the finding through triage-finding before writing it up.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

