lqcs-qubit-calib

Fail

Audited by Gen Agent Trust Hub on Jul 6, 2026

Risk Level: HIGHREMOTE_CODE_EXECUTIONCOMMAND_EXECUTIONDATA_EXFILTRATION
Full Analysis
  • [REMOTE_CODE_EXECUTION]: The skill extensively uses the unsafe eval() function to process arguments passed through tool calls, which can be exploited to execute arbitrary Python code.
  • In scripts/mcp/mcp_tools.py, the query_param tool takes a qname argument and evaluates it within an f-string: eval(f"{qname}.regs.{original_key}"). A malicious string in qname could execute code before the rest of the expression is evaluated.
  • Implementation files for numerous tools (e.g., s21, rabi, ramsey, t1, xeb, singleshot, and baseslope located in scripts/mcp/lqcs_mcp/tools/) directly execute eval(qubits[0]) where qubits is a tool parameter.
  • [COMMAND_EXECUTION]: The use of dynamic evaluation to resolve object names from strings creates an insecure execution environment where inputs can trigger unintended system logic or functions.
  • [DATA_EXFILTRATION]: The get_data tool in scripts/mcp/mcp_tools.py allows reading the content of any HDF5 file on the local system by providing its path in the rid parameter. This provides a mechanism for unauthorized access to sensitive quantum measurement data or filesystem probing.
  • [DATA_EXFILTRATION]: Hardcoded filesystem paths on the D: drive in scripts/mcp/mcp_tools.py reveal environmental details and measurement data storage organization to the agent.
  • [PROMPT_INJECTION]: The skill exhibits an attack surface for indirect prompt injection (Category 8).
  • Ingestion points: External data enters the context via the get_data tool in scripts/mcp/mcp_tools.py, which reads local HDF5 files.
  • Boundary markers: None identified to distinguish between processed data and instructions.
  • Capability inventory: Significant capabilities including arbitrary code execution (eval()) and local filesystem access are available to the skill.
  • Sanitization: There is no evidence of validation or sanitization for the data read from files before it is processed or returned to the agent.
  • [REMEDIATION]: To mitigate these risks, the skill should: replace eval() with safe dictionary lookups for resolving objects; implement strict validation and sanitization for all tool arguments (e.g., using a whitelist for qubit names); and restrict filesystem access to a dedicated sandbox with path validation.
Recommendations
  • AI detected serious security threats
Audit Metadata
Risk Level
HIGH
Analyzed
Jul 6, 2026, 09:46 AM