Windows Registry Modification to Enable Proxy Settings
Adversaries and malware, including DarkGate, modify the Windows registry key 'ProxyEnable' to redirect network traffic through a proxy for C2 communication and data exfiltration.
Adversaries and malware families, most notably the DarkGate loader, modify specific Windows registry keys to manipulate system network behavior. By setting the 'ProxyEnable' value within 'HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings' to '1', attackers force host traffic through an attacker-controlled proxy server. This technique allows adversaries to bypass localized network security controls, establish stealthy Command and Control (C2) communication, and facilitate the exfiltration of sensitive data. Because this modification affects the system's global internet settings, it provides a persistent method for traffic interception and manipulation until manually reverted or remediated by security teams.
Impact
Successful exploitation of this technique permits an attacker to route all outbound traffic through an external, malicious proxy. This facilitates the masquerading of C2 traffic as legitimate web traffic, evades detection by some network-based intrusion prevention systems, and allows for the seamless exfiltration of data from the compromised host. The persistence of this configuration ensures that subsequent system activity remains under the influence of the attacker's infrastructure.
Recommendation
Detection engineering teams should monitor registry modification events for changes to the 'ProxyEnable' key.
- Deploy the provided Sigma rule to detect unauthorized modifications to the 'ProxyEnable' registry key.
- Enable Sysmon Event ID 13 logging to capture registry set operations.
- Investigate the process responsible for the 'ProxyEnable' modification to identify the underlying malware or malicious actor.
- Audit existing group policies to ensure that proxy configurations are enforced and consistent across the enterprise.
Immediate actions
Deploy Sigma rule for ProxyEnable registry modification
Threat Hunt
Identify processes modifying proxy-related registry keys
Data: Sysmon Event ID 13
Mitigations
Implement GPO to restrict registry modifications to critical keys
T1112
Detection coverage 1
Detect Windows Registry ProxyEnable Modification
mediumDetects modifications to the 'ProxyEnable' registry key, which is often performed by malware to redirect network traffic.
Detection queries are available on the platform. Get full rules →