aAura's desktopaurasec.top
我的文章GitHub
Aura Blog
aurasec.top
AuraHTB BFT
全部文章

HTB BFT

Sherlock Scenario

Sherlock Overview:

In this Sherlock, you will become acquainted with MFT (Master File Table) forensics. You will be introduced to well-known tools and methodologies for analyzing MFT artifacts to identify malicious activity. During our analysis, you will utilize the MFTECmd tool to parse the provided MFT file, TimeLine Explorer to open and analyze the results from the parsed MFT, and a Hex editor to recover file contents from the MFT.

Tools Used:

  • MFTECmd
  • TimeLine Explorer
  • HxD Hex Editor

MFTECmd.exe -f "C:\Users\CyberJunkie\Desktop\C\\$MFT" --csv "C:\Users\CyberJunkie\Desktop\" --csvf MFT_ANALYSIS.csv

The above command processes the MFT file located in "C:\Users\CyberJunkie\Desktop\C" and creates a CSV file named MFT_ANALYSIS.csv on the Desktop of the user CyberJunkie.

Note: You will need to replace the file paths with your own.

Next, open the CSV file in TimeLine Explorer to begin your analysis.

Q1

Simon Stark was targeted by attackers on February 13. He downloaded a ZIP file from a link received in an email. What was the name of the ZIP file he downloaded from the link?

Stage-20240213T093324Z-001.zip

Q2

Examine the Zone Identifier contents for the initially downloaded ZIP file. This field reveals the HostUrl from where the file was downloaded, serving as a valuable Indicator of Compromise (IOC) in our investigation/analysis. What is the full Host URL from where this ZIP file was downloaded?

https://storage.googleapis.com/drive-bulk-export-anonymous/20240213T093324.039Z/4133399871716478688/a40aecd0-1cf3-4f88-b55a-e188d5c1c04f/1/c277a8b4-afa9-4d34-b8ca-e1eb5e5f983c?authuser

Q3

What is the full path and name of the malicious file that executed malicious code and connected to a C2 server?

这个压缩包应该是解压过了,搜一下压缩包名字,看看路径有没有带着他的。 发现有一个批处理程序

C:\Users\simon.stark\Downloads\Stage-20240213T093324Z-001\Stage\invoice\invoices\invoice.bat

Q4

Analyze the $Created0x30 timestamp for the previously identified file. When was this file created on disk?

2024-02-13 16:38:39

Q5

Finding the hex offset of an MFT record is beneficial in many investigative scenarios. Find the hex offset of the stager file from Question 3.

一个 MFT 记录的大小是 1024 字节,将 Entry Number 乘以 1024 就是文件的偏移,最后要转成十六进制

0x16e3000

Q6

Each MFT record is 1024 bytes in size. If a file on disk has smaller size than 1024 bytes, they can be stored directly on MFT File itself. These are called MFT Resident files. During Windows File system Investigation, its crucial to look for any malicious/suspicious files that may be resident in MFT. This way we can find contents of malicious files/scripts. Find the contents of The malicious stager identified in Question3 and answer with the C2 IP and port.

意思就是如果文件本身大小小于 1024 字节,这些文件就会被存到 MFT 本身中,被称为 MFT 驻留文件。可以利用上一问找到的偏移,到010直接去搜索这个地址。 直接看到原始文件内容

43.204.110.203:6666

全文完

中

搜索文章

输入关键词搜索文章。