T08 · Insecure Dependencies
- Location
SKILL.md:60- Finding
Untrusted Fork Content Can Be Installed into the Active Agent Skill Directory
- Content
View full analysis
` paths before copying them. `--filter=blob:none` alone does **not** keep the cache small if the full worktree is checked out; that checkout will still download most or all needed blobs. It still preserves history metadata for SHA queries. - **Subsequent runs**: fetch + hard-reset to the upstream default branch, and re-apply sparse-checkout for only the requested `skills/` paths before copying. If updating the whole `sn-*` bundle, expect most/all skill blobs to be downloaded. - **URL changed**: if cache's `origin` differs from the requested URL, delete and re-clone. ``` ```text 1. **Move** (not copy) any existing `//` into a single timestamped backup bucket shared by all skills in this run: `~/./skills_backup///` (e.g. `2026-04-30T15-29-07Z`). 2. **Copy** `/skills//` → `//`. **Never symlink** (`ln -s`) from the cache. The cache lives under `~/.cache/` with permissions the agent runtime may not be able to traverse, and some runtimes refuse to load skills resolved through symlinks. Always do a real recursive copy so the installed tree is self-contained and owned by the agent skills dir. 3. **Write `.sn-version`** with the upstream subtree SHA inside the new copy. ``` ### Technical Analysis The update procedure explicitly permits the user to replace the default repository with a fork URL. It ...[truncated 2446 chars]- Remediation
View remediation
