Detection of Unauthorized Remote Access Software Traffic
Adversaries leverage legitimate remote access tools for command-and-control and persistence, requiring network monitoring to identify unauthorized usage of applications such as AnyDesk, TeamViewer, and LogMeIn.
Triage facts
- Severity
- Medium
- Action
- Elevated
- Freshness
- PublishedOct 19, 13:56 UTC
Adversaries frequently employ legitimate remote access software (RAS) to maintain unauthorized access, facilitate lateral movement, and establish persistent command-and-control (C2) channels within compromised environments. This behavior, categorized under MITRE ATT&CK technique T1219 (Remote Access Software), allows attackers to bypass traditional security controls by masquerading malicious remote sessions as legitimate administrative or support traffic.
Defenders should focus on identifying network traffic associated with common remote access applications such as AnyDesk, GoToMyPC, LogMeIn, and TeamViewer. This detection approach leverages Palo Alto network traffic logs mapped to the Splunk Network_Traffic data model. Because these tools are often dual-use, the efficacy of detection depends on baseline tuning to account for authorized internal usage. Monitoring these applications is critical for detecting Scattered Spider and various ransomware operations that rely on RMM tools to maintain persistent access after initial compromise.
Impact
Successful deployment of unauthorized remote access tools enables attackers to maintain long-term persistence, exfiltrate sensitive data, and distribute ransomware payloads across the network. Organizations in sectors targeted by groups like Scattered Spider are particularly at risk. Failure to detect these tools allows attackers to retain control over endpoints even after initial delivery mechanisms are remediated, often leading to full-scale data encryption or credential theft.
Recommendation
- Ingest Palo Alto network traffic logs into your SIEM and ensure normalization via the Common Information Model (CIM) to the Network_Traffic data model.
- Establish a baseline of legitimate remote access software usage within your environment to minimize false positives.
- Implement a lookup table of known remote access software signatures and update it regularly using resources like Applipedia.
- Use the provided Splunk analytic logic to monitor for outbound traffic matching the defined remote access software signatures.
- Configure the 'remote_software_exceptions' KVStore collection to track and maintain device-based exceptions for authorized tools.
Immediate actions
Implement network traffic monitoring for remote access software signatures using the Splunk ESCU analytic logic.
Threat Hunt
Identify all endpoints with outbound traffic to known remote access application gateways.
Data: Palo Alto Network Traffic logs
Mitigations
Implement application control policies to restrict the execution of unauthorized remote access binaries on endpoints.
T1219
Gaps
- Lack of visibility into encrypted traffic where application signatures are not decrypted at the perimeter.