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 - QakBot Malware#
Created: 22/03/2024 10:37 Last Updated: 22/03/2024 11:53
QakBot Malware

File Link: Download Password: infected
Or you can directly connect to the machine.
File location: C:\Users\LetsDefend\Downloads
Password: infected
Start Investigation#
What is the file type inside the phishing email attachment?
We got 2 files to work with, first one is .one file which an extension of OneNote file and the second one is .msg which is an email itself
There are a lot of NULL byte in msg file
You can use Cyberchef to filter them out
But I didn’t want to search for the treasure in the sea, I went to encryptomatic an online email reader to find an attachment for me
So this phishing mail came with onenote file as expected
1onenoteApplicationReject_70161(Jan31).one designed to trick victim user click on which file type?
As soon as I opened onenote file with OneNote application, I saw a little icon there expected to be click which embbeded with hta file

1htaWhat is the embedded URL?
I opened onenote file with Notepad++ to find HTML script embbeded
and there it is
1http://103.214.71.45/86204.datWhat is the full path of the created registry key after the victim clicks on the attachment inside ApplicationReject_70161(Jan31).one?

1HKCU\SOFTWARE\Firm\Soft\NameIdentify the full file path metadata inside ApplicationReject_70161(Jan31).one attachment
Back to onenote application, when you move your cursor on an attachment, there is a metadata which are filename, inserted from and size
Inserted from is what we needed
1Z:\build\one\attachment.htaWhat is the content of h1 tag inside ApplicationReject_70161(Jan31).one attachment?
Back to Notepad++, inside first script tag there is variable h1 there

15cd5058bca53951ffa7801bcdf421651Summary#
This challenge familarize user with knowledge of OneNote file which is a medium that was used to be an initial access of a popular Qak Bot malware. We also learned that OneNote file can also embbeded with HTML, JavaScript and VBscript to download a second payload of the malware and do a lot of things that in power of those programming languages.
