
Honeypot for CVE-2025-53770 aka ToolShell
A Docker-based honeypot focused on detecting and logging exploitation attempts against Microsoft SharePoint zero-day vulnerabilities.
This honeypot is designed for early detection and threat intelligence, not for simulating a full SharePoint environment or post-exploitation activity.
What this honeypot does:
What this honeypot does NOT do:
Docker Compose
├── honeypot (Sensor - HTTP capture, port 443, <100ms response)
├── analyzer (Deep analysis engine, tag-driven processing)
└── dashboard (Intelligence dashboard, port 8501)
HTTP Request → Sensor → Event Queue → Analyzer → Dashboard
↓ ↓ ↓
Fast Response SHA256 Body Deep Analysis
Tag Assignment Raw Storage YARA + R7
Key Improvements:
flowchart TD
A[HTTP Request] --> B[Sensor: Tag Assignment]
B --> C{Route-Based IOCs}
B --> D{Pattern Detection}
B --> E{Heuristic Analysis}
C --> F[IOC Tags]
D --> G[Pattern Tags]
E --> H[Heuristic Tags]
F --> I[Event JSON + Body Storage]
G --> I
H --> I
I --> J[Event Queue]
J --> K[Analyzer: Deep Analysis]
K --> L{Tag-Driven Pipeline}
L -->|R7_PAYLOAD| M[Gzip→Base64→.NET Analysis]
L -->|LARGE_B64| N[Generic Base64 Decoding]
L -->|Always| O[YARA Scanning]
M --> P[Enhanced Event JSON]
N --> P
O --> P
P --> Q[Dashboard Intelligence]
High-confidence compromise indicators with immediate alert priority
Endpoint-based IOCs:
IOC:ENDPOINT_TOOLPANE - Access to /_layouts/15|16/ToolPane.aspxIOC:ENDPOINT_SIGNOUT - Access to /_layouts/SignOut.aspxIOC:ENDPOINT_FAVICON - Access to /favicon.icoIOC:ENDPOINT_ACLEDITOR - Access to /_controltemplates/15|16/AclEditor.ascxIOC:ENDPOINT_LAYOUTS_ASPX - Generic /_layouts/*.aspx endpoint accessIOC:WEBSHELL_PROBE - Webshell probe endpoint detectionCVE-Specific IOCs:
IOC:CVE_2025_53771 - Trailing slash authentication bypass (CVE-2025-53771)Parameter-based IOCs:
IOC:PARAM_DISPLAYMODE_EDIT - DisplayMode=Edit parameter detectedIOC:PARAM_TOOLPANE_REFERENCE - Parameter value referencing ToolPaneHeader-based IOCs:
IOC:REFERER_SIGNOUT - Referer header contains SignOut.aspxIOC:SUSPICIOUS_USER_AGENT - Suspicious User-Agent pattern (e.g., Firefox/120.0)Signatures of known exploit frameworks and payload patterns
Exploit Signatures:
PATTERN:R7_PAYLOAD - Metasploit R7 exploit (MSOTlPn_DWP + CompressedDataTable)PATTERN:VIEWSTATE_EXPLOIT - __VIEWSTATE exploitation attemptPATTERN:YSOSERIAL - Java deserialization tool (ysoserial keyword)Code Execution Patterns:
PATTERN:POWERSHELL - PowerShell commands/scripts detectedPATTERN:ASPX_WEBSHELL - ASPX webshell upload attemptsBehavioral anomaly detection for unknown threats
Payload Anomalies:
HEURISTIC:LARGE_PAYLOAD - Payload size >1KB (1024 bytes)HEURISTIC:LARGE_B64 - Base64 content >100 charactersHEURISTIC:MULTIPLE_B64 - Multiple Base64 strings (>3)Parameter Anomalies:
HEURISTIC:MANY_PARAMETERS - Excessive URL parameters (>10)HEURISTIC:MISSING_CONTENT_TYPE - POST request without Content-TypeHEURISTIC:MALFORMED_MULTIPART - Malformed multipart dataRequest Anomalies:
HEURISTIC:UNUSUAL_METHOD - Unusual HTTP methods (PUT/DELETE/PATCH)HEURISTIC:LONG_PATH - Extremely long URL path (>200 characters)HEURISTIC:UNKNOWN_ENDPOINT - Unmonitored endpoint (catch-all route)/ (catch-all)/favicon.ico/_layouts/SignOut.aspx/_layouts/15/ToolPane.aspx and /_layouts/16/ToolPane.aspx (POST/GET, parameters DisplayMode=Edit, a=/
ToolPane.aspx)/_layouts/15/spinstall0.aspx, /_layouts/16/spinstall0.aspx, spinstall.aspx, spinstall1.aspx, info3.aspx, xxx.aspxyara_rules/ directoryGenerate a self-signed certificate:
openssl req -x509 -nodes -days 365 \
-newkey rsa:2048 -keyout key.pem -out cert.pem \
-subj "/CN=sharepoint.local"
cp cert.pem key.pem ToolShell-Honeypot/
Build and run all services:
cd ToolShell-Honeypot
sudo docker-compose up --build
Or use the interactive management script:
./manage.sh
Choose option 6 to start all services, or start components individually.
Test the honeypot:
# Comprehensive test suite covering all features
./test_comprehensive.sh
Access the dashboard:
Open http://localhost:8501 to view the intelligence dashboard with:
The test scripts simulate real-world attack scenarios. Check the dashboard to review results, IOC detection, and data analysis.
A management script is provided for easy control of the honeypot and dashboard services.
Usage:
cd ToolShell-Honeypot
chmod +x manage.sh # (first time only)
./manage.sh
Menu options:
The IOC patterns, YARA rules, and detection logic are based on real-world attack campaigns and public threat intelligence for ToolShell/SharePoint vulnerabilities, including:
Relevant CVEs: