Php2shell
Description
Generated datasets for PHP inline code execution using php2shell.
MITRE ATT&CK Techniques
| ID | Technique | Tactic |
|---|---|---|
| T1059.003 | Windows Command Shell | Execution |
| T1059.004 | Unix Shell | Execution |
Environment Details
| Field | Value |
|---|---|
| Environment | NA |
| Directory | php2shell |
| Test Date | 2026-10-22 |
Datasets
The following datasets were collected during this attack simulation:
Inline_php_exec_linux
- Path:
/datasets/emerging_threats/php2shell/inline_php_exec_linux.log - Sourcetype:
sysmon:linux - Source:
Syslog:Linux-Sysmon/Operational
Inline_php_exec_windows
- Path:
/datasets/emerging_threats/php2shell/inline_php_exec_windows.log - Sourcetype:
XmlWinEventLog - Source:
XmlWinEventLog:Microsoft-Windows-Sysmon/Operational
Php_upload_progress
- Path:
/datasets/emerging_threats/php2shell/php_upload_progress.log - Sourcetype:
zeek:http - Source:
http.log
Memory_exhaustion_access
- Path:
/datasets/emerging_threats/php2shell/memory_exhaustion_access.log - Sourcetype:
nginx:plus:kv - Source:
/var/log/nginx/access.log
Memory_exhaustion_error
- Path:
/datasets/emerging_threats/php2shell/memory_exhaustion_error.log - Sourcetype:
nginx:plus:error - Source:
/var/log/nginx/error.log
Php_tag_filename
- Path:
/datasets/emerging_threats/php2shell/php_tag_filename.log - Sourcetype:
zeek:http - Source:
http.log
Zeek_large_post_body
- Path:
/datasets/emerging_threats/php2shell/zeek_large_post_body.log - Sourcetype:
zeek:http - Source:
http.log
Related Detections
No specific detections currently use this attack data for testing. However, you can find related detections and analytics in our security content repository.
Usage Instructions
Replay with Splunk Attack Data
Replay attack data with replay.py from Splunk Attack Data.
1python replay.py --dataset /datasets/emerging_threats/php2shell/inline_php_exec_linux.log --index attack_data
Manual Import
- Download the dataset files from the paths listed above
- Configure your Splunk instance with the appropriate sourcetypes
- Import the logs using the Splunk Add Data wizard
Related Content
Find more detections and analytics for this attack technique in our security content repository.
Source: GitHub | Version: 1.0