huawei-cloud-mrs-spark-sql-check

Fail

Audited by Gen Agent Trust Hub on Nov 18, 2026

Risk Level: HIGHCOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
  • [COMMAND_EXECUTION]: The workflow instructions in SKILL.md (Steps 2, 3, and 6) direct the agent to execute shell commands like 'python ~/.cac/skills/huawei-cloud-mrs-spark-sql-check/scripts/spark_sql_tokenizer.py "<sql_text>"'. Because the user-provided <sql_text> is interpolated directly into the shell command string, a malicious user can achieve arbitrary command execution on the agent's system by including shell metacharacters (e.g., semicolons, backticks) in the SQL input.
  • [INDIRECT_PROMPT_INJECTION]: The skill is vulnerable to indirect prompt injection because it ingests untrusted SQL data for analysis without adequate safety measures. Ingestion points: The 'sql_text' variable in SKILL.md. Boundary markers: None; the instructions do not use delimiters or include warnings to ignore instructions embedded in SQL comments. Capability inventory: Shell execution of Python scripts for SQL analysis. Sanitization: None; the skill performs static analysis but does not sanitize or escape the input before processing or shell interpolation.
Recommendations
  • AI detected serious security threats
Audit Metadata
Risk Level
HIGH
Analyzed
Nov 18, 2026, 04:04 AM