rocm-doctor
Pass
Audited by Gen Agent Trust Hub on Nov 10, 2026
Risk Level: SAFEEXTERNAL_DOWNLOADSREMOTE_CODE_EXECUTIONCOMMAND_EXECUTIONPRIVILEGE_ESCALATIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [EXTERNAL_DOWNLOADS]: The skill fetches and executes installer scripts for the
rocmCLI from official vendor-owned repositories. - Evidence:
curl -fsSL https://raw.githubusercontent.com/ROCm/rocm-cli/main/install.sh | sh(Linux) andirm https://raw.githubusercontent.com/ROCm/rocm-cli/main/install.ps1 | iex(Windows). - Context: These resources are hosted under the ROCm GitHub organization, which is the official development channel for AMD's ROCm software stack.
- [REMOTE_CODE_EXECUTION]: The skill uses piped execution to install necessary diagnostic tools.
- Evidence: Direct piping of remote scripts to shell (
sh) or PowerShell (iex) during the Phase 0 prerequisite check. - Context: This behavior is limited to the initial setup of the vendor's own diagnostic tool and is gated by user consent as specified in the workflow.
- [PRIVILEGE_ESCALATION]: Certain diagnostic fixes require elevated permissions to modify hardware configuration or group memberships.
- Evidence: The
reference.mdfile identifies several fixes (e.g.,fix-4-render-group,fix-11-iommu) as requiringsudo: trueor administrative access. - Context: The skill instructions strictly mandate that the agent must not run mutating fixes without explicit user consent and should prefer
--dry-runto preview changes. - [COMMAND_EXECUTION]: The skill's primary function is driving the
rocmCLI via subprocess calls. - Evidence: Frequent use of
rocm diagnose,rocm examine, androcm fixcommands throughout the instructions. - [INDIRECT_PROMPT_INJECTION]: The skill processes arbitrary user-provided error text (symptoms) by passing it as an argument to an external CLI tool, creating an injection surface.
- Ingestion points:
SKILL.mdinstructs the agent to pass user-pasted error text torocm diagnose --symptom "<text>". - Boundary markers: Absent; the content is passed directly as a string argument to the CLI.
- Capability inventory: The skill has the capability to execute system fixes via
rocm fix, including commands requiringsudo(e.g.,usermod,modprobe). - Sanitization: The skill relies on the external CLI's closed failure-mode catalog to match symptoms, which naturally limits the impact of malicious text intended to trigger unintended diagnostic paths.
Audit Metadata