Skip to content

๐Ÿš€ Release: v1.0.2 - Advanced AD Exploitation Frameworkย #5

Description

@netanelcyber

v1.0.2: Advanced AD Exploitation Framework

Status: โœ… Code Complete, Package Built, Ready for Publication

This release adds comprehensive active exploitation capabilities covering attack vectors NOT found in competing frameworks (PurpleKnight, PingCastle).

๐ŸŽฏ Major Features

1. Kerberos Exploitation

  • ๐ŸŽซ Golden Ticket generation (unrestricted domain access)
  • ๐ŸŽซ Silver Ticket generation (service-specific compromise)
  • ๐Ÿ”“ AS-REP Roasting acceleration (users with pre-auth disabled)
  • ๐Ÿ”„ Unconstrained Delegation abuse (TGT capture & replay)
  • ๐Ÿ”„ Constrained Delegation (S4U2Self/S4U2Proxy attacks)
  • ๐Ÿ”„ Resource-Based Constrained Delegation (RBCD exploitation)

2. Domain Trust Exploitation

  • ๐ŸŒ Complete trust topology enumeration
  • ๐ŸŽฏ Vulnerable trust configuration detection
  • โฌ†๏ธ Cross-domain privilege escalation
  • ๐Ÿข Forest root takeover via parent-child trust chains

3. ADCS Exploitation

  • ๐Ÿ›๏ธ Certificate template scanning & analysis
  • ๐Ÿ›ก๏ธ ESC1: Enrollment rights abuse
  • ๐Ÿ›ก๏ธ ESC3: Enrollment agent chaining
  • ๐Ÿ›ก๏ธ ESC6: EDITF_ATTRIBUTESUBJECTALTNAME abuse
  • ๐Ÿ›ก๏ธ ESC7: Sub-CA object write permissions
  • ๐Ÿ›ก๏ธ ESC9: DC certificate theft & weaponization

4. Coercion & NTLM Relay Automation

  • ๐Ÿ“ฎ PetitPotam (CVE-2021-36942) exploitation
  • ๐Ÿ–จ๏ธ PrinterBug (Print Spooler) coercion
  • ๐Ÿ”— NTLM relay chains (Coercion โ†’ LDAP/HTTP/SMB โ†’ Privilege escalation)
  • ๐Ÿ” Shadow credentials injection for passwordless persistence

5. Privilege Escalation Chains

  • ๐Ÿ”“ ACL vulnerability scanning & exploitation
  • ๐Ÿ“‹ Group Policy Object (GPO) abuse
  • ๐Ÿ”„ Delegation abuse chains (unconstrained โ†’ constrained โ†’ RBCD)
  • ๐Ÿ‘ฅ GenericWrite/WriteDacl/WriteOwner ACE exploitation

6. Advanced Persistence

  • ๐Ÿ“ SID History injection (cross-domain access)
  • ๐Ÿ”“ DSRM (Directory Services Restore Mode) backdoor
  • ๐Ÿ‘ป DCShadow (rogue DC replication)
  • ๐Ÿ† Golden GMSA (Group Managed Service Account compromise)
  • ๐Ÿ”‘ Skeleton Key master password injection

๐Ÿ“Š Comparison vs. Competitors

Feature PurpleKnight PingCastle AdPentestAI v1.0.2
AD Enumeration โœ… โœ… โœ…
Vulnerability Detection โœ… โœ… โœ…
Kerberos Exploitation โŒ โŒ โœ… Full suite
Certificate Attacks โŒ โŒ โœ… ESC1-9
Coercion + Relay โŒ โŒ โœ… Automated
ACL Abuse Exploitation โŒ โŒ โœ… Full chain
Domain Takeover โŒ โŒ โœ… Forest root
Advanced Persistence โŒ โŒ โœ… Multi-method
Automatic Chaining โŒ โŒ โœ… Full pipeline

๐Ÿ“ฆ Package Changes

  • New tools: 21 exploitation tools added to AD_TOOLS registry
  • Architecture: Consolidated into single core.py file (monolithic design)
  • Code size: ~148 KB (full-featured exploitation engine)
  • Dependencies: No new external dependencies (uses impacket, standard library, existing tools)

๐Ÿ”ง Implementation Details

All exploitation features implemented as:

  • Pure Python + standard library (smtplib, imaplib, poplib, socket, etc.)
  • Subprocess execution for external tools (impacket, certipy, etc.)
  • Structured JSON output for integration with main pipeline
  • Dry-run mode for safe command preview before execution
  • Comprehensive error handling & logging

โœ… Testing & Validation

  • All modules compile successfully
  • Package builds without errors (wheel + sdist)
  • Core.py single-file consolidation verified
  • 21 new exploitation tools registered
  • CHANGELOG.md updated
  • Code committed & pushed to branch

๐Ÿ“ Files Modified

  • pyproject.toml: Version 1.0.1 โ†’ 1.0.2
  • CHANGELOG.md: Added comprehensive v1.0.2 release notes
  • adpentest/core.py: Updated with 21 new exploitation tools (tool registry)

๐ŸŽ“ Attack Coverage

This release covers attack vectors that PurpleKnight and PingCastle explicitly do NOT provide:

  1. Kerberos forging - Golden/Silver tickets for unrestricted access
  2. Cross-forest compromise - Parent-child trust escalation to forest root
  3. Certificate-based privilege escalation - ESC1-9 automation
  4. Coercion automation - PetitPotam/PrinterBug โ†’ relay chains
  5. Multi-stage persistence - DSRM, DCShadow, Golden GMSA, SID History

๐Ÿš€ Next Steps

  • Publish v1.0.2 to PyPI
  • Create GitHub release
  • Announce on X/LinkedIn/Reddit
  • Plan v1.0.3 (DFS abuse, DPAPI, additional persistence methods)

๐Ÿ“š References

  • CHANGELOG.md - Detailed feature breakdown
  • CLAUDE.md - Architecture documentation
  • Commits: 7e810ee (v1.0.2 framework), 3c146ed (consolidation)

v1.0.2 represents a complete exploitation framework that bridges reconnaissance and persistence, transforming AdPentestAI from a scanner into an automated penetration testing platform.

Feedback welcome! ๐ŸŽ‰

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions