ββββ βββββββ ββββββ ββββββββββββββ ββββββββββ ββββββ ββββββββββ
βββββ βββββββββ βββββββ ββββββββββββββββ βββββββββββββββββββββββββββββββ
βββββββββββ βββββββ βββββββ ββββββ βββββββ βββββββββββββββββββββββββββ
βββββββββββ βββββ βββββββ ββββββ βββββ βββββββ βββββββββββββββββββ
βββ βββ βββ βββ βββ βββββββββββ βββ βββ βββ βββββββββ βββ
βββ βββ βββ βββ βββββββββββ βββ βββ βββ βββββββββ βββ
ββββββ βββ βββββββ βββββββ βββ ββββββββββββββββββ βββββββββββββββ
βββββββββββ ββββββββββββββββββββ βββββββββββββββββββββββββββββββββββ
βββββββββββ βββββββββββ ββββββ ββ βββββββββ ββββββββββββββ βββ βββ
βββββββββββ βββββββ βββ βββββββββββββββββββ ββββββββββββββ βββ βββ
βββ ββββββ βββ ββββββββββββββββββββββββββββββ βββββββββββββββββββ
βββ ββββββ βββ βββββββ ββββββββ βββββββββββ ββββββββββββββββββ
βββββββ βββ ββββββ βββββββββββββββ ββββββ ββββ βββββββββββββββ βββ βββββββ βββββββ βββ βββ
βββββββββββ βββββββ βββββββββββββββββββββββββββββ ββββββββββββββββ βββββββββββββββββββββββ ββββ
βββββββββββββββ βββ ββββββ βββββββββββββββββββββββββββββββββ βββ ββ ββββββ ββββββββββββββββββ
βββββββ βββββββ βββ ββββββ βββββββββββββββββββββββββββββββββ βββββββββββββ ββββββββββββββββββ
βββ βββ ββββββ βββ βββ ββββββ ββββββ βββ βββββββββββββββββββββββββββββββββ ββββββ βββ
βββ βββ ββββββ βββ βββ ββββββ ββββββ βββββββββββ ββββββββ βββββββ βββ ββββββ βββ
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β π AI-Powered Cybersecurity Framework with PKI & MCP Integration β
β β
β π Build intelligent security agents in minutes β
β π‘οΈ Complete PKI infrastructure & certificate management β
β π€ Model Context Protocol (MCP) integration β
β π¦ Docker deployment & CI/CD ready β
β β
β Version: v1.0.0 | License: MIT | Framework: Python 3.9+ β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
π₯ Get Started in 10 Minutes | π Documentation | π³ Docker Setup
A comprehensive cybersecurity framework built with AI agents, PKI infrastructure, and Model Context Protocol (MCP) integration.
- AI-Powered Security Agents: Intelligent agents for PKI management, vulnerability assessment, and security analysis
- PKI Infrastructure: Complete Public Key Infrastructure with certificate lifecycle management
- MCP Integration: Model Context Protocol server for seamless AI tool integration
- Docker Deployment: Containerized deployment with Docker Compose
- Comprehensive Testing: Integration tests for all components
- Scalable Architecture: Modular design supporting multiple security domains
The framework consists of several key components:
-
AI Agents (
agents/
)- Base agent framework with memory and tool registry
- PKI-specific agent for certificate management
- Extensible architecture for additional security domains
-
Infrastructure (
infrastructure/
)- MCP server for AI tool integration
- PostgreSQL database for data persistence
- Docker Compose orchestration
- Vault integration for secrets management
-
Compose for Agents (
compose-for-agents/
)- Collection of pre-built agent frameworks
- Support for multiple AI frameworks (LangGraph, CrewAI, etc.)
- Ready-to-use agent templates
π QUICKSTART GUIDE - Build your first security agent in 10 minutes!
The quickstart guide will walk you through:
- β Setting up your first agent (5 minutes)
- β Running interactive network scans
- β Understanding the framework architecture
- β Building custom security tools
For advanced users who want the complete infrastructure:
- Docker and Docker Compose
- Python 3.11+ (for development)
- Git
- Clone the repository:
git clone https://github.com/Mkp-dev-portefolio/cybersecurity-framework.git
cd cybersecurity-framework
- Quick demo (recommended for first-time users):
# Install minimal dependencies
pip install -r requirements-quickstart.txt
# Run the interactive quickstart
python run_quickstart.py
- Full setup (for development):
# Create virtual environment
python3 -m venv .venv
source .venv/bin/activate
# Install all dependencies
pip install -r requirements.txt
# Start all services
docker-compose -f infrastructure/docker-compose.yml up -d
# Run tests
pytest tests/test_mcp_integration.py -v
The PKI agent provides comprehensive certificate management capabilities:
from agents.pki.pki_agent import PKIAgent
# Initialize the agent
agent = PKIAgent()
# Issue a certificate
cert_request = {
"common_name": "example.com",
"organization": "My Organization",
"country": "US"
}
certificate = agent.issue_certificate(cert_request)
print(f"Certificate issued: {certificate['serial_number']}")
The MCP server provides AI tools for security operations:
# Start the MCP server
cd infrastructure/mcp-server
python src/main.py
# The server will be available at http://localhost:8080
Deploy the entire framework using Docker Compose:
# Deploy all services
docker-compose -f infrastructure/docker-compose.yml up -d
# Scale specific services
docker-compose -f infrastructure/docker-compose.yml up -d --scale mcp-server=3
# View logs
docker-compose -f infrastructure/docker-compose.yml logs -f mcp-server
cybersecurity-framework/
βββ agents/ # AI agents
β βββ base/ # Base agent framework
β βββ pki/ # PKI-specific agent
βββ infrastructure/ # Core infrastructure
β βββ docker-compose.yml # Service orchestration
β βββ mcp-server/ # MCP server implementation
β βββ postgres/ # Database configuration
βββ compose-for-agents/ # Agent frameworks collection
βββ tests/ # Integration tests
βββ framework-structure.md # Architecture documentation
βββ README.md # This file
- Create a new agent directory under
agents/
- Implement the agent class inheriting from
BaseAgent
- Add tools and capabilities specific to your domain
- Update the tool registry
- Add tests for the new agent
# Run all tests
pytest tests/ -v
# Run specific test file
pytest tests/test_mcp_integration.py -v
# Run with coverage
pytest tests/ --cov=agents --cov=infrastructure
Create a .env
file in the root directory:
# Database
POSTGRES_DB=cybersecurity_db
POSTGRES_USER=cyber_user
POSTGRES_PASSWORD=secure_password
# MCP Server
MCP_SERVER_PORT=8080
MCP_SERVER_HOST=0.0.0.0
# Vault (if using)
VAULT_ADDR=http://localhost:8200
VAULT_TOKEN=your_vault_token
Each service can be configured through environment variables or configuration files:
- MCP Server:
infrastructure/mcp-server/src/config.py
- Database:
infrastructure/postgres/init.sql
- Agents: Individual agent configuration files
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature
) - Commit your changes (
git commit -m 'Add amazing feature'
) - Push to the branch (
git push origin feature/amazing-feature
) - Open a Pull Request
- Follow PEP 8 style guidelines
- Add tests for new features
- Update documentation for API changes
- Use type hints where appropriate
- Add docstrings for all functions and classes
- All sensitive data is encrypted at rest
- Certificate private keys are stored securely
- API endpoints are protected with authentication
- Regular security audits are performed
- Secrets are managed through environment variables
This project is licensed under the MIT License - see the LICENSE file for details.
For support and questions:
- Open an issue on GitHub
- Check the documentation in
framework-structure.md
- Review the test cases for usage examples
- Additional AI agent types (vulnerability scanning, compliance checking)
- Web UI for agent management
- Advanced analytics and reporting
- Integration with external security tools
- Multi-tenant support
- Enhanced monitoring and alerting
- Built with Model Context Protocol (MCP)
- Uses Docker for containerization
- Leverages modern AI frameworks
- Incorporates security best practices