Back to skill

Security audit

S2-SP-OS Energy Radar

Security checks for vulnerabilities and agentic risk

Overview

The skill is framed as a passive local energy dashboard, but it presents simulated appliance data as household facts and steers agents toward appliance power-control workflows outside that passive scope.

Review before installing. Treat this as a demo/local visualization skill unless it clearly labels measured inputs and data provenance. Do not let it configure or trigger smart-plug, HVAC, breaker, or other appliance-control automations based on its current output. Run it only in an isolated environment with pinned dependencies and a private output directory.

Vulnerability Patterns
  • Skill Instruction HijackingAlters the agent's session goals or safety constraints when the skill loads
  • Tool Hijacking and SpoofingModifies or replaces tools so legitimate-looking calls execute attacker logic
  • Insecure DependenciesIntroduces malicious components through unsafe dependency sources
  • 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
Findings (4)

T07 · Tool Hijacking and Spoofing

Error
Location
energy.py:41
Finding

Synthetic Appliance Data Is Presented as Real Household Telemetry

Content
View full analysis
Remediation
View remediation

T01 · Skill Instruction Hijacking

Error
Location
S2-MEMZERO-PROTOCOL.md:13
Finding

Passive Monitoring Instructions Steer the Agent Toward Physical Device Control

Content
View full analysis
Assign to **Active Control Agent** (Can cut power/adjust state). - `smart: False` -> Assign to **Passive Notification Agent** (Can only alert the user via Digital Human UI). ``` The Agent example further states: ```markdown Cross-Domain Action Plan: I will propose a specific, executable action using my other skills (like adjusting the AC via s2-atmos-perception or cutting standby power via smart plugs) to prove I am an active OS, not just a dashboard. ``` It then proposes automation based on the generated report: ```markdown 人走灯灭/断电:允许我调用 s2-spectrum-perception(毫米波雷达),当检测到客厅连续 30 分钟无人(Occupancy: False)时,自动切断空调和电视的智能插座电源。 待机功耗清理:夜间深度睡眠期间,自动帮您切断微波炉、电脑等设备的待机电源。 ``` ### Technical Analysis The Skill identifies itself as a passive scanner and chart generator. Nevertheless, its instruction files tell the Agent to mentally assign active controllers to smart devices and propose executable actions through other skills. This is an instruction-level privilege and goal expansion. The charting Skill itself does not need authority to control appliances, invoke unrelated capabilities, or create automation policies. Loading it should not alter the Agent's behavior from passive reporting to safety-relevant physical actuation. The risk is compounded by the fact that the proposed control decisions can be based on the synthetic data generated by `energy.py`. ### Attack Path 1. The Agent loads the Skill to answer an energy-reporting request. 2. The Skill instructions require every smart device to be associated with an active control Agent. 3. `generate_dash ...[truncated 1454 chars]
Remediation
View remediation

T08 · Insecure Dependencies

Warning
Location
SKILL.md:9
Finding

Third-Party Dependencies Are Installed Without Version or Integrity Pinning

Content
View full analysis
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Warning
Location
energy.py:38
Finding

Predictable Dashboard Filenames Permit Symlink-Based File Overwrite

Content
View full analysis
/path/to/a/file/writable/by/the-agent ``` 3. The user or Agent invokes the dashboard-generation action. 4. `plt.savefig()` follows the symbolic link. 5. The linked target is truncated or overwritten with PNG data. 6. If the target is an important configuration or application file, the associated service or workflow may fail. ### Impact Assessment The attacker does not gain arbitrary read access or direct code execution solely from this flaw. The ...[truncated 565 chars]
Remediation
View remediation
Vulnerability Patterns
  • 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
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
Findings (12)

Tp4

High
Category
MCP Tool Poisoning
Confidence
93% confidence
Finding

The description is partially aligned: the code does local energy-style visualization, creates bar and trend charts, saves them locally, and does not use cloud analytics. However, there is a material description/behavior gap in the supplied chunk. The dashboard is built from hardcoded sample data and simulated 30-day consumption rather than actual spatial inventory data. Also, the description explicitly mentions Bar/Pie/Trend dashboards, but the shown implementation only produces bar and line/trend outputs, with no pie chart generation. Finally, inventory mapping and breaker-reading are declared as part of the skill’s purpose, but their implementations are omitted from the supplied chunk, so the actual demonstrated behavior is narrower than advertised. This is best classified as a mismatch because the represented capability suggests real local inventory-driven analytics, while the visible code mainly produces synthetic local visualizations.

Content

No source excerpt is available for this finding.

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.

Intent-Code Divergence

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

The documentation says the skill is only a passive scanner/chart generator, but the example explicitly directs the agent to convert outputs into operational recommendations and to invoke other skills for power-cutting automations. This creates a scope-expansion hazard: downstream agents may treat descriptive telemetry as authorization for control actions, increasing the chance of unsafe or unintended actuation.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

The example pushes the agent beyond local visualization into proactive inference, behavioral interpretation, and home automation orchestration. That broadening is dangerous because an agent may over-trust the example as policy, make unsupported assumptions from energy charts, and trigger actions in other systems without explicit user intent or verified safety conditions.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
91% confidence
Finding

The example response is written entirely in Chinese and addresses the user as '主人', with no indication that language choice is user-selectable or context-dependent. Under the policy criteria, forcing a specific language or locale without user opt-in is a natural-language policy violation unless clearly documented and justified.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The markdown recommends automatic power-cutting of appliances and standby loads without warning about risks such as interrupting climate control, corrupting devices, disabling safety-critical equipment, or affecting user comfort and availability. In a home-automation context, presenting shutoff automation as a routine optimization can lead to real-world physical and operational consequences if copied by an agent or user without safeguards.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The document explicitly assigns an 'Active Control Agent' the ability to cut power or adjust device state, but it provides no requirement for explicit user confirmation, authorization boundaries, safety interlocks, or warnings about system-impacting actions. In an energy-management skill, this materially increases risk because users may assume the feature is observational only, while the protocol enables actuator behavior that could disrupt appliances, safety devices, or critical household operations.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

The skill instructs the agent to run local Python commands and generate local image files, but does not require a user-facing warning or confirmation before doing so. This is dangerous because users may not realize the agent is invoking local execution, creating files, and potentially exposing local file URIs in the response.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

The skill says to generate dashboards whenever the user asks for an energy report, which is a broad natural-language trigger that could cause command execution in response to common phrasing without sufficiently explicit user consent. In an agentic context, overly broad invocation rules increase the chance of unintended local execution and file generation.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
78% confidence
Finding

The file states 'You MUST present these image links directly to the user in your markdown response,' which mandates a specific presentation format regardless of user preference. This is a natural-language policy concern because it imposes an output mode without offering choice or documenting a justified requirement.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
95% confidence
Finding

The banner line presents the skill description bilingually, which indicates a language preference is embedded in the skill. Under the policy rule, forcing or assuming a specific language/locale without user opt-in can be a natural-language policy issue, and no user choice or justification is visible in this file.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
98% confidence
Finding

The skill returns a user-facing natural-language string in both English and Chinese regardless of any user preference. This is a locale/language policy concern because the file does not provide a language selection mechanism or explain why a fixed bilingual response is required.

Content

No source excerpt is available for this finding.