Back to skill

Security audit

Ocr Pro

Security checks for vulnerabilities and agentic risk

Overview

This OCR skill is a thin, user-directed guide for using MinerU, with expected cloud-service and dependency risks but no hidden or destructive behavior in the artifact.

Install only if you are comfortable trusting MinerU/OpenDataLab and the mineru-open-api package. Do not process confidential documents unless you have approval for third-party OCR processing, and prefer pinned versions or an isolated environment when installing the CLI.

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:14
Finding

Unpinned Global Third-Party Dependency Installation

Content
View full analysis

Vulnerability Details

File Location: SKILL.md:4, SKILL.md:14-16
Vulnerability Type: Supply-chain risk from mutable, unpinned dependencies
Risk Level: Medium

The skill metadata declares mineru-open-api without a fixed version:

yaml
metadata: {"openclaw": {"emoji": "📄", "requires": {"bins": ["mineru-open-api"], "env": ["MINERU_TOKEN"]}, "primaryEnv": "MINERU_TOKEN", "install": [{"id": "npm", "kind": "node", "package": "mineru-open-api", "bins": ["mineru-open-api"], "label": "Install via npm"}, {"id": "go", "kind": "go", "package": "github.com/opendatalab/MinerU-Ecosystem/cli/mineru-open-api", "bins": ["mineru-open-api"], "label": "Install via go install", "os": ["darwin", "linux"]}]}}

The documented installation commands also select mutable upstream releases:

bash
npm install -g mineru-open-api
# or via Go (macOS/Linux):
go install github.com/opendatalab/MinerU-Ecosystem/cli/mineru-open-api@latest

Technical Analysis

Neither installation method identifies a reviewed, immutable dependency version. The npm command resolves the registry's current package release and installs it globally. The Go command explicitly uses @latest, causing its resolved source to change as new upstream versions are published.

Consequently, the effective executable installed by users may differ from the dependency reviewed when this skill was published. If the package registry, upstream repository, release process, or maintainer credentials are compromised, an attacker could distribute altered code under the expected package name. npm installation scripts may execute during installation, while malicious code in either distribution can execute when the installed mineru-open-api binary is invoked.

No evidence shows that the current upstream dependency is malicious. The finding concerns the absence of version and integrity controls, which leaves a viable supply-chain exploitation path.

Attack Path

...[truncated 1722 chars]

Remediation
View remediation

Remediation Suggestions

  1. Pin both installation methods to exact, reviewed releases:
    • Replace the unversioned npm package with an exact version such as mineru-open-api@X.Y.Z.
    • Replace the Go @latest selector with a reviewed semantic version or immutable commit identifier.
  2. Verify dependency authenticity and integrity:
    • Record and validate npm integrity metadata or trusted artifact checksums.
    • Verify Go module checksums and ensure the expected module repository and release tag are used.
    • Document the expected package publisher and upstream repository.
  3. Avoid global npm installation where practical. Prefer a project-local dependency, isolated package environment, container, or dedicated low-privilege account.
  4. Review the pinned dependency and its transitive dependencies before updating. Use an explicit update process rather than automatically accepting the newest release.
  5. Avoid installing packages with administrator or root privileges. If elevated installation cannot be avoided, separate installation from execution and verify the artifact beforehand.
  6. Restrict the OCR process to only the files, environment variables, and network destinations it requires. Provide the MinerU token only for the duration of the operation.
  7. Document how authentication tokens and uploaded documents are transmitted, stored, and retained by the external OCR service so users can make informed decisions about sensitive data.
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
Findings (2)

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

The skill explicitly instructs users to run OCR through mineru-open-api with a required API token and supports both local files and remote URLs, which strongly implies document contents are sent to an external MinerU service. Because the documentation does not clearly disclose this data transfer or advise against using sensitive documents, users could unknowingly exfiltrate confidential files to a third party.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
91% confidence
Finding

The line states --language defaults to ch, which imposes a locale default in natural-language documentation. Because the skill is not documented as region-specific and does not present this default as an explicit user choice, it may violate the language/locale policy rule.

Content

No source excerpt is available for this finding.