← 返回 Skills 市场
Openclaw Sec
作者
lockdown56
· GitHub ↗
· v0.1.1
· MIT-0
236
总下载
0
收藏
0
当前安装
2
版本数
在 OpenClaw 中安装
/install openclaw-sec-plus
功能描述
AI Agent Security Suite - Real-time protection against prompt injection, command injection, SSRF, path traversal, secrets exposure, and content policy violat...
安全使用建议
This package largely implements what it claims (a local security validator), but it contains intrusive install scripts and high-impact runtime behaviors. Before installing or enabling: 1) Inspect the two plugin install scripts (plugins/*/install.ts) — they write to ~/.openclaw/openclaw.json and will enable the plugins automatically; do not run them unless you trust the code. 2) Review plugin code (plugins/*/index.ts) and the security engine usage: note that the plugin can open a local DB, log events, and return a systemPrompt that forces model replies on block. 3) Check and edit the example config (.openclaw-sec.example.yaml) — remove or review owner_ids and notification webhooks, and set logging/database paths you control. 4) If you only want validation without persistent integration, avoid running the install scripts and call the CLI/tool manually in an isolated environment. 5) If you lack time to audit code, run the skill in a disposable sandbox or container first and do not provide production credentials. If you want, I can point out the exact lines that modify ~/.openclaw/openclaw.json and where the systemPrompt is composed.
功能分析
Type: OpenClaw Skill
Name: openclaw-sec-plus
Version: 0.1.1
The bundle is a comprehensive and well-engineered security suite for AI agents, providing multi-module detection for prompt injection, command injection, SSRF, path traversal, and secrets exposure. The code architecture is professional, featuring structured logging (logger.ts), local event storage using SQLite (database-manager.ts), and a configurable notification system (notification-system.ts). The included OpenClaw plugins (security-input-validator-plugin and security-tool-validator-plugin) correctly implement defensive hooks to intercept and validate agent inputs and tool calls. All behaviors, including the use of regex patterns for threat detection and the automated installation scripts, are entirely consistent with the stated purpose of a defensive security tool.
能力评估
Purpose & Capability
The code and SKILL.md implement a multi-module security validator (prompt/command/URL/path/secret/content) which matches the advertised purpose. However the package includes owner_ids bypass configuration and plugin install scripts that add plugin paths to ~/.openclaw/openclaw.json and copy example configs into the project — these behaviors are not unexpected for an integrating plugin, but they are intrusive and should be explicitly consented to by the user.
Instruction Scope
Runtime instructions and plugin code reach beyond simple validation: plugins hook into before_prompt_build and before_tool_call, read config files from working dir and HOME, open a local DB, and (on block) return a systemPrompt that instructs the model to reply with a narrow fixed message. That systemPrompt injection is an intentional mechanism to force behavior but also resembles prompt-injection and gives the skill direct control over model prompts.
Install Mechanism
There is no registry 'install' spec, but package.json contains a postinstall script that builds and runs plugin install scripts (tsx plugins/.../install.ts). Those install.ts scripts write/modify ~/.openclaw/openclaw.json (adding plugin paths and enabling entries) and copy example config files. Automatically modifying a user's agent config/home files during install is intrusive and increases risk if you haven't vetted the code.
Credentials
The skill declares no required environment variables or credentials, which fits. The code does read process.env.HOME and uses file paths (DB path, logs). Config includes owner_ids (users who bypass checks), webhook/SMTP placeholders, and database/log file paths — these are plausible for a security tool, but owner bypass and remote notification configuration could be misused if populated or if the files are modified.
Persistence & Privilege
always:false (good) but the included install scripts create persistent presence by adding plugin directories to ~/.openclaw/openclaw.json and enabling the plugins. That results in the skill being loaded automatically by the agent in future runs unless you remove the entries. The skill also has runtime capability to alter systemPrompt in blocked cases, giving it influence over model responses.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install openclaw-sec-plus - 安装完成后,直接呼叫该 Skill 的名称或使用
/openclaw-sec-plus触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.1.1
- Added initial test coverage with new file: `tests/zeroleaks-pentest.ts`
- No changes to core functionality or documentation
- Begin groundwork for automated security regression tests
v0.1.0
Initial release of OpenClaw Security Suite for AI agent protection.
- Provides real-time security validation with 6 parallel detection modules (prompt/command injection, SSRF, path traversal, secrets exposure, etc).
- Includes commands to validate commands, URLs, file paths, and scan contents or comprehensive inputs.
- Features smart severity scoring and automated enforcement actions (block, warn, log).
- Offers event monitoring, statistics, user reputation tracking, and analytics commands.
- Optimized for fast validation times (20–50ms) and broad pattern coverage (168 patterns in 16 categories).
- CLI and skill command integration for easy use.
元数据
常见问题
Openclaw Sec 是什么?
AI Agent Security Suite - Real-time protection against prompt injection, command injection, SSRF, path traversal, secrets exposure, and content policy violat... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 236 次。
如何安装 Openclaw Sec?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install openclaw-sec-plus」即可一键安装,无需额外配置。
Openclaw Sec 是免费的吗?
是的,Openclaw Sec 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Openclaw Sec 支持哪些平台?
Openclaw Sec 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Openclaw Sec?
由 lockdown56(@lockdown56)开发并维护,当前版本 v0.1.1。
推荐 Skills