Attacker Uses Tailscale & OpenSSH to Maintain Persistent Backdoor Beyond C2 Takedown
Written by AI from the linked story. Not reviewed by an editor. How this works
A junior threat actor installed legitimate remote access tools — OpenSSH and Tailscale — on a compromised machine before his command-and-control server went offline, creating a resilient backdoor that survived C2 disruption for 18 days. This highlights a growing tactic of 'living off the land' with trusted software to evade detection, since tools like Tailscale generate traffic that blends in with normal network activity. The root problem was a failure to monitor and control which software was installed on endpoints and what outbound network connections were being established. This matters because even if a primary malware payload is neutralised, secondary persistence mechanisms can give attackers indefinite re-entry. Organisations that focus solely on malware signatures will miss attacker-installed legitimate tools used as backdoors.
Tactical Insight
Immediate actions
- Audit all endpoints for unauthorised installations of remote access tools such as Tailscale, AnyDesk, ngrok, and OpenSSH.
- Block or alert on outbound connections to Tailscale coordination servers and other peer-to-peer VPN infrastructure at the perimeter firewall.
- Force a credential reset and revoke active sessions on any machine suspected of compromise.
Detection measures
- Deploy endpoint detection and response (EDR) tooling configured to alert on installation of new network tunnelling or remote access software.
- Monitor for unexpected SSH daemon processes or new listening ports appearing on workstations and servers.
- Centralise and review logs for unusual outbound traffic patterns, particularly to cloud-hosted coordination endpoints.
Long-term improvements
- Implement application whitelisting policies that prevent unauthorised software installation by non-administrative users.
- Enforce network segmentation so that compromised endpoints cannot initiate arbitrary outbound connections to the internet.
- Establish a formal incident response playbook that includes hunting for secondary persistence mechanisms before declaring an incident closed.