Back to skill

Security audit

wifi-dead-zone

Security checks for vulnerabilities and agentic risk

Overview

This skill is a local Wi-Fi planning tool whose scripts and file writes match its stated purpose.

Install only if you are comfortable creating a local home-layout JSON file and storing Wi-Fi measurements in it. The inspected artifact does not send data over the network or install background components.

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
  • Behavioral ASTexec() Call, eval() Call, Dynamic Import
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
Findings (5)

Lp3

Medium
Category
MCP Least Privilege
Confidence
70% confidence
Finding
Without declared permissions the skill's intent is opaque and cannot be validated.

subprocess module call

Medium
Category
Dangerous Code Execution
Content
hf = os.path.join(td, "home.json")
    with open(hf, "w") as f:
        json.dump(wifi.sample_home(), f)
    r = subprocess.run([sys.executable, os.path.join(HERE, "wifi_heatmap.py"),
                        "survey", "--home", hf, "--room", "kitchen",
                        "--rssi", "-58", "--band", "5", "--where", "counter"],
                       capture_output=True, text=True)
Confidence
70% confidence
Finding
subprocess module calls execute external commands. Without careful input validation, this enables command injection.

subprocess module call

Medium
Category
Dangerous Code Execution
Content
with open(hf) as f:
        saved = json.load(f)
    check("measurement persisted", saved["measurements"]["kitchen"][-1]["rssi"] == -58)
    r = subprocess.run([sys.executable, os.path.join(HERE, "wifi_heatmap.py"),
                        "compare", "--home", hf], capture_output=True, text=True)
    check("compare renders table", "Model vs measured" in r.stdout and "delta" in r.stdout.lower()
          or "Delta" in r.stdout)
Confidence
70% confidence
Finding
subprocess module calls execute external commands. Without careful input validation, this enables command injection.

subprocess module call

Medium
Category
Dangerous Code Execution
Content
"compare", "--home", hf], capture_output=True, text=True)
    check("compare renders table", "Model vs measured" in r.stdout and "delta" in r.stdout.lower()
          or "Delta" in r.stdout)
    r = subprocess.run([sys.executable, os.path.join(HERE, "wifi_heatmap.py"),
                        "plan", "--home", hf], capture_output=True, text=True)
    check("plan renders heatmap", "Heatmap" in r.stdout and "@" in r.stdout)
Confidence
70% confidence
Finding
subprocess module calls execute external commands. Without careful input validation, this enables command injection.

subprocess module call

Medium
Category
Dangerous Code Execution
Content
check("plan renders heatmap", "Heatmap" in r.stdout and "@" in r.stdout)

print("cli:")
r = subprocess.run([sys.executable, os.path.join(HERE, "wifi_heatmap.py"), "example"],
                   capture_output=True, text=True)
check("example runs end-to-end", r.returncode == 0 and "Per-room signal" in r.stdout)
check("example shows before/after", "recommended spot" in r.stdout)
Confidence
70% confidence
Finding
subprocess module calls execute external commands. Without careful input validation, this enables command injection.

Static analysis

Detected: suspicious.dynamic_code_execution

Dynamic code execution detected.

Critical
Code
suspicious.dynamic_code_execution
Location
scripts/test_wifi_heatmap.py:14