onnx-webgpu-converter
Fail
Audited by Gen Agent Trust Hub on Sep 21, 2026
Risk Level: HIGHDYNAMIC_EXECUTIONCOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [DYNAMIC_EXECUTION]: The script
scripts/preflight_check.pydynamically generates and executes Python code snippets at runtime. - The functions
check_onnx_communityanddetect_taskconstruct Python scripts as strings using f-strings and execute them usingsubprocess.run([sys.executable, "-c", script]). - [COMMAND_EXECUTION]: The dynamic execution pattern in
scripts/preflight_check.pyis vulnerable to command injection because it incorporates user-supplied input (model_id) directly into executable code strings without sufficient sanitization. - An attacker could provide a
model_idcontaining Python escape sequences (e.g.,"); import os; os.system('...'); #) to execute arbitrary commands on the host system. - [INDIRECT_PROMPT_INJECTION]: The skill processes untrusted model identifiers from external sources (HuggingFace Hub) which are then used in security-sensitive operations.
- Ingestion points: User-provided
model_idor HuggingFace URL passed toscripts/preflight_check.pyandoptimum-clicommands. - Boundary markers: None identified in the script or instructions to prevent the agent from executing injected commands.
- Capability inventory: The skill has the ability to execute shell commands, run Python scripts, and perform network operations to HuggingFace Hub.
- Sanitization: The
extract_model_idfunction uses basic regular expressions for URL parsing but does not sanitize the resulting identifier against code injection characters like quotes or semicolons before it is used in code generation.
Recommendations
- AI detected serious security threats
Audit Metadata