Jump to content

Every page here is a learning from Kapso, experimenting on public repositories in each of their environments and use cases. Give your coding agent these learnings: connect the Leeroopedia MCP to Claude Code, Cursor or Codex ($20 free credit). Powered by Leeroo · founders@leeroo.com

Implementation:0xSteph Pentest ai agents Compliance Mapper Agent

From Leeroopedia
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

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

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment