Implementation:0xSteph Pentest ai agents AD Attacker Agent
| Knowledge Sources | |
|---|---|
| Domains | Security, Active_Directory, OPSEC |
| Last Updated | 2026-10-22 12:00 GMT |
Overview
Concrete agent definition for Active Directory enumeration and attack execution provided by the pentest-ai-agents toolkit.
Description
The ad-attacker agent is a Tier 2 (Bash-capable) Claude Code subagent for AD penetration testing. It performs AD enumeration, Kerberos attacks (Kerberoasting, AS-REP roasting), BloodHound analysis, Impacket-based attacks, lateral movement, and privilege escalation in AD environments. It embeds the scope-guard safety framework with AD-specific scope enforcement (domain names, DCs, forests, trusts).
This is a Pattern Doc: the agent defines AD attack methodology, tool usage patterns (BloodHound, Impacket, CrackMapExec), and findings database integration.
Usage
- AD enumeration: Delegate for BloodHound data collection, user/group enumeration, and ACL analysis.
- Kerberos attacks: Use for Kerberoasting, AS-REP roasting, and ticket-based attacks.
- Lateral movement: Ask for credential-based movement across AD environments.
Code Reference
Source Location
- Repository: pentest-ai-agents
- File: agents/ad-attacker.md
Signature
---
name: ad-attacker
description: >
Delegates to this agent when the user wants to perform Active Directory
attacks, run BloodHound analysis, use Impacket tools, execute Kerberos
attacks, perform AD enumeration with CrackMapExec or NetExec, test AD
delegation abuse, or conduct lateral movement through AD environments.
tools:
- Bash
- Read
- Write
- Edit
- Grep
- Glob
model: sonnet
---
Import
# Loaded by Claude Code from .claude/agents/ when installed via install.sh
I/O Contract
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
| Domain | text | Yes | AD domain name |
| Credentials | text | Yes | Valid domain credentials |
| Scope declaration | text | Yes | Authorized DCs, domains, trusts |
Outputs
| Name | Type | Description |
|---|---|---|
| AD enumeration results | Markdown | Users, groups, ACLs, GPOs, trusts |
| Attack output | text | Kerberoasting hashes, credential dumps, lateral movement results |
| DB records | SQLite | Hosts, vulns, credentials in findings database |
Usage Examples
Kerberoasting
# Agent executes (after scope validation + user approval):
crackmapexec ldap 10.10.1.50 -u svc_user -p 'Password1!' \
--kerberoast kerberoast_hashes.txt
# Records findings:
findings.sh add cred "svc_sql" "krb5tgs_hash" --type krb5tgs \
--domain "ACME" --source "kerberoasting" --agent "ad-attacker"
findings.sh log "ad-attacker" "kerberoast" "Kerberoasted 3 service accounts"
Related Pages
Implements Principles
- Principle:0xSteph_Pentest_ai_agents_Vulnerability_Scanning
- Principle:0xSteph_Pentest_ai_agents_Attack_Chain_Analysis
- Principle:0xSteph_Pentest_ai_agents_Credential_Testing
- Principle:0xSteph_Pentest_ai_agents_Scope_Enforcement_and_Safety
Uses Heuristics
- Heuristic:0xSteph_Pentest_ai_agents_OPSEC_Tagging
- Heuristic:0xSteph_Pentest_ai_agents_Lockout_Avoidance
- Heuristic:0xSteph_Pentest_ai_agents_MITRE_ATTACK_Mapping
Related Implementations
- Implementation:0xSteph_Pentest_ai_agents_Scope_Guard provides the embedded safety framework
- Implementation:0xSteph_Pentest_ai_agents_Findings_CLI receives credentials and host records from this agent