yuandian-law-search
Pass
Audited by Gen Agent Trust Hub on Nov 30, 2026
Risk Level: SAFECOMMAND_EXECUTIONEXTERNAL_DOWNLOADSINDIRECT_PROMPT_INJECTIONDYNAMIC_EXECUTION
Full Analysis
- [COMMAND_EXECUTION]: The skill executes a local Python script (
scripts/yd_search.py) via a bash wrapper (scripts/yd-run) to interface with the legal search API. It also includes test scripts that usesubprocess.runto verify the behavior of its own command-line interface. - [EXTERNAL_DOWNLOADS]: The skill fetches legal regulations, judicial cases, and corporate information from the YuanDian Open Platform (
open.chineselaw.com). This behavior is the primary function of the skill and targets a specific, well-known legal information provider. - [INDIRECT_PROMPT_INJECTION]: The skill processes untrusted external content, such as legal text and judicial case summaries, retrieved from third-party API responses. The instructions direct the agent to filter and verify these results before inclusion in final reports to mitigate the risk of processing adversarial content.
- [DYNAMIC_EXECUTION]: Internal verification scripts (
scripts/verify-lightweight-contracts.py) programmatically generate and execute temporary Python files to test environment variable handling and shell wrapper behavior within the skill's local directory structure.
Audit Metadata