Back to skill

Security audit

RedTransporteAPI

Security checks for vulnerabilities and agentic risk

Overview

The skill is mostly a coherent Chile transit CLI guide, but its install command can run an unintended local Python project from whatever directory the agent is in.

Review this skill before installing. Use it only from a trusted virtual environment, do not run pip install ".[all]" from an arbitrary workspace, and prefer installing the intended red-transporte package from a verified source. Treat entered coordinates as potentially sensitive location data.

Vulnerability Patterns
  • Insecure DependenciesIntroduces malicious components through unsafe dependency sources
  • 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)

T08 · Insecure Dependencies

Error
Location
SKILL.md:14
Finding

Unscoped Local Python Package Installation

Content
View full analysis

Vulnerability Details

File Location: SKILL.md, lines 14–19
Vulnerability Type: Insecure dependency installation from an unverified working directory
Risk Level: High

Vulnerable Code Snippet:

markdown
## Requisitos

- Python 3.9 o superior
- Instalar dependencias del proyecto
- Descargar GTFS local antes de consultas que usan datos estaticos

```bash
pip install ".[all]"
red-transporte gtfs update
text

### Technical Analysis

The command `pip install ".[all]"` installs the Python project found in the process's current working directory. The audited package contains no `pyproject.toml`, `setup.py`, lockfile, hash manifest, pinned package version, verified repository reference, or instruction requiring the Agent to enter a trusted source directory before running this command.

Python package installation can invoke package build backends and installation hooks. Therefore, if an Agent follows this instruction while its working directory contains an attacker-controlled Python project, `pip` may evaluate or execute that project's build logic. The command also does not reliably identify or install the declared `red-transporte` dependency.

### Attack Path

1. An attacker places a malicious Python project, including malicious package build configuration or hooks, in a directory from which the Agent may invoke the Skill.
2. The Agent follows `SKILL.md` and executes `pip install ".[all]"` without first validating the current directory or package identity.
3. `pip` discovers the attacker-controlled local project and invokes its configured build backend or installation behavior.
4. The malicious build logic executes with the operating-system privileges of the Agent process.
5. The attacker can then perform any action permitted to that account, such as reading accessible files, modifying user-owned data, or initiating network connections.

### Impact Assessment

Successful exploitation can resul
...[truncated 557 chars]
Remediation
View remediation

Remediation Suggestions

  • Replace the relative installation command with the exact official package name and a reviewed, pinned version from an explicitly trusted package index.
  • Use a lockfile and require artifact hashes, such as pip's --require-hashes, to provide integrity and reproducibility.
  • If installation from source is necessary, provide the exact verified repository URL and commit identifier, validate the checkout, and explicitly change into that trusted checkout before installation.
  • Never run pip install . or pip install ".[all]" from an unspecified working directory.
  • Perform installation inside a dedicated virtual environment using a non-privileged account.
  • Review package metadata and build-backend configuration before permitting installation, especially when the source directory may be writable by another party.
  • Separate dependency installation from routine Skill invocation so transit queries do not repeatedly trigger package build or installation behavior.
Vulnerability Patterns
  • 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
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
Findings (12)

Whitespace Padding

Medium
Category
Prompt Injection
Confidence
70% confidence
Finding

Large whitespace padding was detected (a block of blank lines or a long run of spaces). This can push injected instructions below or to the right of the visible area so a human reviewer never sees them while the agent still reads them. Manual review of the hidden content is recommended.

Content

Scanner excerpt · SKILL.md (reported line 1)May include surrounding context.

md
---                                                                                                                                                                          
  name: redtransportecl                                                                                                                                                          
  description: Usa la CLI `red-transporte` para consultar paraderos, recorridos, predicciones en tiempo real, GTFS local y utilidades geoespaciales de RED Chile.                
  metadata:

Whitespace Padding

Medium
Category
Prompt Injection
Confidence
70% confidence
Finding

Large whitespace padding was detected (a block of blank lines or a long run of spaces). This can push injected instructions below or to the right of the visible area so a human reviewer never sees them while the agent still reads them. Manual review of the hidden content is recommended.

Content

Scanner excerpt · SKILL.md (reported line 2)May include surrounding context.

md
---                                                                                                                                                                          
  name: redtransportecl                                                                                                                                                          
  description: Usa la CLI `red-transporte` para consultar paraderos, recorridos, predicciones en tiempo real, GTFS local y utilidades geoespaciales de RED Chile.                
  metadata:                                                                                                                                                                      
    {

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The skill description and all operational instructions are presented exclusively in Spanish, with no indication that the user can choose another language or that the skill is intentionally limited to Spanish-speaking users. Per the policy, forcing a specific language without user opt-in is a natural-language policy violation unless the locale constraint is clearly documented and justified.

Content

No source excerpt is available for this finding.

Whitespace Padding

Medium
Category
Prompt Injection
Confidence
70% confidence
Finding

Large whitespace padding was detected (a block of blank lines or a long run of spaces). This can push injected instructions below or to the right of the visible area so a human reviewer never sees them while the agent still reads them. Manual review of the hidden content is recommended.

Content

Scanner excerpt · SKILL.md (reported line 4)May include surrounding context.

md
---                                                                                                                                                                          
  name: redtransportecl                                                                                                                                                          
  description: Usa la CLI `red-transporte` para consultar paraderos, recorridos, predicciones en tiempo real, GTFS local y utilidades geoespaciales de RED Chile.                
  metadata:                                                                                                                                                                      
    {                                                                                                                                                                            
      "openclaw":                                                                                                                                                                
        {

Whitespace Padding

Medium
Category
Prompt Injection
Confidence
70% confidence
Finding

Large whitespace padding was detected (a block of blank lines or a long run of spaces). This can push injected instructions below or to the right of the visible area so a human reviewer never sees them while the agent still reads them. Manual review of the hidden content is recommended.

Content

Scanner excerpt · SKILL.md (reported line 5)May include surrounding context.

md
name: redtransportecl                                                                                                                                                          
  description: Usa la CLI `red-transporte` para consultar paraderos, recorridos, predicciones en tiempo real, GTFS local y utilidades geoespaciales de RED Chile.                
  metadata:                                                                                                                                                                      
    {                                                                                                                                                                            
      "openclaw":                                                                                                                                                                
        {                                                                                                                                                                        
          "requires": { "bins": ["red-transporte"] }

Whitespace Padding

Medium
Category
Prompt Injection
Confidence
70% confidence
Finding

Large whitespace padding was detected (a block of blank lines or a long run of spaces). This can push injected instructions below or to the right of the visible area so a human reviewer never sees them while the agent still reads them. Manual review of the hidden content is recommended.

Content

Scanner excerpt · SKILL.md (reported line 10)May include surrounding context.

md
name: redtransportecl                                                                                                                                                          
  description: Usa la CLI `red-transporte` para consultar paraderos, recorridos, predicciones en tiempo real, GTFS local y utilidades geoespaciales de RED Chile.                
  metadata:                                                                                                                                                                      
    {                                                                                                                                                                            
      "openclaw":                                                                                                                                                                
        {                                                                                                                                                                        
          "requires": { "bins": ["red-transporte"] }

Whitespace Padding

Medium
Category
Prompt Injection
Confidence
70% confidence
Finding

Large whitespace padding was detected (a block of blank lines or a long run of spaces). This can push injected instructions below or to the right of the visible area so a human reviewer never sees them while the agent still reads them. Manual review of the hidden content is recommended.

Content

Scanner excerpt · SKILL.md (reported line 6)May include surrounding context.

md
description: Usa la CLI `red-transporte` para consultar paraderos, recorridos, predicciones en tiempo real, GTFS local y utilidades geoespaciales de RED Chile.                
  metadata:                                                                                                                                                                      
    {                                                                                                                                                                            
      "openclaw":                                                                                                                                                                
        {                                                                                                                                                                        
          "requires": { "bins": ["red-transporte"] }                                                                                                                             
        }

Whitespace Padding

Medium
Category
Prompt Injection
Confidence
70% confidence
Finding

Large whitespace padding was detected (a block of blank lines or a long run of spaces). This can push injected instructions below or to the right of the visible area so a human reviewer never sees them while the agent still reads them. Manual review of the hidden content is recommended.

Content

Scanner excerpt · SKILL.md (reported line 7)May include surrounding context.

md
metadata:                                                                                                                                                                      
    {                                                                                                                                                                            
      "openclaw":                                                                                                                                                                
        {                                                                                                                                                                        
          "requires": { "bins": ["red-transporte"] }                                                                                                                             
        }                                                                                                                                                                        
    }

Whitespace Padding

Medium
Category
Prompt Injection
Confidence
70% confidence
Finding

Large whitespace padding was detected (a block of blank lines or a long run of spaces). This can push injected instructions below or to the right of the visible area so a human reviewer never sees them while the agent still reads them. Manual review of the hidden content is recommended.

Content

Scanner excerpt · SKILL.md (reported line 9)May include surrounding context.

md
metadata:                                                                                                                                                                      
    {                                                                                                                                                                            
      "openclaw":                                                                                                                                                                
        {                                                                                                                                                                        
          "requires": { "bins": ["red-transporte"] }                                                                                                                             
        }                                                                                                                                                                        
    }

Whitespace Padding

Medium
Category
Prompt Injection
Confidence
70% confidence
Finding

Large whitespace padding was detected (a block of blank lines or a long run of spaces). This can push injected instructions below or to the right of the visible area so a human reviewer never sees them while the agent still reads them. Manual review of the hidden content is recommended.

Content

Scanner excerpt · SKILL.md (reported line 8)May include surrounding context.

md
{                                                                                                                                                                            
      "openclaw":                                                                                                                                                                
        {                                                                                                                                                                        
          "requires": { "bins": ["red-transporte"] }                                                                                                                             
        }                                                                                                                                                                        
    }                                                                                                                                                                            
  ---

Missing User Warnings

Low
Category
Not specified by scanner
Confidence
91% confidence
Finding

The markdown instructs users to run red-transporte gtfs update and later states that gtfs update downloads or updates local GTFS data, but it does not explicitly warn that this performs a network download and writes data to local storage. Because this skill description includes a user-invoked data download/update operation, a brief disclosure would help users understand the side effects before running it.

Content

No source excerpt is available for this finding.

Missing User Warnings

Low
Category
Not specified by scanner
Confidence
83% confidence
Finding

The markdown documents /routing/plan and provides curl examples containing origin and destination coordinates, but it does not mention that using the API transmits potentially sensitive location data to the local HTTP service. For a skill handling geospatial travel planning, users should be warned that location inputs may reveal travel patterns or sensitive places.

Content

No source excerpt is available for this finding.