Analysis Of Poetrat Malware
A malicious Word document carries an embedded VBA macro that drops and runs a set of Python files, which together form a remote access trojan. The malware checks disk size to detect a sandbox and, if it believes it is on a real machine, starts modules that take screenshots, upload files and talk to a command-and-control server.
Hello Hackers Yuvaraj here, Today we are going to analyze the Poetrat malware. Poetrat is a Remote Access Trojan(RAT)which means an attacker can able to control and monitor the victim’s machine.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the victim was tricked into opening a Word document with macros enabled, allowing an embedded VBA script to write and execute Python files on the host.
Impact
An attacker could control and monitor the victim's machine, taking screenshots, uploading files and issuing commands through the command-and-control server.
What the attacker needed
Victim opens the Word document; macros allowed to run
How it was found
- Open the malicious Word document, which runs the embedded VBA macro.
- The macro copies the document to a public folder and extracts a large block of bytes into a zip file.
- The zip is unpacked into a Python folder, producing several Python scripts.
- The launcher checks disk size to decide whether it is in a sandbox.
- If not a sandbox, it starts the screenshot/upload module and the command-and-control module.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
A Word document can contain small programs called macros that run automatically when the file is opened. Here the macro unpacks hidden Python programs onto the computer and starts them, and those programs let an attacker watch the screen, take files and send commands from a remote server.