fix(plugins): harden skill copy — no symlink-deref, scrub template PAT (#32 security) #149
Reference in New Issue
Block a user
Delete Branch "fix/rfc2843-32-copytree-symlink-scrub"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Adversarial review of the #32 chain found 2 leak-hardening gaps in AgentskillsAdaptor: (1) copytree symlinks=False derefs a malicious skill-tree symlink into agent-readable /configs/skills (arbitrary-file-read) → symlinks=True; (2) _SCRUB_KEYS omitted MOLECULE_TEMPLATE_REPO_TOKEN/MOLECULE_ADMIN_TOKEN → plugin setup.sh could exfil the PAT → added. Both bounded today (our own repos) but load-bearing for #31 marketplace. Tests added. 🤖
Security hardening: copytree symlinks=True (no deref into agent-readable /configs/skills) + scrub template/admin tokens from plugin setup.sh env. Tests added. APPROVE.
Security hardening: copytree symlinks=True (no deref into agent-readable /configs/skills) + scrub template/admin tokens from plugin setup.sh env. Tests added. APPROVE.