Skip to content

AAK-MARKETPLACE-004: Plugin source pins to a mutable git ref

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

What it detects

A plugin entry pins to a branch (main/master) or tag without commit SHA. The maintainer (or an attacker with write access) can silently change plugin behavior post-install — the 'maintainer takeover' pattern from the June 2024 xz incident and its 2026 re-runs.

How to fix

Pin to an immutable commit SHA. Re-pin during a reviewed dependency bump.

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

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

Limitations

Judges a plugin's source only when it is an object with a ref, branch or tag that is not 7 to 40 hex characters. A source with no ref at all, which follows the default branch, a source written as a string (github:acme/tool@main) and an all-digit tag such as 20260101, which reads as a short commit hash, are not reported. A marketplace.json over 1 MB is not read, and AAK-MARKETPLACE-005 reports it 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-004.md: the page then shows that text, with the registry reference appended under it.