Skip to content

AAK-A2A-006: Weak JWT validation configuration

Severity
HIGH
Category
A2A Protocol (a2a-protocol)
Scanner
agent_audit_kit/scanners/a2a_protocol.py
Auto-fixable
No.
SARIF name
WeakJwtValidation

What it detects

An A2A Agent Card disables JWT signature verification or allows the 'none' algorithm, permitting token forgery.

How to fix

Enable signature verification and restrict algorithms to RS256 or ES256. Never allow 'none'.

To confirm the finding is gone, report only this rule:

agent-audit-kit scan . --rules AAK-A2A-006

Limitations

Reads verifySignature or verify_signature set to false, and an algorithms list that contains none. algorithm: none (singular), skipSignatureVerification: true, verify: false, and switched-off expiry or audience checks (verify_exp: false, verify_aud: false) are not read.

References


All rules. This page is generated from the rule registry when the documentation is built; to change it, change the rule in agent_audit_kit/rules/builtin.py. To give the rule a hand-written write-up, add docs/rules/AAK-A2A-006.md: the page then shows that text, with the registry reference appended under it.