Back to skill

Security audit

HKO Weather

Security checks for vulnerabilities and agentic risk

Overview

This is a coherent Hong Kong weather skill that fetches public HKO data, with only expected network, installation, and optional posting behavior disclosed in the artifacts.

Install only if you want an HKO-focused weather helper. Review the optional Discord auto_post, cron, and auto-refresh settings before enabling them, since those can send weather messages externally on a schedule.

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
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
Findings (24)

Anti-Refusal Statement

High
Category
Anti-Refusal
Confidence
80% confidence
Finding

Skill instructs the agent to omit warnings, disclaimers, or ethical commentary. Stripping safety caveats hides risk from the user and is a common jailbreak preamble.

Content

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

md
**When no warnings are active:**

Anti-Refusal Statement

High
Category
Anti-Refusal
Confidence
80% confidence
Finding

Skill instructs the agent to omit warnings, disclaimers, or ethical commentary. Stripping safety caveats hides risk from the user and is a common jailbreak preamble.

Content

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

md
**No warnings active:**

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

The file explicitly states the language is Traditional Chinese, and later reiterates that all output must be in Traditional Chinese. This forces a specific language/locale without user opt-in, which matches the policy-violation criteria.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
93% confidence
Finding

The trigger keywords include generic Chinese phrases like "天氣報告" and broad phrasing like "香港預報" without clarifying that they are limited to Hong Kong weather requests for this specific skill. This can cause unintended invocation when a user casually asks for a weather report or forecast in conversation.

Content

No source excerpt is available for this finding.

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 173)May include surrounding context.

md
- [HKO Open Data Portal](https://www.hko.gov.hk/tc/abouthko/opendata_intro.htm)
- [HKO API Documentation (PDF)](https://www.hko.gov.hk/tc/weatherAPI/doc/files/HKO_Open_Data_API_Documentation.pdf)
- [DATA.GOV.HK HKO Datasets](https://data.gov.hk/tc-datasets/provider/hk-hko)

## Example Response Structure

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The notes and cron example reinforce that all output is in Traditional Chinese and use a fixed Traditional Chinese language parameter. Because no alternative language choice or opt-in is provided, this is a natural-language locale policy concern.

Content

No source excerpt is available for this finding.

Sudo/Root Execution

Medium
Category
Privilege Escalation
Confidence
70% confidence
Finding

Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.

Content

Scanner excerpt · install.sh (reported line 123)May include surrounding context.

sh
print_info "Install them with:"
        
        if [[ "$OS" == "linux" ]]; then
            print_info "  Ubuntu/Debian: sudo apt-get install ${missing[*]}"
            print_info "  CentOS/RHEL: sudo yum install ${missing[*]}"
        elif [[ "$OS" == "macos" ]]; then
            print_info "  macOS: brew install ${missing[*]}"

Sudo/Root Execution

Medium
Category
Privilege Escalation
Confidence
70% confidence
Finding

Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.

Content

Scanner excerpt · install.sh (reported line 124)May include surrounding context.

sh
print_info "Install them with:"
        
        if [[ "$OS" == "linux" ]]; then
            print_info "  Ubuntu/Debian: sudo apt-get install ${missing[*]}"
            print_info "  CentOS/RHEL: sudo yum install ${missing[*]}"
        elif [[ "$OS" == "macos" ]]; then
            print_info "  macOS: brew install ${missing[*]}"

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 · SKILL.md (reported line 53)May include surrounding context.

md
set -e

HKO_BASE="https://data.weather.gov.hk/weatherAPI/opendata/weather.php"
TIMEOUT=10
LANG="tc"

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 · SKILL.md (reported line 65)May include surrounding context.

md
set -e

HKO_BASE="https://data.weather.gov.hk/weatherAPI/opendata/weather.php"
TIMEOUT=10
LANG="tc"

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 · SKILL.md (reported line 75)May include surrounding context.

md
set -e

HKO_BASE="https://data.weather.gov.hk/weatherAPI/opendata/weather.php"
TIMEOUT=10
LANG="tc"

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 · SKILL.md (reported line 99)May include surrounding context.

md
set -e

HKO_BASE="https://data.weather.gov.hk/weatherAPI/opendata/weather.php"
TIMEOUT=10
LANG="tc"

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 · SKILL.md (reported line 104)May include surrounding context.

md
set -e

HKO_BASE="https://data.weather.gov.hk/weatherAPI/opendata/weather.php"
TIMEOUT=10
LANG="tc"

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 · SKILL.md (reported line 109)May include surrounding context.

md
set -e

HKO_BASE="https://data.weather.gov.hk/weatherAPI/opendata/weather.php"
TIMEOUT=10
LANG="tc"

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 · SKILL.md (reported line 114)May include surrounding context.

md
set -e

HKO_BASE="https://data.weather.gov.hk/weatherAPI/opendata/weather.php"
TIMEOUT=10
LANG="tc"

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 · SKILL.md (reported line 115)May include surrounding context.

md
set -e

HKO_BASE="https://data.weather.gov.hk/weatherAPI/opendata/weather.php"
TIMEOUT=10
LANG="tc"

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 · SKILL.md (reported line 116)May include surrounding context.

md
set -e

HKO_BASE="https://data.weather.gov.hk/weatherAPI/opendata/weather.php"
TIMEOUT=10
LANG="tc"

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/fetch-weather.sh (reported line 8)May include surrounding context.

sh
set -e

HKO_BASE="https://data.weather.gov.hk/weatherAPI/opendata/weather.php"
TIMEOUT=10
LANG="tc"

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/test-hko.sh (reported line 13)May include surrounding context.

sh
set -e

HKO_BASE="https://data.weather.gov.hk/weatherAPI/opendata/weather.php"
TIMEOUT=10
LANG="tc"

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/test-hko.sh (reported line 31)May include surrounding context.

sh
set -e

HKO_BASE="https://data.weather.gov.hk/weatherAPI/opendata/weather.php"
TIMEOUT=10
LANG="tc"

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/test-hko.sh (reported line 57)May include surrounding context.

sh
set -e

HKO_BASE="https://data.weather.gov.hk/weatherAPI/opendata/weather.php"
TIMEOUT=10
LANG="tc"

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/test-hko.sh (reported line 106)May include surrounding context.

sh
set -e

HKO_BASE="https://data.weather.gov.hk/weatherAPI/opendata/weather.php"
TIMEOUT=10
LANG="tc"

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

The script is explicitly described as operating in Traditional Chinese and all user-facing output is fixed to that locale. This is a natural-language locale policy issue because the file forces a specific language rather than offering a choice or documenting a justified region-specific constraint.

Content

No source excerpt is available for this finding.

Missing User Warnings

Low
Category
Not specified by scanner
Confidence
81% confidence
Finding

The README describes configuring automatic weather updates to post into a Discord channel, which is a networked external service interaction that can affect privacy and system behavior. While the feature is documented, this section does not include any warning or disclosure that enabling auto_post will automatically transmit content to Discord on a schedule.

Content

No source excerpt is available for this finding.