matlab-interpret-machine-learning-model
Pass
Audited by Gen Agent Trust Hub on Oct 1, 2026
Risk Level: SAFEDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTIONCOMMAND_EXECUTION
Full Analysis
- [DYNAMIC_EXECUTION]: The skill facilitates the creation and execution of local MATLAB scripts (
.mfiles) to wrap custom model objects for compatibility with interpretability functions. - The
references/custom-model-wrapper.mdfile outlines a process to generate a<model-variable-name>FcnHandle.mfile. - This mechanism includes a mandatory validation step where the generated handle must reproduce the model's known predictions before it is used in further analysis, mitigating risks associated with code generation.
- [INDIRECT_PROMPT_INJECTION]: The skill has an attack surface for indirect prompt injection as it processes user-provided models and tabular data.
- Untrusted data enters the agent context through variables like
Mdl,Xtrain, andXtestinSKILL.md. - The skill mitigates this by instructing the agent to inventory all inputs and require explicit user confirmation before proceeding with any analysis.
- Capabilities are limited to standard analysis functions within the Statistics and Machine Learning Toolbox.
- [COMMAND_EXECUTION]: The skill utilizes MATLAB commands to manage its environment and execute analysis.
- It uses
addpathto incorporate the directory containing generated wrapper scripts into the MATLAB search path. - It leverages
evaluate_matlab_codeto call statistical functions such asshapley,lime, andpermutationImportance.
Audit Metadata