Back to skill

Security audit

Robots.txt Generator

Security checks for vulnerabilities and agentic risk

Overview

This robots.txt helper is mostly coherent, but its remote validation command can fetch arbitrary URLs from the agent environment without network or size limits.

Install only if you are comfortable with the skill making outbound HTTP requests when validating remote robots.txt files. Avoid using validate --url on untrusted or user-supplied URLs, especially in environments with access to internal services or cloud metadata endpoints; prefer validating local files or running it in a network-restricted sandbox.

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

Error
Location
scripts/robots_txt_gen.py:313
Finding

Server-Side Request Forgery Through Unrestricted Remote robots.txt Validation

Content
View full analysis
Remediation
View remediation
Vulnerability Patterns
  • System Prompt LeakageDirect Leakage, Indirect Extraction, Tool-Based Exfiltration
  • 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)

Direct Prompt Extraction

High
Category
System Prompt Leakage
Confidence
85% confidence
Finding

Skill contains instructions that could directly expose system prompts, internal rules, or hidden instructions to users or external parties.

Content

Scanner excerpt · scripts/robots_txt_gen.py (reported line 278)May include surrounding context.

python
for a in current_agents:
                rules.setdefault(a, []).append((directive, value))

    return rules

def _check_url(rules, agent, url):
    """Check if url is allowed for agent. Returns True if allowed."""

Undeclared Tool Scope

Medium
Category
MCP Least Privilege
Confidence
89% confidence
Finding

The skill documentation describes capabilities that read local files, write output files, and fetch remote URLs, but it does not declare any explicit tool scope or permission boundaries. In an agent environment, this can lead to over-broad execution privileges, making it easier for the skill to access sensitive files or perform unintended network requests if invoked with attacker-controlled inputs.

Content

No source excerpt is available for this finding.

Static analysis

No suspicious patterns detected.