360 Secure SkillHub
360 安全技能中心

OpenClaw Security Suite

面向 OpenClaw 技能的安全套件,scan 动作执行 AST 与关键词静态扫描(危险导入、函数、关键字、敏感文件、可疑正则),review 动作调用宿主 LLM 对单个文件做语义审查,输出安全结论与风险等级,依赖 Node 运行环境。

xunxingyuan
xunxingyuan
热度 60.77
最近更新 2026-05-17 14:02:43
分类:安全依赖:读写文件 / 内部调用大模型 / 代码执行应用场景:代码审查

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add openclaw-security-suite
Metadata
name
openclaw-security-suite
description
Comprehensive security suite for OpenClaw skills. Includes static scanning (AST + keywords) and AI-powered semantic behavior review to detect malicious code.
version
0.2.3
tags
["security","scanner","code-review","static-analysis","ai-review"]
requirements
{"binaries":["node"],"environment":[]}
input_schema
{"type":"object","properties":{"action":{"type":"string","enum":["scan","review"],"description":"Action to perform. \"scan\" for static analysis, \"review\" for AI semantic review."},"path":{"type":"string","description":"Absolute path to the skill directory (for scan) or file (for review)"}},"required":["action","path"]}

OpenClaw Security Suite

A comprehensive security protection layer for OpenClaw extensions, providing both static analysis and AI-assisted behavioral review.

Features

This suite bundles two core security capabilities:

1. Static Security Scan (action: "scan")

Analyzes a full skill directory for deterministic threats:

  • Blocked Imports: e.g., child_process, cluster
  • Dangerous Functions: e.g., exec(), spawn()
  • Known Bad Keywords: e.g., eval(, __proto__, rm -rf
  • Sensitive File Access: e.g., /etc/passwd, /.env
  • Suspicious Regex Patterns: e.g., curl ... | bash

2. AI Code Review (action: "review")

Uses the active LLM context (ctx.llm) to semantically analyze a specific file for hidden threats:

  • Data exfiltration
  • Credential leaks
  • Obfuscated shell execution
  • System modification

Usage

You must specify an action and a path.

Example 1: Static Scan

{
  "action": "scan",
  "path": "/path/to/skill/directory"
}

Example 2: AI Review

{
  "action": "review",
  "path": "/path/to/skill/index.ts"
}

Output

Scan Output:

{
  "safe": false,
  "results": [
    {
      "file": "index.ts",
      "issues": [{ "type": "blocked_module", "module": "child_process" }]
    }
  ]
}

Review Output:

{
  "risk_level": "high",
  "reason": "Code reads AWS credentials from environment and posts them to an external IP."
}