[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"$fY5lBr1eBKKnBeDv7yUWcOdQp_TZX3FPrf1-EnNzCcsw":3},{"lesson":4},{"id":5,"slug":6,"article_id":7,"title":8,"body":9,"prevention":10,"framework_refs":11,"framework_notes":17,"status":23,"created_at":24,"published_at":25,"article":26,"tags":30,"podcasts":43,"controls":44},"c4f0ce7c-20bb-493b-bc2d-ac1adbcbcdea","cicd-build-isolation-failure-exposes-customer-secrets-at-railway","4151b614-8050-4010-8506-21c92abea608","CI\u002FCD Build Isolation Failure Exposes Customer Secrets at Railway","An attacker exploited a partial build-isolation escape combined with an OIDC misconfiguration to pivot from Railway's build infrastructure into systems storing customer secrets, internal source code, and cloud credentials. The root cause was a combination of improperly scoped OIDC tokens and insufficient runtime isolation between build environments—meaning a compromise of one layer provided a viable path to sensitive data stores. This matters because CI\u002FCD pipelines are high-value targets: they routinely touch secrets, cloud credentials, and production systems, yet are often treated as development-time concerns rather than security-critical runtime infrastructure. Up to 1.85% of customer workspaces had variables potentially decrypted, demonstrating that misconfigured identity federation and weak build sandboxing can have direct customer-facing consequences.","**Immediate actions:**\n- Audit all OIDC token configurations in CI\u002FCD pipelines to ensure tokens are scoped to the minimum necessary audience, subject, and permissions.\n- Rotate all secrets and customer variables that may have been accessible during the October 20–21 window.\n- Enforce strict build-environment isolation so that one build job cannot read the filesystem, network namespace, or secrets of another.\n\n**Long-term improvements:**\n- Implement runtime security monitoring (e.g., eBPF-based tooling) on build nodes to detect anomalous process execution or lateral movement attempts.\n- Adopt a zero-trust model for internal service access from build infrastructure, requiring explicit authentication even for internal APIs.\n- Regularly red-team CI\u002FCD pipelines specifically for isolation-escape and credential-exfiltration paths.\n\n**Detection measures:**\n- Establish alerting on any build process attempting to access secret stores or cloud metadata endpoints outside its declared scope.\n- Maintain immutable audit logs of all secret-retrieval events, including which build, user, and timestamp initiated the request.\n- Set anomaly thresholds on OIDC token issuance volume and flag out-of-band token exchange attempts for immediate review.",[12,13,14,15,16],"NIST SP 800-53 SI-17: Fail-Safe Procedures","NIST SP 800-53 IA-5: Authenticator Management","NIST CSF 2.0 PR.AA-05: Access permissions and authorizations","NIS2 Article 21(2)(e)","MITRE ATT&CK T1552.001: Credentials in Files",{"NIS2 Article 21(2)(e)":18,"NIST SP 800-53 SI-17: Fail-Safe Procedures":19,"MITRE ATT&CK T1552.001: Credentials in Files":20,"NIST SP 800-53 IA-5: Authenticator Management":21,"NIST CSF 2.0 PR.AA-05: Access permissions and authorizations":22},"This point mandates security in the acquisition, development, and maintenance of systems including vulnerability handling; the build-isolation escape reflects a failure to apply secure-by-design principles to CI\u002FCD pipeline architecture.","SI-17 requires that systems fail to a secure state; inadequate build sandbox isolation meant a partial escape did not fail safely and instead granted broader access.","The attacker accessed build histories and customer variables—stored credentials artifacts—after the initial escape, matching this technique for harvesting credentials from accessible file or environment stores.","IA-5 governs the proper scoping and lifecycle of authenticators including OIDC tokens; the misconfigured OIDC configuration directly violates the principle that credentials must be tightly scoped and properly validated.","This category requires that access permissions are managed consistently with least-privilege; the OIDC misconfiguration granted the build environment broader access to secrets than its role warranted.","published","2026-11-10T20:20:24.661689+00:00","2026-11-10T20:20:24.645+00:00",{"id":7,"url":27,"slug":28,"title":29},"https:\u002F\u002Fwww.stepsecurity.io\u002Fblog\u002Frailway-security-incident-cicd-runtime-security","railway-s-security-incident-why-ci-cd-needs-runtime-security-63f3b2","Railway’s Security Incident: Why CI\u002FCD Needs Runtime Security",[31,37],{"id":32,"name":33,"slug":34,"description":35,"color":36},"1ec88fde-2d0f-4ed8-932a-33f5ccc0fdc7","Access Control","access-control","Excessive privileges, missing MFA, weak auth","#f97316",{"id":38,"name":39,"slug":40,"description":41,"color":42},"859cf0ad-a7e9-42bb-a75d-bac6511fa5d5","Configuration Management","configuration-management","Misconfigs, default credentials, exposed services","#eab308",[],[45,49,53],{"slug":46,"name":47,"problem":48},"identity-threat-detection","Identity threat detection and response (ITDR)","Attackers who log in with real, stolen credentials get noticed.",{"slug":50,"name":51,"problem":52},"secrets-management","Secrets management","API keys, tokens and passwords stop leaking from code, chat and configuration files.",{"slug":54,"name":55,"problem":56},"network-segmentation","Network segmentation and microsegmentation","One compromised machine can no longer reach everything else."]