Back to skill

Security audit

HK Weather (HKO)

Security checks for vulnerabilities and agentic risk

Overview

This is a straightforward Hong Kong weather lookup skill that calls the public HKO API and does not collect secrets, alter local data, or install persistence.

Before installing, understand that this skill makes live requests to the Hong Kong Observatory public API and defaults to Traditional Chinese output. It is suitable for general weather reference, but not for safety-critical aviation, marine, emergency, or commercial redistribution decisions without checking HKO terms and official sources.

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
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
Findings (25)

Tp4

High
Category
MCP Tool Poisoning
Confidence
96% confidence
Finding

The skill claims broad weather-query functionality, but the static analysis indicates the implemented behavior may only support warning-summary checks. This mismatch can mislead users and orchestrators into relying on unavailable capabilities, causing incorrect outputs or unsafe decision-making if users assume forecasts or regional conditions were actually retrieved.

Content

No source excerpt is available for this finding.

Undeclared Tool Scope

Medium
Category
MCP Least Privilege
Confidence
70% confidence
Finding

Without declared permissions the skill's intent is opaque and cannot be validated.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
93% confidence
Finding

The natural-language content throughout the skill file is presented exclusively in Chinese, including the description, usage instructions, and trigger examples. Under the policy, forcing a specific language without user opt-in is a locale/language policy violation because the skill does not indicate that users may choose another language.

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 · references/api-docs.md (reported line 8)May include surrounding context.

md
- **API 基址**: https://data.weather.gov.hk/weatherAPI/opendata/weather.php
- **完整文檔 (PDF)**: https://data.weather.gov.hk/weatherAPI/doc/HKO_Open_Data_API_Documentation.pdf
- **開放數據介紹**: https://www.hko.gov.hk/tc/abouthko/opendata_intro.htm
- **data.gov.hk 入口**: https://data.gov.hk/tc-datasets/provider/hk-hko

## 正確 dataType 參數

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 · references/api-docs.md (reported line 160)May include surrounding context.

md
- **API 基址**: https://data.weather.gov.hk/weatherAPI/opendata/weather.php
- **完整文檔 (PDF)**: https://data.weather.gov.hk/weatherAPI/doc/HKO_Open_Data_API_Documentation.pdf
- **開放數據介紹**: https://www.hko.gov.hk/tc/abouthko/opendata_intro.htm
- **data.gov.hk 入口**: https://data.gov.hk/tc-datasets/provider/hk-hko

## 正確 dataType 參數

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

The document is entirely written in Traditional Chinese, including colloquial Cantonese phrasing such as '以下係常見監測站', '找唔到時', and '避免將用戶輸入拼入 shell 指令', with no indication that language is optional or region-justified. Under the policy, forcing a specific language or locale without user opt-in is a natural-language policy violation.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

The docstring, CLI help text, and API request all assume Traditional Chinese, including the hard-coded lang=tc parameter. This is a natural-language locale constraint presented without user opt-in or justification that the skill is region-specific, which matches the language/locale policy violation criteria.

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

md
from urllib.error import URLError, HTTPError


BASE_URL = "https://data.weather.gov.hk/weatherAPI/opendata/weather.php"

