headscale-deploy
Audited by Socket on Sep 3, 2026
2 alerts found:
Anomalyx2No overt malicious behavior (e.g., exfiltration, backdoor logic, or credential harvesting) is evident in this fragment. However, the script performs a high-impact supply-chain install-and-run workflow: it downloads a binary tarball over the network, extracts it, installs the extracted executable as root, and immediately starts it via systemd—without any integrity verification or explicit validation of archive contents. If the download source/path or artifact is compromised, this script would persistently execute the attacker’s payload.
No clear malicious payload is evident; the script’s intent is configuration management for Headscale’s embedded DERP. However, it contains meaningful security risk: it executes inline python3 -c built via string interpolation (a potential code-injection/quote-breaking primitive if inputs are adversarial) and it performs curl requests to a URL taken directly from YAML without validation (SSRF-like egress if config is compromised). Overall: likely benign utility, but should be reviewed/secured before use in threat models where CLI parameters or config.yaml could be attacker-influenced.