python-debugpy
Pass
Audited by Gen Agent Trust Hub on Sep 8, 2026
Risk Level: SAFECOMMAND_EXECUTIONEXTERNAL_DOWNLOADSPRIVILEGE_ESCALATIONDYNAMIC_EXECUTION
Full Analysis
- [EXTERNAL_DOWNLOADS]: Includes instructions to install standard debugging packages
debugpyandremote-pdbfrom the official Python package registry. - [COMMAND_EXECUTION]: Provides numerous recipes for launching scripts with debugging flags, starting debug listeners, and using network tools like
ncto connect to local debug ports. It also includes a Python script template for interacting with the Debug Adapter Protocol (DAP). - [PRIVILEGE_ESCALATION]: Contains an instruction to modify the
ptrace_scopekernel parameter usingsudoto enable debuggers to attach to already-running processes. This is a common and documented requirement for process tracing on many Linux distributions. - [DYNAMIC_EXECUTION]: Provides a functional template for a DAP client script intended to be written to the local filesystem and executed to automate debugger interactions. It also documents the use of pdb's
!stmtcommand to execute arbitrary Python code within a debug session.
Audit Metadata