hf-cloud-sagemaker-iam-preflight

Pass

Audited by Gen Agent Trust Hub on Aug 15, 2026

Risk Level: SAFECOMMAND_EXECUTION
Full Analysis
  • [COMMAND_EXECUTION]: The scripts scripts/check_role.py and scripts/create_role.py execute the local aws CLI binary using the Python subprocess.run function. The scripts pass arguments as a list rather than a single string, which is a security best practice that prevents shell injection attacks.
  • [PRIVILEGE_ESCALATION]: The skill is designed to perform IAM operations, including iam:CreateRole, iam:AttachRolePolicy, and iam:PutRolePolicy. While these are high-privilege actions, they are the primary and intended purpose of the skill to configure SageMaker environments. The skill includes warnings for SSO users who may lack these permissions.
  • [INDIRECT_PROMPT_INJECTION]: The skill accepts user-supplied strings for role names and bucket names which are then used in shell commands.
  • Ingestion points: Command-line arguments in scripts/check_role.py and scripts/create_role.py passed to subprocess.
  • Boundary markers: None present.
  • Capability inventory: Execution of aws iam commands via subprocess.run to manage IAM resources.
  • Sanitization: No explicit string sanitization is performed, though the use of list-based arguments for subprocess.run prevents direct shell command injection.
Audit Metadata
Risk Level
SAFE
Analyzed
Aug 15, 2026, 03:43 AM
Security Audit — agent-trust-hub — hf-cloud-sagemaker-iam-preflight