
# Active Directory LDAP-Sicherheitsauditor mit KI-gestützter Analyse – Von Ayi NEDJIMI https://ayinedjimi-consultants.fr
Active Directory LDAP Sicherheitsauditor mit KI-gestützter Analyse
Den Sicherheitsstatus Ihrer AD-Umgebung ermitteln, bewerten und einstufen
_ ____ _ ____ ____ _ ___
| | | _ \ / \ | _ \| _ \ ___ ___ ___ _ __ / \ |_ _|
| | | | | |/ _ \ | |_) | |_) / _ \/ __/ _ \| '_ \ / _ \ | |
| |___| |_| / ___ \| __/| _ < __/ (_| (_) | | | |/ ___ \ | |
|_____|____/_/ \_\_| |_| \_\___|\___\___/|_| |_/_/ \_\___|
DISCLAIMER / AVERTISSEMENT
Dieses Tool ist ausschließlich für autorisierte Sicherheitsaudits bestimmt. Der unbefugte Zugriff auf Computersysteme ist illegal. Holen Sie vor jeder Sicherheitsbewertung stets eine ordnungsgemäße schriftliche Genehmigung ein.
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.
LDAPRecon-AI ist ein umfassendes Active Directory LDAP Sicherheitsaudit-Tool, das Benutzer, Gruppen, Computer, Delegationen, GPOs und Vertrauensstellungen auflistet, um den Sicherheitsstatus einer AD-Domäne zu bewerten. Es liefert einen Pingcastle-ähnlichen Score (0-100) mit detaillierten Ergebnissen, die auf CIS Benchmark, ANSSI AD-Empfehlungen und MITRE ATT&CK-Techniken abgebildet werden.
LDAPRecon-AI/
src/ldaprecon_ai/
__init__.py # Paketinitialisierung
cli.py # Rich CLI mit Unterbefehlen
enumerator.py # Kern-LDAP-Enumerations-Engine
filters.py # Sicherheitsorientierte LDAP-Filterbibliothek
models.py # Pydantic-Datenmodelle
reporter.py # Berichtsgenerator für mehrere Formate
scorer.py # Engine zur Bewertung des Sicherheitsstatus
tests/
conftest.py # Gemeinsame Test-Fixtures
test_enumerator.py # Modultests für Enumerator
test_filters.py # Modultests für Filter
test_scorer.py # Modultests für Scorer
git clone https://github.com/ayinedjimi/LDAPRecon-AI.git
cd LDAPRecon-AI
pip install -e ".[dev]"
ldaprecon-ai -s dc01.corp.example.com -d corp.example.com \
-u "CORP\\auditor" -p "P@ssw0rd" audit -o ./reports
ldaprecon-ai -s dc01 -d corp.example.com -u [email protected] \
-p "P@ssw0rd" users --risk-only --min-score 25
ldaprecon-ai -s dc01 -d corp.example.com -u "CORP\\auditor" \
-p "P@ssw0rd" delegation
ldaprecon-ai -s dc01 -d corp.example.com -u "CORP\\auditor" \
-p "P@ssw0rd" score --json
ldaprecon-ai -s dc01 -d corp.example.com -u "CORP\\auditor" \
-p "P@ssw0rd" --openai-key sk-... audit -o ./reports
| Prüfung | Kategorie | Risikostufe | MITRE | CIS | ANSSI |
|---|---|---|---|---|---|
| Kerberoastable Konten | Kerberos | Hoch | T1558.003 | 1.1.4 | AD-R29 |
| AS-REP roastable | Kerberos | Hoch | T1558.004 | - | AD-R29 |
| Uneingeschränkte Delegation | Delegation | Kritisch | T1550.003 | 2.3.10.7 | AD-R26 |
| Passwort läuft nie ab | Passwörter | Mittel | T1110 | 1.1.5 | AD-R36 |
| Passwort nicht erforderlich | Passwörter | Kritisch | T1078 | 1.1.3 | AD-R36 |
| Nur DES-Verschlüsselung | Kerberos | Kritisch | T1558 | 2.3.6.1 | AD-R30 |
| Veraltetes Betriebssystem | Computer | Hoch | T1210 | 18.10.43.1 | - |
| SID-Filterung deaktiviert | Vertrauensstellungen | Kritisch | T1134.005 | - | AD-R15 |
| Schwache Passwortrichtlinie | Passwörter | Mittel | T1110.001 | 1.1.1 | AD-R36 |
| AdminSDHolder-Waisen | Privilegiert | Mittel | T1078.002 | - | AD-R14 |
pytest tests/ -v --tb=short
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.
# 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
pytest tests/ -v --tb=short
Ayi NEDJIMI
MIT-Lizenz - Siehe LICENSE für Details.