Provides containerized execution environment for isolated security scanner operations with Docker security hardening and resource constraints
Enables detection and security scanning of Kubernetes services within project boundaries for comprehensive cluster security assessment
Performs security analysis of Node.js applications through package.json analysis and JavaScript-specific vulnerability detection
Validates compliance against OWASP security frameworks including the OWASP Top 10 vulnerabilities and security best practices
Integrates Trivy vulnerability scanner for container image and filesystem security scanning with configurable severity filtering
Leverages OWASP ZAP for web application penetration testing including SQL injection, XSS, and CSRF vulnerability detection
MCP Shamash - Security Audit & Compliance Server
A Model Context Protocol (MCP) server for security auditing, penetration testing, and compliance validation with strict project boundary enforcement.
Features
- Project-Scoped Security Scanning: Never escapes project boundaries
- Multiple Security Tools: Semgrep, Trivy, Gitleaks, OWASP ZAP, and more
- Network Penetration Testing: Safe network scanning within project scope
- Compliance Validation: OWASP, CIS, NIST, ISO 27001 frameworks
- Containerized Execution: Isolated scanner execution with Docker
- Parallel Processing: Concurrent scanner execution for speed
- Intelligent Caching: Results cached for performance optimization
- Token Efficiency: <1000 tokens per operation with monitoring
- Comprehensive Audit Logging: Complete operation trails
- Real-Time Boundary Enforcement: Multi-layer security isolation
Quick Start
Installation
Running the Server
Or for development:
Demo
Experience all features with the interactive demo:
This demonstrates:
- Real security tool integration (Semgrep, Trivy, Gitleaks, OWASP ZAP)
- Boundary enforcement (prevents external access)
- Network scanning within project scope
- Compliance validation (OWASP, CIS, NIST)
- Caching performance improvements
- Parallel scanner execution
MCP Integration
Configure in your MCP-compatible client:
Available Tools
scan_project
Comprehensive security scan of project directory.
scan_network
Network scanning within project boundaries.
pentest_application
Penetration testing of deployed applications.
check_compliance
Compliance framework validation.
Security Boundaries
Project Scope Detection
- Automatic discovery of Docker Compose networks
- Kubernetes service detection
- Package.json analysis for Node.js apps
- Local service enumeration
Multi-Layer Enforcement
- Path Validation: Prevents directory traversal
- Network Boundaries: CIDR-based network restrictions
- Container Isolation: Docker security hardening
- Resource Limits: Memory, CPU, and process constraints
Blocked Operations
- System path access (
/etc
,/usr
,/var
) - External network scanning
- Management port access (22, 3389, 445)
- Privilege escalation attempts
Architecture
Development
Building
Testing
Linting
Container Usage
Build Scanner Containers
Run Isolated Scan
Configuration
Environment Variables
SHAMASH_MAX_TOKENS_PER_SCAN
: Token limit per scan (default: 1000)SHAMASH_MAX_TOKENS_PER_HOUR
: Hourly token limit (default: 50000)SHAMASH_AUDIT_LOG_PATH
: Audit log location (default: ./audit.log)
Project Configuration
Create .shamash.yml
in project root:
Compliance Frameworks
OWASP Top 10 Coverage
- A01: Broken Access Control
- A02: Cryptographic Failures
- A03: Injection
- A04: Insecure Design
- A05: Security Misconfiguration
- A06: Vulnerable Components
- A07: Authentication Failures
- A08: Software/Data Integrity
- A09: Security Logging
- A10: Server-Side Request Forgery
CIS Controls
- Inventory and Control of Assets
- Access Control Management
- Continuous Vulnerability Management
- Network Infrastructure Management
- Data Protection
NIST Cybersecurity Framework
- Identify: Asset management, governance
- Protect: Access control, data security
- Detect: Security monitoring, detection processes
- Respond: Response planning, incident management
- Recover: Recovery planning, improvements
Security Considerations
Defensive Only
- No offensive capabilities
- Read-only filesystem operations
- No credential harvesting
- Audit trail for all operations
Boundary Enforcement
- Multiple validation layers
- Real-time monitoring
- Automatic violation detection
- Emergency shutdown capability
Token Management
- Per-scan limits (1000 tokens)
- Rate limiting (5000/minute, 50000/hour)
- Usage tracking and reporting
License
MIT License
Contributing
- Fork the repository
- Create a feature branch
- Add tests for new functionality
- Ensure all tests pass
- Submit a pull request
Support
For issues and questions:
- Create an issue on GitHub
- Check the audit logs for troubleshooting
- Review boundary enforcement logs
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
Tools
Enables security auditing, penetration testing, and compliance validation with tools like Semgrep, Trivy, Gitleaks, and OWASP ZAP. Features strict project boundary enforcement and supports OWASP, CIS, and NIST compliance frameworks.