Skill Documentation
Security review for AI applications, agents, MCP tools, scanner evidence, and executive-ready reports.
Hades Blackwatch is a single integrated Codex skill that coordinates AI security frameworks, specialist review agents, scanner backends, MCP policy controls, and detailed HTML/PDF reporting.
Purpose
Hades Blackwatch exists because AI applications combine classic appsec risk with new trust-boundary problems: prompts influence actions, retrieved documents can become hidden instructions, tool outputs can be chained into privileged actions, and MCP servers can expose powerful capabilities to agents.
Capabilities
AI Application Security
Reviews LLM prompt flows, RAG, memory, model calls, system instructions, unsafe output handling, and AI-specific exploitability.
Agentic Security
Reviews tool calling, action policies, identity, delegated permissions, excessive agency, unsafe chaining, and missing approvals.
MCP Review
Classifies MCP tools and servers by risk tier, audits schemas, auth, runtime exposure, network reachability, and high-risk actions.
Secure Code Review
Maps conventional vulnerabilities to AI-driven attack paths, including SSRF, XSS, SQLi, command execution, authz, and secrets.
Scanner Evidence
Normalizes and correlates evidence from SonarQube, Burp, Qualys, Semgrep, CodeQL, Trivy, Gitleaks, and report exports.
Reporting
Creates detailed security reports for leadership, engineering, security, and audit stakeholders in HTML and PDF formats.
Architecture
The skill uses a supervisor-plus-specialists model. The orchestrator owns scope, authorization, mode selection, MCP policy, final severity, and the final verdict. Specialist agents provide evidence and candidate findings.
High-Level System
Data Flow And Trust Boundaries
Framework Stack
| Purpose | Framework | How Hades Blackwatch Uses It |
|---|---|---|
| LLM taxonomy | OWASP LLM Top 10 | Classifies prompt injection, excessive agency, data leakage, insecure output handling, and LLM supply-chain risks. |
| Agentic taxonomy | OWASP Agentic Top 10 | Maps risks around agents, tools, memory, identity, workflow autonomy, and action boundaries. |
| Skills and tools | OWASP Agentic Skills Top 10 | Reviews skill/plugin/MCP-adjacent execution risks, provenance, and dangerous capability exposure. |
| Scoring | OWASP AIVSS | Scores AI-specific factors such as autonomy, tool privilege, persistence, data sensitivity, and approval boundaries. |
| Threat mapping | MITRE ATLAS | Maps AI/ML adversary behavior and mitigations into recognizable threat techniques. |
| Governance | NIST AI RMF GenAI Profile | Connects findings to lifecycle controls, monitoring, accountability, and residual risk management. |
| Classic appsec | OWASP Web/API, CWE, CVE, CVSS | Handles conventional vulnerabilities that become more dangerous when reachable by an AI workflow. |
Agent Stack
Agent definitions live in agents/roles/. The manifest defines which roles are used for each mode.
| Agent | Role | Primary Outputs |
|---|---|---|
| Security Orchestrator | Controls scope, mode, authorization, MCP policy, and final verdict. | Selected agents, blocked actions, final verdict, coverage gaps. |
| Latest Threat Intel | Enriches each active specialist domain and material finding with current official or primary-source threat context. | Sources, per-finding signals, mapped techniques, recommended actions, freshness, confidence. |
| AI Threat Model | Maps assets, trust boundaries, prompts, RAG, tools, memory, APIs, identities. | Data flows, privileged actions, candidate risks. |
| MCP Server Auditor | Audits MCP tools, resources, prompts, transport, auth, runtime, and permissions. | Tool inventory, risk tiers, controls. |
| Scanner Registry | Chooses scanner backends and gathers evidence safely. | Available backends, normalized findings, skipped tools. |
| Prompt Injection | Tests direct and indirect injection, prompt leakage, and context abuse. | Probes, tested surfaces, successful controls. |
| Agent Tool Security | Reviews tool permissions, action chains, approvals, and identity. | Tool inventory, privilege map, candidate findings. |
| RAG and Data Security | Reviews retrieval, ingestion, tenant filters, memory, and sensitive data exposure. | Data source risks, retrieval controls, tests. |
| Secure Code Review | Reviews code vulnerabilities and AI-amplified exploit paths. | Reviewed files, findings, scanner evidence notes. |
| Supply Chain | Reviews dependencies, models, MCP servers, skills, plugins, containers, and CI/CD. | Component evidence, supply-chain risks, controls. |
| Finding Correlator | Merges raw findings by root cause and recommends severity. | Merged findings, severity recommendations. |
| Attack Path Visualization | Explains each material vulnerability with a defender-safe exploit-flow diagram and control-break narrative. | Attack flow, control breaks, impact, detection points, defensive breakpoints. |
| Test Builder | Turns findings into unit tests, integration tests, evals, CI gates, and detections. | Test plans, assertions, forbidden outcomes. |
| Report | Creates findings-first reports and file deliverables. | Executive summary, findings, roadmap, HTML, PDF. |
MCP Escalation Policy
MCP can expose sensitive tools, private resources, and privileged actions. Hades Blackwatch therefore treats MCP usage as an escalation path, not the default path.
MCP Necessity Test
mcp_necessity:
evidence_needed:
safer_sources_checked:
why_mcp_is_needed:
selected_server:
selected_tool:
expected_risk_tier:
approval_required:
MCP Risk Tiers
| Tier | Description | Default Behavior |
|---|---|---|
| T0 | Public read-only context. | Allowed. |
| T1 | Private read-only context. | Allowed when relevant. |
| T2 | Scoped state-changing action. | Requires explicit task reason. |
| T3 | Privileged action, scan launch, issue mutation, ticket creation. | Requires user approval or prior authorization. |
| T4 | Shell, filesystem write/delete, cloud admin, credential operations, arbitrary browser actions. | Disabled unless explicitly authorized. |
Scanner Integrations
Hades Blackwatch does not require every enterprise tool to be installed. It detects what is available and chooses the safest integration path.
| Mode | Use When | Examples |
|---|---|---|
native_mcp | The tool has an MCP server. | SonarQube MCP. |
api_wrapped_mcp | The tool has REST or GraphQL APIs. | Burp DAST, Qualys, Tenable, DefectDojo. |
cli_bridge | The scanner runs locally or in CI. | Semgrep, CodeQL, Trivy, Gitleaks. |
report_ingest | Only exported reports are available. | SARIF, JSON, XML, CSV, Burp exports, Qualys reports. |
Priority Scanner Families
Burp Suite DAST, Qualys, SonarQube, Semgrep, CodeQL, Trivy, Gitleaks, TruffleHog, Snyk, OSV-Scanner, Grype, Checkov, tfsec, and DefectDojo.
Correlation Principle
Findings are merged by root cause. SAST, DAST, VMDR, cloud, and AI evidence are combined into a single finding when they describe the same risk.
Standard Review Workflow
Identify target, environment, access level, authorization, included systems, and exclusions.
Find prompts, RAG, memory, tools, MCP, APIs, identities, scanners, and trust boundaries.
Use source, configs, reports, scripts, and only necessary MCP-backed evidence.
Map AI-specific paths to appsec issues, score risks, and deduplicate findings.
Produce findings, remediation roadmap, regression tests, HTML, and PDF deliverables.
Scripts
| Script | Purpose | Example |
|---|---|---|
surface_mapper.py | Find likely AI, RAG, MCP, tool-calling, auth, secret, and execution surfaces. | python scripts\surface_mapper.py . --json |
mcp_manifest_audit.py | Audit MCP-like manifests for risky tool design and T3/T4 capabilities. | python scripts\mcp_manifest_audit.py examples\mcp-manifest.example.json --json |
prompt_attack_pack.py | Generate safe starter probes for authorized AI app testing. | python scripts\prompt_attack_pack.py --category prompt-injection |
normalize_findings.py | Normalize SARIF or generic scanner JSON into the shared finding schema. | python scripts\normalize_findings.py examples\scanner-findings.example.json --source sonar |
generate_report.py | Generate detailed HTML and PDF reports from normalized findings or full report input. | python scripts\generate_report.py examples\report-input.example.json --formats html,pdf |
Reporting
Reports are designed for leadership, security, engineering, and audit. The HTML report is the richer shareable deliverable. The PDF report is dependency-free and text-focused for portability.
Required Sections
- Cover page and metadata.
- Executive summary and verdict.
- Scope and authorization.
- Methodology and framework coverage.
- Detailed findings.
- Remediation roadmap.
- Regression test plan.
- Residual risk and assumptions.
Finding Detail
- Severity and confidence.
- Affected component, file, endpoint, or asset.
- Evidence and attack path.
- AI and agent relevance.
- Framework mappings and score.
- Fix, regression test, and residual risk.
python scripts\generate_report.py examples\report-input.example.json --formats html,pdf --output-dir reports
Installation
Copy the folder into your Codex skills directory:
Copy-Item -Recurse -LiteralPath .\hades-blackwatch -Destination "$env:USERPROFILE\.codex\skills\hades-blackwatch"
Invoke it with:
Use $hades-blackwatch to run a full-stack AI application security review of this repo.
Example Commands
Full Local Smoke Test
python scripts\surface_mapper.py . --json
python scripts\mcp_manifest_audit.py examples\mcp-manifest.example.json --json
python scripts\normalize_findings.py examples\scanner-findings.example.json --source sonar --output reports\normalized-sonar-example.json
python scripts\generate_report.py reports\normalized-sonar-example.json --formats html,pdf --output-dir reports --title "Hades Blackwatch Example Report" --target "Example AI Agent Platform"
Prompt Examples
Use $hades-blackwatch full-stack on this repo.
Use $hades-blackwatch to audit only MCP server risks.
Use $hades-blackwatch to review whether prompt injection can trigger dangerous tools.
Use $hades-blackwatch to generate an HTML and PDF report from normalized scanner findings.
Finding Schema
id:
title:
severity:
confidence:
status:
source_tools:
affected_component:
affected_file:
affected_endpoint:
affected_asset:
evidence:
attack_path:
ai_agent_relevance:
framework_mappings:
owasp_llm:
owasp_agentic:
mitre_atlas:
nist_ai_rmf:
cwe:
cve:
score:
system: AIVSS
value:
rationale:
recommended_fix:
regression_test:
residual_risk:
Roadmap
Near Term
- Add
scanner_registry.py. - Add adapter specs for SonarQube, Burp, Qualys, Semgrep, CodeQL, and Trivy.
- Add richer AIVSS scoring helpers.
- Add executive, engineering, and audit report variants.
Medium Term
- Add Promptfoo, Garak, PyRIT, and Giskard config generators.
- Add MCP client config parsers.
- Add DefectDojo import/export helpers.
- Add custom Semgrep AI appsec rules.
Long Term
- Build an evidence graph linking prompts, code, tools, scanner evidence, findings, fixes, and tests.
- Add policy-as-code gates for agentic controls.
- Add curated attack packs mapped to OWASP LLM, OWASP Agentic, and MITRE ATLAS.