Back to skill

Security audit

Text Diff

Security checks for vulnerabilities and agentic risk

Overview

This is a local text-file comparison skill with no network, persistence, credential access, or hidden execution, though its documentation overstates some supported document-analysis features.

Install only if you need a simple local diff tool for text files. Do not rely on the advertised Word/PDF or contract-clause analysis claims unless they are implemented later, and be careful when using -o/--output because the saved diff may include sensitive file contents.

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
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
  • 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)

Undeclared Tool Scope

Medium
Category
MCP Least Privilege
Confidence
87% confidence
Finding

The skill documentation invokes a Python script that reads input files and can write diff output to disk via the documented -o/--output option, but the skill metadata declares no tool scope or permissions. That mismatch can cause the skill to be granted broader file access than users expect, reducing transparency and weakening policy enforcement around file reads/writes.

Content

No source excerpt is available for this finding.

Intent-Code Divergence

Medium
Category
Not specified by scanner
Confidence
92% confidence
Finding

The documentation claims support for Word/PDF/markdown inputs, color-coded modified lines, change summaries, and contract-clause highlighting, but the rest of the skill only describes plain-text diffs using difflib. This kind of capability inflation can mislead users and downstream agents into sending sensitive non-text documents or trusting analysis features that do not exist, creating unsafe handling expectations for legal or confidential files.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
86% confidence
Finding

Several usage scenarios are written entirely in Chinese, including expected behavior, but the document does not say the skill is region-specific or that users may interact in other languages. Under the language/locale policy, a skill should not implicitly force a specific language without opt-in or justification.

Content

No source excerpt is available for this finding.

Missing User Warnings

Low
Category
Not specified by scanner
Confidence
91% confidence
Finding

This is a markdown file, so SQP-2 applies to user-facing descriptions of potentially impactful behavior. The option -o, --output states that diff results can be saved to a file, but there is no warning that this writes compared content to disk, which may matter for sensitive documents such as contracts mentioned elsewhere in the skill description.

Content

No source excerpt is available for this finding.

Static analysis

No suspicious patterns detected.