Back to skill

Security audit

A Share Metrics Card

Security checks for vulnerabilities and agentic risk

Overview

This stock-card skill is purpose-aligned overall, but needs review because its script can overwrite arbitrary local files if given a crafted output path or stock symbol.

Install only if you are comfortable with a skill that writes local files. Use a normal six-digit stock symbol and keep output paths under notes/stocks/cards; review or patch the script to validate symbols, reject path traversal, and avoid overwriting existing files without confirmation.

Vulnerability Patterns
  • Insecure Skill Coding PracticesFinds exploitable flaws such as hardcoded secrets or command injection
  • 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)

T09 · Insecure Skill Coding Practices

Warning
Location
scripts/metrics_card.py:27
Finding

Unrestricted Output Path Allows Arbitrary File Overwrite

Content
View full analysis
Remediation
View remediation
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
95% confidence
Finding

The skill explicitly plans to use network access to fetch stock data and to write a Markdown file, but it does not declare any tool restrictions or permissions. This creates an overbroad execution profile where an agent runtime may grant more capabilities than are necessary or fail to surface the risk to users, increasing the chance of unintended file writes or unreviewed external data access.

Content

No source excerpt is available for this finding.

Missing User Warnings

Low
Category
Not specified by scanner
Confidence
89% confidence
Finding

The skill says it will write a generated Markdown card to outputPath by default, but it does not clearly warn the user that invoking the skill modifies local files. Even though the default path appears intended for notes, silent file creation or overwrite can surprise users and becomes riskier if outputPath is user-controlled or if existing files are replaced.

Content

No source excerpt is available for this finding.

Static analysis

No suspicious patterns detected.