tailscale
Audited by Socket on Oct 26, 2026
3 alerts found:
Anomalyx3As supplied, the file has a malformed string literal and will not run. Its intended function is a local Headscale backup and restore utility, with no evident malware or network exfiltration. The main security concern is that restore accepts arbitrary absolute destinations from an unsigned archive manifest and can overwrite them when run with sufficient privileges; severity is high if untrusted backups are restored, particularly with --force.
No 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.