Vigil - AI Security Audit and Cryptographic Proof

Created By
vigil-xy4 months ago
Security scanner for developers and startups. Vigil performs deep security audits of your system and generates cryptographically signed, tamper-evident reports. It integrates seamlessly with AI assistants like Claude Desktop and Cursor through the Model Context Protocol.
Overview

Vygil Security Scanner

A comprehensive MCP (Model Context Protocol) security scanner for developers and startups

Vygil performs deep security audits of your system and generates cryptographically signed, tamper-evident reports. It integrates seamlessly with AI assistants like Claude Desktop and Cursor through the Model Context Protocol.

What is Vygil?

Vygil is a production-ready security scanner designed for:

  • 🔍 Comprehensive Security Auditing: Scans networks, processes, filesystems, dependencies, configurations, and containers
  • 🔐 Cryptographic Signing: Every scan report is cryptographically signed using Ed25519 signatures with SHA-256 hashing
  • 🤖 AI Integration: Exposes security scanning capabilities to AI assistants via MCP (Model Context Protocol)
  • 🚀 Developer-Friendly: Simple CLI interface and easy integration into development workflows

Vygil helps developers and security teams:

  • Identify security vulnerabilities in their local development environment
  • Detect exposed secrets, weak file permissions, and dangerous configurations
  • Audit dependencies for known vulnerabilities
  • Monitor container and network security
  • Generate tamper-evident security reports for compliance and auditing

Features

🔍 Comprehensive Security Scanning

  • Network Security: Scans open ports, firewall status, and listening services
  • Process Security: Detects suspicious processes, processes in /tmp, and secrets in environment variables
  • Filesystem Security: Checks file permissions, SUID/SGID binaries, world-writable files, and exposed secrets
  • Dependency Security: Integrates with npm audit to detect vulnerable dependencies
  • Configuration Security: Analyzes SSH configs and scans configuration files for hardcoded secrets
  • Container Security: Lists Docker containers, checks for privileged containers and exposed ports

🔐 Cryptographic Signing

Every scan report is cryptographically signed using Ed25519 signatures with SHA-256 hashing to ensure tamper-evidence and authenticity.

🤖 MCP Server Integration

Includes an MCP (Model Context Protocol) server that exposes security scanning tools to AI assistants like Claude Desktop and Cursor.

Installation

Install globally via npm:

npm install -g vygil

Or use directly with npx (no installation required):

npx vygil scan

From Source (For Developers)

# 1. Clone the repository
git clone https://github.com/vigil-xy/vigil-mcp.git
cd vigil-mcp

# 2. Install dependencies
npm install

# 3. Build the project
npm run build

# 4. (Optional) Link globally for local development
npm link

Usage

CLI Commands

Vygil provides a powerful command-line interface for security scanning:

Run a Security Scan

# Basic scan with cryptographic signing
vygil scan

# Output as JSON
vygil scan --json

# Save report to file
vygil scan -o report.json

# Skip cryptographic signing
vygil scan --no-sign

# Combined options
vygil scan --json -o report.json

Verify a Report

Verify the cryptographic signature to ensure the report hasn't been tampered with:

vygil verify report.json

Manage Cryptographic Keys

# Generate new Ed25519 key pair
vygil keys --generate

# Show your public key
vygil keys --show-public

Keys are stored in ~/.vigil/keys/ directory.

Using from Source

If you've cloned the repository:

# Run CLI directly
node build/cli.js scan

# Run with options
node build/cli.js scan --json -o report.json

# Verify a report
node build/cli.js verify report.json

# Manage keys
node build/cli.js keys --generate

MCP Server (AI Integration)

Vygil includes an MCP server that exposes security scanning tools to AI assistants.

Start the MCP Server

# If installed globally
vygil-mcp

# From source
npm start
# or
node build/index.js

Configure AI Assistant (e.g., Claude Desktop)

Add to your AI assistant's MCP configuration file:

For Claude Desktop (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):

{
  "mcpServers": {
    "vygil": {
      "command": "vygil-mcp"
    }
  }
}

For Cursor (.cursor/mcp_config.json in your project):

{
  "mcpServers": {
    "vygil": {
      "command": "npx",
      "args": ["vygil-mcp"]
    }
  }
}

Available MCP Tools

Once configured, your AI assistant will have access to:

  • vygil.scan - Run security scan on host or repository (returns structured data)
  • vygil.scan.signed - Run security scan with cryptographic signing (returns tamper-evident results)
  • vygil.proof.sign - Sign action payloads with cryptographic proof

Example AI Prompts

Try these prompts with your AI assistant:

  • "Use vygil to scan my system for security issues"
  • "Run a signed security scan and give me a detailed report"
  • "Check for vulnerabilities on this host"
  • "Scan my development environment and identify any exposed secrets"

Security Checks

Network Security

  • ✅ Scans all open TCP/UDP ports using netstat or ss
  • ✅ Identifies dangerous ports (FTP, Telnet, MySQL, PostgreSQL, Redis, MongoDB, etc.)
  • ✅ Checks firewall status (ufw/iptables)
  • ✅ Lists listening services with lsof or netstat

Process Security

  • ✅ Lists all running processes
  • ✅ Detects suspicious processes (reverse shells: nc -l, ncat -l, socat, etc.)
  • ✅ Finds processes running from /tmp/
  • ✅ Checks for privileged/root processes
  • ✅ Scans environment variables for secrets (AWS_ACCESS_KEY, API_KEY, PASSWORD, GITHUB_TOKEN, etc.)

