Back to skill

Security audit

Requirements Checker

Security checks for vulnerabilities and agentic risk

Overview

This skill is a straightforward requirements.txt checker whose only write behavior is an explicitly requested in-place sort of the user-supplied file.

Review the file path before using sort --write because it overwrites that file with the sorted output. The default sort mode prints to stdout and is safer for previewing changes.

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
  • 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 (2)

Undeclared Tool Scope

Medium
Category
MCP Least Privilege
Confidence
90% confidence
Finding

The skill documentation describes operations that read and potentially modify local files, including in-place writes via sort --write, but it declares no permissions or allowed-tools scope. Without explicit tool restrictions, an agent may invoke file read/write capabilities more broadly than intended, increasing the risk of unauthorized modification of repository files or sensitive local data access. The context is moderately sensitive because the skill is specifically designed to process arbitrary requirement files supplied by users or CI workflows.

Content

No source excerpt is available for this finding.

Missing User Warnings

Low
Category
Not specified by scanner
Confidence
86% confidence
Finding

The sort command can overwrite the supplied requirements file via open(path, 'w'), which is a file write operation. Although --write is an explicit opt-in and there is a stderr message after completion, the code does not provide a pre-write confirmation or an explicit safety warning in the module docstring/comments near the write path.

Content

No source excerpt is available for this finding.