T07 · Tool Hijacking and Spoofing
- Location
kiwi_bridge.py:42- Finding
Relative Child-Script Resolution Enables Local Code Substitution
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
The skill appears to be a game sensitivity calibrator, but its code can return calibration results unrelated to the user's submitted data and makes overconfident privacy claims.
Review before installing or paying for use. Do not rely on the calibration output until the submitted angles are actually passed into the core calculation, fixed fallback constants are removed, video-processing failures return errors, privacy masking limits are documented, dependency versions are pinned, and the child script path is resolved from the trusted package directory.
kiwi_bridge.py:42Relative Child-Script Resolution Enables Local Code Substitution
kiwi_bridge.py:25User Input Is Discarded and Successful Calibration Values Can Be Fabricated
manifest.json:8Unpinned Third-Party Dependencies Create Supply-Chain and Reproducibility Risk
Code enumerates, copies, or searches environment variables for secrets. Bulk environment access can collect credentials unrelated to the skill's stated purpose.
# 透過複製當前系統環境變數,並強制加上 PYTHONIOENCODING = utf-8,
# 這樣一來,你的 neurosync_calibration.py 就能順利印出 'R²' 與繁體中文,絕對不會再噴發編碼錯誤!
# =============================================================
env = os.environ.copy()
env["PYTHONIOENCODING"] = "utf-8"
# 2. 【核心外包呼叫】:啟動子進程呼叫原始碼,不改動任何一行二值化閾值
The entire skill description and operating instructions are written only in Traditional Chinese, with no indication that other languages are supported or that the user may choose a preferred language. Under the stated policy, forcing a specific language without user opt-in is a natural-language policy violation.
This code emits user-facing text in Traditional Chinese, and subsequent exception and status messages are also written only in Chinese. The file does not offer a language choice or document a justified region-specific constraint, which creates a language/locale policy issue under the natural-language policy rule.
The comment at L37 says this is a core delegated call that invokes the original code without changing threshold logic, implying the subprocess will process the input data validated above. In reality, the subprocess is launched with no stdin or arguments carrying real_angles, so the earlier input handling is disconnected from the actual computation performed by neurosync_calibration.py.
subprocess module calls execute external commands. Without careful input validation, this enables command injection.
env["PYTHONIOENCODING"] = "utf-8"
# 2. 【核心外包呼叫】:啟動子進程呼叫原始碼,不改動任何一行二值化閾值
process = subprocess.Popen(
[sys.executable, "neurosync_calibration.py"],
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
Suspicious Unicode normalization or mixed-script content
This code contains extensive natural-language output in Traditional Chinese, beginning in the docstring and printed headers, and the same pattern continues throughout the file. Under the policy, forcing a specific language without user opt-in is a natural-language locale violation unless the locale restriction is clearly justified.
The comment at L250-L252 states the report 'forces' K_sys = 1.0 and K_accel = 0.003, implying a consistent fixed-calibration analysis. However, the subsequent calculations only hard-code those constants in formulas while still pulling S and A from S_parameters/A_parameters arrays, and the earlier fitted values returned by fit_universal_model are ignored entirely. This makes the intent of the report misleading relative to what is actually being analyzed.
The natural-language description, inputs, outputs, and safety statement are presented in Chinese, but the file does not indicate that the user can choose another language or that the skill is intentionally limited to a Chinese-speaking audience. This can violate language or locale policy when users are not given an opt-in choice.
The skill makes a strong security/privacy assurance that every video frame is automatically masked, but the documented interface only accepts real_angles and exposes no actual video-ingestion or masking mechanism. False security claims can cause users to trust the tool with sensitive gameplay recordings or account-linked data under incorrect assumptions, creating privacy and compliance risk.
The manifest's primary user-facing description is entirely in Traditional Chinese, with no indication that the skill supports other languages or that this locale restriction is intentional and region-specific. Under the policy, forcing a specific language without user opt-in can be a natural-language policy violation.
No suspicious patterns detected.