
CVE-2024-4577 Iniezione di argomenti PHP CGI - Laboratorio di rilevamento con VM Vagrant e regole Wazuh SIEM
Un laboratorio completo di detection engineering per CVE-2024-4577 (Iniezione di argomenti PHP CGI). Include box Vagrant preconfigurate, regole Wazuh SIEM e strumenti di exploit per l'addestramento del Blue Team.
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"
Dashboard Wazuh -> Discover -> Filtro: rule.id: 100442
Box preconfigurate su HCP Vagrant Registry:
CVE-2024-4577/windows - target Windows Server 2022CVE-2024-4577/kali - attaccante Kali Linux| Sistema | Utente | Password |
|---|---|---|
| VM Windows | Administrator | DetectionLab123! |
| VM Kali | 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
| Livello | Rilevamento | MITRE ATT&CK |
|---|
| Log Web | Varianti soft hyphen, wrapper PHP | T1190 |
| Processo | php-cgi.exe che genera cmd/powershell | T1059 |
| File | Drop di webshell in htdocs | T1505.003 |
| Credenziali | LSASS, dump SAM, Mimikatz | T1003 |
| Laterale | PsExec, WMI, WinRM | T1021 |
| Persistenza | Attività pianificate, servizi, registro | T1053, T1543 |