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, thequery_paramtool takes aqnameargument and evaluates it within an f-string:eval(f"{qname}.regs.{original_key}"). A malicious string inqnamecould execute code before the rest of the expression is evaluated. - Implementation files for numerous tools (e.g.,
s21,rabi,ramsey,t1,xeb,singleshot, andbaseslopelocated inscripts/mcp/lqcs_mcp/tools/) directly executeeval(qubits[0])wherequbitsis 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_datatool inscripts/mcp/mcp_tools.pyallows reading the content of any HDF5 file on the local system by providing its path in theridparameter. This provides a mechanism for unauthorized access to sensitive quantum measurement data or filesystem probing. - [DATA_EXFILTRATION]: Hardcoded filesystem paths on the
D:drive inscripts/mcp/mcp_tools.pyreveal 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_datatool inscripts/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