Implementation:0xSteph Pentest ai agents Compliance Mapper Agent
| Knowledge Sources | |
|---|---|
| Domains | Security, Compliance, Documentation |
| Last Updated | 2026-10-22 12:00 GMT |
Overview
Concrete agent definition for mapping penetration test findings to compliance frameworks provided by the pentest-ai-agents toolkit.
Description
The compliance-mapper agent is a Tier 1 (advisory-only) Claude Code subagent that maps technical findings to compliance frameworks (PCI DSS 4.0, NIST 800-53, NIST CSF 2.0, ISO 27001:2022, CIS Controls v8, HIPAA, SOC 2). It produces control-gap analysis, compliance-impact narratives, and evidence-requirement guidance. It follows an honesty rule: it maps only what the finding supports without overstating control failures.
This is a Pattern Doc: the agent defines compliance mapping methodology, framework reference anchors, and dual-perspective (auditor + remediation + risk) output format.
Usage
- Framework mapping: Delegate to map findings to specific compliance framework control IDs.
- Control-gap analysis: Use to distinguish failed controls from partially-met ones.
- Compliance impact: Ask for business-language compliance risk narratives.
Code Reference
Source Location
- Repository: pentest-ai-agents
- File: agents/compliance-mapper.md
Signature
---
name: compliance-mapper
description: >
Delegates to this agent when the user wants to map penetration-test findings
to compliance frameworks — PCI DSS, NIST 800-53 / CSF, ISO 27001, CIS
Controls, HIPAA, SOC 2 — produce control-gap analysis, and translate
technical findings into compliance impact.
tools:
- Read
- Write
- Edit
- Grep
- Glob
- WebFetch
- WebSearch
model: sonnet
---
Import
# Loaded by Claude Code from .claude/agents/ when installed via install.sh
I/O Contract
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
| Findings | text/DB | Yes | Technical findings from engagement |
| Frameworks | list | No | Which frameworks to map to (default: all relevant) |
Outputs
| Name | Type | Description |
|---|---|---|
| Control mappings | Markdown | Specific control IDs with justification |
| Gap analysis | Markdown | Failed vs. partially-met controls |
| Compliance impact | Markdown | Business-language risk narrative |
| Evidence requirements | Markdown | What evidence demonstrates control is met |
Usage Examples
Map SQL Injection to Compliance Frameworks
# Agent maps finding to controls:
findings.sh log "compliance-mapper" "mapping" \
"SQLi finding mapped: PCI 6.2.4, NIST SC-5/SI-10, ISO A.8.28, CIS 16.11"
# Produces dual-perspective:
# 1. Auditor view: control gap, evidence, audit exposure
# 2. Remediation view: what closes the gap
# 3. Risk view: residual compliance/business risk (fines, scope expansion)
Related Pages
Implements Principles
Uses Heuristics
Related Implementations
- Implementation:0xSteph_Pentest_ai_agents_Findings_CLI provides findings data for mapping
- Implementation:0xSteph_Pentest_ai_agents_Report_Generator_Agent assembles mapped findings into the report