Trust Assessment
policy-lawyer received a trust score of 41/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 3 findings: 1 critical, 2 high, 0 medium, and 0 low severity. Key findings include Arbitrary command execution, Dangerous call: subprocess.run(), Arbitrary File Read via --policy-file argument.
The analysis covered 4 layers: Manifest Analysis, Static Code Analysis, Dependency Graph, LLM Behavioral Safety. All layers scored 70 or above, reflecting consistent security practices.
Last analyzed on February 14, 2026 (commit 13146e6a). SkillShield performs automated 4-layer security analysis on AI skills and MCP servers.
Layer Breakdown
Behavioral Risk Signals
Security Findings3
| 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/crimsondevil333333/policy-lawyer/tests/test_policy_lawyer.py:11 | |
| HIGH | Dangerous call: subprocess.run() Call to 'subprocess.run()' detected in function 'run_cli'. This can execute arbitrary code. Avoid using dangerous functions like exec/eval/os.system. Use safer alternatives. | Static | skills/crimsondevil333333/policy-lawyer/tests/test_policy_lawyer.py:11 | |
| HIGH | Arbitrary File Read via --policy-file argument The `policy_lawyer.py` script allows users to specify an arbitrary path to a policy document using the `--policy-file` argument. The script then reads the content of this file using `pathlib.Path.read_text()` without any validation or sanitization of the provided path. This enables an attacker to read any file on the system that the skill's execution context has permissions to access, potentially leading to data exfiltration of sensitive system files (e.g., `/etc/passwd`, `/etc/shadow`, `/app/secrets.txt`) or other application data. Implement strict validation for the `--policy-file` argument. Ensure the path is within an allowed directory (e.g., `references/` or a specific data directory) by canonicalizing the path and checking its prefix. Alternatively, only allow specific, pre-defined policy files. If the skill runs with elevated privileges, consider dropping them before file operations or using a sandboxed environment. | LLM | scripts/policy_lawyer.py:12 |
Scan History
Embed Code
[](https://skillshield.io/report/dbf9846151e22c4e)
Powered by SkillShield