Token导航 LogoToken导航TokenDH.com
研究检索敏感数据clawhub未标认证来源可访问clear审计提醒

runtime-security-guard-en运行时安全卫士 en

Agent Skill

用于辅助安全审计、权限检查、凭据风险、认证流程和常见漏洞排查。它适合让 Agent 梳理敏感配置、检查依赖风险、分析鉴权逻辑或生成安全复核清单。使用时不能把工具输出直接当最终结论,涉及密钥、令牌、用户数据或生产系统时,应先确认最小权限、脱敏方式和操作边界。

总安装

3,757

周安装

155

GitHub Stars

公开资料未说明

下载量

1,228
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:runtime-security-guard-en(运行时安全卫士 en)
来源仓库:https://github.com/nanlinsec-sys/runtime-security-guard-en
安装命令:
openclaw skills install runtime-security-guard-en
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install runtime-security-guard-en

简介

提供企业级运行时安全防护,支持跨平台安全规则检测与漏洞扫描。

  • 适用于安全审计、权限检查、凭据风险分析和常见漏洞排查场景。
  • 可自动生成安全复核清单,辅助梳理敏感配置和鉴权逻辑。
  • 使用时不能将工具输出视为最终结论,涉及密钥或生产系统时应先确认最小权限。
  • 建议核对脱敏方式和操作边界,避免因误判导致服务中断或数据泄露。

SKILL.md

name
runtime-security-guard
version
2.1.0
description
Enterprise-grade AI runtime security protection v2.1. Provides 410+ security rules with cross-platform detection (Windows/macOS/Linux), detecting 10 categories of threats. Fully local execution, no cloud API, no quota limits. Includes modern web monitoring interface and automated testing system.
keywords
author
nanlin@outlook.com
license
MIT
homepage
https://github.com/nanlin300624/runtime-security-guard
repository
https://github.com/nanlin300624/runtime-security-guard

Runtime Security Guard - Enterprise AI Runtime Protection

🛡️ 410+ Security Rules | 10 Threat Categories + OpenClaw-Specific + IM Bot Security | Web Dashboard | Automated Testing | Fully Local

What's New in v2.1.0 (2026-03-26):

  • 14 new OpenClaw configuration-level security detection rules (openclaw-100 to openclaw-113)
  • Enhanced OpenClaw 2026.3.x version-specific threat detection
  • New critical configuration checks: Control UI auth, rate limiting, multi-user isolation
  • Improved monitoring for ACP runtime, Canvas A2UI, model overrides

From v2.0.0:

  • 32 OpenClaw-specific threat detection rules (based on MITRE ATLAS framework)
  • 33 IM bot plugin security rules (QQBot/Telegram/WhatsApp/Discord)

🎯 Features

Core Security Capabilities

  • Prompt Injection Detection - 26 rules, identifies jailbreaks, hidden instructions, system prompt theft
  • Data Exfiltration Protection - 22 rules, prevents sensitive data transmission, memory access
  • Malicious Command Interception - 24 rules, detects deletion, download-exec, reverse shells
  • Sensitive Data Protection - 24 rules, identifies API keys, passwords, personal information
  • Social Engineering Defense - 23 rules, identifies urgency manipulation, authority impersonation
  • Supply Chain Attack Detection - 25 rules, detects malicious dependencies, build script injection
  • Zero-Day Vulnerability Identification - 20 rules, identifies memory corruption, code execution
  • APT Attack Detection - 30 rules, detects reconnaissance, persistence, lateral movement
  • Insider Threat Identification - 27 rules, identifies abnormal access, privilege abuse
  • OpenClaw Configuration Security - 14 rules, detects dangerous config flags (NEW in v2.1.0)

Technical Advantages

  • Fully Local Execution - No cloud API required, data stays local
  • Zero Quota Limits - Unlimited detection usage
  • High Performance - Average detection latency < 20ms, cache hit < 1ms
  • Web Monitoring Dashboard - Real-time alerts, performance metrics, config management
  • Automated Testing - 35+ test cases, 100% pass rate
  • Easy Integration - OpenClaw native skill, out-of-the-box

📦 Installation

Method 1: Install from ClawHub (Recommended)

# Search for the skill
clawhub search runtime-security-guard

# Install the skill
clawhub install runtime-security-guard

# Verify installation
openclaw skills list | grep runtime-security

Method 2: Quick Install without sudo (Recommended)

