IMCP - Insecure Model Context Protocol The DVWA for AI Security! Welcome to IMCP – a deliberately vulnerable framework that exposes 16 critical security weaknesses in AI/ML systems. Whether you're a security researcher, developer, or educator, IMCP is your playground for hands-on learning about real
An educational framework for understanding AI security vulnerabilities
IMCP (Insecure Model Context Protocol) is a deliberately vulnerable application designed exclusively for educational and research purposes. It demonstrates critical AI security vulnerabilities. DO NOT deploy in production environments or use with sensitive data.
IMCP is an educational framework that exposes 16 critical security vulnerabilities in AI/ML model serving systems. It serves as a controlled, "vulnerable by design" platform for security researchers, developers, and educators to learn about and mitigate emerging AI threats.
Think of IMCP as the “DVWA for AI” — a safe environment where you can explore:
The test suite in test_vulnerabilities.py
demonstrates each vulnerability with detailed explanations and examples. It includes:
/imcp
: Main JSON-RPC endpoint for IMCP functionality./v1/chat/completions
: OpenAI API-compatible endpoint./v1/models
: List available models./v1/embeddings
: Generate embeddings./v1/auth/token
: Authentication endpoint./.well-known/imcp-configuration
: Service discovery endpoint.Clone the repository and set up your environment:
# Clone the repository git clone https://github.com/nav33n25/IMCP.git cd imcp # Create a virtual environment python -m venv venv source venv/bin/activate # For Windows: venv\Scripts\activate # Install dependencies pip install -r requirements.txt # Configure the environment cp .env.example .env # Edit .env to include your OpenAI API key
Start the server and run the test suite:
# Start the IMCP server python -m flask run --host=0.0.0.0 --port=5000 # In another terminal, run the test suite python test_vulnerabilities.py
All the comprehensive guides are located in the documentation/
directory:
We welcome contributions from the community! Areas where you can help include:
Please check out our CONTRIBUTING.md
for more details on how to get started.
This project is licensed under the MIT License. See the LICENSE
file for details.
IMCP is intentionally vulnerable software for educational purposes only. The creators are not liable for any misuse or damage caused by the use of this software.
Discover shared experiences
Shared threads will appear here, showcasing real-world applications and insights from the community. Check back soon for updates!