Sitemap
Figen Adana

Figen Adana

STATIC MALWARE ANALYSIS

As a SOC Analist , here is how I analyze a malicious document in details:

2 min readSep 27, 2022
Press enter or click to view image in full size

Oledump is a program to analyze OLE files (Compound File Binary Format) which contain streams of data. Oledump allows you to analyze these streams. Pestudio is a free tool to perform an initial assessment of a malware without even infecting a system or studying its code. Malicious executables often attempt to hide their behavior and evade detection. By doing so, they present anomalies and suspicious patterns.

•I use Oledump and Pestudio tools to analyse a malicious document , that’s why I defined them first.

•As a starting point, I need to get the hash

• Open powershell as an administrator then write:

Get-FileHash -Algorithm SHA256 (drag and drop the file you want)

• Use command prompt as an administrator and oledump to analyze the file.

• Write (oledump.py [file name]) to the CLI to see the overall looks of the office file.

• Write (oledump.py -M [file name]) to see the meta data of the file. The meta data gives the information about the file such as; where it is from, name of account, created time and last saved time etc…

• Write (oledump.py -s include the line you want to look -d [file name])

–-d is for decode

Get Figen Adana’s stories in your inbox

Join Medium for free to get updates from this writer.

–-s is for Select item for dumping

–15 — the item we want to check because it is the largest file, we suspect it.

• If there is any malicious or suspicious code in the file follow up further steps.

o Create a file on CLI includes this malicious code.

o Go to web page “cyber chef”

o Copy and paste here this malicious file.

o Go “find/replace” to remove the repeating characters.

o If needed, go “base64” to bring it to the readable format.

o If the script is reversed: Go “reverse” to be able to read it.

• In case of finding any URL, extract the URL and check this URL on different tools.

o “urlscan” shows the URL if it is blocked or not.

o “whoisdomain” shows it in details.

o “paloalto” shows if it is malicious or not.

• If it seems malicious: Block the URL to prevent anyone use it!!!

--

--