Back to skill

Security audit

dabafvarvadfvavaevad

Security checks for vulnerabilities and agentic risk

Overview

This DOCX skill is mostly purpose-aligned, but it includes system-level and global dependency installation guidance without enough scoping or user-control safeguards.

Review this skill before installing in shared or sensitive environments. It should be used only where document-processing tools are already trusted and installed, or where a user/admin explicitly approves dependency installation. Prefer running it in a contained workspace, writing edited DOCX files to new filenames, and keeping backups of source documents.

Vulnerability Patterns
  • Insecure DependenciesIntroduces malicious components through unsafe dependency sources
  • 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)

T08 · Insecure Dependencies

Warning
Location
SKILL.md:191
Finding

Unpinned Third-Party Dependency Installation

Content
View full analysis

Vulnerability Details

File Location: SKILL.md, lines 191–197
Vulnerability Type: Unpinned and insufficiently verified third-party dependencies
Risk Level: Medium

Vulnerable Code

markdown
## Dependencies

Required dependencies (install if not available):

- **pandoc**: `sudo apt-get install pandoc` (for text extraction)
- **docx**: `npm install -g docx` (for creating new documents)
- **LibreOffice**: `sudo apt-get install libreoffice` (for PDF conversion)
- **Poppler**: `sudo apt-get install poppler-utils` (for pdftoppm to convert PDF to images)
- **defusedxml**: `pip install defusedxml` (for secure XML parsing)

Technical Analysis

The skill directs the agent to install dependencies without fixed versions, integrity hashes, lockfiles, or provenance validation. The commands npm install -g docx and pip install defusedxml resolve mutable package versions from third-party registries at installation time. Consequently, the code reviewed during one audit may differ from the code installed later.

The global npm installation also expands the affected scope by placing package files and executables into a shared environment. Depending on local npm configuration, this command may require elevated permissions. Package installation can execute package-controlled lifecycle hooks, meaning compromise does not necessarily require the agent to import or invoke the installed library afterward.

The operating-system packages are obtained from configured repositories and therefore generally have stronger repository-level verification. However, the use of sudo means their installation occurs with root privileges and should not be performed automatically without explicit authorization and trusted repository configuration.

Attack Path

  1. An attacker compromises a referenced registry package, its maintainer account, or the package publication pipeline.
  2. The attacker publishes a malicious version under the expected package name.
  3. An ag ...[truncated 1438 chars]
Remediation
View remediation

Remediation Suggestions

  1. Pin every registry dependency to a reviewed exact version rather than allowing the latest release:

    bash
    npm install --save-exact docx@REVIEWED_VERSION
    pip install defusedxml==REVIEWED_VERSION
    
  2. Use lockfiles and integrity controls:

    • Commit package-lock.json and use npm ci.
    • Maintain a hashed Python requirements file and install with:
      bash
      pip install --require-hashes -r requirements.txt
      
  3. Install dependencies in an isolated, non-privileged environment:

    • Use a Python virtual environment.
    • Use a project-local npm installation instead of npm install -g.
    • Run document-processing tools in a restricted container or sandbox where practical.
  4. Require explicit user approval before running sudo or modifying the global environment.

  5. Verify package provenance, publisher identity, repository configuration, and signatures where supported. Periodically scan pinned dependencies for known vulnerabilities.

  6. Disable package lifecycle scripts during installation when they are unnecessary:

    bash
    npm ci --ignore-scripts
    

    If lifecycle scripts are required, review them before enabling execution.

  7. Document known-compatible versions so the skill produces reproducible behavior and does not silently consume newly published dependency code.

Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • 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
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
Findings (6)

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The manifest description says the skill should be used for creating, modifying, analyzing documents, and then broadens this to "any other document tasks." That catch-all phrasing is ambiguous and overlaps with many ordinary document-related requests, making it unclear when this skill should or should not activate.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
89% confidence
Finding

The editing workflow instructs the agent to unpack, modify, and repack documents without an explicit safeguard about changing user files, preserving originals, or writing to a new output path. In a file-manipulation skill, this increases the chance of unintended destructive edits or silent overwrites, especially for legal or business documents.

Content

No source excerpt is available for this finding.

Sudo/Root Execution

Medium
Category
Privilege Escalation
Confidence
92% confidence
Finding

The skill recommends installing dependencies with sudo, which encourages privileged package installation from within the workflow. In agent or automated environments, normalizing root-level execution expands the blast radius of mistakes or compromised package sources and can alter the host system unexpectedly.

Content

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

md
Required dependencies (install if not available):

- **pandoc**: `sudo apt-get install pandoc` (for text extraction)
- **docx**: `npm install -g docx` (for creating new documents)
- **LibreOffice**: `sudo apt-get install libreoffice` (for PDF conversion)
- **Poppler**: `sudo apt-get install poppler-utils` (for pdftoppm to convert PDF to images)

Sudo/Root Execution

Medium
Category
Privilege Escalation
Confidence
92% confidence
Finding

Recommending sudo for LibreOffice installation again promotes privileged system modification as part of routine skill usage. The DOCX-processing context makes external tools expected, but not root execution; that context lowers suspicion of malice, not the operational risk.

Content

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

md
- **pandoc**: `sudo apt-get install pandoc` (for text extraction)
- **docx**: `npm install -g docx` (for creating new documents)
- **LibreOffice**: `sudo apt-get install libreoffice` (for PDF conversion)
- **Poppler**: `sudo apt-get install poppler-utils` (for pdftoppm to convert PDF to images)
- **defusedxml**: `pip install defusedxml` (for secure XML parsing)

Sudo/Root Execution

Medium
Category
Privilege Escalation
Confidence
92% confidence
Finding

The Poppler installation guidance likewise normalizes sudo-based package installation. Even though this is common documentation, embedding privileged commands in an agent skill is risky because it can lead to unintended host changes or encourage execution in automation contexts with elevated permissions.

Content

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

md
- **pandoc**: `sudo apt-get install pandoc` (for text extraction)
- **docx**: `npm install -g docx` (for creating new documents)
- **LibreOffice**: `sudo apt-get install libreoffice` (for PDF conversion)
- **Poppler**: `sudo apt-get install poppler-utils` (for pdftoppm to convert PDF to images)
- **defusedxml**: `pip install defusedxml` (for secure XML parsing)

Missing User Warnings

Low
Category
Not specified by scanner
Confidence
79% confidence
Finding

The image-conversion workflow runs external binaries and generates derivative files without warning about command execution, output locations, or disk usage. While the commands are ordinary for document processing, the absence of notice can lead to unexpected file creation and tool execution in sensitive environments.

Content

No source excerpt is available for this finding.

Static analysis

No suspicious patterns detected.