T09 · Insecure Skill Coding Practices
- Location
SKILL.md:31- Finding
Predictable Shared Temporary Paths Used for Potentially Sensitive Screenshots
- Content
View full analysis
--path /tmp/win.png # pick coords from this ``` `SKILL.md:48` ```bash import -window /tmp/win.png # screenshot to pick coords (needs imagemagick) ``` `SKILL.md:123-124` ```bash wlcctrl --windowcapture --path /tmp/w.png wlcctrl --fullscreencapture --path /tmp/f.png [-o ] ``` `SKILL.md:145` ```bash import -window /tmp/w.png # screenshot (imagemagick) ``` `references/details.md:54-57` ```bash wlcctrl --windowcapture --path /tmp/window.png wlcctrl --fullscreencapture --path /tmp/full.png wlcctrl --setarea --path /tmp/area.png wlcctrl --workspacecapture --path /tmp/workspace.png ``` `references/details.md:204-206` ```bash import -window /tmp/window.png # single window (preferred) import /tmp/full.png # whole screen (interactive; needs click) maim /tmp/full.png # whole screen (non-interactive) ``` `references/details.md:253` ```bash xdotool windowactivate and capture with import -window /tmp/w.png. ``` ### Technical Analysis The Skill repeatedly instructs the Agent to store window, workspace, and full-screen captures under fixed, predictable names in the shared `/tmp` directory. It does not create a private temporary directory, generate unique filenames, enforce restrictive permissions, check for pre-existing symbolic links, or remove captures after use. Screenshots may contain confidential application data, notifications, documents, account information, or other desktop content. The effective exploitability depends on the operating system's temporary-file protections, the capture ...[truncated 2075 chars]- Remediation
View remediation
