
CVE-2024-4577 PHP CGI Argument Injection - Detection Lab with Vagrant VMs and Wazuh SIEM rules
A complete detection engineering lab for CVE-2024-4577 (PHP CGI Argument Injection). Includes pre-built Vagrant boxes, Wazuh SIEM rules, and exploit tools for 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
Pre-built boxes on HCP Vagrant Registry:
CVE-2024-4577/windows - Windows Server 2022 targetCVE-2024-4577/kali - Kali Linux attacker| System | Username | Password |
|---|---|---|
| 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
| Layer | Detection | MITRE ATT&CK |
|---|
| Web Log | Soft hyphen variants, PHP wrappers | T1190 |
| Process | php-cgi.exe spawning cmd/powershell | T1059 |
| File | Webshell drops in htdocs | T1505.003 |
| Credential | LSASS, SAM dump, Mimikatz | T1003 |
| Lateral | PsExec, WMI, WinRM | T1021 |
| Persistence | Scheduled tasks, services, registry | T1053, T1543 |