Malicious file analysis - Example 01
My objective with this series of articles is to show an analysis of examples of malicious files that I presented during my lecture on BSides-Vitória 2022. For this first one, I'll briefly introduce some crucial topics to ease the understanding of the analysis process.
What're malicious files?
Some files are more used in attacks
Compressed files
Microsoft Office Documents
PDF files
Microsoft Office Documents
PDF Files
Static Analysis x Dynamic Analysis
Tools
Peframe
Pdf-parser
Peepdf
Oletools
ExifTool
领英推荐
Wireshark
URLscan
urlscan.io - Website scanner for suspicious and malicious URLs.
MXtoolBox
MxToolbox supports global Internet operations by providing free, fast, and accurate network diagnostic and lookup tools. Millions of technology professionals use our tools to help diagnose and resolve a wide range of infrastructure issues.
Example 01 - Static Analysis
Note: All tests were executed in a virtual machine with Linux operating system.
Here I'm going to show in practice how we can use some of the tools above to analyze a malicious file.
We start with ExifTool to try to gather information through metadata.
Attention points:
When I use the rev command to reverse the output of the ExifTool command it is possible to better understand the line, as shown below.
Using the olevba it's possible to identify malicious macros and their possible actions.
Attention point:
Using the PEframe it's possible to get a similar result but without the suspicious points shown by olevba.
Now performing dynamic analysis, I opened the file using the LibreOffice package, and the same generated an alert that the macros can contain viruses.
The content of the file induces the user to enable the "enable edition" option.
To according shown above, with some small steps was possible to perform an analysis and have a conclusion that the file is malicious.
See you in the next analysis :)
Chief Technologist @ YOTTABYTE | vCISO | Compliance Management
2 年Good work Zozi :) This is awesome. Hands-on and to the point.
Technical Account Manager at Fortinet
2 年Great work my friend.
Cyber Security Manager | BlueTeam | ITIL | CHFI
2 年Muito Bom Brother!! Vlw e parabens.