other
- Location
SKILL.md:130- Finding
Overbroad termination of unrelated Google Chrome processes
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md:130-132
Vulnerability Type: Overbroad destructive process termination
Risk Level: MediumCode Snippet:
markdown - **启动前先确认没有残留的本 skill Chrome 实例**(`pkill -f "Google Chrome.app"` 或 stop.flag), 同一 profile 不能被两个 Chrome 同时占用。The same instruction is duplicated in
repo/SKILL.md:130-132.Technical Analysis
The Skill instructs the agent to ensure that no prior Skill-controlled Chrome instance remains, but the suggested
pkill -f "Google Chrome.app"command is not scoped to the Skill's process, profile directory, PID, or working directory. It can match and terminate unrelated Google Chrome processes belonging to the current user.The task only authorizes management of the dedicated browser instance launched for video downloading. Terminating unrelated browser sessions crosses that authorization boundary. The documented
stop.flagalternative is safer, but its presence does not technically constrain or prevent use of the overbroadpkillcommand.Attack Path
- The user invokes the Skill to download a video while unrelated Google Chrome sessions are active.
- The agent follows the startup instruction in
SKILL.md. - To clear an allegedly residual Skill browser, the agent executes:
bash pkill -f "Google Chrome.app" - The operating system terminates all processes whose command line matches that pattern, including Chrome sessions not launched by the Skill.
- The user's unrelated browser activity is interrupted without process-specific validation or confirmation.
Impact Assessment
Exploitation does not grant additional privileges, but it allows the Skill's instructions to affect processes outside the authorized video-download workflow. Unrelated personal or business browsing sessions may be terminated, causing service interruption and possible loss of unsaved form, document, or application state.
No eviden ...[truncated 277 chars]
- Remediation
View remediation
Remediation Suggestions
- Remove the broad
pkill -f "Google Chrome.app"instruction. - Use
stop.flagas the normal shutdown mechanism for Skill-managed browser instances. - Record the PID of the browser process launched by the Skill and terminate only that PID.
- Before terminating a recorded PID, verify that its executable, command line, profile path, and expected parent process correspond to the Skill-managed instance.
- If ownership cannot be established, stop and request explicit user confirmation rather than terminating matching processes.
- Apply the same correction to the duplicated instruction in
repo/SKILL.md.
- Remove the broad
