1. Conduid
  2. Security
  3. Aiagentguard
MCP server · Security

Aiagentguard

AI Agent, CLI tool, and MCP server security scanning tool.

Unclaimed MIT last commit 7 months ago security
59Fair

Scored 3 days ago · breakdown

About Aiagentguard

Aiagentguard is an MCP server published by imdlan in the Security category: aI Agent, CLI tool, and MCP server security scanning tool.

The repository has 3 stars and 0 forks, with the last commit 7 months ago. Six months or more without a commit doesn't mean the server is broken, but check the open issues before depending on it in production.

Install

From source
git clone https://github.com/imdlan/AIAgentGuard

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Ask AI

✦

Ask AI about Aiagentguard

Powered by Claude · Grounded in docs

I know everything about Aiagentguard. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

Static checks derived from the repository 3 days ago. Heuristics on the source, not an audit.

  • ✓README presentThe repository ships documentation.
  • ✓License declaredUsable under a stated license.
  • ✓Tests presentA test suite exists in the repository.
  • ✓Dependencies pinnedA lockfile pins dependency versions.
  • !No dynamic code executionSource scan found eval or shell execution. Review how tool inputs reach it before granting credentials.
  • !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.

Releases

v1.4.2v1.4.2 · 9 Mar 2026Changelog 280bc17 fix(scanner): 修复 IPv6 格式兼容性和代码质量问题 1bf29eb fix: 删除 README 中重复的 Version 按钮和标题
v1.4.1v1.4.1 · 1 Mar 2026Changelog b259834 feat(i18n): 添加多语言支持,自动检测系统语言 cc74695 feat: 添加 version 命令显示版本信息 662d9f1 fix(scripts): 修复安装脚本下载最新版本 f66cbe6 fix(scripts): 安装脚本添加 GitHub API 限流备用方案
v1.3.0v1.3.0 · 28 Feb 2026Changelog de2e414 feat(v1.3.0): 添加详细安全报告和修复向导
v1.0.1v1.0.1 · 26 Feb 2026Changelog

README

AI AgentGuard

Version License Go Report Downloads Homebrew

Screenshots

Features

v1.4.2 Features (Latest) ⭐

  • IPv6 Compatibility Fix - Fixed network address format for IPv6 support in host checking
  • Code Quality Improvements - Removed duplicate code blocks and fixed panic misuse
  • Dependency Cleanup - Removed 30+ unused dependencies for smaller binary size

v1.4.1 Features

  • Version Command - Display installed version with agent-guard version
  • Installation Script Improvements - Fallback method for GitHub API rate limiting with better error messages
  • Version Command - Display installed version with agent-guard version
  • Installation Script Improvements - Fallback method for GitHub API rate limiting with better error messages

v1.4.0 Features

  • Multi-Language Support (i18n) - Auto-detect system language, support English and Chinese output
  • Embedded Translation Files - 40+ translatable strings with no external dependencies
  • macOS Language Detection - Automatic detection from AppleLocale and AppleLanguages preferences

v1.3.0 Features

  • Detailed Security Reporting - Show specific files, processes, and commands causing security risks
    • Process Scanning Details with PID, command line, and risk reasons
    • Network Connection Analysis displaying open ports and active connections
    • Enhanced risk assessment with actionable remediation steps
  • Automated Fix Wizard - Auto-fix security issues or provide manual remediation commands
    • New agent-guard fix CLI command with --auto and --dry-run options
    • Category-specific fixes (filesystem, shell, network, secrets)
  • Risk Trend Analysis - Compare scan results over time to track security posture changes
    • New agent-guard trend CLI command with historical data analysis
  • Web UI Dashboard - Complete visual security monitoring interface
    • Real-time dashboard with React + Go RESTful API
    • Process, Network, Fix Wizard, and Trend History panels

v1.2.0 Features

  • Multi-Language Dependency Scanning - Scan npm, pip, cargo, and Go dependencies for vulnerabilities
  • Prometheus Monitoring - Export metrics for monitoring and alerting with /metrics endpoint
  • Grafana Dashboard - Pre-built monitoring dashboard with real-time visualizations
  • Enhanced Test Coverage - Comprehensive unit tests for multilang scanners (npm, pip, cargo)

v1.1.0 Features

  • Go Dependency Vulnerability Scanning - Check Go dependencies for known CVEs using golang.org/x/vuln
  • Container Runtime Detection - Detect Docker, Kubernetes, Podman, LXC, Wasm environments
  • True Sandbox Isolation - containerd-based container isolation with Linux namespaces (Linux only)
  • Performance Benchmarking - 12 benchmark tests for all major components

