4 minhigh
Case of AgentTesla Malware Distribution Disguised as a Business Proposal Email
AgentTesla infostealer delivered via business-proposal phishing emails; multi-stage .NET loaders use bitmap steganography to reconstruct payloads and exfiltrate stolen credentials over FTP. A phishing campaign distributes ZIP attachments containing .NET executables disguised as business proposals. Three sequential .NET loaders use bitmap pixel extraction and XOR decryption to reconstruct payloads in memory, culminating in AgentTesla infostealer. Stolen credentials are exfiltrated to an FTP server.
Sens:■ Immediate
Detection / HunterZ.ai
Immediate Actions
- Block FTP traffic to server356[.]Web-hosting[.]Com at firewall and proxy
- Quarantine emails with ZIP attachments containing executable files
- Add both MD5 hashes to endpoint block lists
- Hunt for %APPDATA%\AH.Exe across endpoints
Key Takeaways
- Multi-stage .NET loaders use RGB pixel data from bitmap resources to reconstruct subsequent .NET DLLs in memory
- Loaders masquerade as café management software, Kingsoft security software, and Microsoft PC Manager
- Final AgentTesla payload steals credentials from browsers, email clients, FTP, and VPN programs
- Malware queries public IP and checks if execution environment is a hosting server
- Persistence via copying loader to %APPDATA%\AH.Exe
Attack Chain
- Initial Access: Phishing email disguised as business proposal delivers ZIP attachment
- Execution: ZIP contains .NET EXE disguised as café management program
- Defense Evasion: Bitmap pixel RGB data decoded to reconstruct .NET DLL via Assembly.Load
- Defense Evasion: Second loader extracts and XOR-decrypts payload from HATA bitmap resource
- Persistence: Loader copies itself to %APPDATA%\AH.Exe
- Credential Theft: AgentTesla steals browser, email, FTP, VPN credentials and exfiltrates via FTP
Affected Systems
- Windows systems receiving email with ZIP attachments
- Browsers storing credentials and cookies
- Email clients with stored credentials
- FTP client software with saved credentials
- VPN client software with stored credentials
Detection Engineering Assessment
Hunting Hypotheses
| Hypothesis | Telemetry | Stage | FP Risk |
|---|---|---|---|
| Processes loading .NET assemblies via Assembly.Load from bitmap resource pixel data (T1140, T1027) | EDR module load and memory access events | Defense Evasion | Low — rare in legitimate software |
| Outbound FTP connections to server356.Web-hosting.Com carrying credential data (T1041) | Network firewall and proxy logs | Exfiltration | Low — specific C2 domain |
| Files written to %APPDATA%\AH.Exe by newly spawned .NET processes (T1036) | EDR file creation events | Persistence | Low — non-standard path and filename |
| .NET executables with assembly metadata spoofing Microsoft or Kingsoft product names (T1036.005) | EDR file metadata and PE inspection | Defense Evasion | Medium — legitimate software uses similar names |
Required Log Sources
- Email gateway logs
- EDR process creation and module load events
- Network firewall proxy logs
- DNS resolution logs
Control Gaps
- Email gateway may not flag ZIP containing EXE with double extension
- In-memory .NET assembly loading bypasses file-based AV scanning
- Bitmap steganography evades static signature detection
- FTP exfiltration on non-standard ports may bypass proxy rules
Recommendations
Infrastructure Hardening
- Block outbound FTP on non-standard ports from workstations
- Enable email gateway filtering for executable files inside archives
- Deploy network segmentation restricting workstations from direct FTP access
User Protection
- Deploy EDR with in-memory .NET assembly loading detection capability
- Ensure endpoint AV signatures include both MD5 hashes
- Enable browser credential encryption and disable credential saving in email clients
MITRE ATT&CK Mapping
MITRE ATT&CK Mapping11 techniques
Tactic
Initial Access
Tactic
Stealth
Tactic
Credential Access
Tactic
Collection
Tactic
Command and Control
Tactic
Exfiltration
Showing defanged values
- domainserver356[.]Web-hosting[.]ComFTP C2 server receiving exfiltrated stolen credentials
- emailBBL[@]anmarinee[.]It[.]ComFTP username for C2 exfiltration server
- file_path%APPDATA%\AH.ExeLoader copy for persistence on infected host
- md58777a9b0533660fddc2a73b819638c18Malicious file hash from phishing campaign
- md5cbcc4ba1a1485cb01a4b65fc7915e629Malicious file hash from phishing campaign