Coverage: A Python-based tool for analyzing Active Directory security
Domain Coverage Analysis Tool
Tool for analyzing domain security based on various data sources:
- LDAP domain dump
- NTDS.dit dump
- Hashcat output
List modules
uv run main.py -l
Available modules:
- – reversible_encryption
- – passwords_reuse
- – weak_passwords
- – passwords_in_description
- – kerberoasting
- – pre2k
- – asreproasting
- – unconstrained_delegation
Installation
git clone https://github.com/PShlyundin/Coverage.git
uv venv
uv pip install -r requirements.txt
uv run main.py -h
Use
Preparation
To run the script, you need to have the output of ldapdomaindump, secretsdump and the result of a brute-force attack on the obtained *.ntds file
[pastacode lang=”bash” manual=”mkdir%20ldapdomaindump%20%26%26%20cd%20ldapdomaindump%0Aldapdomaindump%20-u%20vulnad.local%5C%5CAdministrator%20-p%20%221qaz%40WSX%22%2010.10.10.10%0A%0Acd%20..%20%26%26%20mkdir%20DUMP%0Asecretsdump.py%20vulnad.local%2FAdministrator%3A1qaz%40WSX%4010.10.10.10%20-outputfile%20DUMP%2FDUMP%0A%0Ahashcat%20-m%201000%20DUMP%2FDUMP.ntds%20-o%20DUMP%2FDUMP.ntds.out%20%2Fusr%2Fshare%2Fwordlists%2Frockyou.txt” message=”” highlight=”” provider=”manual”/]

Analysis using 3 modules:
[pastacode lang=”bash” manual=”uv%20run%20main.py%20–ldd%20ldapdomaindump%20–ntds%20DUMP%20–hashcat%20DUMP%2FDUMP.ntds.out%20-m%20passwords_reuse%2Cweak_passwords%2Cpasswords_in_description%0AParsing%20LDAP%20data…%0AParsing%20NTDS%20data…%0AParsing%20Hashcat%20output…%0ALoaded%203%20modules%0ARunning%20modules…%0ABuilding%20report%20to%20report.md…%0ADone!” message=”” highlight=”” provider=”manual”/]
Module Development
To create a new module:
- Create a new directory in
modules/ - Create
module.pyimplementingIModuleinterface - Create
template.mdwith Jinja2 template for report
Example module structure:
[pastacode lang=”markup” manual=”modules%2Fmy_module%2F%0A%E2%94%9C%E2%94%80%E2%94%80%20module.py%0A%E2%94%94%E2%94%80%E2%94%80%20template.md” message=”” highlight=”” provider=”manual”/]
Source: https://github.com/PShlyundin/
Support Our Threat Intelligence
If you find our technology report and cybersecurity news helpful, consider supporting our work.