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

HTB PhantomRing

Sherlock Scenario

Your organization's SOC team intercepted a suspicious binary during a routine threat hunting operation on a Linux server. The file was found in /var/tmp with an unusual name and was attempting to establish outbound connections. Initial analysis suggests this could be a post-exploitation agent. Your task is to perform static analysis on the binary to identify its capabilities, extract indicators of compromise, and understand the threat actor's infrastructure.

Q1

What is the SHA256 hash of the malicious binary?

2d7b1b2178f76c26893b2a56cbf9b36700235259e76b893d53817d5b66b634a5

Q2

What is the IP address hardcoded in the binary for C2 communication?

IP 地址直接硬编码的

192.168.56.1

Q3

What port does the agent connect to on the C2 server?

4445

Q4

How many seconds does the agent wait before attempting to reconnect after a failed connection?

连接失败会 sleep(120),答案显而易见是 120 秒

120

Q5

How many different commands does the agent support? (excluding invalid commands)

在 process_cmd() 函数中发现所有可以执行的命令的函数都是 cmd_ 开头的,直接统计 cmd_ 开头的函数的数量即可,一共 11 个

11

Q6

What Linux kernel interface does this malware abuse to evade EDR syscall monitoring?

一般都是 io_uring

io_uring

Q7

What file does the agent read to enumerate logged-in users?

在 cmd_users() 函数中,发现读取了 /var/run/utmp 文件

/var/run/utmp

Q8

What directory does the agent scan when searching for SUID binaries for privilege escalation?

在 cmd_privesc() 函数中,发现扫描了 /usr/bin 目录。

/usr/bin

Q9

What string does the agent search for in /proc/[pid]/maps to identify security tools using eBPF?

在 cmd_killbpf() 中,通过字符串 anon_inode:bpf-map 来进行识别

anon_inode:bpf-map

Q10

What is the full path of the first tracing file the agent attempts to disable?

还是在上一问的函数中。

/sys/kernel/debug/tracing/tracing_on

Q11

What procfs path does the agent read to find its own executable location before self-destruction?

在 cmd_selfdestruct() 函数中,读取 /proc/self/exe 获取自身可执行文件

/proc/self/exe

Q12

What command string is compared by the agent to trigger deletion of its own binary?

意思就是输入什么命令会执行 cmd_selfdestruct() 这个函数,从之前的 process_cmd() 函数就可以直接看到。

sdestruct

全文完

中

搜索文章

输入关键词搜索文章。