Skip to content
Foo GuardDocs
DOCUMENTATION

AG-006

Long-Lived Credential

high

Page text and source link for your AI assistant. Nothing is sent automatically.

What Foo Guard detects

One or more credentials are explicitly marked as long-lived.

When this rule triggers

a credential explicitly declares longLived: true.

Foo Guard evaluates the normalized configuration supplied to the scanner. A finding describes configuration risk; it does not establish that an attack occurred. An absent finding does not prove that an undeclared capability is safe.

How to fix

Use short-lived tokens where supported and define rotation and revocation procedures for credentials that cannot be short-lived.

Verify the change

Update the actual agent configuration and the underlying permissions or controls, then run the scanner again. Inspect the finding’s evidence path to confirm the intended setting changed. Do not clear a finding by changing a declaration that no longer reflects the deployed agent.

Related rules

Build confidently. Keep your agents accountable.Get help ↗
Search Foo Guard Docs