Bain Pyxis: Exposed Frontend Credentials and SQL Injection Reach Data and Identity Operations
CodeWall found working credentials in a public Pyxis JavaScript bundle and established a session in 18 minutes. A subsequent SQL-injection path ran under a broadly privileged database account; a separate GraphQL path allowed identity-directory operations. These are distinct authentication and authorization boundaries. CodeWall reported remediation by March 19, 2026, and verification-only testing, not malicious exploitation.
Threat Analysis
- Initial access. Public frontend credentials enabled platform login; CodeWall inferred an AI service-account role from the redacted identity.
- Database boundary. SQL injection reached 11 databases under an overprivileged backend account. Reachable data does not establish wholesale exfiltration.
- Separate escalation surfaces. The report identifies GraphQL identity writes, logged JWTs, exports and database cloning. The system prompt was exposed through conversation metadata, not a demonstrated prompt table.
- Response. CodeWall reported all findings remediated before publication.
Applicable AIDEFEND Defenses (3)
What Defenders Should Do Now
- Revoke exposed credential objects at their issuers and separately assess already-issued tokens, sessions and any accounts created through the identity-write path. Removing a frontend copy or rotating a root password does not prove those objects are unusable.
- Constrain database, export and identity operations by exact task, resource and destination; remove generic SQL or direct-API bypasses.
- Test secret detectors against actual frontend bytes and relevant credential formats before publication and on deployed bundles.
- Run authorized regression and red-team tests and record scope, prerequisites and reproducible results.
2 additional considerations
Frontend build secret detection as a release gate
Autonomous offensive testing as a routine operational control
Conclusion
Pyxis shows why exposed credentials and excessive backend authority must be addressed together. Keep machine credentials outside browser artifacts, enforce exact object and action authorization, and reduce tool authority. Protecting prompt metadata is an access-control requirement; structural instruction/data separation does not provide prompt confidentiality. AIDEFEND mappings identify controls a team can implement and verify, rather than certify that the affected platform already has them.
Last updated: