LLMForge is a modular AI VulnerableApp for research, exploits and AI attack experimentation
1.7K
AI Security Gateway for Dynamic Vulnerability Labs
LLMForge is a security-first LLM control plane that powers AI-driven vulnerability simulations. It serves as the AI execution layer for SasanLabsβ and integrates directly with the VulnerableAppβ ecosystem, enabling dynamic exploit labs driven by language models.
Static vulnerable applications can only go so far. LLMForge introduces a new class of security training β labs that are dynamic, adaptive, and AI-native.
It acts as a policy enforcement layer, session controller, challenge engine, and logging gateway. The model is not trusted. The gateway controls behavior.
LLMForge enables two distinct security training modes:
Simulate real-world AI vulnerabilities against a live language model:
Structured for AI red-team experimentation and CTF-style challenge progression.
Turn a language model into a misconfigured or flawed system:
Each session can generate unique exploit paths, enabling effectively infinite security training scenarios.
βββββββββββββββββββββββββββββββββββββββββββββββ
β LLMForge β
β β
β βββββββββββββββ βββββββββββββββββββ β
β β Gateway ββββββΆβ Challenge β β
β β (FastAPI) β β Engine β β
β βββββββββββββββ βββββββββββββββββββ β
β β β β
β βββββββββββββββ βββββββββββββββββββ β
β β Session & β β Logging & β β
β β Memory β β Evaluation β β
β βββββββββββββββ βββββββββββββββββββ β
ββββββββββββββββββββββββ¬βββββββββββββββββββββββ
β
ββββββββββΌβββββββββ
β Ollama / β
β OpenAI-compat β
βββββββββββββββββββ
LLMForge is model-agnostic and supports:
Model backends can be swapped without changing any lab logic.
Docker Compose is the recommended way to run LLMForge. It starts both the llmforge gateway and the ollama runtime together.
docker compose up --build
Set MODEL_PROFILE before startup. The ollama-init service waits for a healthy Ollama instance, pulls the specified model, and llmforge starts only after init completes.
Bash:
export MODEL_PROFILE=mistral:7b-instruct-q4_0
docker compose up --build
PowerShell:
$env:MODEL_PROFILE="llama3.1:8b"
docker compose up --build
If MODEL_PROFILE is not set, the default is phi3:mini.
| Environment Variable | Purpose | Default |
|---|---|---|
OLLAMA_MODEL | Model name forwarded on inference requests | phi3:mini |
OLLAMA_EMBED_MODEL | Embedding model used for vector search | nomic-embed-text |
LLMForge integrates with the existing VulnerableAppβ architecture and is designed to become the AI security backbone of the ecosystem. Labs defined in VulnerableApp can delegate AI execution, session control, and evaluation entirely to LLMForge.
This project is intended strictly for educational and defensive security research. Do not use it against systems you do not own or have explicit permission to test.
Pull requests are welcome. For significant changes, please open an issue first to discuss what you would like to change.
Content type
Image
Digest
sha256:f873e7d85β¦
Size
167.4 MB
Last updated
1 day ago
docker pull sasanlabs/llmforge:62c756fc79343e4fbf2344eaf683e9a44e6ca5c3