railway
Audited by Socket on May 9, 2026
1 alert found:
AnomalyThis fragment implements a token validation/authentication helper: it transmits a user-supplied bearer token to a fixed external GraphQL endpoint over HTTPS, then persists the same token locally in ~/.config/railway/token with restrictive permissions (0600). No strong indicators of covert malware are present in the shown code (no exec/eval, no multi-stage networking, no hidden persistence), but the script performs highly sensitive credential handling. The main supply-chain risk is that if the script is unexpected or untrusted, it deterministically exfiltrates whatever token the user provides and stores it on disk for later theft by an attacker. Confidence is reduced because the snippet appears truncated/malformed and may omit additional behaviors outside this excerpt.