# Download and run installation script
curl -fsSL https://raw.githubusercontent.com/nanlin300624/runtime-security-guard/main/install-no-sudo.sh | bash

# Or manually download
wget https://raw.githubusercontent.com/nanlin300624/runtime-security-guard/main/install-no-sudo.sh
chmod +x install-no-sudo.sh
./install-no-sudo.sh

Features:

  • ✅ No sudo privileges required
  • ✅ User-level installation
  • ✅ Automatic environment detection
  • ✅ Multiple download methods (Git/curl/wget)
  • ✅ Automatic environment variable configuration

Method 3: Install from Source

# Clone the repository
git clone https://github.com/nanlin300624/runtime-security-guard.git
cd runtime-security-guard

# Install dependencies
npm install

# Build the project
npm run build

# Copy to OpenClaw skills directory
cp -r . ~/.openclaw/workspace/skills/runtime-security-guard/

Method 4: Direct Package Installation

# Download the skill package
wget https://github.com/nanlin300624/runtime-security-guard/releases/latest/download/runtime-security-guard.zip

# Extract to skills directory
unzip runtime-security-guard.zip -d ~/.openclaw/workspace/skills/

🚀 Quick Start

Basic Usage

The skill runs automatically after installation, no additional configuration required:

// In OpenClaw, all file reads, tool results, and user inputs are automatically detected

Start Web Monitoring

# Start web server (default port 3000)
npm run web

# Access monitoring dashboard
# http://localhost:3000

Run Tests

# Run quick functional tests
npm run test:quick

# Run unit tests
npm test

# Run all tests
npm run test:all

📊 Monitoring Dashboard Features

Real-time Dashboard

  • 📊 Total alerts
  • 🚨 CRITICAL level alerts
  • ⚠️ HIGH level alerts
  • ⏱️ Average detection latency
  • 💾 Cache hit rate
  • ✅ Health status

Alert Visualization

  • Alert type distribution (10 categories)
  • Severity distribution (CRITICAL/HIGH/MEDIUM/LOW)
  • Recent alerts list (time, event, type, severity, action)

Performance Metrics

  • P95 latency
  • P99 latency
  • Max latency
  • Memory usage

Configuration Management

  • Detection threshold (0.0-1.0)
  • Cache TTL (seconds)
  • Save configuration online

🔌 API Endpoints

Get Statistics

curl http://localhost:3000/api/stats

Response Example:

{
  "total": 156,
  "byType": {
    "PROMPT_INJECTION": 45,
    "DATA_EXFILTRATION": 32
  },
  "bySeverity": {
    "CRITICAL": 12,
    "HIGH": 54,
    "MEDIUM": 67,
    "LOW": 23
  },
  "timeRange": {
    "start": "2026-03-07T12:00:00.000Z",
    "end": "2026-03-07T13:30:00.000Z"
  }
}

Get Alert List

curl http://localhost:3000/api/alerts?limit=50

Get Performance Metrics

curl http://localhost:3000/api/performance

Health Check

curl http://localhost:3000/api/health

⚙️ Configuration Options

Detection Threshold

// Risk threshold (0.0-1.0)
// Default: 0.6
// Content below this value won't be marked as risky

Cache Configuration

// Cache TTL (milliseconds)
// Default: 60000 (60 seconds)
// Cached content expires after this duration

// Maximum cache entries
// Default: 1000 entries

Performance Optimization

// Pre-compiled regex - automatically compiled at startup
// Dual-layer cache - RuleEngine + DetectorManager
// Priority execution - CRITICAL → HIGH → MEDIUM → LOW
// Fast-fail - CRITICAL rules return immediately on match

🧪 Testing System

Test Types

Test TypeTestsPass Rate
Unit Tests29100% ✅
Functional Tests6100% ✅
Stress Tests4 scenariosExcellent ✅
Coverage Tests21100% ✅

Running Tests

# Quick functional tests
npm run test:quick

# Unit tests
npm test

# Stress tests
npm run test:stress

# Coverage tests
npm run test:coverage

# All tests
npm run test:all

📈 Performance Benchmarks

Detection Latency

ScenarioTargetActual
Single Detection< 50ms0.01ms
Cache Hit< 5ms< 1ms
CRITICAL Rules< 20ms~10ms
Batch Detection (100x)< 5000ms~1500ms

Concurrency Performance

