Back to skill

Security audit

Weather

Security checks for vulnerabilities and agentic risk

Overview

This weather skill is a simple set of documented curl examples for weather services, with low-risk privacy and HTTP hygiene caveats but no hidden or high-impact behavior.

Before installing, understand that weather lookups will contact third-party services and reveal the queried city, airport code, or coordinates to them. Prefer changing the wttr.in examples to explicit https:// URLs, and avoid using the PNG example if /tmp/weather.png already contains something you need.

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 (2)

T09 · Insecure Skill Coding Practices

Note
Location
SKILL.md:16
Finding

Plaintext HTTP Used for Primary Weather Service

Content
View full analysis

Vulnerability Details

File Location: SKILL.md, lines 16-38
Vulnerability Type: Plaintext external-service communication
Risk Level: Low

Complete vulnerable code snippets:

bash
curl -s "wttr.in/London?format=3"
bash
curl -s "wttr.in/London?format=%l:+%c+%t+%h+%w"
bash
curl -s "wttr.in/London?T"
bash
curl -s "wttr.in/Berlin.png" -o /tmp/weather.png

Technical Analysis

The documented wttr.in URLs omit an explicit https:// scheme. curl consequently treats these URLs as HTTP, causing at least the initial request to be transmitted without TLS protection. Even if the service redirects clients to HTTPS, the original plaintext request remains susceptible to interception or modification, and these commands do not use --location to follow redirects.

An attacker positioned on the network path, such as an operator of a malicious Wi-Fi access point or a compromised gateway, could observe the requested location, modify a plaintext response, or replace a redirect. Weather output is data rather than executable code, so this issue does not by itself provide code execution or elevated system privileges.

Attack Path

  1. A user or agent follows the Skill instructions and executes one of the documented curl commands.
  2. curl sends a plaintext HTTP request containing the requested city, airport code, or other location.
  3. A network-positioned attacker intercepts the request.
  4. The attacker learns the requested location or modifies the returned weather content.
  5. The user or agent consumes the attacker-controlled response as if it originated from the legitimate weather service.

Impact Assessment

The issue can disclose weather-query locations and compromise the integrity of returned weather data. An attacker can potentially provide false forecast information within the affected request. The finding does not grant local privileges, persistent access, ...[truncated 81 chars]

Remediation
View remediation

Remediation Suggestions

Replace every scheme-less wttr.in URL with an explicit HTTPS URL:

bash
curl --fail --show-error --silent "https://wttr.in/London?format=3"
curl --fail --show-error --silent "https://wttr.in/London?format=%l:+%c+%t+%h+%w"
curl --fail --show-error --silent "https://wttr.in/London?T"
curl --fail --show-error --silent "https://wttr.in/Berlin.png" -o /tmp/weather.png

If redirects are expected, add --location while retaining the explicit HTTPS scheme. Do not disable TLS certificate validation. Where location values are dynamically supplied, URL-encode them before constructing the request.

T09 · Insecure Skill Coding Practices

Note
Location
weather/SKILL.md:15
Finding

Plaintext HTTP Used for Primary Weather Service in Duplicate Skill Definition

Content
View full analysis

Vulnerability Details

File Location: weather/SKILL.md, lines 15-37
Vulnerability Type: Plaintext external-service communication
Risk Level: Low

Complete vulnerable code snippets:

bash
curl -s "wttr.in/London?format=3"
bash
curl -s "wttr.in/London?format=%l:+%c+%t+%h+%w"
bash
curl -s "wttr.in/London?T"
bash
curl -s "wttr.in/Berlin.png" -o /tmp/weather.png

Technical Analysis

This duplicate Skill definition also omits the https:// scheme from every primary-service request. curl therefore initiates communication over plaintext HTTP, leaving the location query and response without transport confidentiality or integrity. A later server-side redirect would not protect the initial request.

A network-positioned attacker could inspect the requested location or tamper with weather output. The returned content is not executed by any instruction in the reviewed file, so no arbitrary-code-execution path was identified.

Attack Path

  1. The duplicate Skill definition is loaded and one of its documented commands is invoked.
  2. curl sends the location request through plaintext HTTP.
  3. An attacker controlling or monitoring an intermediate network device intercepts the traffic.
  4. The attacker records the location query or substitutes a forged response.
  5. The forged weather information is presented to the user or agent as legitimate service output.

Impact Assessment

Exploitation is limited to disclosure of requested locations and manipulation of weather responses for affected requests. It does not provide operating-system privileges, persistence, credential access, or code execution.

Remediation
View remediation

Remediation Suggestions

Use explicit HTTPS URLs in all examples:

bash
curl --fail --show-error --silent "https://wttr.in/London?format=3"
curl --fail --show-error --silent "https://wttr.in/London?format=%l:+%c+%t+%h+%w"
curl --fail --show-error --silent "https://wttr.in/London?T"
curl --fail --show-error --silent "https://wttr.in/Berlin.png" -o /tmp/weather.png

Add --location only if redirects are required, preserve TLS certificate verification, and keep this duplicate definition synchronized with the root SKILL.md to prevent the insecure examples from being reintroduced.

Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • 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 (4)

External Transmission

Medium
Category
Data Exfiltration
Confidence
50% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

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

Free, no key, good for programmatic use:

bash
curl -s "https://api.open-meteo.com/v1/forecast?latitude=51.5&longitude=-0.12&current_weather=true"

Find coordinates for a city, then query. Returns JSON with temp, windspeed, weathercode.

External Transmission

Medium
Category
Data Exfiltration
Confidence
50% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

Scanner excerpt · weather/SKILL.md (reported line 44)May include surrounding context.

Free, no key, good for programmatic use:

bash
curl -s "https://api.open-meteo.com/v1/forecast?latitude=51.5&longitude=-0.12&current_weather=true"

Find coordinates for a city, then query. Returns JSON with temp, windspeed, weathercode.

Missing User Warnings

Low
Category
Not specified by scanner
Confidence
89% confidence
Finding

This markdown file instructs users to call wttr.in and api.open-meteo.com via curl, which transmits location queries to external services. The skill description does not include any privacy or network-use warning, even though user-supplied locations or coordinates may be sent off-system.

Content

No source excerpt is available for this finding.

Missing User Warnings

Low
Category
Not specified by scanner
Confidence
89% confidence
Finding

The skill documentation includes a command that saves output to /tmp/weather.png, which is a file write operation. For markdown files, safety-affecting behaviors that modify user or system state should be disclosed, but no warning is provided here about creating or overwriting a local file.

Content

No source excerpt is available for this finding.