Undeclared Tool Scope
- Category
- MCP Least Privilege
- Confidence
- 70% confidence
- Finding
Without declared permissions the skill's intent is opaque and cannot be validated.
- Content
Security audit
Security checks for vulnerabilities and agentic risk
This skill is a disclosed, read-only PikPak share audit tool with some normal local CLI risks that users should run only in a trusted environment.
Install only if you are comfortable letting the skill invoke your local PikPak CLI to list share metadata. Run it from a trusted shell with trusted PATH, interpreter, script directory, and `PIKPAK_BIN` if set; review generated reports as private account metadata and do not treat unknown or zero-visit fields as automatic deletion reasons.
Without declared permissions the skill's intent is opaque and cannot be validated.
subprocess module calls execute external commands. Without careful input validation, this enables command injection.
if token:
cmd += ["--token", token]
try:
proc = subprocess.run(cmd, capture_output=True, text=True, timeout=90)
except FileNotFoundError:
die("cli_unavailable (exit_code=127)")
except subprocess.TimeoutExpired:
The executable name comes from the PIKPAK_BIN environment variable, which allows an attacker controlling the environment to replace the intended PikPak CLI with an arbitrary program. Because the script then executes that value directly, this becomes arbitrary code execution in the security context of whoever runs the audit, even though shell metacharacter injection is avoided.
if token:
cmd += ["--token", token]
try:
proc = subprocess.run(cmd, capture_output=True, text=True, timeout=90)
except FileNotFoundError:
die("cli_unavailable (exit_code=127)")
except subprocess.TimeoutExpired:
This markdown file uses Chinese throughout and does not indicate that users may choose another language or that the content is intentionally limited to a Chinese-speaking audience. Under the stated policy, forcing a specific language without opt-in can be a natural-language policy violation.
No suspicious patterns detected.