Trust Assessment
niri-ipc received a trust score of 10/100, placing it in the Untrusted category. This skill has significant security findings that require attention before use in production.
SkillShield's automated analysis identified 9 findings: 4 critical, 4 high, 1 medium, and 0 low severity. Key findings include Arbitrary command execution, Dangerous call: subprocess.run(), Dangerous call: subprocess.Popen().
The analysis covered 4 layers: Manifest Analysis, Static Code Analysis, Dependency Graph, LLM Behavioral Safety. The Manifest Analysis layer scored lowest at 10/100, indicating areas for improvement.
Last analyzed on February 13, 2026 (commit 13146e6a). SkillShield performs automated 4-layer security analysis on AI skills and MCP servers.
Layer Breakdown
Behavioral Risk Signals
Security Findings9
| Severity | Finding | Layer | Location | |
|---|---|---|---|---|
| CRITICAL | Arbitrary command execution Python shell execution (os.system, subprocess) Review all shell execution calls. Ensure commands are static (not built from user input), use absolute paths, and are strictly necessary. Prefer library APIs over shell commands. | Manifest | skills/atefr/niri-ipc/scripts/niri.py:35 | |
| CRITICAL | Arbitrary command execution Python shell execution (os.system, subprocess) Review all shell execution calls. Ensure commands are static (not built from user input), use absolute paths, and are strictly necessary. Prefer library APIs over shell commands. | Manifest | skills/atefr/niri-ipc/scripts/niri.py:90 | |
| CRITICAL | Arbitrary command execution Python shell execution (os.system, subprocess) Review all shell execution calls. Ensure commands are static (not built from user input), use absolute paths, and are strictly necessary. Prefer library APIs over shell commands. | Manifest | skills/atefr/niri-ipc/scripts/niri_ctl.py:32 | |
| CRITICAL | Command Injection via 'spawn-sh' action The `niri.py` script acts as a wrapper for the `niri msg` command, including the `action spawn-sh` functionality. The `spawn-sh` action is explicitly designed to execute arbitrary shell commands. If an attacker can control the arguments passed to `niri.py action spawn-sh`, they can execute arbitrary shell commands on the host system. The `niri.py` script does not sanitize or restrict the input provided to this action, directly exposing this powerful capability. Restrict or sanitize input to the `spawn-sh` action. If arbitrary shell execution is intended, clearly document the security implications and ensure the skill's execution environment is appropriately sandboxed or restricted. Consider if `spawn-sh` is truly necessary for the skill's core functionality, or if a more limited `spawn` (without shell interpretation) would suffice for most use cases. | LLM | scripts/niri.py:77 | |
| HIGH | Dangerous call: subprocess.run() Call to 'subprocess.run()' detected in function 'run_niri_msg'. This can execute arbitrary code. Avoid using dangerous functions like exec/eval/os.system. Use safer alternatives. | Static | skills/atefr/niri-ipc/scripts/niri.py:35 | |
| HIGH | Dangerous call: subprocess.Popen() Call to 'subprocess.Popen()' detected in function 'main'. This can execute arbitrary code. Avoid using dangerous functions like exec/eval/os.system. Use safer alternatives. | Static | skills/atefr/niri-ipc/scripts/niri.py:90 | |
| HIGH | Dangerous call: subprocess.run() Call to 'subprocess.run()' detected in function 'run_json'. This can execute arbitrary code. Avoid using dangerous functions like exec/eval/os.system. Use safer alternatives. | Static | skills/atefr/niri-ipc/scripts/niri_ctl.py:32 | |
| HIGH | Excessive Permissions: Direct IPC and Arbitrary Program Execution The skill provides extensive control over the Niri Wayland compositor, including direct IPC access via `niri_socket.py` and the ability to spawn arbitrary programs (with or without shell interpretation) via `niri.py`. While this is the stated purpose of the skill, it grants a high level of control over the user's desktop environment and system. If an attacker gains control over the skill's inputs, they could perform destructive actions (e.g., quit compositor, power off monitors, execute arbitrary code, exfiltrate sensitive window/workspace data). The `niri_socket.py` script explicitly warns about 'destructive actions'. Implement strict input validation and authorization checks for all commands, especially those that modify system state or execute external programs. Ensure the skill operates with the principle of least privilege. If the skill is intended to be used by an LLM, ensure the LLM's outputs are rigorously validated against a whitelist of safe commands and arguments before execution. | LLM | scripts/niri_socket.py:20 | |
| MEDIUM | Suspicious import: socket Import of 'socket' detected. This module provides network or low-level system access. Verify this import is necessary. Network and system modules in skill code may indicate data exfiltration. | Static | skills/atefr/niri-ipc/scripts/niri_socket.py:30 |
Scan History
Embed Code
[](https://skillshield.io/report/6546ad17edc83804)
Powered by SkillShield