Hosted AI Models Face Abuse Risks as Credentials Leak Through Public Code
Breach & Incident Intelligence · 2 sources · Updated 3mo ago · First seen Sep 3, 2026

Permiso documented how hosted AI models can be hijacked for “dark roleplaying,” underscoring that externally accessible model services can be manipulated for harmful or policy-evading use cases. The issue adds an abuse-management requirement to AI deployments alongside conventional application and cloud security controls.
Separately, Wiz found hundreds of validated, still-active secrets in public code repositories during a month-long scan, with AI-service credentials disproportionately represented. Jupyter notebooks and AI-agent configuration files such as mcp.json frequently exposed keys through hardcoded values, outputs, diagnostics, and error messages; 56% of company-impacting secrets were in employees’ personal repositories. Organizations should expand secret scanning to AI providers, scan Git history and CI/CD pipelines, block commits containing notebook outputs, and revoke or rotate exposed credentials.
Why it matters
Impact assessment
Public exposure of active AI-service credentials creates immediate risk of unauthorized model/API consumption, data access through connected AI services, cost fraud, and compromise of downstream workflows. The exposure is broad across organizations using hosted AI platforms, with elevated risk for development, data science, research, and AI-agent teams that publish notebooks or maintain public repositories.
- Wiz validated hundreds of exposed secrets during an approximately month-long scan of thousands of public repositories; many remained active.
- The research estimated that approximately 40% of discovered secrets could have real business impact and identified valid credentials linked to more than 30 companies and startups, including multiple Fortune 100 organizations.
- A credential reported to Microsoft Security Response Center was rated Critical and could have enabled disclosure of sensitive HR data.
- Exposures are not limited to corporate source-control organizations: 56% of secrets with company impact were in employees' personal repositories.
- Active AI credentials can enable unauthorized inference use, token/compute spending, access to datasets or agent-connected services, and reputational damage from misuse of an organization’s AI accounts.
- Hosted-model abuse, including harmful or policy-evasive prompting characterized as “dark roleplaying,” adds an operational abuse-management risk even where conventional cloud and application controls are present.
- No specific confirmed exploitation campaign, victim intrusion, or actor attribution was reported in the supplied material.


