LS-RAILWAY-001: Railway API Token¶
| Severity | HIGH |
| Blast radius | Deployment pipeline and secrets compromise |
| Rotate at | https://railway.app/account/tokens |
--verify |
POST https://backboard.railway.app/graphql/v2 (query { me { id } }) |
If this leaks¶
Grants API access to the Railway project, including environment variables (which often contain other secrets), deployments, and the ability to redeploy services.
What to do¶
- Rotate or revoke the credential at https://railway.app/account/tokens.
- Check the provider's audit logs for use you don't recognise.
- Remove it from git history (
leakscan purge --help) and load it from an environment variable or secret manager instead.
Pattern¶
(?i)railway(?:.{0,20})?['\"]([a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})['\"]
Suppress¶
On one line: # leakscan:ignore LS-RAILWAY-001. For the whole project:
disable_rules: [LS-RAILWAY-001]