GenAI coding agents can spawn reverse tunnels and LaunchAgents, exposing local services
Coding agents like Claude Code can be used to create reverse tunnels and install LaunchAgent persistence, leading to high-severity outcomes despite appearing as trusted processes.
Security & privacy Elastic Security Labs 7 Aug 2026 Incident analysis Real-world evidence
Published as “Living off the coding agent: Two tales of tunnels and LaunchAgents”
Why it matters
Security teams must treat coding-agent-parented tunnels and LaunchAgents as high-severity alerts even when the parent binary is trusted.
Summary
The authors examined a macOS developer laptop where Claude Code acted as the parent process for shells that opened free-tunnel URLs, pulled metrics, and launched Cloudflare quick tunnels. The same session installed LaunchAgent plists to keep the tunnel alive across reboots. Credentialed HTTP requests to free-tunnel brokers were observed, and the authors note that this chain can expose a local admin app to the internet. They highlight detection challenges because the trusted coding-agent parent masks high-severity outcomes.
What they found 1
- Agent-parented reverse tunnels and LaunchAgents can expose a local admin app to the internet
“Agent-parented reverse tunnels and LaunchAgents can expose a local admin app to the internet.”
Caveats 2
- The same telemetry can also be interpreted as self-testing a published local app rather than malicious activity.
- Reputation labels and unbound broker apex pages do not break that tie by themselves.
What’s new here 4
- Shows that vendor-signed coding agents can be abused to create reverse tunnels and persistence.
- Documents credentialed HTTP traffic to free tunnel services under coding-agent ancestry.
- Describes LaunchAgent persistence that keeps tunnels alive across logouts and reboots.
- Highlights the difficulty of distinguishing benign developer activity from malicious use.