4 minhigh
XenoRAT Technical Analysis Report
XenoRAT is an open-source C# RAT targeting Windows 10/11 with HVNC, keylogging, credential theft, and SOCKS5 proxy capabilities, distributed via phishing and Excel XLL files. The analyzed sample copies itself to %TEMP%\XenoManager\, establishes AES-encrypted TCP to C2 at 201.7.16.168:5555, and receives DLL plugins for keylogging, HVNC, browser credential theft, and UAC bypass. A static 32-byte encryption key and mutex 'dobbex hex auth server' enforce single-instance and secure communications.
Sens:▲ 24hConf:high
Detection / HunterZ.ai
Immediate Actions
- Block network traffic to 201[.]7[.]16[.]168 on port 5555
- Quarantine any file matching SHA256 hash 868b6ede...4dea554e
- Hunt for mutex 'dobbex hex auth server' across endpoints
Key Takeaways
- AES encryption uses a fixed 16-byte zero IV and hardcoded 32-byte key for C2 traffic.
- InfoGrab module steals credentials from 35+ Chromium browsers via DPAPI and AES-GCM decryption.
- Persistence via startup registry keys uses default name XenoUpdateManager but is disabled in analyzed sample.
- UAC bypass methods include CMSTP, SLUI, FodHelper, and RunAs verb techniques.
- Themida packer observed in some samples; Excel XLL files via Excel-DNA used for distribution.
Attack Chain
- Initial Access: Phishing emails, malicious downloads, or Excel XLL add-in files deliver the XenoRAT payload
- Execution: Malware checks admin privileges, copies to %TEMP%\XenoManager, and re-executes from new location
- C2: Establishes AES-encrypted TCP connection to 201[.]7[.]16[.]168:5555 with 10-second reconnect on failure
- Plugin Loading: Server sends DLL plugins for keylogging, HVNC, webcam, microphone, screen control
- Collection: InfoGrab steals browser credentials; keylogger captures keystrokes; screen/audio/video captured
- Impact: UAC bypass, registry modification, system shutdown/reboot, and SOCKS5 proxy for lateral access
Affected Systems
- Windows 10
- Windows 11
- Chromium-based browsers (35+ variants targeted)
- .NET runtime on Windows endpoints
Detection Engineering Assessment
Hunting Hypotheses
| Hypothesis | Telemetry | Stage | FP Risk |
|---|---|---|---|
| Processes creating specific mutex names and establishing outbound TCP on unusual ports indicate RAT C2 (T1071, T1573). | Mutex creation and network connection events | Command and Control | Low — mutex naming pattern is distinctive |
| Executable copying itself to temp subdirectories and re-launching from new path (T1105, T1027). | Process creation and file write events | Defense Evasion | Low — temp subdirectory name is uncommon |
| Excel spawning processes that load additional DLLs and establish network connections (T1059, T1105). | Process ancestry, DLL load, and network events | Execution | Medium — legitimate add-ins may behave similarly |
| Non-browser processes accessing Chromium credential databases with DPAPI decryption calls (T1555.003). | File access and API call telemetry | Credential Access | Low — credential DB access by non-browser is anomalous |
Required Log Sources
- Sysmon Event ID 1 (process creation)
- Sysmon Event ID 3 (network connection)
- Sysmon Event ID 11 (file creation)
- Sysmon Event ID 13 (registry modification)
- EDR process telemetry
- DNS resolution logs
Control Gaps
- Network IPS cannot inspect AES-encrypted C2 traffic payload
- Static AV may miss Themida-packed samples
- HVNC activity may not generate visible user session events
- In-memory DLL plugin loading evades disk-based scanning
Recommendations
Infrastructure Hardening
- Restrict outbound TCP on non-standard ports like 5555
- Block Excel XLL add-ins from loading unless explicitly approved
- Enable network detection for encrypted TCP beaconing patterns
User Protection
- Deploy EDR rules detecting temp directory creation for malware staging
- Enable browser credential encryption to mitigate InfoGrab theft
- Monitor for Themida-packed executables entering the environment
MITRE ATT&CK Mapping
MITRE ATT&CK Mapping27 techniques
Tactic
Persistence
Tactic
Privilege Escalation
Tactic
Stealth
Tactic
Defense Impairment
Tactic
Credential Access
Tactic
Discovery
Tactic
Command and Control
Showing defanged values
- file_path%TEMP%\XenoManager\Installation directory for malware self-copy and re-execution
- ip201[.]7[.]16[.]168C2 server on port 5555, hosted in Brazil (AS8167)
- md586a967082cb9118c3271a925a53aa346Analyzed XenoRAT client sample (PE32 .NET)
- mutexdobbexhexauthserverSingle-instance mutex; admin variant appends -admin
- sha256868b6edee89aeee834a2d96d1534017b82304d3fbf33b07dd8d5d6184dea554eAnalyzed XenoRAT client sample (PE32 .NET)