Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
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.

FeedsContactPrivacy© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
ludus-defender-lab — MDE/MDI Defender setup for Ludus | Kitploit
Tools/GitHubGitHub/zephrfish/ludus-defender-lab
Defensive ToolsSecurity VirtualizationIdentity & Access Management (IAM)MisconfigurationLog AnalysisLabs & Practice
GitHubzephrfish/ludus-defender-lab

ludus-defender-lab

MDE/MDI Defender setup for Ludus

View Repository
614463 days agoReviewed by Kitploit
Share

Ludus Defender Lab

Ludus range config and Ansible roles for a Windows security lab pre-staged for MDE and MDI, with a fully misconfigured ADCS installation for detection coverage testing.

ConfigVMsPurpose
zsec-mde-mdi-lab.ymlDC01 + WKS01MDE/MDI detection lab with ADCS ESC1-ESC11 and ESC13-ESC15

Requirements

  • Ludus installed and configured
  • LUDUS_API_KEY set in your environment
  • VM template: win2022-server-x64-template

Deploy

# Install roles (run on Ludus host with API key set)
cd roles/
./install-roles.sh

# Set config and deploy
ludus range config set -f zsec-mde-mdi-lab.yml
ludus range deploy

To update roles after pulling a new version of this repo:

cd roles/
./install-roles.sh --update
ludus range deploy --tags user-defined-roles   # re-runs roles without VM rebuild

MDE and MDI are not auto-installed. Onboard from security.microsoft.com after the range is up:

  1. Patch - Ensure the September 2026+ cumulative update is installed (required for MDI v3).
  2. MDE - Endpoints -> Device management -> Onboarding -> Windows Server 2022. Run the onboarding script on both DC01 and WKS01.
  3. MDI v3 - Settings -> Identities -> Sensors -> select DC01 -> Activate. No standalone installer needed; the v3 sensor is built into MDE.
  4. Action account - Settings -> Identities -> Manage action accounts -> add svc_mdi for automated response.
  5. Honeytokens - Settings -> Identities -> Entity tags -> Honeytoken -> tag svc_honey.
# Snapshot after onboarding so you can revert without repeating the process
ludus range snapshot create --name post-onboarding

Environment settings

Environment-specific values (domain name, passwords, hostnames) appear inline throughout the config. A reference table at the top of the file lists every value and where it's used - update with find-and-replace before deploying.

Shared MDE prerequisite settings live in global_role_vars (applied to all VMs). DC-specific overrides live in DC01's role_vars and take precedence automatically.

Compound FQDNs in dns_rewrites and SPN strings need updating separately.

Roles

All roles live in roles/. The install script handles everything. Role order in the YAML matters - enable_mdi_gpo requires the AD and GroupPolicy PowerShell modules (present on DCs by default, installed by rsat on member servers).

RoleUsed inPurpose
mde_prereqsDC01, WKS01Defender config, audit policy, logging, LSA hardening, TLS 1.2
wefDC01, WKS01Windows Event Forwarding (collector on DC01, forwarder on WKS01)
sysmonDC01, WKS01Sysmon install and config
adcs_labDC01ADCS ESC1-ESC11 and ESC13-ESC15 misconfiguration setup
ad_populationDC01Users, groups, OUs, Kerberoastable/ASREPRoastable accounts
smb_sharesDC01, WKS01SMB shares including honeypot share
enable_mdi_gpoDC01MDI audit GPO via DefenderForIdentity module
enable_asrWKS01Attack Surface Reduction rules
rsatWKS01Remote Server Administration Tools
pivot_toolsKali (optional)Chisel, Ligolo-ng, proxychains for pivoting

Community role installed via Ansible Galaxy: badsectorlabs.ludus_adcs (DC01).

Lab accounts

Default credentials for the zsec.local domain. Update these in zsec-mde-mdi-lab.yml before deploying.

AccountPasswordPurpose
domainadminD0main@dmin2026Domain admin
domainuserSummer2026!Standard domain user
jsmithSummer2026!IT-Admins member, ADCS test user
svc_backupSvcBackup2026!Kerberoastable (SPN: backup/DC01.zsec.local)
svc_sqlSqlService2026!Kerberoastable (SPN: MSSQLSvc/DC01.zsec.local:1433)
svc_legacyLegacy2026!AS-REP roastable (pre-auth disabled)
svc_deployD3pl0y@utomation!Backup-Operators member
svc_mdiMdiSensor2026!@MDI action account (configure in portal)
svc_honeyH0neyP0t2026!@Honeytoken (tag in portal)

