RDP Enabled via Registry Modification
Adversaries may enable Remote Desktop Protocol (RDP) access by modifying the `fDenyTSConnections` registry key, potentially indicating lateral movement preparation and subsequent malicious activity within the compromised environment.
Triage facts
Revision 2- Evidence
- Unknown
- Severity
- Medium
- Sources
- 3 public sources
- Freshness
- Revision 2Jan 2, 15:00 UTC
- Detection
- 2 rules
Revision history 1 entry · Revision 2
- Revision 2
Repaired a legacy canonical identity collision
Changed: slug
Attackers can enable Remote Desktop Protocol (RDP) access on Windows systems by modifying the fDenyTSConnections registry key. This technique is often employed as part of lateral movement and defense evasion strategies. By enabling RDP, adversaries can gain interactive access to compromised systems, facilitating further malicious activities such as data exfiltration, malware deployment, or privilege escalation. The modification of this registry key can be achieved through various means, including remote registry access tools like PsExec. This activity is particularly concerning because it allows attackers to blend in with legitimate remote access activities, making detection more challenging. Defenders should monitor for unauthorized or unexpected modifications to the fDenyTSConnections registry key to identify potential lateral movement attempts.
Attack Chain
- Initial access is gained through an exploit or compromised credentials (not detailed in source).
- The attacker leverages a tool like PsExec to execute commands remotely.
- The attacker targets the registry key
HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server\fDenyTSConnections. - The attacker modifies the
fDenyTSConnectionsvalue from1to0, enabling RDP. - The attacker uses RDP to connect to the compromised system, establishing an interactive session.
- The attacker performs reconnaissance, gathering information about the network and systems.
- The attacker moves laterally to other systems using the newly enabled RDP access.
- The attacker achieves their final objective, which could include data theft or ransomware deployment.
Impact
Successful exploitation can lead to unauthorized remote access to critical systems, allowing attackers to perform lateral movement, data exfiltration, or deploy ransomware. The lack of proper RDP security measures can significantly increase the attack surface, potentially impacting a large number of systems within the network. The modification of the fDenyTSConnections registry key can expose sensitive resources and facilitate further malicious activities, resulting in significant financial losses and reputational damage.
Recommendation
- Deploy the Sigma rule "RDP Enabled via Registry Modification" to your SIEM to detect unauthorized changes to the
fDenyTSConnectionsregistry key, as described in the rule definition. - Enable Sysmon registry event logging to capture registry modifications for analysis and detection using the provided Sigma rule.
- Review the exclusion list in the Sigma rule "RDP Enabled via Registry Modification" and customize it for your environment to reduce false positives.
- Restrict RDP access through firewall rules, allowing only trusted hosts to connect to reduce the attack surface.
- Monitor network events for incoming RDP connection attempts following a registry modification as described in this brief.
Detection coverage 2
RDP Enabled via Registry Modification
mediumDetects registry modifications to enable Remote Desktop Protocol (RDP) access by setting fDenyTSConnections to 0.
Suspicious Process Modifying RDP Registry Key
mediumDetects processes not commonly associated with RDP configuration modifying the fDenyTSConnections registry key.
Detection queries are available on the platform. Get full rules →