Back to skill

Security audit

Small Context Coding

Security checks for vulnerabilities and agentic risk

Overview

This skill is a disclosed coding-workflow helper that creates local planning notes and optional sub-agent briefs without hidden network, credential, persistence, or destructive behavior.

Install this if you want an agent workflow that writes planning/checkpoint files into your repository and may generate local sub-agent brief files. Review the generated notes before relying on them, and only run the helper scripts against repositories where creating notes/<task-slug>/ files is acceptable.

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
  • Behavioral ASTexec() Call, eval() Call, Dynamic Import
  • 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
94% confidence
Finding

The skill instructs the agent to execute shell commands and create or modify files, but it does not declare any explicit tool scope such as allowed-tools or permissions. That creates an authorization gap where a runtime may permit broader shell or filesystem access than intended, increasing the chance of unintended command execution, writes outside the task area, or misuse of helper scripts via absolute paths.

Content

No source excerpt is available for this finding.

subprocess module call

Medium
Category
Dangerous Code Execution
Confidence
70% confidence
Finding

subprocess module calls execute external commands. Without careful input validation, this enables command injection.

Content

Scanner excerpt · scripts/smoke_test.py (reported line 14)May include surrounding context.

python
def run(cmd, cwd=None):
    result = subprocess.run(cmd, cwd=cwd, text=True, capture_output=True)
    if result.returncode != 0:
        print(result.stdout)
        print(result.stderr, file=sys.stderr)

Static analysis

No suspicious patterns detected.