Back to skill

Security audit

宜家灯泡控制工具

Security checks for vulnerabilities and agentic risk

Overview

This smart-bulb skill is mostly documentation-only, but it asks for broad read/write/command authority and gives generic command/file guidance that does not fit simple light control.

Install only if you are comfortable granting the agent read, write, and command-execution capabilities for this skill. Prefer a version that exposes narrow bulb-control operations, restricts device targets, removes generic file/command workflows, and does not advise administrator execution.

Vulnerability Patterns
  • Unauthorized Access and Privilege EscalationObtains permissions beyond the task's legitimate needs
  • 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
Findings (1)

T05 · Unauthorized Access and Privilege Escalation

Warning
Location
SKILL.md:187
Finding

Overbroad File and Command Capabilities with Privilege-Elevation Guidance

Content
View full analysis

Vulnerability Details

File Location: SKILL.md:187-190, 194-197, 209, 228-235
Vulnerability Type: Excessive system capabilities and unsafe privilege guidance
Risk Level: Medium

Vulnerable Code Snippet

The following is an English translation of the relevant declarations in SKILL.md:

markdown
- **File processing**: Supports reading, parsing, and writing multiple file formats
- **API integration**: Calls external services through standardized interfaces and processes responses
- **Command execution**: Executes system commands in a secure sandbox and collects results
- **Information retrieval**: Quickly searches and filters target data

These unrestricted capabilities are declared again:

markdown
- **File processing**: Supports reading, parsing, and writing multiple file formats
- **API integration**: Calls external services through standardized interfaces and processes responses
- **Command execution**: Executes system commands in a secure sandbox and collects results
- **Information retrieval**: Quickly searches and filters target data

The troubleshooting guidance also recommends privilege elevation:

markdown
| Insufficient permissions | The current user lacks read/write permission | Check file permissions and run as administrator |

Generic file and command workflows are subsequently presented:

markdown
1. **Prepare files**: Confirm that the file path is correct and the format is supported
2. **Execute processing**: Call the corresponding processing function
3. **View results**: Check the output file or returned data
1. **Check environment**: Confirm that the runtime and dependencies are installed
2. **Execute command**: Use the correct parameter format
3. **View output**: Check command output and exit code

Technical Analysis

The skill's stated purpose is controlling IKEA and TP-Link Kasa smart bulbs. That task ordinarily requires narro ...[truncated 3378 chars]

Remediation
View remediation

Remediation Suggestions

  1. Remove the generic read, write, and exec tool permissions unless each capability is essential to a documented bulb-control operation.
  2. Replace free-form command execution with a narrow bulb-control interface containing explicit operations such as turn_on, turn_off, set_brightness, and set_color.
  3. Validate all device identifiers, IP addresses, color values, and brightness values against strict schemas and configured allowlists.
  4. Restrict network access to explicitly configured local bulb or hub addresses. Reject loopback services, metadata endpoints, arbitrary hostnames, and unrelated private-network destinations.
  5. If a local utility is required, invoke a fixed executable using an argument array. Do not use a shell or concatenate user-controlled text into commands.
  6. If file access is genuinely necessary, confine it to a dedicated application directory, resolve canonical paths, and reject path traversal and symbolic-link escapes.
  7. Remove the instruction to run as administrator. Document the minimum required permissions and fail safely when those permissions are unavailable.
  8. Enforce sandboxing technically rather than merely claiming that commands run in a sandbox. Define file-system, process, network, and resource limits.
  9. Require explicit user confirmation before any state-changing device action, external network request, file write, or process execution.
  10. Add an implementation and security tests demonstrating that unrelated commands, arbitrary paths, unauthorized devices, and elevated execution are rejected.
Vulnerability Patterns
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • 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 (7)

Context-Inappropriate Capability

High
Category
Not specified by scanner
Confidence
96% confidence
Finding

The documentation includes generic command-execution capability even though the skill is framed as device control. Because the skill also declares exec tooling, an agent may invoke arbitrary system commands under the guise of bulb management, creating a direct path to host compromise or abuse.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

The description contains an overly broad activation phrase covering generic AI model use, agent orchestration, and LLM applications rather than specific bulb-control scenarios. This can cause the skill to be selected in unrelated contexts, exposing exec/write/read capabilities and remote device control where they are not needed.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
89% confidence
Finding

The skill description does not clearly warn users that it can change physical device state remotely and that the skill has command-execution capability. In this context, omission matters because physical-world actions and system command execution both carry safety and security consequences that require explicit user awareness and consent.

Content

No source excerpt is available for this finding.

Intent-Code Divergence

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

The document claims commands should be limited to a whitelist, but the declared toolset exposes unrestricted exec. This inconsistency is dangerous because users and orchestrators may rely on the safer documented behavior while the skill actually retains a much broader ability to run system commands.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

Medium
Category
Not specified by scanner
Confidence
90% confidence
Finding

The skill presents itself as a smart-bulb control tool, but later advertises broad file-processing features unrelated to that purpose. This scope mismatch increases the chance that an agent will grant or exercise unnecessary capabilities, expanding the attack surface and enabling unintended data access or manipulation.

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 presents core metadata and usage text in a mixed Chinese-English form, but does not state whether the skill adapts to the user's preferred language or locale. This can violate a language-choice policy when a skill appears to impose a presentation style without explicit opt-in.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

Low
Category
Not specified by scanner
Confidence
82% confidence
Finding

Advertising generic information-retrieval and search functions in a bulb-control skill indicates unnecessary capability expansion beyond the stated purpose. While lower impact than command execution, it can still lead to overbroad invocation, data exposure, or user confusion about what the skill is authorized to access.

Content

No source excerpt is available for this finding.