LoadConcurrentQPSAvg Latency
Low1~65~15ms
Medium5~145~7ms
High10~200~5ms
Ultra High20~250~4ms

Memory Usage

MetricTargetActual
Peak Memory< 150MB~100MB
Average Memory< 100MB~80MB

🛠️ Development Guide

Adding New Rules

  1. Create or edit rule files in src/rules/patterns/
  2. Import new rules in src/rules/rule-engine.ts
  3. Run tests to verify
  4. Update coverage tests

Custom Alerts

import { plugin } from './runtime-security-guard';

// Get alert statistics
const stats = await plugin.getStats();

// Health check
const health = plugin.healthCheck();

// Performance report
const report = plugin.getPerformanceReport();

Integration with Monitoring Systems

import { RuntimeSecurityGuard } from './runtime-security-guard';

const guard = new RuntimeSecurityGuard();

// Start web monitoring
await guard.startWebServer(3000);

// Real-time alert monitoring
guard.alerter.startMonitoring((alert) => {
  console.log('New alert:', alert);
});

📚 Documentation

DocumentDescription
SKILL.mdSkill description
README.mdUsage guide
RELEASE.mdRelease notes
PUBLISH-GUIDE.mdPublishing guide
WEB-MONITOR.mdWeb monitoring usage
AUTO-TEST.mdAutomated testing
ALERT-VIEWER.mdAlert viewer
PERFORMANCE-OPTIMIZATION.mdPerformance optimization

🤝 Support

Issue Reporting

  • GitHub Issues: https://github.com/nanlin300624/runtime-security-guard/issues
  • Email: nanlin@outlook.com

Community

  • Discord: https://discord.gg/clawd
  • OpenClaw Forum: https://forum.openclaw.ai

📝 Changelog

v2.1.0 (2026-03-26)

Added:

  • ✅ 14 OpenClaw configuration-level security detection rules (openclaw-100 to openclaw-113)
  • ✅ Enhanced OpenClaw 2026.3.x version-specific threat detection
  • ✅ New critical configuration checks: Control UI auth, rate limiting, multi-user isolation
  • ✅ Improved monitoring for ACP runtime, Canvas A2UI, model overrides

Security:

  • ✅ Enhanced Control UI security configuration detection
  • ✅ Enhanced multi-user environment trust boundary detection
  • ✅ Enhanced ACP runtime privilege escalation detection

v2.0.0 (2026-03-09)

Added:

  • ✅ Cross-platform support (Windows/Linux/macOS)
  • ✅ 110 platform-specific rules

- Windows: 60 rules (PowerShell, Batch, Registry) - Linux: 50 rules (Shell, Cron, Systemd) - macOS: 28 rules (AppleScript, LaunchAgents, Permissions)

  • ✅ File integrity monitoring module
  • ✅ Network connection monitoring module
  • ✅ Process behavior monitoring module
  • ✅ Cross-platform compatibility tests

Changed:

  • ✅ Optimized rule engine with dynamic platform loading
  • ✅ Improved initialization performance (20ms → 18ms)
  • ✅ Updated attack detection rate (70% → 75%)
  • ✅ Refactored TypeScript strict mode

Fixed:

  • ✅ Fixed rule type compatibility issues
  • ✅ Fixed partial platform detection failures

Security:

  • ✅ Enhanced C2 server detection capability
  • ✅ Enhanced port scan detection capability

v1.1.0 (2026-03-07)

Added:

  • ✅ Web real-time monitoring interface
  • ✅ SSE real-time data push
  • ✅ Automated testing system
  • ✅ Performance monitoring and health checks
  • ✅ 35+ test cases

Performance:

  • ✅ Pre-compiled regex cache (221 rules)
  • ✅ Grouped execution by severity
  • ✅ Dual-layer cache mechanism
  • ✅ Fast-fail mechanism

v1.0.0 (2026-03-07)

Initial Release:

  • ✅ 221 security rules
  • ✅ 9 threat categories
  • ✅ Fully local execution
  • ✅ Zero quota limits

📄 License

MIT License - See LICENSE file


🎉 Acknowledgments

Thanks to the following projects for inspiration:


Made with ❤️ by nanlin@outlook.com

Secure AI usage starts with Runtime Security Guard! 🦞🛡️

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

84.23%
按下载量换算1,034

安全审计

VirusTotal

可疑

ClawScan

可疑

Static analysis

可疑

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills