T09 · Insecure Skill Coding Practices
- Location
scripts/python_relay.py:7- Finding
Caller-Controlled Environment Variable Bypasses the Claimed Human Authorization Gate
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
This skill is not shown stealing data or installing persistence, but it overstates its safety controls while shipping a local TCP relay that can expose a sensitive browser-control port.
Review this package before installing. Its search script is limited, but the relay can provide local access to whatever is on port 9222, commonly a browser debugging interface. Install only in an isolated environment, do not rely on the advertised human-gating claims, and avoid running the relay unless you intentionally want that local forwarding behavior.
scripts/python_relay.py:7Caller-Controlled Environment Variable Bypasses the Claimed Human Authorization Gate
The skill claims comprehensive gating and locked execution, yet code capabilities reportedly include a localhost socket listener, bidirectional TCP relay, and threaded tunneling behavior that are absent from the declared purpose. Hidden relay/tunneling functionality materially raises risk because it can be used to proxy access to browser debugging interfaces or bypass normal supervision boundaries while appearing to be a benign automation toolkit.
The skill claims comprehensive gating and locked execution, yet code capabilities reportedly include a localhost socket listener, bidirectional TCP relay, and threaded tunneling behavior that are absent from the declared purpose. Hidden relay/tunneling functionality materially raises risk because it can be used to proxy access to browser debugging interfaces or bypass normal supervision boundaries while appearing to be a benign automation toolkit.
The skill advertises strong security controls, yet the manifest declares no explicit tool scope despite requiring capabilities consistent with environment access, file writes, network access, and shell execution. This creates a permission transparency gap: operators and automated policy systems cannot accurately constrain or review what the skill is allowed to do, increasing the chance of over-privileged execution.
The so-called global security gate is only an environment-variable check, which is trivial to satisfy by any caller able to launch the process or influence its environment. The comments and branding overstate the protection level, which can cause downstream systems or users to trust the tool as locked down even though network access and file writes remain unrestricted once the variable is set.
The manifest emphasizes a 'highest-compliance web automation toolkit' with 'saturated security gating' and 'Every script is locked,' which suggests the core behavior is secure gated browser automation. In this file, the actual function is a specific network search against arXiv followed by local report generation, which is materially different from a general-purpose locked automation toolkit.
The file presents itself as strongly hardened, but the only real gate is a single environment variable check before launching a bidirectional localhost TCP relay. In an agent/tooling context, this can mislead operators and downstream systems into trusting a component that still exposes generic port-forwarding behavior to any local process once enabled.
Despite the high-compliance and locked-down branding, this code implements a generic localhost TCP tunnel from 9223 to 9222, which can be used to expose or proxy access to another local service such as a browser debugging endpoint. In a web automation skill, undisclosed relay capability increases risk because it can bypass intended access boundaries between tools and local services.
The relay transparently forwards traffic between local ports without any protocol validation, authentication, or prominent disclosure of what data may pass through it. Even though it binds to 127.0.0.1, any local process able to connect to port 9223 can potentially reach the proxied service, which is significant if the target is sensitive such as a DevTools or automation control endpoint.