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, andvalidate_project_manifest.pyingest content from local.m,.mat, and.jsonfiles respectively. - Boundary markers: The
SKILL.mdfile 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, andPythontools. 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.pyutility module implements strict path validation usingPath.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
scipyandh5pyas optional backends for MAT file metadata inventory. - The documentation provides instructions for installing the official
matlabengine==26.1.12package from PyPI for MATLAB-Python integration. - [COMMAND_EXECUTION]: The
plan_batch_command.pyscript 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: falseflag 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