subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
f"cd('{temp_dir}'); {temp_name}" ] result = subprocess.run( cmd, capture_output=capture_output, text=True,- Confidence
- 99% confidence
- Finding
- The bridge is explicitly designed to execute arbitrary MATLAB code supplied via the `code` parameter, which means any caller can cause MATLAB to run commands with the privileges of the host process. In the context of an agent skill, this is dangerous because MATLAB code can read/write files, invoke system commands, and persist artifacts, turning the skill into a code-execution primitive if exposed to untrusted input.
