
CVE-2024-4577 PHP-CGI-Argumentinjektion - Erkennungslabor mit Vagrant-VMs und Wazuh-SIEM-Regeln
Ein vollständiges Detection-Engineering-Labor für CVE-2024-4577 (PHP-CGI-Argument-Injection). Enthält vorgefertigte Vagrant-Boxes, Wazuh-SIEM-Regeln und Exploit-Tools für das Blue-Team-Training.
cd wazuh
docker compose up -d
# Dashboard: https://localhost:443 (admin / SecretPassword)
vagrant up
# Downloads ~12GB on first run
VBoxManage guestproperty enumerate "DetectionLab-Windows" | grep IP
VBoxManage guestproperty enumerate "DetectionLab-Kali" | grep IP
vagrant ssh kali
python3 ~/exploits/CVE-2024-4577.py --url http://<WINDOWS_IP>/ --cmd "whoami"
Wazuh-Dashboard -> Discover -> Filter: rule.id: 100442
Vorgefertigte Boxes im HCP-Vagrant-Registry:
CVE-2024-4577/windows - Windows-Server-2022-ZielCVE-2024-4577/kali - Kali-Linux-Angreifer| Ebene | Erkennung | MITRE ATT&CK |
|---|---|---|
| Web-Log | Soft-Hyphen-Varianten, PHP-Wrapper | T1190 |
| Prozess | php-cgi.exe startet cmd/powershell | T1059 |
| Datei | Webshell-Ablagen in htdocs | T1505.003 |
| Anmeldedaten | LSASS, SAM-Dump, Mimikatz | T1003 |
| Lateralbewegung | PsExec, WMI, WinRM | T1021 |
| Persistenz | Geplante Aufgaben, Dienste, Registrierung | T1053, T1543 |
| System | Benutzername | Passwort |
|---|---|---|
| Windows-VM | Administrator | DetectionLab123! |
| Kali-VM | kali | kali |
| Wazuh | admin | SecretPassword |
CVE-2024-4577/
├── Vagrantfile # Lab VM definitions
├── README.md # This file
├── detections/ # Detection rules
│ ├── wazuh-rules.xml # 54 Wazuh detection rules
│ ├── sigma-rules.yml # Sigma format rules
│ ├── iocs.json # Indicators of Compromise
│ └── detection-guide.md
└── wazuh/ # Wazuh SIEM stack
└── docker-compose.yml
MIT