Planted credentials are also seeded in SMB shares (C:\Shares\IT\, C:\Shares\Backups\) for discovery scenarios.

Telemetry stack

What's collecting what after deployment:

LayerCoverageConfig
SysmonProcess, network, registry, file, DNS, named pipe, LSASS access, WMIBoth hosts
WEFSecurity/System/Sysmon/PS/Defender/WMI/BITS/RDP/NTLM/CAPI2 forwarded to DC01DC01 collector, WKS01 forwarder
Advanced Audit23+ subcategories incl. DS Access, Kerberos, Credential Validation, Process CreationBoth hosts (DC gets extras)
MDI GPODomain object SACLs, NTLM auditing, advanced audit for DCsDC01 only
PowerShellScript Block (4104), Module (4103), Transcription to C:\PSTranscriptsBoth hosts
DC-specificKerberos (4768-4771), NTLM (8004), LDAP diag (1644), DNS query logging, ADCS CA auditDC01 only
FirewallBlocked connection logging on all profiles (32 MB per profile)Both hosts
ASR17 Attack Surface Reduction rules in Enabled modeWKS01 only

Verification

Quick post-deploy sanity checks (run on DC01 unless noted):

# Sysmon running
Get-Service Sysmon64

# WEF subscriptions (collector)
wecutil es
wecutil gs ZSec-MDI-Events
wecutil gr ZSec-MDI-Events   # WKS01 should be listed as an active source

# Audit policy
auditpol /get /category:* | Select-String "Success and Failure"

# MDI GPO applied
Get-GPO -All | Where-Object { $_.DisplayName -like 'MDI*' }

# Defender health
Get-MpComputerStatus | Select AntivirusEnabled, RealTimeProtectionEnabled, AMRunningMode

# Event log sizes
wevtutil gl Security | Select-String maxSize
wevtutil gl "Microsoft-Windows-Sysmon/Operational" | Select-String maxSize

# PowerShell logging
Get-ItemProperty 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\PowerShell\ScriptBlockLogging'

# NTLM auditing (DC only)
Get-ItemProperty 'HKLM:\SYSTEM\CurrentControlSet\Control\Lsa\MSV1_0' | Select RestrictSendingNTLMTraffic, AuditReceivingNTLMTraffic
Get-ItemProperty 'HKLM:\SYSTEM\CurrentControlSet\Services\Netlogon\Parameters' | Select AuditNTLMInDomain

# MDI v3 sensor status (after onboarding)
Get-Service SenseIdentity, Sense | Format-Table Name, Status, StartType

Credits

enable_asr and enable_mdi_gpo are derived from @curi0usJack's work at curi0usJack/Ludus-MDE-MDI-Roles. This repo extends those roles into a unified DC<->WKS setup and adds the ADCS misconfiguration layer, MDE prerequisites hardening, WEF pipeline, and additional roles.

AD CS lab is a snippet from my course

Download Tool

Most Popular

View all →

Discover the most used tools by our community.

  • 1

    OsintHunter

    letox4/osinthunter

    🎯 The ultimate OSINT toolkit: investigation graph, confidence scoring, alias families, map, timeline and reports. 49 modules, 400+ sites, no API keys required.

    772
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    GhostLock One-Tap Execution App (CVE-2026-43499)

    505
  • 3

    ARTEX

    baarai/artex

    LLM multi-agent autonomous penetration testing platform with planner/worker agents, asset and exploration graphs, MITM traffic recording, and vulnerability retesting.

    420
  • 4

    redforge

    cybersecurity91/redforge

    Browser-side red team toolkit with 102 offline tools for recon, payload generation, credential attacks, crypto, encoding and engagement reporting.

    345
  • 5

    CyberStrikeAI

    ed1s0nz/cyberstrikeai

    The system of action for AI-native cybersecurity—where intent becomes governed execution, evidence becomes operational memory, and every operation improves the next.

    260
  • 6

    antifox

    antifox-ai/antifox

    AI multi-agent autonomous penetration testing platform that runs recon, attack-surface discovery, exploitation validation and evidence-backed report delivery.

    251

Explore all tools

Browse our collection of tools

View all tools →