Skip to content
Buy me a coffee

Common file formats

tag: file-typestag: triage
Format Extensions Why attackers use it Look at it with
PE .exe, .dll, .sys, .scr It’s how Windows runs code PE-bear, PeStudio, Detect It Easy, Ghidra
ELF none, .so Linux servers, routers and IoT devices readelf, Ghidra
Mach-O none, .dylib, inside .app macOS programs otool, Ghidra
.NET .exe, .dll Easy to write, and still a PE file dnSpyEx, ILSpy
Format Extensions Why attackers use it Look at it with
Office (modern) .docx, .xlsx, .pptx; .docm, .xlsm with macros Everyone opens them. They’re ZIP files of XML inside Unzip it, oletools (olevba)
Office (older) .doc, .xls Macros, and older parsers oletools (oleid, olevba)
PDF .pdf Trusted, can carry links, scripts and attachments pdfid, pdf-parser
RTF .rtf Can embed objects that exploit old Office bugs rtfobj (oletools)
OneNote .one Can embed files behind a fake “double-click to view” button onedump
Format Extensions Why attackers use it Look at it with
Archives .zip, .rar, .7z Hide the real file from email scanners, often with a password 7-Zip, in your lab
Disk images .iso, .img, .vhd Windows opens them like a folder, and files inside could skip “this came from the internet” warnings on older systems 7-Zip, mount in your lab
Shortcuts .lnk Can run a hidden command while looking like a document LECmd, exiftool
Format Extensions Why attackers use it Look at it with
JavaScript / JScript .js, .jse Windows runs them with a double-click, outside the browser A text editor, CyberChef
VBScript .vbs, .vbe Same, the older sibling A text editor
PowerShell .ps1 Powerful, built into Windows, often heavily obfuscated A text editor, CyberChef
Batch .bat, .cmd Simple, often the first stage A text editor
HTML application .hta A web page that runs with full user rights A text editor

PE files: a closer look inside the most common malware format.

One Reverse Look

"A little learning is a dangerous thing." ~ A. Pope

One Reverse Look · Made with ❤ · Your friendly knowledge seeker