5 minhigh
BITTER Expands Its Arsenal with PapRAT
BITTER APT deploys PapRAT and WmRAT against South Asian targets via three infection chains using LNK files, ftp.exe LOLBins, MSI installers, and WebDAV. PapRAT is a custom RAT with C++ and Rust implementations, supporting remote shell, file transfers, screenshots, and drive enumeration. WmRAT serves as a secondary payload delivered through PapRAT's download command. C2 communication uses HTTP with XOR-encoded configuration.
Sens:■ ImmediateConf:high
Detection / HunterZ.ai
Immediate Actions
- Block all documented C2 domains and URLs at network gateway and DNS resolver.
- Hunt for scheduled tasks under MicrosoftUpdates or BiosUpdates folders.
- Quarantine VHDX, RAR, and LNK files from unsolicited emails.
Key Takeaways
- PapRAT Rust variant expands command set from 8 to 11, adding PowerShell execution, sleep, and exit commands.
- Attack chain 1 uses ftp.exe as LOLBin to bypass script-engine monitoring targeting PowerShell or wscript.
- C2 config XOR-encoded with key 0x50; Rust variant uses reversed and ROT-3 shifted constants in .rdata.
- PapRAT beacons every 10 seconds (C++) or 5 seconds (Rust) with client_id combining username and computer name.
- WmRAT C2 is netmansrvdns[.]com; PapRAT primary C2 is rivingtonclarks[.]com with LiteSpeed server.
Attack Chain
- Initial Access: LNK/VHDX/RAR delivered via phishing with diplomatic lure filenames
- Execution: ftp.exe LOLBin or MSI installer executes PapRAT payload
- Persistence: Scheduled tasks created to run err.log and talk.log scripts
- C2: PapRAT beacons to hardcoded C2 over HTTP every 10 seconds
- Discovery: Recon collects directories, task lists, AV products, and drive info
- Exfiltration: Screenshots and files uploaded to C2 via POST requests
Affected Systems
- Microsoft Windows
- South Asian government organizations
- Energy sector organizations
- Engineering sector organizations
Detection Availability
- Platforms: FortiGuard AntiVirus, FortiGuard Web Filtering
FortiGuard AV signatures and Web Filtering ratings protect customers across FortiGate, FortiMail, FortiClient, and FortiEDR.
Detection Engineering Assessment
Hunting Hypotheses
| Hypothesis | Telemetry | Stage | FP Risk |
|---|---|---|---|
| ftp.exe spawning cmd.exe or executing local shell commands via bang prefix (T1059.003) | Process ancestry: ftp.exe to cmd.exe | Execution | Low — rare in enterprise environments |
| Scheduled tasks created with conhost --headless executing scripts from public directories (T1053.005) | Event ID 4698, task action with conhost | Persistence | Medium — conhost used by legitimate apps |
| msiexec running silently with /qn flag from WebDAV or LNK-launched paths (T1218.007) | Event ID 4688, msiexec with /qn flag | Execution | Medium — legitimate silent installs |
| HTTP POST beacons with client_id parameter combining username and hostname (T1071.001) | HTTP POST with client_id user-host pattern | Command and Control | Low — specific parameter pattern |
Required Log Sources
- Process creation events (Event ID 4688)
- Scheduled task creation (Event ID 4698)
- Network connection logs
- PowerShell script block logs (4104)
- File system audit logs
- MSI installation logs
Control Gaps
- Script-engine monitoring targeting PowerShell misses ftp.exe LOLBin chain
- Endpoint controls focused on executable files miss fileless first chain
- XOR-encoded C2 configuration evades static string analysis
- MSI CustomAction Type 194 may bypass installer monitoring
Recommendations
Infrastructure Hardening
- Block plaintext HTTP C2 traffic to known malicious domains.
- Disable or monitor ftp.exe execution from LNK files.
- Restrict WebDAV access from untrusted external servers.
User Protection
- Train users to report unsolicited documents with diplomatic or summit-related filenames.
- Block macros and external content in Office files from untrusted sources.
MITRE ATT&CK Mapping
MITRE ATT&CK Mapping15 techniques
Tactic
Initial Access
Tactic
Discovery
Tactic
Collection
Tactic
Command and Control
Showing defanged values
- domainchestergreenfarming[.]comDecoded C2 for PapRAT variant in chain 3
- domainfelixfuturenext[.]comC2 URL listed in IOC section
- domaingomescareerplans[.]comC2 for err.log in attack chain 3
- domaingoodnfortunes[.]comRecon data exfiltration C2 for err.log
- domainnetmansrvdns[.]comWmRAT C2 server for secondary payload
- domainrappellingaart[.]comWebDAV payload distribution server
- domainrivingtonclarks[.]comPapRAT primary C2 server hosting command panel
- domaintechtalkhelp[.]comStaging server for talk.log and command retrieval
- filenamebruzsvc.exePapRAT masquerade filename as Microsoft component
- filenameImp_Details.msiMSI installer deploying PapRAT in chain 3
- filenameVisa_Details.msiMSI installer deploying PapRAT in chain 2
- filenamevnces.exeWmRAT payload downloaded via PapRAT DWW command
- file_pathC:\programdata\talk.logBase64-encoded command staging file
- file_pathC:\users\public\music\err.logC2 staging file for command retrieval
- sha256411c0b9a2f98b927d806a685faf0c1ab1005647b4816157008892347fb88546bWmRAT payload binary
- sha256569a21b519aaac8c92f653d708ab6ef34e3f38ea967f47e041d1e2425f6a4b33PapRAT payload binary
- sha256a3081df333ca7f18bd90d10a45125ab5011dcf9d2806feae2935f09cab07da4cMalicious LNK lure file
- sha256ccefbdec2718d864d9d33c743aabfcef88a8d7904d1c598bfcf15cf5f3591c88Malicious LNK lure file
- sha256e3992f8c945b0761242377cba32d91b0a390c7cecd79478439843d93e6d2b76bMalicious LNK lure file
- urlhxxp://gomescareerplans[.]com/docsC2 URL for err.log in chain 3
- urlhxxps://felixfuturenext[.]com/Epistemological/C2 URL from IOC section
- urlhxxps://goodnfortunes[.]com/ucl[.]phpRecon data upload endpoint with computername
- urlhxxps://techtalkhelp[.]com/Res/PowerShell C2 URL with computername parameter
- urlhxxps://techtalkhelp[.]com/talk[.]logStaging script download URL
- urlhxxps://www[.]rivingtonclarks[.]com/banana/receive[.]phpRust PapRAT C2 screenshot upload endpoint
- urlhxxp://www[.]rivingtonclarks[.]com/beautiQuewonders/banaNa[.]phpC++ PapRAT C2 command endpoint