← 返回 Skills 市场
473
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install messageguard
功能描述
Filters outgoing text for sensitive data using regex patterns and configurable actions like masking, blocking, or warning to prevent secret leaks.
安全使用建议
What to consider before installing/using MessageGuard:
- The skill is coherent: it implements a regex-based outgoing message filter as described. There are no network exfiltration or hidden installers in the provided files.
- Logging risk: if you enable log_detections, detection events (including snippets) are written to disk (default ~/.openclaw/outgoing-filter.jsonl). That file may contain sensitive data. If you enable logging, choose a secure path and file permissions or keep logging disabled.
- Allow-listing bypass: the allow_channels config accepts channel IDs that completely bypass filtering. Only add trusted, secure channels to that list.
- Verify integration: callers must check the script's exit code and handle blocked responses correctly; otherwise blocked content could be accidentally sent. Test the wrapper behavior in your environment before relying on it.
- Review patterns: the built-in pattern library is aggressive (blocks many key formats). Review & tune patterns to reduce false positives (or disable patterns you don't want).
- Source provenance: SKILL.md suggests cloning from an SSH GitHub repo but the bundle contains the code. Because the registry 'Source' is unknown and there is no homepage, if provenance matters for your environment, inspect the included script and configs locally or run in an isolated environment. Consider auditing the code and config files before enabling in production.
- Operational advice: keep default log_detections=false unless you need audits; if you enable logs, secure the log file. Use conservative allow_channels and test with sample messages to confirm behavior.
If you want, I can: (1) point out specific lines in the Python script that write logs or read config files, (2) produce a short checklist to harden configuration, or (3) highlight patterns you might want to disable for your use case.
功能分析
Type: OpenClaw Skill
Name: messageguard
Version: 0.1.0
The OpenClaw AgentSkills 'MessageGuard' skill is designed to filter outgoing messages for sensitive information, acting as a security control. The Python script `scripts/filter_message.py` implements this by using a comprehensive set of regex patterns to detect and then mask, block, or warn about sensitive data like API keys, private keys, and PII. All dependencies are from the Python standard library, and the code is clear and well-documented. While there are theoretical configuration-based vulnerabilities (e.g., ReDoS if a malicious regex is supplied in config, or arbitrary file write if `log_path` is maliciously controlled), these are not indicative of intentional malice within the skill's design. The skill's explicit purpose and implementation are to enhance security, not to compromise it.
能力评估
Purpose & Capability
The name/description (outgoing message filter) match the delivered artifacts: an instruction-only SKILL.md, configuration docs, a built-in pattern library, and a Python filter script that performs regex-based masking/blocking/warning. The patterns focus on API keys, tokens, PEMs, SSNs, credit cards, etc., which align with the stated goal.
Instruction Scope
Runtime instructions are focused on running the provided Python filter before sending messages. The script will read configuration files from the user's home (~/.openclaw/outgoing-filter-config.*) if present, and supports passing a --channel id which can cause allow-listing. This is expected, but it means the skill will read (and can be configured to log) sensitive detections to disk — review and control config & log settings. The integration guide assumes callers check exit codes and treat blocked results as authoritative; misuse (ignoring exit code) could accidentally transmit secrets.
Install Mechanism
There is no automated install spec in the registry bundle (instruction-only). SKILL.md suggests cloning an SSH GitHub repo, but the bundle already contains the Python script and docs. No external downloads or package installs are required; the script only optionally imports pyyaml if present. No high-risk install mechanism detected.
Credentials
The skill requests no environment variables, no external credentials, and no config paths beyond optional per-user config files under ~/.openclaw (documented). The built-in patterns include many third-party key formats (OpenAI, AWS, GitHub, etc.) which is appropriate for a secrets filter. No unrelated credentials or secrets are requested.
Persistence & Privilege
always:false and autonomous invocation is normal. The script can write detection logs to disk (default ~/.openclaw/outgoing-filter.jsonl) if log_detections is enabled; those logs may contain snippets of sensitive values. The skill also supports allow_channels which can bypass filtering for specific channel IDs — this is useful but can be abused to bypass protection. These behaviors are documented and configurable, so they are not inherently malicious but worth caution.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install messageguard - 安装完成后,直接呼叫该 Skill 的名称或使用
/messageguard触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.1.0
Initial release of MessageGuard, an outgoing message filter:
- Filters outgoing text to prevent leaks of secrets and sensitive data using pattern-based detection.
- Supports configurable actions: mask sensitive data, block messages, or warn users.
- Allows custom regex patterns and overrides for precise control.
- Offers optional structured JSON logging for monitoring and compliance.
- Simple installation with no external dependencies (standard library only).
元数据
常见问题
MessageGuard 是什么?
Filters outgoing text for sensitive data using regex patterns and configurable actions like masking, blocking, or warning to prevent secret leaks. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 473 次。
如何安装 MessageGuard?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install messageguard」即可一键安装,无需额外配置。
MessageGuard 是免费的吗?
是的,MessageGuard 完全免费(开源免费),可自由下载、安装和使用。
MessageGuard 支持哪些平台?
MessageGuard 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 MessageGuard?
由 Andrew(@andrewandrewsen)开发并维护,当前版本 v0.1.0。
推荐 Skills