Suspicious Usb Stick
A malicious PDF file on a USB drive was designed to run automatically via autorun.inf and contained JavaScript that would execute when opened. An attacker could use this to run commands on a Windows system, potentially leading to a data breach.
Published on infosecwriteups.com
→ One of our clients informed us they recently suffered an employee data breach. As a startup company, they had a constrained budget allocated for security and employee training.
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
Impact
The malicious PDF could execute JavaScript and potentially run commands on a Windows system, which may have contributed to the employee data breach.
What the attacker needed
USB drive inserted into a Windows system; User opens the PDF file
How it was found
- The analyst examined the autorun.inf file and found it runs README.pdf.
- The analyst checked the PDF on VirusTotal and found it was flagged as malicious.
- The analyst verified the PDF's magic number and confirmed it was a valid PDF.
- The analyst used pdfid to inspect the PDF and found JavaScript and OpenAction elements.
- The analyst used pdf-parser to examine objects and identified object 28 as interesting, containing file, directory, and path indicators.
- The analyst determined the PDF targets Windows and mentions cmd.exe.
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.
This is a write-up of a challenge where a USB stick was found and analysed. The USB stick contained a file that tells Windows to automatically open a PDF when the stick is inserted. The PDF itself contains JavaScript code that runs when opened, which could let an attacker run commands on the computer.