Long-lived Bedrock API key in use
- Severity
- High
- Service
- Bedrock
- Check ID
- BEDROCK_API_KEY_LONG_LIVED
What this check finds
An IAM service-specific credential scoped to bedrock.amazonaws.com is active. These "Bedrock API keys" are static, long-term secrets that can invoke models directly — AWS only issues them as long-term credentials, so there is no short-lived variant to fall back on. A leaked key grants model access until someone notices and revokes it, with no session expiry to limit the damage, and the resulting invocations are attributed to the owning IAM user rather than to whoever actually used the key.
Passing looks like: No long-lived Bedrock API keys.
How to fix it
Prefer IAM roles with temporary credentials (STS) over API keys for Bedrock access. If a key is genuinely required, set a short expiry and rotate it: aws iam update-service-specific-credential --user-name USER --service-specific-credential-id ID --status Inactive, then delete it with delete-service-specific-credential.
AWS console
IAM → Users → select user → Security credentials → Bedrock API keys.
Compliance controls it is evidence for
A failing result counts against these controls in KloudLytics; a passing one is evidence towards them. How compliance mapping works
| Framework | Controls |
|---|---|
| NIST SP 800-53 Rev5 (Moderate) |
|
| NIST Cybersecurity Framework 2.0 |
|
| ISO/IEC 27001:2022 Annex A |
|
Checked on every scan
KloudLytics runs this check each time it scans a connected AWS account, through a read-only role, and lists every affected resource with its region. On Pro and Business a fix is written for the specific resource rather than the general case above. The exact access it needs
More Bedrock checks
- CriticalBedrock agent IAM role has broad permissions
- CriticalBedrock API key belongs to an administrator
- HighBedrock agent has no guardrail applied
- HighBedrock knowledge base not encrypted with CMK
- HighBedrock model invocation logging not enabled
- HighExternal model weights imported into Bedrock without governance review
- HighNo AWS Budget alert configured for Bedrock spend
- HighNo Bedrock guardrails configured