Heuristic:0xSteph Pentest ai agents MITRE ATTACK Mapping
| Knowledge Sources | |
|---|---|
| Domains | Security_Testing, Reporting, Threat_Intelligence |
| Last Updated | 2026-10-22 12:00 GMT |
Overview
Convention for mapping every pentest activity and finding to MITRE ATT&CK technique IDs (e.g., T1595, T1110.003) for standardized reporting and detection engineering.
Description
The MITRE ATT&CK Mapping heuristic requires that all agent activities and findings be mapped to specific MITRE ATT&CK techniques and sub-techniques. Each agent in the pentest-ai toolkit includes a MITRE ATT&CK Mapping section in its system prompt that lists the relevant technique IDs for its domain. The findings database (`findings.sh add vuln --mitre T1110.003`) stores MITRE IDs per vulnerability, and attack chains store multiple MITRE IDs per chain. This creates a common vocabulary across recon, exploitation, credential testing, and reporting phases.
Usage
Use this heuristic when recording findings in the database, writing engagement reports, generating detection rules, or mapping compliance requirements. It applies across all agent types — reconnaissance agents map to Reconnaissance and Discovery tactics, exploitation agents map to Initial Access and Execution, credential testers map to Credential Access, and report generators aggregate the mappings for the final deliverable. The compliance mapper uses ATT&CK mappings to correlate findings with control frameworks.
The Insight (Rule of Thumb)
- Action: Map every engagement activity and finding to at least one MITRE ATT&CK technique ID.
- Value: Use sub-technique IDs (e.g., `T1110.003` not just `T1110`) when the activity is specific enough to warrant it. Store in the `--mitre` field of `findings.sh add vuln` or the `--mitre` field of `findings.sh add chain`.
- Trade-off: Slight overhead per finding; in exchange, the final report has a structured kill-chain view that maps directly to detection engineering and compliance frameworks.
- Consistency rule: Use the same technique IDs across all agents for the same activity. The canonical mappings are defined in each agent's system prompt (e.g., recon-advisor maps active scanning to T1595, credential-tester maps password spraying to T1110.003).
Reasoning
MITRE ATT&CK has become the industry-standard taxonomy for adversary techniques. Mapping pentest findings to ATT&CK IDs provides three concrete benefits: (1) the final report can be cross-referenced with the client's existing detection coverage gaps, (2) detection engineers can generate Sigma rules keyed to specific technique IDs from the pentest data, and (3) compliance mappers can correlate findings with control frameworks (NIST 800-53, ISO 27001) that reference ATT&CK. Without consistent mapping, findings require manual reclassification before they can be used for detection engineering or compliance reporting.
The sub-technique granularity matters because detection rules are often technique-specific. `T1110.003` (Password Spraying) requires different detection logic than `T1110.002` (Password Cracking), even though both fall under `T1110` (Brute Force).
Related Pages
- Implementation:0xSteph_Pentest_ai_agents_Engagement_Planner_Agent
- Implementation:0xSteph_Pentest_ai_agents_Credential_Tester_Agent
- Implementation:0xSteph_Pentest_ai_agents_AD_Attacker_Agent
- Implementation:0xSteph_Pentest_ai_agents_Detection_Engineer_Agent
- Implementation:0xSteph_Pentest_ai_agents_Compliance_Mapper_Agent
- Implementation:0xSteph_Pentest_ai_agents_Report_Generator_Agent
- Implementation:0xSteph_Pentest_ai_agents_Exploit_Chainer_Agent
- Implementation:0xSteph_Pentest_ai_agents_Privesc_Advisor_Agent
- Principle:0xSteph_Pentest_ai_agents_Engagement_Scoping_and_Planning
- Principle:0xSteph_Pentest_ai_agents_Privilege_Escalation
- Principle:0xSteph_Pentest_ai_agents_Pentest_Reporting
- Principle:0xSteph_Pentest_ai_agents_Attack_Chain_Analysis