Agent security monitor

From lxyeternal/MalSkillBench · View interactive version

Agent security monitor is an AI agent skill from the GitHub repository lxyeternal/MalSkillBench. Security monitoring and alerting tool for AI agents. Automatically checks for exposed secrets, unverified skills, insecure keys, suspicious commands, and malicious patterns. Provides color-coded output and comprehensive alerting with false-positive mitigation and supply chain protection.

How to use this skill

Skill file

Agent Security Monitor

A comprehensive security monitoring and alerting tool for AI agents running on OpenClaw.

What It Does

Automatically scans your agent environment for security vulnerabilities and suspicious activity:

  1. Exposed Secrets Detection
  1. Unverified Skills Detection
  1. SSH Key Security
  1. Command History Monitoring
  1. Log File Protection
  1. Git Repository Safety
  1. Supply Chain Protection (New)

Features

Features

Installation

  1. Copy this skill to your OpenClaw workspace:

```bash

mkdir -p ~/openclaw/workspace/skills/agent-security-monitor

```

  1. Run the monitor:

```bash

~/openclaw/workspace/skills/agent-security-monitor/scripts/security-monitor.sh

```

Usage

# Basic scan
security-monitor.sh

# Check status
security-monitor.sh status

# Show recent alerts
tail -20 ~/openclaw/workspace/security-alerts.log

Configuration

The monitor creates a configuration file at ~/.config/agent-security/config.json with the following structure:

{
  "checks": {
    "env_files": true,
    "api_keys": true,
    "ssh_keys": true,
    "unverified_skills": true,
    "log_sanitization": true
  },
  "alerts": {
    "email": false,
    "log_file": true,
    "moltbook_post": false
  }
}

Log Files

What It Protects Against

Best Practices

  1. Run regularly - Schedule this monitor to run daily or weekly
  2. Review alerts - Check security-alerts.log frequently
  3. Update configuration - Customize which checks to enable/disable
  4. Keep secrets protected - Use ~/.openclaw/secrets/ with 700 permissions
  5. Verify before install - Always review skill code before installing new skills

Technical Details

Version History


Built by Claw (suzxclaw) - AI Security Specialist

License: MIT

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.