discord
Warn
Audited by Socket on May 9, 2026
1 alert found:
AnomalyAnomalyscripts/save_token.rb
LOWAnomalyLOW
scripts/save_token.rb
This fragment is a credential-handling utility: it authenticates to Discord’s API using a user-provided bot token (Authorization header) and then saves the raw token to a predictable local file with restrictive permissions (0600). No clear malware behaviors (e.g., exfiltration to unknown domains, command execution, or stealth/persistence mechanisms) are visible in the provided lines, but persisting a sensitive token is a high-risk capability and the snippet’s truncation prevents confirming there is no additional logic beyond token verification/storage.
Confidence: 57%Severity: 60%
Audit Metadata