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 AD Attacker Agent

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

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

Uses Heuristics

Related Implementations

Page Connections

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