v1.0.0 Features (Core)

  • Permission Scanning - Detect filesystem, shell, network, and secret access permissions
  • File Content Analysis - Scan files for exposed API keys, tokens, and secrets (15+ patterns)
  • Process Security Monitoring - Detect reverse shells, suspicious processes, and high CPU usage
  • SUID/SGID Scanning - Identify privileged executables and potential privilege escalation vectors
  • Audit Logging - Comprehensive security event logging with JSON format and SIEM integration
  • Smart Command Parsing - Advanced flag parsing to prevent bypass attempts
  • Sandbox Execution - Safely run commands in isolated environments
  • Policy Management - Control access permissions via YAML configuration
  • Prompt Injection Protection - Detect and block malicious prompt injection attacks
  • Plugin Scanning - Detect insecure plugins and extensions

Update

To update to the latest version:

Homebrew:

brew upgrade agent-guard

Install Script:

curl -sSL https://raw.githubusercontent.com/imdlan/AIAgentGuard/main/scripts/install.sh | bash

Manual: Download from Releases.

Installation

Method 1: Homebrew (Recommended for macOS/Linux)

brew tap imdlan/AIAgentGuard
brew install agent-guard

Method 2: Download from GitHub Releases

Visit the Releases page to download binaries for your platform.

# macOS / Linux
curl -LO https://github.com/imdlan/AIAgentGuard/releases/latest/download/agent-guard_darwin_arm64.tar.gz
tar -xzf agent-guard_darwin_arm64.tar.gz
chmod +x agent-guard
sudo mv agent-guard /usr/local/bin/

Method 3: Go Install (For Developers)

go install github.com/imdlan/AIAgentGuard@latest

Make sure $GOPATH/bin is in your PATH:

export PATH=$PATH:$(go env GOPATH)/bin

Method 4: Install Script

curl -sSL https://raw.githubusercontent.com/imdlan/AIAgentGuard/main/scripts/install.sh | bash

Method 5: Build from Source

git clone https://github.com/imdlan/AIAgentGuard.git
cd agent-guard
go build -o agent-guard
sudo mv agent-guard /usr/local/bin/

Quick Start

1. Scan Security Risks

# Scan current environment
agent-guard scan

# JSON format output
agent-guard scan --json

# Use custom policy
agent-guard scan --config ./my-policy.yaml

2. Run in Sandbox

# Run command in isolated environment
agent-guard run "curl https://api.example.com"

# Disable network access
agent-guard run --disable-network "npm install"

# Restrict filesystem access
agent-guard run --allow-dirs /tmp,/data "node script.js"

3. Generate Report

# Generate detailed report
agent-guard report

# Save to file
agent-guard report --json > security-report.json

4. Monitor with Prometheus (New)

# Run scan with Prometheus metrics
agent-guard scan --metrics-addr :9090

# Metrics available at http://localhost:9090/metrics
# curl http://localhost:9090/metrics

For detailed monitoring setup, see Monitoring Guide.

5. Initialize Configuration

# Generate default configuration file
agent-guard init

# Configuration file locations:
# - .agent-guard.yaml (current directory)
# - ~/.agent-guard.yaml (user directory)
# - /etc/agent-guard/config.yaml (system directory)

Configuration Example

Create .agent-guard.yaml:

# Block dangerous commands
blocked_commands:
  - "rm -rf /"
  - "dd if=/dev/zero"
  - "mkfs"
  - ":(){ :|:& };:"  # fork bomb

# Restrict filesystem access
allowed_paths:
  - /tmp
  - /home/user/project
  - /var/log/app

denied_paths:
  - /etc/passwd
  - /etc/shadow
  - ~/.ssh

# Environment variable protection
blocked_env_vars:
  - API_KEY
  - SECRET_TOKEN
  - DATABASE_URL

# Network access control
network:
  allowed_domains:
    - api.github.com
    - cdn.jsdelivr.net
  denied_domains:
    - "*.malicious.com"

Output Example

  █████╗ ██╗     █████╗  ██████╗ ███████╗███╗   ██╗████████╗ ██████╗ ██╗   ██╗ █████╗ ██████╗ ██████╗
 ██╔══██╗██║    ██╔══██╗██╔════╝ ██╔════╝████╗  ██║╚══██╔══╝██╔════╝ ██║   ██║██╔══██╗██╔══██╗██╔══██╗
 ███████║██║    ███████║██║  ███╗█████╗  ██╔██╗ ██║   ██║   ██║  ███╗██║   ██║███████║██████╔╝██║  ██║
 ██╔══██╗██║    ██╔══██╗██║   ██║██╔══╝  ██║╚██╗██║   ██║   ██║   ██║██║   ██║██╔══██╗██╔══██╗██║  ██║
 ██║  ██║██║    ██║  ██║╚██████╔╝███████╗██║ ╚████║   ██║   ╚██████╔╝╚██████╔╝██║  ██║██║  ██║██████╔╝
 ╚═╝  ╚═╝╚═╝    ╚═╝  ╚═╝ ╚═════╝ ╚══════╝╚═╝  ╚═══╝   ╚═╝    ╚═════╝  ╚═════╝ ╚═╝  ╚═╝╚═╝  ╚═╝╚═════╝

                             🛡️  Security Scan Report v1.4.2

