XLoader (Formbook) Distributed Through Malspam: A Deep Dive

Listen to this Post

Palo Alto Networks Unit 42 recently reported a new campaign distributing XLoader (Formbook) malware through malspam. The email contains an attached PDF document with links to a ZIP archive, which uses DLL side-loading to deploy the malware.

Details at: https://bit.ly/4bgKRU8

You Should Know:

1. Detecting Malicious PDFs:

  • Use `pdfid` to analyze PDF files for suspicious elements:
    pdfid malicious.pdf
    
  • Extract embedded objects using pdf-parser:
    pdf-parser -o malicious.pdf
    

2. Analyzing Network Traffic:

  • Use Wireshark to filter HTTP requests:
    http.request.method == "GET"
    
  • Identify suspicious IPs:
    tshark -r capture.pcap -Y "ip.src == <suspicious_ip>"
    

3. Detecting DLL Side-Loading:

  • Use Sysinternals Process Monitor to monitor DLL loads:
    procmon.exe /AcceptEula /BackingFile log.pml
    
  • Filter for “Load Image” events to identify malicious DLLs.

4. Malware Persistence Mechanisms:

  • Check Windows Registry for suspicious entries:
    reg query HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run
    
  • Use Autoruns to identify malicious startup items:
    autoruns.exe -accepteula
    

5. Analyzing Malicious Executables:

  • Use `strings` to extract embedded strings:
    strings malicious.exe
    
  • Analyze with Ghidra or IDA Pro for reverse engineering.

What Undercode Say:

The XLoader (Formbook) campaign highlights the importance of vigilance when handling email attachments, especially PDFs. Always verify the source and use tools like Wireshark, Process Monitor, and Autoruns to detect and mitigate threats. Regularly update your security software and educate users on recognizing phishing attempts. For further analysis, refer to the detailed report at https://bit.ly/4bgKRU8.

Stay safe and keep your systems secure!

References:

Reported By: Unit42 Xloader – Hackers Feeds
Extra Hub: Undercode MoN
Basic Verification: Pass ✅Featured Image