ShieldBreak Local Privilege Escalation via NTFS Alternate Data Streams
The ShieldBreak exploit abuses symbolic link swaps over local loopback SMB shares to create NTFS Alternate Data Streams, enabling privilege escalation by redirecting privileged file writes to system-critical directories.
ShieldBreak is an exploit technique that achieves local privilege escalation (LPE) by manipulating how the Windows operating system handles file operations. Discovered in the context of the RoguePlanet threat landscape, the exploit targets the interaction between privileged, Defender-driven write operations and local SMB shares. By initiating a connection to the loopback address (127.0.0.1) and performing a symbolic link swap, an attacker can trick the system into redirecting these writes into an NTFS alternate data stream (ADS) on a target file. This manipulation allows for the injection of attacker-controlled content into protected locations, such as C:\Windows\System32. The technique is significant for defenders because it blends legitimate administrative share access with abnormal local loopback usage to evade traditional file-integrity monitoring.
Attack Chain
- Attacker establishes a local SMB connection to the target system via the loopback address (127.0.0.1).
- The attacker identifies a target file path for a future privileged write operation.
- A symbolic link is created or swapped to map the target file path to a location under the attacker's control.
- The attacker triggers a legitimate, privileged process (e.g., Windows Defender) to perform a write operation to the initial path.
- The OS follows the symbolic link, redirecting the privileged write to the attacker-defined target via an ADS.
- The payload is successfully written into an alternate data stream within a sensitive directory, such as C:\Windows\System32.
- The attacker leverages the dropped payload to execute code with elevated system privileges.
Impact
Successful exploitation of ShieldBreak results in local privilege escalation, allowing an attacker to move from a standard user context to full administrative or SYSTEM-level control of the target host. By compromising the integrity of files in C:\Windows\System32, attackers can achieve persistent, elevated execution that is difficult to detect without deep inspection of NTFS stream objects. This technique has been observed in the wild in the context of the RoguePlanet activity cluster.
Recommendation
- Enable Windows Security Event ID 5145 (Object Access auditing for File Shares) in Group Policy to capture SMB access attempts.
- Deploy the provided Sigma rule to detect the creation of ADS over local administrative loopback shares.
- Audit existing file integrity monitoring configurations to specifically account for files containing colon-suffixed names, which indicate the presence of alternate data streams.
- Investigate any instances of 127.0.0.1 access to administrative shares (e.g., ADMIN$, C$) as these are highly anomalous and rarely occur in production environments.
Immediate actions
Enable Object Access auditing for File Shares via GPO
Threat Hunt
Search for Event ID 5145 where IpAddress is 127.0.0.1
Data: Security logs
Mitigations
Strictly enforce file integrity monitoring on system-critical directories
T1564.004
Detection coverage 1
Detect NTFS Alternate Data Stream Creation over Loopback Share
highDetects the creation of an NTFS alternate data stream (ADS) accessed over a local administrative share targeting the loopback address 127.0.0.1.
Detection queries are available on the platform. Get full rules →