Back to skill

Security audit

Smart Web Monitor (智能网页监控)

Security checks for vulnerabilities and agentic risk

Overview

The skill is a coherent web monitor, but it needs review because it fetches arbitrary URLs and feeds untrusted page text to a command-capable cron agent without enough safeguards.

Install only if you are comfortable with a skill that can fetch user-configured URLs, create recurring monitoring tasks, write local monitor/report files, and send summaries to configured channels. Use it only with trusted public URLs, avoid authenticated or internal dashboards, and add strong confirmation and prompt-injection safeguards before scheduling LLM-based monitors.

Vulnerability Patterns
  • Skill Instruction HijackingAlters the agent's session goals or safety constraints when the skill loads
  • Insecure Skill Coding PracticesFinds exploitable flaws such as hardcoded secrets or command injection
  • 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

Error
Location
scripts/monitor.py:47
Finding

Unrestricted URL Fetching Enables SSRF and Local Resource Disclosure

Content
View full analysis
str: req_headers = {"User-Agent": USER_AGENT} if headers: req_headers.update(headers) req = Request(url, headers=req_headers) try: with urlopen(req, timeout=30) as resp: charset = resp.headers.get_content_charset() or 'utf-8' return resp.read().decode(charset, errors='replace') ``` The URL is supplied without validation: ```python p.add_argument("--url", required=True) ``` Additional URLs are also stored without validation: ```python def cmd_add_url(args): config = load_monitor(args.event) config["urls"].append({"url": args.url, "label": args.label or args.url}) save_monitor(config) print(f"✅ Added URL to '{args.event}'") ``` ### Technical Analysis The monitor passes a user-controlled URL directly to `urllib.request.Request` and `urlopen`. It does not restrict the scheme to HTTP or HTTPS, resolve and validate the destination address, block loopback or private address ranges, or validate redirect destinations. Consequently, a crafted monitor can request resources that are not intended to be exposed through the web-monitoring feature. Depending on the URL handlers and network environment available to the process, targets may include: - Local files through a supported local-file URL scheme. - Services listening on loopback interfaces. - Private or link-local network services. - Cloud instance metadata endpoints. - Internal HTTP applications inaccessible to the external attacker. The fetched response is subsequently printed by `cmd_fetch`, included in JSON output, passed to an LLM agent, or written into reports. This creates ...[truncated 1451 chars]
Remediation
View remediation

T01 · Skill Instruction Hijacking

Error
Location
SKILL.md:130
Finding

Untrusted Web Content Is Passed Directly to a Tool-Capable LLM Agent

Content
View full analysis
20000, "full_length": len(text) }) else: results.append({"url": url, "label": label, "text": "", "error": "fetch_failed"}) # Output as JSON for the agent ...[truncated 2613 chars]
Remediation
View remediation
Vulnerability Patterns
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • 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
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
Findings (19)

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
python3 scripts/monitor.py create \

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
python3 scripts/monitor.py create \

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
python3 scripts/monitor.py create \

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
python3 scripts/monitor.py create \

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
python3 scripts/monitor.py create \

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
python3 scripts/monitor.py create \

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
python3 scripts/monitor.py create \

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
python3 scripts/monitor.py create \

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
python3 scripts/monitor.py create \

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
python3 scripts/monitor.py create \

Undeclared Tool Scope

Medium
Category
MCP Least Privilege
Confidence
91% confidence
Finding

The skill documents commands that perform network access and likely write monitor state/configuration, but it declares no explicit tool scope or allowed-tools boundaries. In an agent ecosystem, this can lead to the skill being invoked with broader-than-necessary capabilities, increasing the chance of unintended web access, persistent state changes, or misuse by downstream automation.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The description includes many broad trigger phrases such as 'monitor website', 'watch page', 'check for changes', and generic Chinese equivalents, which can cause accidental invocation in unrelated conversations. Because this skill performs network fetching and can modify monitor state or schedule recurring actions, an unintended trigger could lead to unauthorized monitoring, noisy automation, or persistent tasks being created without clear user intent.

Content

No source excerpt is available for this finding.

Intent-Code Divergence

Medium
Category
Not specified by scanner
Confidence
93% confidence
Finding

The cmd_fetch docstring says fetched URL text is output as JSON for LLM processing, which frames the behavior as transient output. However, in the LLM run flow the script writes page text to reports/pending*.txt files for later processing, creating local persistence of monitored content rather than only outputting it.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
92% confidence
Finding

In LLM mode, fetched webpage text is saved to local files under reports without an explicit warning, consent flow, retention policy, or access controls. This can expose sensitive page contents, internal dashboards, personal data, or authenticated responses to other local users, backups, or downstream tooling, especially because this skill is designed to monitor arbitrary user-specified URLs.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
94% confidence
Finding

The natural-language matching instruction is written entirely in Chinese, which imposes a specific language/locale on the skill's evaluation behavior. There is no indication that users can choose the language or that the Chinese-only prompt is required for a documented region-specific purpose.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
91% confidence
Finding

This manifest contains user-facing natural language exclusively in Chinese, including the description and the LLM matching instruction. Under the policy rule for language/locale constraints, this can be a violation because it imposes a specific language without indicating user choice or documenting why Chinese is required.

Content

No source excerpt is available for this finding.

Intent-Code Divergence

Low
Category
Not specified by scanner
Confidence
88% confidence
Finding

The module documentation suggests LLM handling is fully external to this script. In practice, the script contains explicit LLM-mode branching, marks matches as pending, includes page text in reports, and saves text chunks for later LLM processing, so the script participates materially in the LLM workflow.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
98% confidence
Finding

The script emits mandatory Chinese-only user-facing messages during monitor pause handling, and the report formatter also uses Chinese labels and instructions. This imposes a specific language on users without opt-in or locale selection, which is a natural-language policy violation under the stated rules.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
96% confidence
Finding

The generated markdown report includes Chinese-only fields such as descriptions, timestamps, match summaries, and resume instructions. Because the file provides no documented locale choice or justification for a Chinese-only workflow, it enforces a specific language by default.

Content

No source excerpt is available for this finding.