Back to skill

Security audit

Agent并发安全控制器

Security checks for vulnerabilities and agentic risk

Overview

This appears to be a legitimate agent-queue helper, but its approval gate and plaintext result storage are weak enough to warrant review before installation.

Install only if you are comfortable treating this as a queue/logging helper, not as a strong security approval system. Do not let it authorize payments, public posting, external sends, file overwrites, or configuration changes unless another trusted approval layer independently classifies and confirms those actions. Avoid passing secrets or full agent outputs into completion results because they may be stored in plaintext under the OpenClaw workspace.

Vulnerability Patterns
  • Insecure Skill Coding PracticesFinds exploitable flaws such as hardcoded secrets or command injection
  • 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
Findings (2)

T09 · Insecure Skill Coding Practices

Error
Location
agent_concurrency_controller.py:89
Finding

Caller-Controlled Sensitivity Classification Bypasses Confirmation Policy

Content
View full analysis
PermissionBehavior: """ 权限检查(参考Claude Code checkPermissions模式) 敏感任务需要额外确认: - critical: 外发操作(公众号发布、付款等) - sensitive: 文件覆盖、配置修改 """ log_entry = { 'timestamp': datetime.now().isoformat(), 'task_id': task.task_id, 'agent_type': task.agent_type, 'sensitive_level': task.sensitive_level, 'action': 'check_permissions' } # 默认允许,但记录日志 behavior = PermissionBehavior.ALLOW if task.sensitive_level == "critical": behavior = PermissionBehavior.ASK log_entry['decision'] = 'ASK_USER_CONFIRMATION' elif task.sensitive_level == "sensitive": log_entry['decision'] = 'ALLOW_WITH_LOG' else: log_entry['decision'] = 'ALLOW' self._log_sensitive_operation(log_entry) return behavior ``` The untrusted value enters through the public API at lines 251–276: ```python def spawn_agent_safe( task: str, agent_type: str = "main", runtime: str = "subagent", priority: int = 5, is_concurrency_safe: bool = False, sensitive_level: str = "normal", timeout_seconds: int = 300 ) -> str: task_id = f"{agent_type}-{datetime.now().strftime('%Y%m%d-%H%M%S')}" agent_task = AgentTask( task_id=task_id, agent_type=agent_type, runtime=runtime, priority=priority, is_concurrency_safe=is_concurrency_safe, sensitive_level=sensitive_level, timeout_seconds=timeout_seconds ) ``` ### Technical Analysis The permission decision is based entirely on the caller-supplied `sensitive_level` string. Only the exact value `critical` requires confirmation. The default ...[truncated 2311 chars]
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Warning
Location
agent_concurrency_controller.py:74
Finding

Arbitrary Agent Results Are Persisted in Plaintext State Storage

Content
View full analysis
Remediation
View remediation
Vulnerability Patterns
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
Findings (3)

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
88% confidence
Finding

The prominent natural-language description is written as a Chinese-only skill identity and the document does not provide any opt-in or alternative locale guidance. Under the policy, forcing a specific language without user choice is a locale-policy violation unless the constraint is explicitly justified.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
91% confidence
Finding

The file's natural-language interface documentation, including the module docstring and operational comments, is entirely in Chinese and does not indicate any language choice or user opt-in. Under the policy, forcing a specific language or locale without opt-in is a natural-language policy violation unless clearly justified as region-specific.

Content

No source excerpt is available for this finding.

Intent-Code Divergence

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The code comments state that sensitive tasks require extra confirmation, but the implementation only returns ASK for tasks marked 'critical' and silently allows 'sensitive' operations. This mismatch can cause operators to assume a stronger approval barrier than actually exists, enabling unintended file/configuration changes to proceed without explicit user consent.

Content

No source excerpt is available for this finding.

Static analysis

No suspicious patterns detected.