Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
LDAPRecon-AI — Active Directory LDAP Security Auditor with AI-Powered Analysis - By Ayi NEDJIMI https://ayinedjimi-consultants.fr | Kitploit
Tools/GitLabGitLab/ayinedjimi-consultants/ldaprecon-ai
Vulnerability ScannersConfiguration AuditingPenetration TestingMachine LearningAI Security
GitLabayinedjimi-consultants/ldaprecon-ai

LDAPRecon-AI

Active Directory LDAP Security Auditor with AI-Powered Analysis - By Ayi NEDJIMI https://ayinedjimi-consultants.fr

View Repository

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share
Website
6 months agoNot yet reviewed

LDAPRecon-AI

Python License: MIT Security Audit Active Directory MITRE ATT&CK CIS Benchmark ANSSI

Active Directory LDAP Security Auditor with AI-Powered Analysis

Enumerate, assess, and score the security posture of your AD environment

English | Francais

root@kitploit:~
  _     ____    _    ____  ____                          _    ___
 | |   |  _ \  / \  |  _ \|  _ \ ___  ___ ___  _ __    / \  |_ _|
 | |   | | | |/ _ \ | |_) | |_) / _ \/ __/ _ \| '_ \  / _ \  | |
 | |___| |_| / ___ \|  __/|  _ <  __/ (_| (_) | | | |/ ___ \ | |
 |_____|____/_/   \_\_|   |_| \_\___|\___\___/|_| |_/_/   \_\___|

DISCLAIMER / AVERTISSEMENT

This tool is intended for authorized security auditing only. Unauthorized access to computer systems is illegal. Always obtain proper written authorization before performing any security assessment.

Cet outil est destine uniquement aux audits de securite autorises. L'acces non autorise aux systemes informatiques est illegal. Obtenez toujours une autorisation ecrite avant de realiser un audit de securite.


English

Overview

LDAPRecon-AI is a comprehensive Active Directory LDAP security auditing tool that enumerates users, groups, computers, delegations, GPOs, and trust relationships to assess the security posture of an AD domain. It provides a Pingcastle-style score (0-100) with detailed findings mapped to CIS Benchmark, ANSSI AD Recommendations, and MITRE ATT&CK techniques.

Features

  • User Audit: Kerberoastable accounts, AS-REP roastable, stale passwords, disabled accounts, AdminSDHolder orphans
  • Group Analysis: Privileged group membership, nested membership resolution, large group detection
  • Computer Inventory: Obsolete OS detection, stale computers, LAPS deployment status
  • Delegation Discovery: Unconstrained, constrained, RBCD, protocol transition (T2A4D)
  • Trust Assessment: SID filtering, selective authentication, transitive trust risks
  • Password Policy: CIS compliance check, lockout policy, fine-grained policies
  • Security Scoring: Global 0-100 score with per-category breakdown
  • AI Analysis: Optional OpenAI-powered executive summary with remediation plan
  • Multi-Format Reports: HTML (interactive), JSON, Markdown, CSV

Architecture

root@kitploit:~
LDAPRecon-AI/
  src/ldaprecon_ai/
    __init__.py        # Package initialization
    cli.py             # Rich CLI with subcommands
    enumerator.py      # Core LDAP enumeration engine
    filters.py         # Security-focused LDAP filter library
    models.py          # Pydantic data models
    reporter.py        # Multi-format report generator
    scorer.py          # Security posture scoring engine
  tests/
    conftest.py        # Shared test fixtures
    test_enumerator.py # Enumerator unit tests
    test_filters.py    # Filter unit tests
    test_scorer.py     # Scorer unit tests

Installation

root@kitploit:~
git clone https://github.com/ayinedjimi/LDAPRecon-AI.git
cd LDAPRecon-AI
pip install -e ".[dev]"

Usage

Full Audit

root@kitploit:~
ldaprecon-ai -s dc01.corp.example.com -d corp.example.com \
  -u "CORP\\auditor" -p "P@ssw0rd" audit -o ./reports

User Enumeration (risk accounts only)

root@kitploit:~
ldaprecon-ai -s dc01 -d corp.example.com -u [email protected] \
  -p "P@ssw0rd" users --risk-only --min-score 25

Kerberos Delegation Discovery

root@kitploit:~
ldaprecon-ai -s dc01 -d corp.example.com -u "CORP\\auditor" \
  -p "P@ssw0rd" delegation

Security Score

root@kitploit:~
ldaprecon-ai -s dc01 -d corp.example.com -u "CORP\\auditor" \
  -p "P@ssw0rd" score --json

With AI Analysis

root@kitploit:~
ldaprecon-ai -s dc01 -d corp.example.com -u "CORP\\auditor" \
  -p "P@ssw0rd" --openai-key sk-... audit -o ./reports

Security Checks Performed

Running Tests

root@kitploit:~
pytest tests/ -v --tb=short

Francais

Presentation

LDAPRecon-AI est un outil complet d'audit de securite LDAP pour Active Directory. Il enumere les utilisateurs, groupes, ordinateurs, delegations, GPOs et relations d'approbation pour evaluer la posture de securite d'un domaine AD. Il fournit un score type Pingcastle (0-100) avec des resultats mappes sur CIS Benchmark, Recommandations ANSSI AD et MITRE ATT&CK.

Fonctionnalites

  • Audit Utilisateurs : Comptes Kerberoastable, AS-REP roastable, mots de passe obsoletes, comptes desactives, orphelins AdminSDHolder
  • Analyse Groupes : Appartenance aux groupes privilegies, resolution imbriquee, detection grands groupes
  • Inventaire Ordinateurs : Detection OS obsoletes, ordinateurs inactifs, deploiement LAPS
  • Decouverte Delegation : Non contrainte, contrainte, RBCD, transition de protocole
  • Evaluation Approbations : Filtrage SID, authentification selective, risques transitifs
  • Politique Mots de Passe : Conformite CIS, politique de verrouillage, politiques granulaires
  • Scoring Securite : Score global 0-100 avec detail par categorie
  • Analyse IA : Resume executif optionnel via OpenAI avec plan de remediation
  • Rapports Multi-Format : HTML (interactif), JSON, Markdown, CSV

Utilisation

root@kitploit:~
# Audit complet
ldaprecon-ai -s dc01.corp.example.com -d corp.example.com \
  -u "CORP\\auditeur" -p "MotDePasse" audit -o ./rapports

# Utilisateurs a risque uniquement
ldaprecon-ai -s dc01 -d corp.example.com -u [email protected] \
  -p "MotDePasse" users --risk-only

# Score de securite en JSON
ldaprecon-ai -s dc01 -d corp.example.com -u "CORP\\auditeur" \
  -p "MotDePasse" score --json

Tests

root@kitploit:~
pytest tests/ -v --tb=short

Author / Auteur

Ayi NEDJIMI

  • Website: ayinedjimi-consultants.fr
  • HuggingFace: AYI-NEDJIMI

License

MIT License - See LICENSE for details.

Download Tool
CheckCategoryRisk LevelMITRECISANSSI
Kerberoastable accountsKerberosHighT1558.0031.1.4AD-R29
AS-REP roastableKerberosHighT1558.004-AD-R29
Unconstrained delegationDelegationCriticalT1550.0032.3.10.7AD-R26
Password never expiresPasswordsMediumT11101.1.5AD-R36
Password not requiredPasswordsCriticalT10781.1.3AD-R36
DES-only encryptionKerberosCriticalT15582.3.6.1AD-R30
Obsolete OSComputersHighT121018.10.43.1-
SID filtering disabledTrustsCriticalT1134.005-AD-R15
Weak password policyPasswordsMediumT1110.0011.1.1AD-R36
AdminSDHolder orphansPrivilegedMediumT1078.002-AD-R14