Back to skill

Security audit

SQL Migration Linter

Security checks for vulnerabilities and agentic risk

Overview

This skill is a local SQL migration linter that reads user-selected SQL files and does not show hidden, destructive, network, credential, or persistence behavior.

Install only if you are comfortable with the linter reading SQL files under the paths you pass to it. Avoid pointing it at broad directories unless you intend all nested .sql files there to be inspected.

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
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • 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
Findings (2)

Undeclared Tool Scope

Medium
Category
MCP Least Privilege
Confidence
70% confidence
Finding

Without declared permissions the skill's intent is opaque and cannot be validated.

Content

No source excerpt is available for this finding.

Missing User Warnings

Low
Category
Not specified by scanner
Confidence
78% confidence
Finding

This code traverses directories recursively with rglob("*.sql") and reads each discovered file, which is a data-access operation on user files. While the CLI arguments imply linting SQL files, there is no explicit user-facing warning, print, or comment near the recursive scan to disclose that an entire directory tree may be read.

Content

No source excerpt is available for this finding.

Static analysis

No suspicious patterns detected.