mantishack: Skill for Codex

.codex/skills/detection-breadth/SKILL.md

detection-breadth is a skill for Codex from deonmenezes/mantishack. It costs 52 tokens per session (479 once invoked), scanned A, original, Apache-2.0.

Guidance for adding Bandit and Trivy to a software security scanning process. Bandit checks Python code, while Trivy checks dependencies, secrets, and infrastructure configuration.

In plain words
What is it for?
It helps scan Python-specific patterns, container and infrastructure files, dependencies, and embedded secrets alongside tools such as Semgrep, CodeQL, OSV-Scanner, and TruffleHog.
Why use it?
It broadens detection beyond general code and dependency scanners, while keeping each scanner’s limits clear and avoiding treating every hit as a confirmed vulnerability.

Skill for Codex

Written for Codex: installed under .codex/.

This is deonmenezes/mantishack's own configuration. It tells Codex how to work on mantishack itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything mantishack configures →

Reuse

Borrowing it

Nothing to install: this file belongs to deonmenezes/mantishack. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/deonmenezes/mantishack/main/.codex/skills/detection-breadth/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/deonmenezes/mantishack

Made for: Codex.

Wrote 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.

agentmods badge for detection-breadth

README.md
[![agentmods](https://agentmods.dev/badge/skills/deonmenezes/mantishack/detection-breadth/github.svg)](https://agentmods.dev/skills/deonmenezes/mantishack/detection-breadth)
Your own site
<a href="https://agentmods.dev/skills/deonmenezes/mantishack/detection-breadth"><img src="https://agentmods.dev/badge/skills/deonmenezes/mantishack/detection-breadth/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for detection-breadth

Your own site · 80×15
<a href="https://agentmods.dev/skills/deonmenezes/mantishack/detection-breadth"><img src="https://agentmods.dev/badge/skills/deonmenezes/mantishack/detection-breadth.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 52 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 479 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00052 $0.00479
Opus 5.5 $0.00021 $0.00192
Sonnet 5.5 $0.00010 $0.00096
Haiku 4.5 $0.00005 $0.00048

Measured 1mo ago against content hash 16d9840a47b6, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

detection-breadth scanned grade A with 0 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 1mo 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.codex/skills/detection-breadth/SKILL.md · 14 lines

What it actually says

The core Detect toolchain is semgrep (broad SAST), CodeQL (dataflow SAST), osv-scanner (SCA), trufflehog (secrets), and program-analysis (AST/taint/SMT). Two companion servers widen coverage; reach for them deliberately, not reflexively.

  • bandit_scan (mantis_bandit): Python-specific SAST. Use it on Python targets in addition to semgrep -- bandit encodes Python-idiom checks (e.g. subprocess with shell=True, weak crypto, yaml.load, flask debug) that a generic ruleset can under-cover. Every hit is a candidate; bandit's own severity/confidence describe rule confidence, not demonstrated impact, so do not report them as final severity. Default confidence to low for full recall on a first sweep.
  • trivy_scan (mantis_trivy): composition analysis in one pass -- vulnerable dependencies, embedded secrets, and IaC (Dockerfile/Terraform/k8s) misconfigurations. Use it to add container/IaC coverage that osv-scanner (deps only) and trufflehog (secrets only) don't reach. A vulnerable dependency being present does not mean its vulnerable code path is reachable -- that's a separate question for the reachability stage. Secret values are never returned, only rule/line references.

Both degrade gracefully: if the underlying binary isn't installed they report available: false. When that happens, say so explicitly rather than claiming coverage you didn't get, and fall back to the core toolchain. Do not double-count: if trivy and osv-scanner both flag the same advisory for the same package, it's one candidate, not two.

Every result from either tool is a candidate in the findings lifecycle -- register it via mantis_findings finding_create, then trace reachability and attacker-simulate before it can become confirmed (see the mantis-pipeline and findings-spine skills).

Changes

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.

  1. 1mo ago First seen · 14 lines · 52 tokens per session scan A 16d9840a47b6

Subscribe to this mod's changes

detection-breadth is a skill published in the GitHub repository deonmenezes/mantishack (504 stars, last pushed 18d ago), licensed Apache-2.0. It adds 52 tokens to every session and 479 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

graph-db-writes

Writing to the Neo4j attack-surface graph in RedAmon: the tenant-isolation MERGE key every entity node must carry, where graph methods live (mixins, not the client), and the schema places that must be updated together. A MERGE missing the tenant key silently merges one project's data into another's. Trigger: editing…

samugit83/redamon · 119 tokens

project-settings-cascade

Changing or adding a project setting / default value in RedAmon. A single setting is duplicated across Prisma, two separate Python settings modules, the orchestrator defaults endpoint, and the frontend fallback; miss a layer and the UI shows one value while the backend uses another, and existing projects keep the old…

samugit83/redamon · 142 tokens

recon-ai-enrichment

Wiring an LLM into a recon tool's decisions ("let AI pick {feature} for {tool}"): the never-raise contract, the per-target cache, the full+partial coverage, and the two UI toggles bound to one field. A raising AI helper or an empty fallback silently breaks or disables a live scan. Trigger: adding or editing a recon AI…

samugit83/redamon · 188 tokens

plugin-platform

The plugin platform, always on: third-party plugin code runs isolated in the plugin runner, reaches RedAmon only through the Gateway, and changes agent behaviour only through text a person approved in core UI. The base repository holds no plugin logic, and a host that cannot run the platform is refused, never…

samugit83/redamon · 172 tokens

builtin-agent-skill

Adding a built-in Agent Skill (an attack technique like ssrf, xxe, rce) that ships hardcoded in RedAmon: classified by the Intent Router, injected into the agent prompt, toggled per project, badged in the chat drawer. Ten layers across agentic and webapp, two of which fail with no error. Trigger: adding or editing a…

samugit83/redamon · 158 tokens

orchestrator-container-spawn

Spawning and hardening scan containers from the recon orchestrator: the security flags that look correct and break the container, and the sibling bind-mount path handling. capdrop and no-new-privileges were each reverted after breaking real scans. Trigger: editing reconorchestrator/containermanager.py; changing how a…

samugit83/redamon · 103 tokens