hexstrike-forge
Skill37 starsChanged 5 months agoMITView on GitHub
A 5-phase structured pentest methodology for the hexstrike-ai MCP server, covering passive recon through finding delivery with triage gates, parallel execution, and tool failure recovery.
In this repository38 other files it gives its agents.
- ad-breachSkill
- ai-llm-hunterSkill
- attack-surfaceSkill
- bugbounty-reporterSkill
- cavemanSkill
- check-exploitSkill
- clickjacking-hunterSkill
- compliance-gap-analyzerSkill
- control-lookupSkill
- ctf-writeupSkill
- cvss-scorerSkill
- deadangleSkill
- droid-reconSkill
- economist-attackSkill
- engagement-handoffSkill
- finding-writerSkill
- find-skillsSkill
- graphql-raiderSkill
- high-severity-hunterSkill
- hpp-hunterSkill
- idor-hunterSkill
- js-analyzerSkill
- jwt-crackerSkill
- less-aggressive-attackSkill
- less-noise-attackSkill
- nuclei-template-writerSkill
- pentest-reportSkill
- redirect-forgeSkill
- redmindSkill
- remediation-plannerSkill
- risk-assessorSkill
- scope-grillSkill
- skill-benchmarkSkill
- ssrf-hunterSkill
- ssti-hunterSkill
- vuln-diagnoseSkill
- xss-hunterSkill
- xxe-phantomSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
18 rules. About 0 are common, 9 are distinctive, and 9 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈9
Distinctive · estimate
This author's own choices. Worth a look.
9
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 15
Rule: No exploit, no finding. Every HexStrike output is a hypothesis until triage confirms it.
- Very specific: line 20
Run scope-grill skill if installed (npx rifteo-skills add scope-grill to install).
- Distinctive: line 22
Do you have written authorization to test this target?
- Distinctive: line 26
If authorization cannot be confirmed, stop.
- Very specific: line 29
Call server_health. Diff available tools against the phases in references/tool-sequences.md for the identified target type.
- Very specific: line 41
Run a port scan on top 100 ports.
- Distinctive: line 51
If ambiguous across two types, run both.
- Very specific: line 53
WAF/CDN detection: if HTTP responses show inconsistent behavior, Cloudflare/Akamai/Fastly headers, or payloads are silently dropped — note …
- Very specific: line 59
Follow the capability sequence for the target type from references/tool-sequences.md.
- Distinctive: line 64
If a tool times out with partial output, triage what was returned — do not discard
- Distinctive: line 65
If a port changes state mid-engagement, wait 60s and retry once before marking inconclusive
- Very specific: line 77
Run chain detection (references/triage-rules.md section 2)
- Distinctive: line 84
Authenticated gate: before authenticated tests, surface explicitly: *"Authenticated testing requires credentials.
- Very specific: line 88
Write up using finding-writer skill if installed — it produces a full structured pentest finding (npx rifteo-skills add finding-writer to …
- Distinctive: line 109
Never report without triage — flags are hypotheses
- Very specific: line 110
Never run active phases without confirmed scope from scope-grill
- Very specific: line 112
If a tool is broken, apply the rule from references/known-tool-bugs.md — never retry a broken invocation
- Distinctive: line 113
Keep the user informed at every phase transition
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
HexStrike Forge
HexStrike executes. Rifteo refines. This skill sequences HexStrike tools intelligently, filters noise down to confirmed findings, and assembles a professional report.
Rule: No exploit, no finding. Every HexStrike output is a hypothesis until triage confirms it.
Startup
1. Scope gate
Run scope-grill skill if installed (npx rifteo-skills add scope-grill to install). If not installed, ask these three questions before any active testing and do not proceed until all are answered:
- Do you have written authorization to test this target?
- What is in scope and what is explicitly out of scope?
- Any restrictions? (no DoS, time windows, excluded hosts?)
If authorization cannot be confirmed, stop. Do not proceed.
2. Tool pre-check
Call server_health. Diff available tools against the phases in references/tool-sequences.md for the identified target type. Note any capability gaps upfront — do not discover them mid-engagement.
3. Output rule
Strip ANSI escape codes and extract stdout from every tool response before reading it. See references/known-tool-bugs.md for handling broken or misbehaving tools.
4. Multi-target
If the user provides multiple targets (IP range, list of domains, CIDR block): run Phase 1 across all targets first, consolidate the target map, then run phases 2–4 in sequence. Do not run a full engagement per target in isolation — cross-target findings (e.g. same CVE on multiple hosts) count as one finding with multiple affected assets.
Phase 1 — Orient
Run a port scan on top 100 ports. Derive target type from what is open. Load the matching sequence from references/tool-sequences.md.
| Signal | Target type |
| Port 80/443, web service, domain name | Web application |
JSON endpoints, /api/, REST, GraphQL | API |
| IP range, ports 22/25/445/3389, no web UI | Network / infrastructure |
| S3 URLs, cloud provider headers, metadata endpoints | Cloud |
| Mobile app + backend URL, thick client traffic | Mobile / thick client |
If ambiguous across two types, run both. If the target is unresponsive (all ports filtered, no response), document it, note possible WAF/CDN, and attempt a DNS and passive recon pass before concluding.
WAF/CDN detection: if HTTP responses show inconsistent behavior, Cloudflare/Akamai/Fastly headers, or payloads are silently dropped — note the WAF/CDN, adapt the scan sequence to use lower-noise tools first, and flag WAF presence in the engagement summary.
Phase 2 — Strike
Follow the capability sequence for the target type from references/tool-sequences.md.
- Passive before active
- Unauthenticated before authenticated
- Triage after each capability phase before moving to the next
- If a tool times out with partial output, triage what was returned — do not discard
- If a port changes state mid-engagement, wait 60s and retry once before marking inconclusive
Phase 3 — Triage
Apply rules from references/triage-rules.md to every flag. Assign each item: CONFIRM-HIGH, CONFIRM-MED, INVESTIGATE, or DISCARD.
Target: fewer than 20% of raw flags become CONFIRM. If confirming more, triage is too loose.
After triage:
- Cross-reference every confirmed CVE against CISA KEV (
references/triage-rules.mdsection 3) - Run chain detection (
references/triage-rules.mdsection 2) - Log every CONFIRM item in the evidence ledger (
references/triage-rules.mdsection 5)
Phase 4 — Forge
Authenticated gate: before authenticated tests, surface explicitly: "Authenticated testing requires credentials. Provide them to continue, or type SKIP." Do not silently skip.
For each CONFIRM-HIGH and CONFIRM-MED finding:
- Assign finding ID (F-01, F-02 ...) in descending severity order
- Write up using
finding-writerskill if installed — it produces a full structured pentest finding (npx rifteo-skills add finding-writerto install). If not installed, use the template inreferences/triage-rules.mdsection 6.
INVESTIGATE items go into open threads in the handoff — not findings.
Phase 5 — Deliver
Choose based on what the user needs:
- Full report →
pentest-reportskill if installed (npx rifteo-skills add pentest-report) — it assembles a complete professional report. If not installed, produce: Executive Summary → Risk Summary (finding count by severity, KEV flags) → Findings sorted by CVSS → Open Threads → Appendix (tool output). - Continue later →
engagement-handoffskill if installed (npx rifteo-skills add engagement-handoff) — it produces a structured handoff document. If not installed, produce: confirmed scope, evidence ledger, open threads with next steps, retest date, and any credentials or context the next session needs. - Remediation plans →
remediation-plannerskill per finding if installed (npx rifteo-skills add remediation-planner) — it produces prioritized fix plans. If not installed, for each finding produce: immediate action (hours), short-term fix (days), long-term hardening (weeks), and a verification step to confirm the fix. - Quick brief → no sub-skill needed. Produce 5 lines: scope, test duration, finding count by severity, highest-risk finding title, recommended immediate action.
Executive Summary must always include: total findings by severity, KEV findings flagged separately, any chains discovered, and one sentence on overall risk posture.
Rules
- Never report without triage — flags are hypotheses
- Never run active phases without confirmed scope from
scope-grill - Deduplicate: same endpoint + same issue from multiple tools = one finding
- If a tool is broken, apply the rule from
references/known-tool-bugs.md— never retry a broken invocation - Keep the user informed at every phase transition
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.

