AAK-OAUTH-3P-001: Repo depends on a third-party agent-platform SDK
- Severity
- MEDIUM
- Category
- Supply Chain (
supply-chain) - Scanner
agent_audit_kit/scanners/oauth_surface.py- Auto-fixable
- No.
- SARIF name
ThirdPartyAgentPlatformSdk
What it detects
The project depends on an agent-platform SDK (context-ai, langsmith, helicone, langfuse, humanloop, MCP SDK). Informational finding so reviewers audit the vendor's OAuth-scope footprint before merging. Raised to MEDIUM because the April 19 2026 Vercel × Context.ai incident showed a single vendor compromise can turn into a production breach via transitive OAuth grants.
How to fix
Pin the SDK to an exact version, audit the OAuth scopes it requests, and keep any deployment-level grants (Vercel, GCP, Workspace) in a secrets vault — never in a committed env file. See Vercel's bulletin for sensitive-env-var guidance: https://vercel.com/kb/bulletin/vercel-april-2026-security-incident
To confirm the finding is gone, report only this rule:
agent-audit-kit scan . --rules AAK-OAUTH-3P-001
Limitations
Reads the dependency names of the root package.json (dependencies, devDependencies, peerDependencies), the [project].dependencies of the root pyproject.toml and the root requirements*.txt, and matches each name exactly against a fixed list (context-ai, langsmith, helicone, langfuse, humanloop, @langchain/langsmith, @modelcontextprotocol/sdk and the Python mcp, langsmith-py and helicone-py). A requirement with extras (mcp[cli]>=1.2.0), another capitalisation (Langfuse), [project.optional-dependencies] or Poetry tables, a lockfile and a sub-directory manifest are not reported. A package.json or pyproject.toml over 2 MB is not read. A pyproject.toml with a key of more than 64 dotted parts, or holding an integer Python cannot convert (one past 4,300 digits), is refused and reported as AAK-INTERNAL-SCANNER-FAIL.
References
- OWASP Agentic Top 10: ASI04 (Agentic Supply Chain Vulnerabilities)
- Incidents and advisories: VERCEL-2026-04-19
- CSA AI Controls Matrix (AICM): STA-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-OAUTH-3P-001.md: the page then shows that text, with the registry reference appended under it.