Newsletter
TechAnV Blog
Get updates on security engineering, Rust, eBPF, and DevSecOps. No spam, unsubscribe anytime.
Check your inbox and click the confirmation link to complete your subscription.
LetsDefend - Malicous VBA#
Created: 10/01/2024 14:04 Last Updated: 05/06/2024 20:07
Malicious VBA

One of the employees has received a suspicious document attached in the invoice email. They sent you the file to investigate. You managed to extract some strings from the VBA Macro document. Can you refer to CyberChef and decode the suspicious strings?
Please, open the document in Notepad++ for security reasons unless you are running the file in an isolated sandbox.
Malicious Macro (pass: 321): Download
Malicious Macro: /root/Desktop/ChallengeFiles/invoice.vb
This challenge prepared by @RussianPanda
Start Investigation#
This file is obviously obfuscated.
This function look like it tries to send requrest to a specific URL.
And I was right. it also include payload name, method and user-agent.
Move to the last function, it also contains a lot of string that hex-encoded.
And it is a WMI namespace and class reference.
The document initiates the download of a payload after the execution, can you tell what website is hosting it?
1https://tinyurl.com/g2z2gh6fWhat is the filename of the payload (include the extension)?
1dropped.exeWhat method is it using to establish an HTTP connection between files on the malicious web server?
1MSXML2.ServerXMLHTTPWhat user-agent string is it using?
1Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)What object does the attacker use to be able to read or write text and binary files?
1ADODB.StreamWhat is the object the attacker uses for WMI execution? Possibly they are using this to hide the suspicious application running in the background.
1winmgmts:\\.\root\cimv2:Win32_ProcessSummary#
This visual basic script once it executed, It will try to connect to a certain URL to download an actual malware. It also created a suspicious hidden process running in the background probably for persistence.
Badge Acquired