Back to skill

Security audit

global proposal

Security checks for vulnerabilities and agentic risk

Overview

ClawScan rates this skill suspicious with medium confidence because its PDF-preview instructions delete a shared temporary directory, and part of the artifact was only partially inspected.

Review the PDF-preview cleanup instructions and the partially inspected script before installing. The scan recommends not installing; the reported concern is unsafe cleanup, while incomplete inspection means the evidence does not cover the entire artifact.

Vulnerability Patterns
  • 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
  • Unauthorized Access and Privilege EscalationObtains permissions beyond the task's legitimate needs
Vulnerability Patterns
  • Output HandlingUnvalidated Output Injection, Cross-Context Output, Unbounded Output
  • Tool MisuseTool Parameter Abuse, Chaining Abuse, Unsafe Defaults
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
Findings (4)

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
1. **Read `scripts/arabic_docx_template.js`** — it contains tested helper functions (`p`, `h1`, `h2`, `h3`, `bullet`, `numItem`, `tCell`, `buildTable`, `tableCa

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
97% confidence
Finding

The literal command recursively removes /tmp/render without checking whether its contents belong to this workflow. Although intended as routine PDF-preview cleanup rather than malicious tool abuse, it can cause data loss or interfere with other processes; this is the same underlying issue as the SQP-2 finding.

Content

Scanner excerpt · references/arabic-docx-guide.md (reported line 490)May include surrounding context.

Always generate a PDF preview and inspect pages:

bash
soffice --headless --convert-to pdf "document.docx"
rm -rf /tmp/render && mkdir -p /tmp/render
pdftoppm -r 60 -jpeg -jpegopt quality=60 "document.pdf" /tmp/render/page

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
90% confidence
Finding

Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).

Content

Scanner excerpt · references/arabic-docx-guide.md (reported line 490)May include surrounding context.

Always generate a PDF preview and inspect pages:

bash
soffice --headless --convert-to pdf "document.docx"
rm -rf /tmp/render && mkdir -p /tmp/render
pdftoppm -r 60 -jpeg -jpegopt quality=60 "document.pdf" /tmp/render/page

The PDF preview workflow recursively deletes /tmp/render without warning or confirmation.

Medium
Category
Output Handling
Confidence
98% confidence
Finding

The preview workflow unconditionally deletes the fixed, shared path /tmp/render, potentially removing unrelated files belonging to the executing user or disrupting concurrent jobs. Temporary preview cleanup is legitimate in this document-generation context, but the guide never establishes ownership of this directory before recursively deleting it.

Content

No source excerpt is available for this finding.