You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
apc install owner/repo --skill foo fetches SKILL.md from GitHub over HTTPS but performs no integrity verification (checksum, signature, or commit pinning). A supply chain attack on the source GitHub repository would silently install malicious skill content to all AI tools on the machine.
Affected Code
src/skills.py — fetch_skill_from_repo():
resp=httpx.get(url, follow_redirects=True, timeout=15)
# ... parses and saves without any hash check
Attack Scenario
Attacker gains write access to a popular skills repo (e.g. via compromised maintainer account, dependency confusion, or social engineering)
Attacker modifies skills/foo/SKILL.md to contain prompt injection payloads
Severity: P2
Summary
apc install owner/repo --skill foofetches SKILL.md from GitHub over HTTPS but performs no integrity verification (checksum, signature, or commit pinning). A supply chain attack on the source GitHub repository would silently install malicious skill content to all AI tools on the machine.Affected Code
src/skills.py — fetch_skill_from_repo():Attack Scenario
skills/foo/SKILL.mdto contain prompt injection payloadsapc install owner/repo --skill fooinstall the malicious skill silentlyImpact
Recommended Mitigations
apc install owner/repo@<sha> --skill footo pin to a specific commit hashchecksums.jsonlisting SHA256 hashes per skill;apc installcan verify before writing-ybypassing)At minimum, display the commit SHA being fetched so users can audit:
References