openocd
Pass
Audited by Gen Agent Trust Hub on Nov 27, 2026
Risk Level: SAFECOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: Executes local
openocdandarm-none-eabi-gdbbinaries via subprocess calls to interact with embedded hardware. - Evidence: Scripts such as
scripts/openocd_run.py,scripts/openocd_gdb.py, andscripts/openocd_telnet.pyusesubprocess.runandsubprocess.Popento launch external debuggers with user-supplied or configured paths. - [COMMAND_EXECUTION]: Provides a
rawsubcommand andwrite-memfunctionality that enables the execution of arbitrary OpenOCD commands and direct memory writes on connected hardware targets. - Evidence:
scripts/openocd_run.py(raw action) andscripts/openocd_telnet.py(write-mem action) allow direct manipulation of target device state. - [INDIRECT_PROMPT_INJECTION]: Processes external firmware files and debugger output, which creates a surface for indirect prompt injection if the agent analyzes malicious project data.
- Ingestion points: Reads local firmware files (ELF, HEX, BIN) and parses text output from OpenOCD and GDB processes.
- Boundary markers: No explicit delimiters or 'ignore' instructions are used when interpolating tool output into the agent's context.
- Capability inventory: Subprocess execution, local file system writes (state/config), network socket creation (localhost), and hardware control.
- Sanitization: Relies on regex parsing for structured data extraction but lacks explicit sanitization or filtering of raw terminal output from external tools.
Audit Metadata