WARNING_NAMES = {
    "RAINSTM": "暴雨警告",

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 · references/api-docs.md (reported line 5)May include surrounding context.

md
from urllib.error import URLError, HTTPError


BASE_URL = "https://data.weather.gov.hk/weatherAPI/opendata/weather.php"

WARNING_NAMES = {
    "RAINSTM": "暴雨警告",

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 · references/api-docs.md (reported line 6)May include surrounding context.

md
from urllib.error import URLError, HTTPError


BASE_URL = "https://data.weather.gov.hk/weatherAPI/opendata/weather.php"

WARNING_NAMES = {
    "RAINSTM": "暴雨警告",

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 · references/api-docs.md (reported line 30)May include surrounding context.

md
from urllib.error import URLError, HTTPError


BASE_URL = "https://data.weather.gov.hk/weatherAPI/opendata/weather.php"

WARNING_NAMES = {
    "RAINSTM": "暴雨警告",

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 · references/api-docs.md (reported line 119)May include surrounding context.

md
from urllib.error import URLError, HTTPError


BASE_URL = "https://data.weather.gov.hk/weatherAPI/opendata/weather.php"

WARNING_NAMES = {
    "RAINSTM": "暴雨警告",

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 · references/api-docs.md (reported line 122)May include surrounding context.

md
from urllib.error import URLError, HTTPError


BASE_URL = "https://data.weather.gov.hk/weatherAPI/opendata/weather.php"

WARNING_NAMES = {
    "RAINSTM": "暴雨警告",

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 · references/api-docs.md (reported line 125)May include surrounding context.

md
from urllib.error import URLError, HTTPError


BASE_URL = "https://data.weather.gov.hk/weatherAPI/opendata/weather.php"

WARNING_NAMES = {
    "RAINSTM": "暴雨警告",

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 · references/api-docs.md (reported line 128)May include surrounding context.

md
from urllib.error import URLError, HTTPError


BASE_URL = "https://data.weather.gov.hk/weatherAPI/opendata/weather.php"

WARNING_NAMES = {
    "RAINSTM": "暴雨警告",

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 · references/scripts.md (reported line 125)May include surrounding context.

md
from urllib.error import URLError, HTTPError


BASE_URL = "https://data.weather.gov.hk/weatherAPI/opendata/weather.php"

WARNING_NAMES = {
    "RAINSTM": "暴雨警告",

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 · references/scripts.md (reported line 155)May include surrounding context.

md
from urllib.error import URLError, HTTPError


BASE_URL = "https://data.weather.gov.hk/weatherAPI/opendata/weather.php"

WARNING_NAMES = {
    "RAINSTM": "暴雨警告",

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/check_warnings.py (reported line 17)May include surrounding context.

python
from urllib.error import URLError, HTTPError


BASE_URL = "https://data.weather.gov.hk/weatherAPI/opendata/weather.php"

WARNING_NAMES = {
    "RAINSTM": "暴雨警告",

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.py (reported line 25)May include surrounding context.

python
from urllib.error import URLError, HTTPError


BASE_URL = "https://data.weather.gov.hk/weatherAPI/opendata/weather.php"

WARNING_NAMES = {
    "RAINSTM": "暴雨警告",

Intent-Code Divergence

Medium
Category
Not specified by scanner
Confidence
97% confidence
Finding

The top-level docstring says --type hourly is '本地天氣預報 (每小時)', implying hourly forecast data. However, type_map maps hourly to flw, and the format_hourly docstring explicitly states that flw mainly provides narrative local forecast text rather than hour-by-hour values, creating a direct documentation-versus-code contradiction.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

Low
Category
Not specified by scanner
Confidence
89% confidence
Finding

The manifest description limits the skill to current weather, regional weather, forecasts, and weather warnings. The SKILL.md usage examples additionally present rainfall data and rainfall forecast commands as supported capabilities, which expands the described behavior beyond the manifest's declared scope.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
82% confidence
Finding

此 markdown 文件的所有說明、範例與輸出均以繁體中文呈現,且未說明這是僅限香港/繁中使用者的區域性文件,也未提供語言替代或使用者選擇。依規則,若技能強制特定語言而沒有明確 opt-in 或正當化說明,屬於自然語言政策風險。

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
92% confidence
Finding

Line L35 says to display the Chinese name (tc), which imposes a specific language choice in the skill guidance. The policy requires flagging language or locale constraints when they are forced without user opt-in or a clearly documented justification.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
90% confidence
Finding

This code file contains user-facing natural language stating that --lang defaults to tc, and the implementation also defaults to Traditional Chinese output. The policy requires avoiding forced language or locale choices unless the user is given an explicit opt-in or the locale restriction is clearly justified; here, Chinese is the default despite English also being supported.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

Low
Category
Not specified by scanner
Confidence
89% confidence
Finding

The manifest describes capabilities for current Hong Kong weather, regional weather, hourly/nine-day forecasts, and weather warnings. The code adds separate rainfall and rainfall-forecast modes, which are additional user-facing functions beyond the manifest description rather than merely internal implementation details.

Content

No source excerpt is available for this finding.