matlab

Pass

Audited by Gen Agent Trust Hub on Sep 24, 2026

Risk Level: SAFE
Full Analysis
  • [INDIRECT_PROMPT_INJECTION]: The skill is designed to process user-provided MATLAB source code and MAT data files, which represent untrusted ingestion surfaces. However, this risk is the primary focus of the skill's defensive design.
  • Ingestion points: The scripts scan_m_code.py, inventory_mat_file.py, and validate_project_manifest.py ingest content from local .m, .mat, and .json files respectively.
  • Boundary markers: The SKILL.md file and accompanying reference documentation (e.g., references/executing-scripts.md) contain non-negotiable safety instructions, requiring the agent to treat every external file as untrusted and prohibiting execution without explicit user review of the planned commands.
  • Capability inventory: The skill uses Read, Write, Bash, Glob, and Python tools. The included Python scripts perform metadata analysis and file generation but explicitly refrain from spawning sub-processes or invoking the MATLAB/Octave runtimes.
  • Sanitization: The scripts/_common.py utility module implements strict path validation using Path.resolve(), relative_to(), and mandatory symlink rejection (_reject_symlink_chain) to prevent path traversal and ensure all operations remain within the defined project root.
  • [EXTERNAL_DOWNLOADS]: The documentation and scripts refer to standard, well-known scientific libraries and official vendor packages.
  • The skill identifies scipy and h5py as optional backends for MAT file metadata inventory.
  • The documentation provides instructions for installing the official matlabengine==26.1.12 package from PyPI for MATLAB-Python integration.
  • [COMMAND_EXECUTION]: The plan_batch_command.py script generates command-line arguments (argv) for MATLAB and Octave execution.
  • The tool is strictly limited to planning; it generates the command string for user approval and sets an internal executes: false flag in its output.
  • It employs a whitelist-based identifier validator and a secure MATLAB literal converter to mitigate potential command injection through function arguments.
Audit Metadata
Risk Level
SAFE
Analyzed
Sep 24, 2026, 02:28 PM