Ae1
- Category
- analysis-evasion
- Confidence
- 100% confidence
- Finding
Referenced artifact was not completely inspected
- Content
md 脚本与 `SKILL.md` 位于同一目录。执行时先把脚本路径解析为当前技能目录下的 `deep-research.mjs`,不要写死开发机绝对路径。
Security audit
Security checks for vulnerabilities and agentic risk
The skill mostly matches its deep-research purpose, but it includes a loosely scoped local SDK override that can execute arbitrary JavaScript with the Gemini API key available.
Install only if you are comfortable giving the skill a Gemini API key and sending research prompts to Gemini. Avoid using GOOGLE_GENAI_SDK_PATH unless you fully trust the exact local SDK file, because that path is executed as JavaScript with the same environment as the skill.
Referenced artifact was not completely inspected
脚本与 `SKILL.md` 位于同一目录。执行时先把脚本路径解析为当前技能目录下的 `deep-research.mjs`,不要写死开发机绝对路径。
The dynamic import uses a caller-influenced path or specifier and resolves relative/local filesystem locations into executable module URLs. This creates an unnecessary arbitrary code execution primitive: an attacker controlling GOOGLE_GENAI_SDK_PATH can run attacker-supplied JavaScript before any API call, inheriting access to the process environment including GEMINI_API_KEY.
The skill instructs use of an environment variable containing a sensitive API key and execution of a local Node.js script, but it does not declare an explicit tool scope such as permissions or allowed-tools. That creates a trust and review gap: an orchestrator may invoke the skill without clear least-privilege boundaries, increasing the chance of unintended environment access or broader execution than reviewers expect.
The trigger phrases include generic requests like '研究一下', '写研究报告', and '详细分析', which can match many ordinary user prompts. Overly broad activation can cause this skill to run in situations the user did not intend, leading to unnecessary external research actions, API usage, and possible transmission of sensitive prompt context to the Gemini service.
The natural-language content of the skill is entirely in Chinese and instructs usage in that locale, but it does not state that language choice is optional or user-selectable. Under the policy, forcing a specific language without opt-in can be a locale-policy violation unless clearly justified as region-specific.
The script explicitly supports a GOOGLE_GENAI_SDK_PATH override, enabling loading of a local module outside the expected @google/genai package. Because Node executes module top-level code during import, anyone who can influence this environment variable can cause arbitrary code execution in the context of the skill, which is unrelated to the stated deep-research/report-generation purpose.