Back to skill

Security audit

Uniq Tool

Security checks for vulnerabilities and agentic risk

Overview

This is a simple local duplicate-line tool with some documentation inaccuracies but no evidence of harmful behavior.

Install only if global deduplication/counting is acceptable for your workflow. Do not expect full Unix uniq compatibility: the inspected script does not implement the documented -d, -u, -i, or output-file behavior, and it treats non-adjacent duplicate lines as duplicates.

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 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
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
Findings (3)

Tp4

High
Category
MCP Tool Poisoning
Confidence
97% confidence
Finding

The declared description implies behavior like the Unix uniq utility, which is defined around repeated/adjacent lines in sorted text. This implementation instead performs global deduplication with a set and global frequency counting with Counter, so its semantics differ materially from 'repeated lines in sorted text.' It does fit deduplication and frequency counting in a broad sense, and it does not show suspicious undeclared permissions or unrelated actions, but the primary behavior is inaccurately described because sorting/adjacency-sensitive uniq behavior is not what the code actually implements.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The manifest describes a uniq-like tool for reporting or filtering repeated lines in sorted text, which normally operates on adjacent duplicates and depends on sorted input. This implementation instead uses Counter and a seen set over the entire input, so duplicates are detected globally even when non-adjacent, changing the tool's actual behavior and scope.

Content

No source excerpt is available for this finding.

Intent-Code Divergence

Low
Category
Not specified by scanner
Confidence
81% confidence
Finding

The module docstring and argparse description present the tool as only producing unique lines. However, the --count flag adds a distinct frequency-counting mode, so the embedded documentation understates and partially misrepresents the tool's actual behavior.

Content

No source excerpt is available for this finding.

Static analysis

No suspicious patterns detected.