lov-clash-tun-doctor
Pass
Audited by Gen Agent Trust Hub on Oct 18, 2026
Risk Level: SAFECOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The script
scripts/clash_tun_doctor.pyutilizessubprocess.runto manage the lifecycle of the Clash Verge Rev application on macOS. It executes system utilities such asosascript(to quit the application),open(to restart it), andpgrep(to monitor process status). The arguments for these commands are derived from fixed constants, which effectively prevents command injection vulnerabilities. - [INDIRECT_PROMPT_INJECTION]: The
direct-listfeature ingests and parses external service logs to identify hosts for network routing rules. While this is a potential attack surface for indirect prompt injection, the skill mitigates the risk by validating all extracted hostnames against a strict hostname regex (HOSTNAME_RE) and using safe formatting viajson.dumpswhen writing new configuration rules. - [SAFE]: The skill adheres to security best practices by defaulting to read-only operations. Any modifications to the user's system require the explicit use of the
--applyflag. Furthermore, the skill automatically generates timestamped backups in a dedicated directory before modifying any configuration files and includes a built-inrollbackmechanism to revert changes. - [SAFE]: Data access within the skill is limited to specific Clash Verge Rev configuration files and a local Unix domain socket for API communication. The script uses targeted parsing to extract only the necessary settings required for diagnosis, ensuring that unrelated sensitive information is not unnecessarily exposed or processed.
Audit Metadata