diff --git a/AWS.py b/AWS.py index fb4bf66..aa57f69 100644 --- a/AWS.py +++ b/AWS.py @@ -82,7 +82,7 @@ def check_aws(key: APIKey): continue # Admin keys will never expose this policy even if they are quarantined. - if "AWSCompromisedKeyQuarantine" in policy["PolicyName"]: + if "AWSCompromisedKeyQuarantine" in policy["PolicyName"] and not key.bedrock_enabled: key.useless = True key.useless_reasons.append('Quarantined Key') break