melech-debug-mode
Fail
Audited by Gen Agent Trust Hub on Oct 1, 2026
Risk Level: HIGHPERSISTENCEEXTERNAL_DOWNLOADSINDIRECT_PROMPT_INJECTIONCOMMAND_EXECUTION
Full Analysis
- [PERSISTENCE]: The skill includes an installation script
scripts/install-dm.shdesigned to modify the user's shell configuration files (~/.zshrc,~/.bashrc, or~/.profile). It appends a code block that sourcesscripts/dm.sh, establishing a persistent shell alias (dm) that remains active across different terminal sessions. - [EXTERNAL_DOWNLOADS]: The instructions in
SKILL.mdguide the user to install external dependencies, including theportlessNPM package (npm install -g portless) and an additional agent skillmelech-live-browserfrom the author's GitHub repository (https://github.com/AdirD/agent-shell-hamelech). - [INDIRECT_PROMPT_INJECTION]: The skill defines a workflow where the agent reads logs (
events.jsonl) collected from a local UI via thedm logscommand. - Ingestion points: The
logs_sessionfunction inscripts/debug_session.pyreads and parses JSONL data from theevents.jsonlfile. - Boundary markers: The instructions do not specify any boundary markers or delimiters when presenting the log data to the agent, creating a surface for embedded instructions in the UI to influence the agent.
- Capability inventory: The skill has the ability to manage background processes using
subprocess, delete directories, and is expected to modify application code based on the evidence gathered. - Sanitization: While
assets/collector.pycontains aSENSITIVE_KEYSfilter to block credentials (e.g.,api_key,token,password), it does not sanitize log content against malicious natural language instructions. - [COMMAND_EXECUTION]: The management script
scripts/debug_session.pyusessubprocess.Popenandsubprocess.runto launch theportlessproxy and the Python collector script, and to manage process lifecycles using system tools likepsandtaskkill. The arguments for these calls are constructed using randomized tokens and validated session paths.
Recommendations
- AI detected serious security threats
Audit Metadata