openocd

Pass

Audited by Gen Agent Trust Hub on Nov 27, 2026

Risk Level: SAFECOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
  • [COMMAND_EXECUTION]: Executes local openocd and arm-none-eabi-gdb binaries via subprocess calls to interact with embedded hardware.
  • Evidence: Scripts such as scripts/openocd_run.py, scripts/openocd_gdb.py, and scripts/openocd_telnet.py use subprocess.run and subprocess.Popen to launch external debuggers with user-supplied or configured paths.
  • [COMMAND_EXECUTION]: Provides a raw subcommand and write-mem functionality that enables the execution of arbitrary OpenOCD commands and direct memory writes on connected hardware targets.
  • Evidence: scripts/openocd_run.py (raw action) and scripts/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
Risk Level
SAFE
Analyzed
Nov 27, 2026, 01:37 AM