AI systems need credentials to be useful: API keys for model providers, tokens for the tools an agent calls, service accounts for the data it reads. Those credentials tend to end up in the places that are easiest to paste into, which are also the hardest to protect: configuration files, notebooks, prompts, and shared chat threads. This playbook covers the credential gaps FlashTower's assessment flags for AI systems: secrets embedded where they can leak, keys shared between people or systems, authentication nobody can describe, and AI systems that can read other secrets. None of them needs new tooling to start fixing; they need an owner and an inventory.
The checks at a glance
- Critical: Credentials embedded in code, configuration, or prompts
- High: AI system uses a shared key or shared account
- High: AI system can read passwords, keys, or secrets
- Medium: Unknown how a high-impact AI system authenticates
Work through them in that order. The sections below explain each gap, what to change, and what evidence shows it is closed.
Credentials embedded in code, configuration, or prompts
FlashTower rates this gap Critical. It applies when the AI system authenticates with a key embedded in code, configuration files, or prompts.
Embedded keys leak through repositories, logs, screenshots, and prompt histories, and cannot be rotated without redeploying. Models can also reveal secrets placed in their context.
What to do
- Rotate the exposed key now.
- Move secrets to a secrets manager and inject them at runtime; never place them in prompts.
- Enable secret scanning on your repositories.
Evidence to keep
- Key rotation record
- Secrets manager configuration
- Secret scanning enabled
Mapped to: NIST CSF 2.0 PR.AA-01, ISO 27001 A.5.17, SOC 2 TSC CC6.1, OWASP LLM Top 10 LLM02.
AI system uses a shared key or shared account
FlashTower rates this gap High. It applies when the AI system authenticates with a shared API key or shared account.
Shared credentials cannot be attributed to a person or system, are rarely rotated, and usually carry more access than any single use needs.
What to do
- Issue a dedicated, least-privilege credential for this AI system.
- Rotate the shared key and limit who can retrieve it.
Evidence to keep
- Dedicated credential inventory entry
- Rotation record
Mapped to: NIST CSF 2.0 PR.AA-01, ISO 27001 A.5.16, SOC 2 TSC CC6.1.
AI system can read passwords, keys, or secrets
FlashTower rates this gap High. It applies when the AI system has access to credentials or secrets as data.
A model that can read secrets can be induced — through prompt injection or error — to reveal or misuse them. Secrets should be isolated from AI context wherever possible.
What to do
- Remove secrets from data sources the AI can read (wikis, tickets, repositories, shared drives).
- Enable secret scanning and rotate anything discovered.
Evidence to keep
- Secret scanning results
- Data source scoping
Mapped to: OWASP LLM Top 10 LLM02, ISO 27001 A.5.17, NIST CSF 2.0 PR.DS-01.
Unknown how a high-impact AI system authenticates
FlashTower rates this gap Medium. It applies when the AI system has high-impact capabilities and its credential type is unknown.
You cannot rotate, scope, or revoke a credential you cannot identify.
What to do
- Identify the credential this system uses, its owner, scope, and rotation schedule.
Evidence to keep
- Credential inventory entry
Mapped to: NIST CSF 2.0 ID.AM-08, ISO 27001 A.5.17.
Where to start this week
- Search repositories, prompt libraries, and automation tools for keys and tokens used by AI systems.
- Give each AI system its own credential, scoped to what it needs, with a named owner.
- Move every credential into a secrets manager and rotate the ones that were ever stored in plain text.
Related on FlashTower: AI permission risk checker · Guide: how to audit AI permissions.
How FlashTower checks this
Each check above is a rule in FlashTower's risk engine (FT-CRD-001, FT-CRD-002, FT-CRD-005, FT-CRD-004). The engine is deterministic: the same answers always produce the same findings, and each finding comes with the remediation steps and evidence list shown here. You can run these checks against your own environment with the free AI risk assessment.
Frequently asked questions
Which frameworks are these checks mapped to?
NIST Cybersecurity Framework; ISO/IEC 27001:2022 Annex A; AICPA Trust Services Criteria (SOC 2); OWASP Top 10 for LLM Applications. A mapping means the check is topically related to that control. It is not an audit result and does not show that any control is met.
Who should own this work?
Usually security engineers and platform teams, with one named person accountable for each open item and a date to review it again.
