Back to skill

Security audit

Xpcomment2

Security checks for vulnerabilities and agentic risk

Overview

The skill is purpose-aligned for editing image comments, but its command templates and defaults create review-worthy risk of unsafe shell execution and irreversible metadata changes.

Review before installing. Use it only for trusted local images, avoid copying untrusted comment text or paths into shell commands, make backups before add/remove operations, and require explicit confirmation for delete, overwrite, wildcard, or recursive runs. Do not run the sudo install command unless you intentionally want to install the system exiftool package.

Vulnerability Patterns
  • Insecure Skill Coding PracticesFinds exploitable flaws such as hardcoded secrets or command injection
  • Skill Instruction HijackingAlters the agent's session goals or safety constraints when the skill loads
  • Agent Memory PoisoningWrites attacker-controlled rules into memory that affect later sessions
  • Remote Payload Retrieval and ExecutionFetches external code whose behavior can change after review
  • Embedded Malicious CodeShips malicious scripts inside the skill and executes them locally
Findings (1)

T09 · Insecure Skill Coding Practices

Error
Location
SKILL.md:39
Finding

Shell Command Injection Through Unsafely Interpolated Metadata and File Paths

Content
View full analysis
Remediation
View remediation
` - `-overwrite_original` - `--` - `` 3. Use `shell=false` or the equivalent setting in the implementation environment. 4. If Bash is unavoidable, apply a proven shell-escaping function to every dynamic value. Do not rely on manually adding double quotes. 5. Canonicalize and validate paths before execution. Restrict operations to explicitly authorized directories where practical. 6. Insert `--` before user-controlled paths to prevent pathnames beginning with a hyphen from being treated as options. 7. Avoid embedding wildcards in user-controlled shell strings. Enumerate matching files through a safe filesystem API and pass each path as a separate argument. 8. Require explicit user confirmation before recursive operations or bulk modification. 9. Consider removing `-overwrite_original` by default or creating an independent backup before destructive metadata changes. 10. After modification, verify the resulting metadata using a separate safely parameterized read operation. ]]>
Vulnerability Patterns
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
Findings (3)

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

The skill declares very broad natural-language triggers and repeatedly instructs the agent to 'must use' or 'immediately refer' to this skill whenever a user mentions comments, tags, XPComment, or image metadata. This can cause unintended invocation in ambiguous contexts and may lead the agent to perform metadata modification or deletion when the user did not clearly request this specific operation or tool.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The skill documents overwrite and deletion commands using exiftool with -overwrite_original and presents them as default behavior without an explicit warning or confirmation requirement. Because these actions irreversibly change file metadata and suppress backup creation, an accidental or ambiguous invocation can silently destroy existing metadata with no easy recovery path.

Content

No source excerpt is available for this finding.

Sudo/Root Execution

Medium
Category
Privilege Escalation
Confidence
70% confidence
Finding

Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.

Content

Scanner excerpt · SKILL.md (reported line 73)May include surrounding context.

md
## 주의사항

1. 파일 경로에 공백이 있으면 반드시 따옴표로 감싼다
2. exiftool 미설치 시 먼저 설치: `sudo apt install libimage-exiftool-perl`
3. 작업 후 확인은 read 명령으로

---