Back to skill

Security audit

KnowAir Historical 明气历史天气

Security checks for vulnerabilities and agentic risk

Overview

This skill is a straightforward historical weather lookup that uses a Caiyun API token and coordinates as disclosed.

Install this only if you are comfortable providing a Caiyun API token and sending requested coordinates to Caiyun's API. Prefer the CAIYUN_TOKEN environment variable or a dedicated ~/.config/knowair/token file, and avoid using it for locations you consider sensitive.

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
  • Rogue AgentSelf-Modification, Session Persistence
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
Findings (5)

Lp1

High
Category
MCP Least Privilege
Confidence
75% confidence
Finding

The skill uses 'env' capability that is not listed in its permissions. This may indicate deceptive intent or missing permission declarations.

Content

No source excerpt is available for this finding.

Lp1

High
Category
MCP Least Privilege
Confidence
75% confidence
Finding

The skill uses 'network' capability that is not listed in its permissions. This may indicate deceptive intent or missing permission declarations.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
60% 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 · scripts/query_historical.py (reported line 11)May include surrounding context.

python
import urllib.request
import urllib.error

API_BASE = "https://api.caiyunapp.com/v2.6"

SKYCON_EN = {
    "CLEAR_DAY": "Clear", "CLEAR_NIGHT": "Clear",

Session Persistence

Medium
Category
Rogue Agent
Confidence
60% confidence
Finding

Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.

Content

Scanner excerpt · scripts/query_historical.py (reported line 121)May include surrounding context.

python
token = get_token()
    if not token:
        print(json.dumps({"error": "No API token found. Set CAIYUN_TOKEN env var or create ~/.config/knowair/token"}))
        sys.exit(2)

    hours = max(1, min(72, args.hours))

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
86% confidence
Finding

The CLI forces a language choice through a default of en when the user does not specify --lang. This is a natural-language locale decision made on the user's behalf, and the file does not indicate that English is optional unless the user inspects the CLI help.

Content

No source excerpt is available for this finding.

Static analysis

No suspicious patterns detected.