Back to skill

Security audit

state-machine

Security checks for vulnerabilities and agentic risk

Overview

This skill is a sparse state-machine helper with vague activation guidance and weak credential-handling advice, but the inspected artifact does not show hidden, destructive, persistent, or exfiltrating behavior.

Install only if you understand what external machine API this is meant to use and have the referenced state_machine.py script from a trusted source. Treat MACHINE_API_KEY as a secret and avoid placing it in source files, logs, chat messages, or shell history.

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
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
Findings (2)

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The 'When to Use' section uses generic phrases like 'state related functionality', 'Automating machine tasks', and 'Automation operations' without defining clear boundaries for when this skill should or should not be invoked. These phrases are broad enough to overlap with many unrelated requests, increasing the risk of unintended activation.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
92% confidence
Finding

The skill instructs users to set an API key environment variable but does not warn that it is sensitive, should not be hardcoded, logged, committed, or exposed in outputs. In an automation-oriented skill, this omission increases the chance that users or downstream tooling mishandle credentials, leading to secret leakage and unauthorized access to the referenced machine API.

Content

No source excerpt is available for this finding.