Simulate and detect real-world attack scenarios in a lab environment to strengthen infrastructure security practices.
This project was developed with inspiration from certificates I've taken - mainly the Offensive Security Certified Professional (OSCP) and the Microsoft Certified: Azure Security Engineer Associate (AZ-500). There are some security topics e.g. Active Directory, Microsoft Entra ID SSO and Defender for Containers that are covered in the course, but I didn't have the opportunity to experiment them.
Each scenario documents the attack steps, detection logic with KQL rules, and remediations, mapped to MITRE ATT&CK tactics and techniques.
Note
Documented scenarios cover a subset of the infrastructure above. Additional scenarios are in progress.
| Scenario | MITRE ID | Tactic | Technique |
|---|---|---|---|
| Kerberoasting | T1558.003 | Credential Access | Steal or Forge Kerberos Tickets: Kerberoasting |
| AS-REP Roasting | T1558.004 | Credential Access | Steal or Forge Kerberos Tickets: AS-REP Roasting |
| Scenario | MITRE ID | Tactic | Technique |
|---|---|---|---|
| Failed Key Vault Secret Access by Service Principal | T1555.006 | Credential Access | Credentials from Password Stores: Cloud Secrets Management Stores |
| Scenario | MITRE ID | Tactic | Technique |
|---|---|---|---|
| Direct Prompt Injection | T1190 | Initial Access | Exploit Public-Facing Application |
| Indirect Prompt Injection | T1190 | Initial Access | Exploit Public-Facing Application |
| OS Command Injection via LLM Tool Use | T1059 | Execution | Command and Scripting Interpreter |
| RAG Poisoning | T1565.001 | Impact | Data Manipulation: Stored Data Manipulation |
| Training Data Poisoning | T1565.001 | Impact | Data Manipulation: Stored Data Manipulation |
Automation scripts and guides for building the lab environment.
See infrastructure/ for full setup instructions.
| Platform | Features |
|---|---|
| Windows | AD Domain, Windows Event Collector and Forwarder, Azure Arc |
| Ubuntu | AD Domain, rsyslog, MySQL, WordPress, Azure Arc |
| Azure | VM, VNet, Sentinel, Key Vault, OpenAI (Foundry) |
Ansible
ansible-playbook site.yml -i inventory.yml [-l win_dc]Terraform
terraform init
terraform apply