Security Audit
hf-cloud-sagemaker-iam-preflight
github.com/huggingface/skillsTrust Assessment
hf-cloud-sagemaker-iam-preflight received a trust score of 0/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 5 findings: 2 critical, 3 high, 0 medium, and 0 low severity. Key findings include Arbitrary command execution, Dangerous call: subprocess.run(), JSON Injection in IAM Policy Generation.
The analysis covered 4 layers: Manifest Analysis, Static Code Analysis, Dependency Graph, LLM Behavioral Safety. The Manifest Analysis layer scored lowest at 40/100, indicating areas for improvement.
Last analyzed on October 1, 2026 (commit 80f9fa53). SkillShield performs automated 4-layer security analysis on AI skills and MCP servers.
Layer Breakdown
Behavioral Risk Signals
Security Findings5
| 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/hf-cloud-sagemaker-iam-preflight/scripts/check_role.py:61 | |
| 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/hf-cloud-sagemaker-iam-preflight/scripts/create_role.py:48 | |
| HIGH | Dangerous call: subprocess.run() Call to 'subprocess.run()' detected in function 'run_aws'. This can execute arbitrary code. Avoid using dangerous functions like exec/eval/os.system. Use safer alternatives. | Static | skills/hf-cloud-sagemaker-iam-preflight/scripts/check_role.py:61 | |
| HIGH | Dangerous call: subprocess.run() Call to 'subprocess.run()' detected in function 'run_aws'. This can execute arbitrary code. Avoid using dangerous functions like exec/eval/os.system. Use safer alternatives. | Static | skills/hf-cloud-sagemaker-iam-preflight/scripts/create_role.py:48 | |
| HIGH | JSON Injection in IAM Policy Generation The script `create_role.py` uses simple string replacement (`.replace()`) to insert the user-supplied `model_bucket` parameter directly into the IAM policy template. If the bucket name is sourced from untrusted input (e.g., a configuration file in a repository), an attacker can inject JSON metacharacters to manipulate the policy structure, potentially escalating privileges by adding arbitrary IAM statements (such as wildcard actions or resources) to the created SageMaker execution role. Parse the policy template using `json.loads()`, locate the specific resource string, update it programmatically, and serialize it back to a string using `json.dumps()`. This guarantees that any user input is properly escaped as a JSON string literal. | LLM | scripts/create_role.py:89 |
Scan History
Embed Code
[](https://skillshield.io/report/6fa98b8f91858e1a)
Powered by SkillShield