Educational/Defensive Cybersecurity Research Repository
This repository contains reverse engineering analysis of the DarkSword iOS exploit chain captured in-the-wild. The analysis is for defensive purposes only - understanding exploit techniques to build better protections.
This repository contains analysis only - no working exploit code. The original exploit code is referenced from htimesnine/DarkSword-RCE for research purposes.
Do NOT use this information for malicious purposes.
| File | Description |
|---|---|
| ANALYSIS.md | Comprehensive technical documentation of the exploit chain |
| research_analyzer.py | Static analysis tool for detecting exploit patterns |
| attack_flow.py | Attack flow diagram generator |
| analysis_report.txt | Automated analysis results |
Delivery → WebKit RCE → Sandbox Escape → Kernel Exploit → Data Theft → Exfiltration
- Delivery: Malicious link → Hidden iframe → Payload loader
- WebKit RCE: Type confusion exploit (addrof/fakeobj primitives)
- Sandbox Escape: GPU process exploitation via IOSurface
- Privilege Escalation: Kernel exploit for root access
- Data Theft: Process injection into keychain, WiFi, iCloud
- Exfiltration: Data sent to C2 server
- Domain:
static.cdncounter.net - Endpoint:
/log.html
- iOS 18.4
- iOS 18.6, 18.6.1, 18.6.2
- iPhone11,2 through iPhone17,5
- ✅ Type confusion (JavaScriptCore)
- ✅ PAC bypass (ARM Pointer Authentication)
- ✅ Kernel read/write
- ✅ Process injection
- ✅ Data exfiltration
# Analyze all files in directory
python3 research_analyzer.py --analyze-dir /path/to/exploit/files
# Extract strings from payload
python3 research_analyzer.py --extract-strings pe_main.js
# Detect C2 patterns
python3 research_analyzer.py --detect-c2 /path/to/files# Requires graphviz
pip install graphviz
python3 attack_flow.py- Update iOS - Apple has patched these vulnerabilities
- Block C2 domain -
static.cdncounter.net - Monitor network - Watch for
/log.htmlendpoints - Deploy EDR - Detect process injection patterns
Educational/Research use only.
Created for cybersecurity research and defensive purposes.