simscape-diagnose-simulation-error

Pass

Audited by Gen Agent Trust Hub on Nov 23, 2026

Risk Level: SAFE
Full Analysis
  • [OBFUSCATION]: The skill includes MATLAB P-code (.p) files in the scripts/ directory. These are binary-encoded scripts used to provide core diagnostic functionality for Simscape models, such as the stiffness analyzer and variable scaling tools. This is a standard format in the MATLAB ecosystem for distributing pre-compiled logic from a well-known vendor.
  • [INDIRECT_PROMPT_INJECTION]: The skill's diagnostic workflow involves ingesting data from simulation error logs and model parameters, creating a surface for indirect prompt injection.
  • Ingestion points: Simulation error messages and model-level parameters are read via model_query_params and specialized MATLAB diagnostic APIs (e.g., simscape.agentic.stiffness_analyzer_run).
  • Boundary markers: No explicit delimiters are used when the agent reads error logs, though the data is handled primarily by structured diagnostic tools.
  • Capability inventory: The skill has the capability to modify model configurations (model_edit), execute arbitrary MATLAB code within the project context (evaluate_matlab_code), and trigger simulations (model_test).
  • Sanitization: The diagnostic process relies on numerical analysis and structured API calls rather than direct string interpolation of external content into the agent's primary prompt context, which significantly mitigates the risk of the agent obeying instructions embedded in model metadata or error logs.
Audit Metadata
Risk Level
SAFE
Analyzed
Nov 23, 2026, 12:59 AM