Overall Risk: 🔶 HIGH

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Permission Breakdown:
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
  ✅ Filesystem Access: LOW
  🛑 Shell Execution: CRITICAL
  ⚠️ Network Access: MEDIUM
  🔶 Secrets Access: HIGH

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Detailed Findings:
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
1. [SHELL] Root/admin shell access detected [/bin/bash, /bin/zsh] [SYSTEM]
2. [NETWORK] External network connectivity available [NETWORK]
3. [SECRETS] Environment variable API_KEY exposed [ENVIRONMENT]

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Recommendations:
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
  • Consider running AI agents in a sandboxed environment
  • Use 'agent-guard run <command>' for safe execution
  • Use environment variable blocking in policy config
  • Consider using secret management tools

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Command Reference

Global Options

-c, --config string   Path to policy configuration file
-j, --json            JSON output format
-v, --verbose         Verbose output
-h, --help            Show help information

scan - Security Scan

Scan the current environment for security risks and permissions.

agent-guard scan [flags]

run - Sandbox Execution

Execute commands in an isolated environment.

agent-guard run [command] [flags]

Options:
  --disable-network    Disable network access
  --allow-dirs paths   Allow access to directories (comma-separated)
  --block-dirs paths   Block access to directories (comma-separated)

report - Generate Report

Generate and display security reports.

agent-guard report [flags]

init - Initialize Configuration

Generate default configuration file.

agent-guard init [flags]

Options:
  --force    Overwrite existing configuration file
  --path     Specify configuration file path

fix - Security Fix Wizard

Automatically fix security issues or provide remediation guidance.

agent-guard fix [flags]

Options:
  --auto       Automatically execute fix commands
  --dry-run    Preview changes without executing
  --category   Fix specific category only (filesystem, shell, network, secrets)

trend - Risk Trend Analysis

Analyze security trends by comparing scan results over time.

agent-guard trend [flags]

Options:
  --days N    Analyze last N days (default: 7)
  --json      Output in JSON format
  --category  Show trend for specific category

Complete Usage Guide

For detailed usage guide and best practices, see: USAGE.md

Topics covered:

  • Detailed explanations of all use cases
  • Complete CLI command reference
  • Web UI usage instructions
  • Monitoring and alerting setup
  • Deployment and maintenance guides
  • Troubleshooting solutions

FAQ

Q: How to disable specific scans?

A: Edit the configuration file and set corresponding options to false:

scanner:
  filesystem: false
  shell: true
  network: true
  secrets: true

Q: How does sandbox mode work?

A: Sandbox mode uses the following techniques:

  • Environment variable isolation
  • Filesystem access restriction
  • Network access control (optional)
  • Command whitelist/blacklist

Q: How to integrate with CI/CD?

A: Add security scan steps to your CI/CD pipeline:

# GitHub Actions example
- name: Security Scan
  run: |
    go install github.com/imdlan/AIAgentGuard@latest
    agent-guard scan --json > security-report.json
    # Check risk level
    if grep -q "CRITICAL" security-report.json; then
      echo "Critical security issues found!"
      exit 1
    fi

Development

Build from Source

# Clone repository
git clone https://github.com/imdlan/AIAgentGuard.git
cd agent-guard

# Build
go build -o agent-guard

# Run tests
go test ./...

# Install locally
go install

Project Structure

agent-guard/
├── cmd/              # CLI commands
├── internal/         # Internal implementation
│   ├── scanner/     # Scanning engines
│   ├── risk/        # Risk analysis
│   ├── sandbox/     # Sandbox execution
│   ├── policy/      # Policy management
│   ├── security/    # Security protection
│   └── report/      # Report generation
├── pkg/model/       # Data models
├── configs/         # Default configuration
└── scripts/         # Installation scripts

Release Process

This project uses Goreleaser for automated releases. When you push a version tag, GitHub Actions is automatically triggered:

  1. Build multi-platform binaries (macOS/Linux, AMD64/ARM64)
  2. Create GitHub Release
  3. Generate file checksums (checksums.txt)
  4. Automatically update Homebrew formula

Release new version:

git tag v1.0.1
git push origin v1.0.1

For detailed documentation, see: Release Process Guide

Local Testing

# Install goreleaser
brew install goreleaser

# Test build (no release)
goreleaser build --clean --snapshot

# Test full workflow (dry-run)
goreleaser release --clean --snapshot --skip-publish

License

MIT License - see LICENSE file for details

Contributing

Contributions are welcome! Please see CONTRIBUTING.md

Contact


Protect your AI Agents, start with security scanning!

README fetched from the repository 3 days ago. The original is authoritative.

Questions

About Aiagentguard

How do I install Aiagentguard?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is Aiagentguard safe to use with an AI agent?

Its trust score is 59 out of 100 (fair). It passes 4 of the 6 static security checks run so far; the failures are listed above. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Aiagentguard still maintained?

The last commit was 7 months ago. That's long enough that you should check whether the maintainer is responding to issues before depending on it.