railway

Warn

Audited by Socket on May 9, 2026

1 alert found:

Anomaly
AnomalyLOW
scripts/save_token.rb

This 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.

Confidence: 55%Severity: 58%
Audit Metadata
Analyzed At
May 9, 2026, 01:15 AM
Package URL
pkg:socket/skills-sh/alanalvestech%2Fhitank%2Frailway%2F@46574ac7bec8fa75cdbcf3e9e5279b8a7bae8080
Security Audit — socket — railway