skills/udecode/ustack/pstack-doctor/Gen Agent Trust Hub

pstack-doctor

Pass

Audited by Gen Agent Trust Hub on Dec 2, 2026

Risk Level: SAFECOMMAND_EXECUTIONDATA_EXFILTRATIONINDIRECT_PROMPT_INJECTIONPRIVILEGE_ESCALATION
Full Analysis
  • [COMMAND_EXECUTION]: Executes local git and ripgrep (rg) binaries to analyze project history, configuration, and log files.
  • [DATA_EXFILTRATION]: Accesses and reads sensitive agent session data, including full transcripts of interactions and system logs stored in ~/.claude, ~/.t3, and ~/.gemini. It can read stored session tokens if present in the environment or logs, so use credentials with limited scope.
  • [INDIRECT_PROMPT_INJECTION]:
  • Ingestion points: Processes untrusted external data from session transcript files (transcript.jsonl) and decision logs (.decisions.tsv).
  • Boundary markers: Includes explicit warnings when printing transcript tails, stating that the data is a record and should not be treated as instructions.
  • Capability inventory: Possesses capabilities to execute shell commands and programmatically block the agent's turn via scripts/doctor.mjs.
  • Sanitization: Analyzes raw transcript text; however, it includes a disclaimer to prevent the agent from obeying instructions found within the logs.
  • [PRIVILEGE_ESCALATION]: Implements a "Stop hook" mechanism that can block the agent from completing a session turn by exiting with an error status code based on conditions found in the analyzed transcripts.
Audit Metadata
Risk Level
SAFE
Analyzed
Dec 2, 2026, 12:25 PM