nano-doctor
Warn
Audited by Gen Agent Trust Hub on May 14, 2026
Risk Level: MEDIUMCOMMAND_EXECUTIONEXTERNAL_DOWNLOADSREMOTE_CODE_EXECUTION
Full Analysis
- [COMMAND_EXECUTION]: Executes local shell scripts
nano-doctor.sh,skill-preamble.sh, andskill-finalize.shlocated within the~/.claude/skills/nanostack/bin/directory. - [REMOTE_CODE_EXECUTION]: Recommends the execution of
npx create-nanostack, which downloads and executes remote code from the npm registry at runtime. - [COMMAND_EXECUTION]: The
--fixfunctionality modifies the agent's.claude/settings.jsonto insertPreToolUsehooks for Bash and file-editing tools. These hooks function as persistence mechanisms that automatically trigger scripts whenever those tools are invoked by the agent. - [PROMPT_INJECTION]: The skill creates a surface for indirect prompt injection via the following characteristics:
- Ingestion points: The agent is instructed to process the JSON output from
nano-doctor.shand follow thefix_commandprovided within that output. - Boundary markers: The instructions lack boundary markers or guidelines to ignore instructions embedded within the script's output.
- Capability inventory: The skill possesses capabilities to modify configuration files, change file permissions, and execute shell commands.
- Sanitization: There is no evidence of sanitization or validation for the commands and parameters parsed from the diagnostic output before they are suggested to or executed by the agent.
Audit Metadata