T06 · System Persistence
- Location
SKILL.md:250- Finding
<![CDATA[Persistent Cloudflare Tunnel Services Are Enabled Across Sessions]]>
- Content
View full analysis
... RunAtLoad KeepAlive ... ``` ```bash # Load and start LaunchAgent launchctl load ~/Library/LaunchAgents/com.cloudflare.tunnel.plist launchctl start com.cloudflare.tunnel ``` ``` ### Technical Analysis The instructions register Cloudflare Tunnel as a persistent service: - On Linux, `systemctl enable` configures a system-level service to start automatically at boot. Creating the unit under `/etc/systemd/system` and enabling it require root privileges. - On macOS, `RunAtLoad` and `KeepAlive` cause the tunnel to start with the user session and be restarted after termination. - `Restart=always` on Linux similarly causes continuous restart behavior. Persistence is related to the declared functionality of operating a production tunnel, and the examples are explicit rather than covert. The Linux unit also mitigates privilege exposure by running the process as `User=cloudflared`. Nevertheless, automatic startup is not required merely to create, configure, test, or interactively run a tunnel. It therefore exceeds the minimum privileges and lifetime needed for basic skill operation and should only be an explicit, informed deployment choice. A persistent tunnel materially ...[truncated 1783 chars]- Remediation
View remediation
