AAK-A2A-004: A2A endpoint using HTTP instead of HTTPS
- Severity
- MEDIUM
- Category
- A2A Protocol (
a2a-protocol) - Scanner
agent_audit_kit/scanners/a2a_protocol.py- Auto-fixable
- No.
- SARIF name
A2aHttpEndpoint
What it detects
An A2A agent endpoint uses HTTP instead of HTTPS.
How to fix
Use HTTPS for all A2A endpoints.
To confirm the finding is gone, report only this rule:
agent-audit-kit scan . --rules AAK-A2A-004
Limitations
Reads url, endpoint, baseUrl and base_url on the card and url and endpoint on each skill, and matches a value that starts with http:// or that a URL parser reads as http (a leading space, HTTP:/host, a tab in the scheme). A plain-HTTP address under additionalInterfaces, an OAuth tokenUrl, or a ws:// endpoint is not read or not matched. A URL that Node, requests and Rust's url crate read differently from curl, httpx and urlsplit, which keep a backslash inside the authority, is judged by the less safe of the two readings.
References
- OWASP Agentic Top 10: ASI07 (Insecure Inter-Agent Communication)
- Adversa AI MCP Top 25 (AAK-defined ids): ADV-A2A-04 (A2A HTTP Endpoint)
- CSA AI Controls Matrix (AICM): CEK-08
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-004.md: the page then shows that text, with the registry reference appended under it.