Generates a professional dark-themed PDF penetration test report from findings.json, with executive summary, risk dashboard, per-finding cards, and remediation summary.
Ships in agent-smith. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Read findings.json from the current pentest session and generate a complete, client-ready penetration test report as a styled PDF. The report follows the NullPointer Studio dark theme with healthcare-aware business risk language per finding.
Load refs/style.md for the full CSS specification and color palette before writing any HTML.
| Tool | Use for |
|---|---|
Read | Read findings.json, session.json, pocs/*.http files |
Bash | Run python3 report_generator.py to produce the PDF |
Write | Write the generated Python script |
report(action="note", ...) | Log generation decisions |
Determine the findings.json path:
$ARGUMENTS provides a path, use it./findings.json (repo root)Read findings.json — extract all entries where type == "finding" (skip diagram and note entries). For each finding, capture:
id, title, severity, target, description, evidence, tool_usedreproduction (command + steps) if presentremediation (diff / before / after / verification) if presentcve if presentRead session.json if it exists — extract:
target (base URL)depthstart_time (format as date for report)skill (used as engagement type)Scan pocs/ for .http files — map each file to its finding by matching filename keywords against finding titles.
Call report(action="note", ...) with: finding count by severity, target, output path.
Group findings by severity. Within each group, deduplicate on normalized title (same title = same finding, keep the one with more evidence). Sort order for report:
CRITICAL → HIGH → MEDIUM → LOW → INFO
Compute stat box counts:
Write a Python script report_generator.py to the repo root. The script must:
Import json, base64, html, pathlib.Path, datetime, weasyprint
Embed the NullPointer Studio CSS from refs/style.md verbatim as CSS_STR
Load the logo:
LOGO_PATH = Path("/Users/riccardo.tencate/Desktop/agent-smith/templates/FullLogo_Transparent.png")
with open(LOGO_PATH, "rb") as f:
LOGO_SRC = "data:image/png;base64," + base64.b64encode(f.read()).decode()
Define SEV_META dict:
SEV_META = {
"critical": {"label": "CRITICAL", "color": "#ff4d6d", "bg": "rgba(255,77,109,0.12)", "border": "#ff4d6d"},
"high": {"label": "HIGH", "color": "#ff8c42", "bg": "rgba(255,140,66,0.12)", "border": "#ff8c42"},
"medium": {"label": "MEDIUM", "color": "#ffd166", "bg": "rgba(255,209,102,0.1)", "border": "#ffd166"},
"low": {"label": "LOW", "color": "#5bf29b", "bg": "rgba(91,242,155,0.08)", "border": "#5bf29b"},
"info": {"label": "INFO", "color": "#7b78ff", "bg": "rgba(123,120,255,0.08)", "border": "#7b78ff"},
}
Define helper functions:
def esc(s): return html.escape(str(s))
def badge(sev): ... # colored inline badge span
def code(text): ... # <pre class="code-block"><code>...</code></pre>
Define finding_section(np_id, severity, title, owasp, asvs, endpoint, auth, confirmed, description, business_risk, evidence, steps, remediation) — see refs/style.md for the exact HTML structure.
Build the full HTML document (cover page → stat boxes → exec summary → scope → risk dashboard → findings → remediation table → clean controls) and write it via weasyprint.
Script skeleton:
#!/usr/bin/env python3
import json, base64, html as html_mod, datetime
from pathlib import Path
from weasyprint import HTML as WeasyprintHTML
BASE_DIR = Path(".")
OUTPUT = BASE_DIR / "report_{target_slug}_{date}.pdf"
# ... helpers, CSS, content sections ...
if __name__ == "__main__":
html_content = build_html()
Path("report.html").write_text(html_content, encoding="utf-8")
WeasyprintHTML(string=html_content, base_url=str(BASE_DIR)).write_pdf(str(OUTPUT))
print(f"PDF → {OUTPUT}")
[Logo — 180px height]
CONFIDENTIAL (red monospace badge)
Penetration Test Report (28pt Chakra Petch bold)
{target domain} (14pt green Chakra Petch)
───────────────────────────────
Client | {client name}
Target | {base URL}
Test type | Web App Pentest + White-Box Code Review
Framework | {detected framework if known}
Test date | {date}
Report date | {today}
Prepared by | NullPointer Studio
Version | 1.0
Show counts for CRITICAL, HIGH, MEDIUM, LOW, INFO, and Total. Color each number with the severity accent color. Only include severity boxes that have at least 1 finding — always show Total.
Write a 3–4 paragraph summary covering:
Do NOT use generic templates — derive every sentence from the actual findings in findings.json. Healthcare impact language where relevant.
Columns: ID | Severity | Title | OWASP | Status
Show all findings in severity order. Use badge(sev) for the severity cell. Status = "Confirmed" for all non-info findings, "Informational" for info.
For each finding, render a card using finding_section(...). Map findings.json fields as follows:
| Card field | Source |
|---|---|
| np_id | Assign sequentially: NP-001, NP-002, ... in severity order |
| severity | finding.severity |
| title | finding.title |
| owasp | finding.owasp if present, else derive from category (see mapping below) |
| asvs | finding.asvs if present, else "—" |
| endpoint | finding.target (strip base URL if possible) |
| auth | Infer from description ("Yes" if mentions session/auth, "No" if unauthenticated) |
| confirmed | "Yes — live PoC" if poc file exists, "Yes — code review" if code-only, else "Yes" |
| description | finding.description — wrap in <p> tags, convert code blocks to code() helper |
| business_risk | <div class='risk-box'><strong>Impact:</strong> ...</div> — derive from description; if healthcare context: reference GDPR/AVG, WBGO, PHI, care continuity |
| evidence | finding.evidence + PoC file content if available |
| steps | finding.reproduction.steps if present, else derive 3-step reproduction from description |
| remediation | finding.remediation code/diff if present, else derive from description |
OWASP category mapping (use if not explicit in finding):
| Keywords in title/description | OWASP |
|---|---|
| injection, sqli, xss, ssti, xxe | A03:2021 — Injection |
| auth, password, session, token, mfa, 2fa | A07:2021 — Identification and Authentication Failures |
| access control, idor, privilege, admin | A01:2021 — Broken Access Control |
| rate limit, config, header, tls, cors | A05:2021 — Security Misconfiguration |
| upload, file, deserialization | A04:2021 — Insecure Design |
| api, endpoint, no auth | API2:2023 — Broken Authentication |
| crypto, hash, weak | A02:2021 — Cryptographic Failures |
Columns: ID | Severity | Title | Priority | Effort | Fix (one-line)
Assign priority based on severity:
Effort: Low (config change, 1-liner fix), Medium (refactor needed), High (architecture change).
If session.json or the findings list contains explicit "tested clean" notes, include a "Controls Tested — No Issues Found" table. If no clean controls are documented, omit this section.
python3 report_generator.py
If weasyprint is not installed: pip install weasyprint first.
After generation, print:
Report generated:
PDF → ./report_{target}_{date}.pdf
HTML → ./report_{target}_{date}.html
Findings: {N} total ({crit} critical, {high} high, {med} medium, {low} low, {info} info)
findings.json/Users/riccardo.tencate/Desktop/agent-smith/templates/FullLogo_Transparent.pngreport_{target_slug}_{YYYY-MM-DD}.pdf where target_slug = domain with dots replaced by underscoresrefs/style.md before writing any HTML or CSS — never invent new colors or fontsWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
36 skills in this plugin
/ad-assessmentActive Directory security audit using the MITRE ATT&CK framework. Full domain enumeration, trust mapping, GPO analysis, ACL abuse paths, ADCS attacks (ESC1-ESC8), delegation abuse (constrained/unconstrained/RBCD), fine-grained password policies, LAPS deployment, service account security, and Kerberos configuration.
Uses enum4linux-ng, netexec, impacket, ldapsearch, certipy-ad, bloodhound-python, and rpcclient. Produces attack path diagrams, prioritized risk register, and PoCs. Chains into /gh-export for issue filing.
/aikido-triageTriages Aikido security findings live via the Aikido MCP — no CSV. Splits findings into SCA, SAST, Application Secrets, and Misconfiguration, applies a category-specific verification playbook to each (source-to-sink taint analysis with trust-boundary/reachability assessment for SAST, /analyze-cve chaining for SCA, usage + opt-in liveness checks for secrets, blast-radius reasoning with optional live-chain confirmation for misconfiguration), scores every finding's business impact and severity, then closes confirmed non-issues directly in Aikido after a single review checkpoint.
/ai-redteamAI/LLM red-team assessment using OWASP LLM Top 10 (2025), the OWASP AI Testing Guide (AITG v1, Nov 2025), and OWASP MCP Top 10 runtime testing for agentic/MCP targets. Tests prompt injection, jailbreaks, system prompt leakage, sensitive data extraction, excessive agency, improper output handling, model extraction, content bias, evasion, membership inference, MCP token exposure, and MCP command injection.
Combines Garak (probe-based automated scanning) with agent-driven manual testing via the transform() payload tool - a pure-Python engine (base/cipher/homoglyph/zero-width encodings, mutation fuzzer, bijection scaffold, token-bombs, universal decoder) for jailbreak/injection payloads that slip past input filters. The agent drives multi-turn/crescendo attacks. Includes a conditional MCP recon phase and a post-access AI infrastructure phase (chained from /post-exploit). Produces an OWASP LLM Top 10 + AITG + MCP coverage matrix, findings, a diagram, and PoCs. Chains into /gh-export.
/agent-smith:report [target name] [optional: findings.json path] [optional: output path]from agent-smith
npx claudepluginhub 0x0pointer/skills --plugin agent-smithOther plugins' skills for the same job