Back to skill

Security audit

提供 Khronos 官方 OpenCL 规范、头文件、SDK、CTS 及社区工具的准确下载链接和资源索引。当用户询问 OpenCL 官方文档、API 参考、开发组件获取方式时使用。

Security checks for vulnerabilities and agentic risk

Overview

This skill is a straightforward OpenCL resource guide with expected links and install examples, not a hidden or overreaching agent capability.

Installers should understand that this skill may answer in Chinese by default and may suggest normal development setup commands that download from Khronos, GitHub, or system package repositories. Review commands before running them, especially sudo package-manager commands, but the artifact does not show hidden execution or data access.

Vulnerability Patterns
  • Skill Instruction HijackingAlters the agent's session goals or safety constraints when the skill loads
  • Agent Memory PoisoningWrites attacker-controlled rules into memory that affect later sessions
  • Remote Payload Retrieval and ExecutionFetches external code whose behavior can change after review
  • Embedded Malicious CodeShips malicious scripts inside the skill and executes them locally
  • Unauthorized Access and Privilege EscalationObtains permissions beyond the task's legitimate needs
Vulnerability Patterns
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
Findings (2)

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
90% confidence
Finding

The file’s natural-language description and operational guidance are entirely written in Chinese, and it includes a fixed Chinese response phrase at L159, but it does not offer the user a language choice or explain that the skill is intentionally region-specific. Under the policy rule, forcing a specific language/locale without user opt-in is a natural-language policy violation.

Content

No source excerpt is available for this finding.

Sudo/Root Execution

Medium
Category
Privilege Escalation
Confidence
70% confidence
Finding

Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.

Content

Scanner excerpt · SKILL.md (reported line 52)May include surrounding context.

md
git clone https://github.com/KhronosGroup/OpenCL-ICD-Loader
    mkdir build && cd build && cmake .. && make
    ```
  - **重要提示**:在 Linux 生产环境中,建议优先使用系统包管理器安装(例如 `sudo apt install ocl-icd-opencl-dev`),避免源码编译的维护成本。

### ✅ 3.3 合规验证