rocm-doctor
Fail
Audited by Gen Agent Trust Hub on Oct 9, 2026
Risk Level: HIGHREMOTE_CODE_EXECUTIONCOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTIONEXTERNAL_DOWNLOADS
Full Analysis
- [REMOTE_CODE_EXECUTION]: The skill fetches and executes installation scripts (
install.shfor Linux/macOS andinstall.ps1for Windows) from the official ROCm GitHub repository. This occurs during the initialization phase if therocmCLI tool is not already detected on the system. - [COMMAND_EXECUTION]: The skill frequently executes shell commands via the
rocmCLI (examine,diagnose,fix) to inspect the host system and apply configuration changes. - [INDIRECT_PROMPT_INJECTION]: The skill has a potential vulnerability surface for indirect prompt injection:
- Ingestion points: The skill accepts user-provided error text ("symptom") in the
SKILL.mdworkflow. - Boundary markers: There are no explicit boundary markers or warnings to the agent to ignore instructions embedded within the symptom text.
- Capability inventory: The agent has the capability to execute shell commands with potentially elevated privileges via
rocm fix(which supportssudo). - Sanitization: The user's symptom is interpolated directly into a shell command:
rocm diagnose --symptom "<paste the exact error>" --json. This lacks sanitization, allowing for potential shell command injection if the input contains shell-active characters like backticks, semicolons, or command substitutions. - [EXTERNAL_DOWNLOADS]: Fetches installation scripts and configuration data from the
ROCm/rocm-clirepository on GitHub.
Recommendations
- HIGH: Downloads and executes remote code from: https://raw.githubusercontent.com/ROCm/rocm-cli/main/install.sh - DO NOT USE without thorough review
Audit Metadata