Skip to content

pinyoko573/attack-simulation-lab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Attack Simulation Lab

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.

Architecture

Diagram

Note

Documented scenarios cover a subset of the infrastructure above. Additional scenarios are in progress.

Scenario

Active Directory

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

Azure Key Vault

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

Large Language Models (LLMs)

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

Infrastructure

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)

Quick Start

Ansible

ansible-playbook site.yml -i inventory.yml [-l win_dc]

Terraform

terraform init
terraform apply

About

Simulate and detect real-world attack scenarios in a controlled environment to strengthen on-premise and cloud security practices through automation tools.

Resources

Stars

3 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors