Introduction
When investigating cyber intrusions, the prevailing attention is often directed towards payloads, lateral movements, and overall impact. Yet, in many real-world scenarios, initial access remains a critical blind spot in both publicly available research and internal post-incident analyses. This blog post explores a unique and stealthy approach employed by a financially motivated threat actor group, shedding light on ways they compromised a vital banking infrastructure. What makes this incident intriguing is the demonstration of a previously undocumented anti-forensics technique, a backdoor that remains invisible to typical process listings, and a remarkable instance involving physical network compromise through embedded hardware.
Key Takeaways
- Initial access can be both innovative and low-profile, evading traditional security measures typically in place.
- Successful detection relied heavily on memory and network forensics, failing to materialize through common forensic methodologies.
- An unpublished anti-forensics tactic, now documented in the MITRE ATT&CK framework as T1564.013 (Linux bind mount abuse), proved instrumental in maintaining stealth during the campaign.
- The attackers utilized custom malware suites to infiltrate and sustain persistence on ATM switching systems, creating significant challenges for incident responders.
Physical Backdoor Installed in ATM Network
One of the most surprising and atypical aspects of this intrusion was the physical installation of a backdoor within the bank’s network. The threat actors cleverly utilized a Raspberry Pi device, which they connected directly to the same network switch that serviced the ATM. This device facilitated a nefarious entry point into the bank’s internal network, as it was equipped with a 4G modem, allowing remote access through mobile data.
Using a backdoor known as TINYSHELL, the attackers established an outbound command-and-control (C2) channel via a Dynamic DNS domain. This methodology effectively bypassed perimeter firewalls, rendering traditional network defenses useless and providing continual external access to the ATM network.
Network Forensics Exposed Hidden Beaconing
Despite the inconspicuous nature of the implanted device, an initial review of the network monitoring server unveiled anomalous behaviors. Notably, there were instances of outbound beaconing occurring every 600 seconds, alongside repeated connection attempts targeting the Raspberry Pi on port 929. The conundrum arose when no matching process ID (PID) or any suspicious processes were identified during the triage phase, posing an essential question for the investigators: Do standard forensic triage tools effectively capture process states during periods of system sleep or inactivity?
To ascertain the answer, the forensic team executed a custom script designed to collect socket connection data every second over a ten-minute span, thereby obtaining a comprehensive overview of any hidden or temporally dependent network activity.
Forensic Challenges in Uncovering the Backdoor
Although investigators noted a visible connection, the absence of an accompanying process ID (PID) hinted at the possibility of a rootkit or anti-forensics technique. As no evidence emerged from the process list, the team opted to capture a memory dump for more in-depth analysis, hoping to unveil the lurking threat.
During the memory analysis, two suspicious processes surfaced, each initially seeming legitimate but located in atypical directories:
/tmp/lightdm (PID 8239)
/var/snap/.snapd/lightdm (PID 8914)
The cunning threat actor cloaked the backdoor process through process masquerading. By naming the binary “lightdm”—which mirrors the legitimate LightDM display manager found commonly across Linux systems—they further masked their intentions. Moreover, the process was executed with command-line arguments that mirrored legitimate parameters (e.g., lightdm –session child 11 19), aiming to evade detection and mislead any forensic analysis during future investigations.
Masquerading of Backdoor Process
These deceptive backdoors were not idle; they actively facilitated connections both to the Raspberry Pi and the internal Mail Server.
As investigators delved deeper into the forensic review, they grappled with the critical question, "Why didn’t standard triage methods detect this?" The answer lay in the attackers’ use of Linux bind mounts to conceal backdoor processes from conventional detection tools—a technique that, at that time, had not been documented in public threat assessments. This method has since been formally incorporated into the MITRE ATT&CK framework as T1564.013 – Hide Artifacts: Bind Mounts.
UNC2891’s Objectives
Investigations revealed that the ultimate aim of the UNC2891 threat actor group was the ATM switching server, with plans to deploy CAKETAP—a sophisticated rootkit intended to manipulate hardware security module (HSM) responses and fabricate authorization messages facilitating unauthorized ATM cash withdrawals. Fortunately, the campaign was disrupted before they could successfully execute their plans.
Incident Summary
In this scenario, the Network Monitoring Server functioned as a pivotal access point, connecting to nearly every server within the data center. Once the server was compromised, it permitted the attackers considerable lateral movement throughout the internal environment.
Key findings highlighted included:
- The Mail Server possessed direct internet connectivity, serving as an ongoing foothold for the threat actor.
- Even following the discovery and removal of the Raspberry Pi, the attackers retained internal access through the backdoor on the Mail Server.
- The utilization of a Dynamic DNS domain for command and control operations allowed the attackers to obscure domain ownership and activities, rapidly switching IPs or infrastructure if a block or seizure occurred.
Detection & Defense Recommendations
Based on the investigation’s findings, Group-IB suggests several measures to detect or prevent similar attacks from materializing:
- Monitor mount and umount syscalls using tools like auditd and eBPF.
- Generate alerts if /proc/[pid] is mounted to tmpfs or external filesystems.
- Block or alert on binaries executing from /tmp or .snapd paths to further secure the environment.
- Implement physical security measures for switch ports and ATM-connected infrastructure to mitigate physical access risks.
- Ensure memory images are captured in addition to disk snapshots during incident response activities.
This comprehensive examination of incident response and threat detection methodology emphasizes the continually evolving landscape of cyber threats, urging organizations to adapt their defenses to encompass both physical and logical threat vectors—crucial for safeguarding sensitive banking infrastructures.