Analyzes individual security findings to identify and construct complex exploit chains. Use after validation stages to see if multiple low-severity bugs can be combined into a higher impact vulnerability. Don't use for initial codebase auditing or writing patch code.
Works with
AI-first code editor with Composer
Before installing skills in Cursor, ensure your development environment meets these requirements:
node --versionmantis-chainExecute the skills CLI command in your project's root directory to begin installation:
Fetches mantis-chain from google/mantis and configures it for Cursor.
The CLI shows a list of agents. Use arrow keys and space to select Cursor:
Confirm successful installation by checking the skill directory location:
Restart Cursor to activate mantis-chain. Access via /mantis-chain in your agent's command palette.
We perform automated surface-level scans (Gen AI Scanner, Socket, Snyk) during installation. These checks detect common vulnerabilities but do not guarantee complete security. Always review skill source code and verify the publisher's reputation before production use.
Skills execute code in your environment. Always review source, verify the publisher, and test in isolation before production.
Submit your Claude Code skill and start earning
Automate repetitive workflows and reduce manual effort
Example
Generate reports, summarize documents, draft communications
Save 3-5 hours per week on routine tasks
Learn new skills, understand complex topics, get expert guidance
Example
Explain concepts, provide examples, suggest learning resources
Accelerate learning and skill development by 2x
Enhance output quality through reviews, suggestions, and refinements
Example
Review drafts, suggest improvements, catch errors
Improve work quality by 30-40% with less effort
0
total installs
0
this week
307
GitHub stars
0
upvotes
Run in your terminal
0
installs
0
this week
307
stars
| name | mantis-chain |
| description | >- Analyzes individual security findings to identify and construct complex exploit chains. Use after validation stages to see if multiple low-severity bugs can be combined into a higher impact vulnerability. Don't use for initial codebase auditing or writing patch code. |
Exploit Chain Architect. Analyzes isolated, individually-validated security findings and historical knowledge base primitives to identify and construct complex, multi-step exploit chains.
/mantis-chainworkspace/findings/ (validated finding JSON files where status is
"VALID", and viability is "VIABLE", "CONDITIONAL_VIABLE", or
"SAMPLE_OR_TEST").workspace/kb/entities/*.md and workspace/kb/vulnerabilities/*.md
(knowledge base primitives).workspace/.mantis_state.json (to track current loop pass).workspace/findings/<new_uuid>.json. Original findings are left
unmodified.workspace/findings/.workspace/findings/ by comparing
the constituent finding UUIDs. If a chain finding with the exact same
constituent UUID sequence already exists, it must skip creating a
duplicate.Read the current batch of validated findings and explore whether multiple seemingly low-severity or disparate vulnerabilities can be sequentially combined to achieve a higher-impact compromise.
Execute the chaining stage as follows:
Load Primitives & Validated Findings:
workspace/findings/ directory. Filter for
findings that have passed validation (e.g., status is "VALID" and
viability is "VIABLE", "CONDITIONAL_VIABLE", or "SAMPLE_OR_TEST").workspace/kb/entities/ and
workspace/kb/vulnerabilities/) to identify architectural primitives
that might not be bugs on their own, but could serve as stepping stones
(e.g., "User controls file upload path", "Service runs as root").Cross-Finding Analysis (The Chaining Matrix):
/tmp, but a separate
misconfiguration (Finding B) allows a cron job to execute scripts in
/tmp.Construct "Super Findings":
workspace/findings/<new_uuid>.json."constituent_findings" property (e.g.,
["UUID_A", "UUID_B"]). This clearly documents the links of the exploit
chain.privileges_required field
for the chain must represent the privilege level required to initiate
the first step of the chain (the entry point). For example, if the
chain starts with an unauthenticated exploit (NONE) that leads to admin
access, which is then used to trigger RCE, the chain's
privileges_required must be set to NONE.attacker_position field for the
chain must inherit the attacker position from the entry point / first
constituent finding of the chain.user_interaction field
for the chain must be set to REQUIRED if the entry point or any step
in the chain requires user interaction. It should only be set to NONE
if the entire chain is zero-click.status to "VALID"."SAMPLE_OR_TEST", set to "SAMPLE_OR_TEST".
Else if any constituent is "CONDITIONAL_VIABLE", set to
"CONDITIONAL_VIABLE". Otherwise, set to "VIABLE".repro_status of "failed_to_reproduce"
or "not_attempted", set to "not_attempted".repro_status of
"reproduced" or "statically_confirmed", set to
"statically_confirmed"."reproduced" (as
reproduction of constituents does not prove the end-to-end chain
works).{
"id": "A unique identifier generated for this chain finding. Must match filename.",
"title": "Exploit Chain: [Impact] via [Finding A] and [Finding B]",
"description": "Step-by-step documentation of the exploit chain. Start with Step 1 (Triggering Finding A) and explain how its outcome feeds into Step N (Triggering Finding Z).",
"impact": "The combined, escalated impact of the chain (e.g., Remote Code Execution, Full Database Exfiltration). This should be higher than the individual findings.",
"severity": "CRITICAL / HIGH",
"privileges_required": "NONE / LOW / HIGH",
"user_interaction": "NONE / REQUIRED",
"code_paths": [
"relative/file/path_A.c:line_number",
"relative/file/path_B.c:line_number"
],
"attacker_position": "EXTERNAL / LOCAL / etc. (inherited from entry point)",
"mitigation": "Recommended strategy to break the chain. Usually involves fixing at least one, if not all, of the underlying links.",
"status": "VALID",
"production_viability": "VIABLE / SAMPLE_OR_TEST / CONDITIONAL_VIABLE",
"repro_status": "statically_confirmed / not_attempted",
"constituent_findings": ["UUID_A", "UUID_B"],
"history": [
{
"stage": "chainer",
"action": "created",
"details": "Constructed by chaining findings [UUID_A] and [UUID_B].",
"pass_number": <current_pass_number>,
"timestamp": "<current_iso8601_timestamp>"
}
]
}
Chain Deduplication Tagging:
/mantis-dedupe treats these chains differently than raw
findings, ensure the word "Chain" is prominently featured in the
"title" and "history" fields as shown in the schema.Ensure any newly constructed chain files are written to the
workspace/findings/ directory. When complete, notify the user.
Prerequisites
Time Estimate
15-45 minutes depending on use case complexity
Steps
Common Pitfalls
✓ Do
✗ Don't
💡 Pro Tips
✓ Use when
Use when skill capabilities match your task, clear ROI on time saved, and you can validate outputs. Best for repetitive tasks, learning, and quality improvement.
✗ Avoid when
Avoid when task requires deep expertise you can't validate, involves sensitive decisions, or when learning process is more valuable than speed of completion.
Keeps context tight: mantis-chain is the kind of skill you can hand to a new teammate without a long onboarding doc.
Registry listing for mantis-chain matched our evaluation — installs cleanly and behaves as described in the markdown.
Useful defaults in mantis-chain — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.
We added mantis-chain from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.
Useful defaults in mantis-chain — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.
Registry listing for mantis-chain matched our evaluation — installs cleanly and behaves as described in the markdown.
Keeps context tight: mantis-chain is the kind of skill you can hand to a new teammate without a long onboarding doc.
I recommend mantis-chain for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.
mantis-chain reduced setup friction for our internal harness; good balance of opinion and flexibility.
Registry listing for mantis-chain matched our evaluation — installs cleanly and behaves as described in the markdown.
showing 1-10 of 34