Filesystem Security

  • ✅ Checks sensitive file permissions: ~/.ssh/id_rsa, ~/.aws/credentials, .env files
  • ✅ Finds world-writable files in common directories
  • ✅ Finds SUID/SGID files
  • ✅ Detects exposed secret files

Dependency Security

  • ✅ Runs npm audit if package.json exists
  • ✅ Parses and reports vulnerabilities
  • ✅ Shows vulnerability severity breakdown

Configuration Security

  • ✅ Analyzes SSH configuration for security issues
  • ✅ Scans configuration files for hardcoded secrets

Container Security

  • ✅ Lists all Docker containers
  • ✅ Detects privileged containers
  • ✅ Identifies exposed dangerous ports

Development

Project Structure

vigil-mcp/
├── src/
│   ├── cli.ts              # CLI entry point
│   ├── index.ts            # MCP server entry point
│   ├── crypto/
│   │   └── keys.ts         # Cryptographic signing
│   ├── scanners/
│   │   ├── index.ts        # Main scanner orchestrator
│   │   ├── network.ts      # Network security scanner
│   │   ├── process.ts      # Process security scanner
│   │   ├── filesystem.ts   # Filesystem security scanner
│   │   ├── dependencies.ts # Dependency vulnerability scanner
│   │   ├── configuration.ts # Config security scanner
│   │   └── containers.ts   # Container security scanner
│   └── utils/
│       └── formatter.ts    # Report formatting
├── build/                  # Compiled JavaScript
└── package.json

Build Commands

# Build TypeScript to JavaScript
npm run build

# Run MCP server
npm start

# Build and run MCP server
npm run dev

Technologies

  • TypeScript - Type-safe development
  • Node.js - Runtime environment
  • Model Context Protocol SDK - AI integration
  • Commander.js - CLI interface
  • Chalk - Terminal formatting
  • Zod - Schema validation
  • Ed25519 - Cryptographic signatures
  • SHA-256 - Secure hashing

Architecture

Vygil is a dual-purpose security tool:

  1. CLI Scanner: Standalone command-line tool for comprehensive local security auditing
  2. MCP Server: Exposes security scanning capabilities to AI assistants via Model Context Protocol

The tool uses a modular scanner design where each security domain (network, processes, filesystem, etc.) is a separate module. All scans run in parallel for optimal performance, and results are aggregated into a comprehensive report with risk assessment.

Output Example

🔍 Starting Vygil Security Scan...

✅ Report cryptographically signed

═══════════════════════════════════════════════════════════
                    SECURITY SCAN REPORT                    
═══════════════════════════════════════════════════════════

SUMMARY
  Risk Level: MEDIUM
  Total Issues: 12
  Critical: 0 | High: 3 | Medium: 7 | Low: 2

─────────────────────────────────────────────────────────────
                  CRYPTOGRAPHIC SIGNATURE                     
─────────────────────────────────────────────────────────────
Algorithm: Ed25519
Hash (SHA-256): a3f2b1c8d4e5f6a7b8c9d0e1f2a3b4c5...
Signature: x9y8z7w6v5u4t3s2r1q0p9o8n7m6l5k4...
Public Key Location: ~/.vigil/keys/public.pem

📄 Full report (JSON) saved to: report.json

License

MIT

Author

Vygil Security Team

Project Info
Created At
4 months ago
Updated At
4 months ago
Author Name
vigil-xy
Star
-
Language
-
License
-
Category

Recommend Servers

View All
Kite

12 hours ago
Demand Chain - AI Agent native demand matching platform
@文明天梯

让你的Agent来跟全世界对接需求,你的AI助理帮你把需求传达出去,又帮你接受别人给你的需求。 需求链平台是将整个人类联结在一起的一个工具,组成一个网络。 告诉你的AI助理,你的需求,Agent会在需求链平台上寻找到能解决你需求的人。 别人也会将他的需求传达给你,你接受你能处理的需求,你也可以将这个需求拆分,变成数个小的需求,继续放在需求链上传递下去。 比如说你想要一种技术的创新,一个人工智能的新算法,或者是需要一种新材料,想要一种新的解决方案,去解决工作生活中的真实痛点。 你或许有一个天才的想法,需要有人与你一起去验证是否可行。 或者你已经有一套成功的技术,需要让全世界都知道你的方案。 总之每个人都有各种需求需要解决,而需求链平台,就是帮你解决各种需求而存在的机制。 赶快打开你的Agent,告诉他,你的需求吧。 此需求链平台是地球人类共有的基础设施,永久开源,中立,免费。 Let your Agent connect with demands from across the globe. Your AI assistant will forward your requests and receive demands from others for you. The Demand Chain Platform is a tool that unites all humanity into a connected network. Simply tell your AI assistant what you need, and your Agent will find people on the platform who can address your requirements. Others will also send their demands to you. You may take on tasks you are capable of handling, or split a single demand into several smaller ones to keep them circulating on the Demand Chain. For instance, you may seek technological innovation, a new AI algorithm, advanced new materials, or practical solutions to real problems in work and daily life. You might have a brilliant idea and need partners to verify its feasibility. Or you possess proven technologies and wish to share your solutions with the whole world. Everyone has various needs to fulfill, and the Demand Chain Platform is built precisely for this purpose. Launch your Agent and submit your demands right away. As a shared infrastructure for all people on Earth, this Demand Chain Platform is permanently open-source, neutral and free of charge.

an hour ago
Meteomatics

12 hours ago