GhostMap Linux Rootkit Analysis and Evasion Capabilities
Score: 9/10

GhostMap Linux Rootkit Analysis and Evasion Capabilities

TeamPCP uses the GhostMap eBPF rootkit via the IronWorm implant to conceal processes, files, and network sockets on Linux systems by manipulating kernel data returns.

Executive Summary

GhostMap is a sophisticated Linux eBPF rootkit shared between the IronWorm and Atomic Arch malware campaigns, attributed by package authors to TeamPCP. The rootkit provides advanced stealth by hooking kernel events to manipulate system views, effectively blinding user-space applications by modifying directory entry buffers and network socket diagnostic messages.

Technically, GhostMap utilizes the `bpf_probe_write_user` helper to alter the `d_reclen` field in `getdents64` syscall returns, forcing directory readers like 'ps' to skip malicious entries. While it successfully hides listeners from `/proc/net/tcp`, research shows it may fail to conceal sockets from tools like 'ss' that interpret Netlink messages directly. This threat highlights the limitations of standard Linux system visibility and the necessity for runtime monitoring that can detect unauthorized eBPF attachments.

Key Details

Threat Name

GhostMap

Affects

—

Adversary

TeamPCP

Malware/Tools

GhostMap, IronWorm, Shai-Hulud

Report Score

9out of 10
Quality Score
Excellent
IOC Quality9
TTP Details9
Detection Guidance7
Enterprise Relevance8
Clarity & Structure9
Technical Depth9

Sources