Hexstrike forge

From Rifteo/skills · View interactive version

Hexstrike forge is an AI agent skill from the GitHub repository Rifteo/skills. 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.

How to use this skill

Skill file

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:

  1. Do you have written authorization to test this target?
  2. What is in scope and what is explicitly out of scope?
  3. 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.


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:


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:

  1. Assign finding ID (F-01, F-02 ...) in descending severity order
  2. Write up using finding-writer skill if installed — it produces a full structured pentest finding (npx rifteo-skills add finding-writer to install). If not installed, use the template in references/triage-rules.md section 6.

INVESTIGATE items go into open threads in the handoff — not findings.


Phase 5 — Deliver

Choose based on what the user needs:

Executive Summary must always include: total findings by severity, KEV findings flagged separately, any chains discovered, and one sentence on overall risk posture.


Rules

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.