Skip to content

AAK-MARKETPLACE-005: Marketplace manifest could not be read

Severity
LOW
Category
Supply Chain (supply-chain)
Scanner
agent_audit_kit/scanners/marketplace_manifest.py
Auto-fixable
No.
SARIF name
MarketplaceManifestUnreadable

What it detects

A marketplace.json is not valid JSON, is not UTF-8 text, or is JSON whose top level is not an object, so none of its plugin entries could be checked for a signature, broad permissions, a typosquatted name or a mutable source ref (AAK-MARKETPLACE-001..004). AAK reports this rather than skipping the file, which is what it used to do: a manifest the scanner cannot read is not a clean one, and a client that parses more leniently may still install what it lists.

How to fix

Fix the manifest so it is a UTF-8 JSON object (a trailing comma, a comment and an unquoted key are the usual causes), then re-run the scan so its plugins are audited. If the file is not a plugin marketplace manifest, rename it.

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

agent-audit-kit scan . --rules AAK-MARKETPLACE-005

Limitations

A marketplace.json over 1 MB is reported here as unreadable.

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-MARKETPLACE-005.md: the page then shows that text, with the registry reference appended under it.