Datasets:
The dataset viewer is not available because its heuristics could not detect any supported data files. You can try uploading some data files, or configuring the data files location manually.
π Fachbereich / Domain: π‘οΈ DevSecOps & Cloud Security
π Katalog-Filter: Alle verwandten DevSecOps & Cloud Security Suiten auf Hugging Face anzeigen
π Kommerzielle Lizenz & Webshop: emgena.com/trainingslager?product=django_orm_raw_sql_unparameterized_injection_auditor&coupon=LAUNCH20
π‘οΈ Django ORM RawSQL & .extra() Unparameterized Injection Auditor MCP
Official Turnkey Model Context Protocol (MCP) Guard & Fine-Tuning Suite (FAANG v2.5 Gold Standard)
βοΈ Dual-Licensing & Fair-Use Compliance Notice
- Community & Evaluation License (
CC-BY-NC-4.0): This evaluation repository is 100% free for academic research, education, personal experimentation, and local evaluation.- Commercial & Enterprise License: Any integration into commercial software, SaaS applications, proprietary models, or corporate pipelines requires a valid commercial license from emgena.com/trainingslager.
- Launch Discount: Use code
LAUNCH20at checkout for 20% off all commercial tiers (Single, Team, Enterprise).
π¦ What is Included in this Package
This repository contains the full 500-sample verified dataset and in-IDE guardrails:
- Parquet & JSONL Datasets (
django_orm_raw_sql_unparameterized_injection_auditor.parquet,chatml_format.jsonl):- 500 verified multi-turn trajectories across 30 production incidents.
- 100% AST Invariance: Zero syntax errors (validated via
ast.parse()).
- Deterministic MCP Engine (
server.py&server_free.py):- Zero-dependency stdio engine (<0.15ms latency, 100% offline).
- Compatible with Cursor IDE, Claude Desktop, and VS Code.
- Dual Fine-Tuning Recipes:
- Apple Silicon Mac (
train_mlx.py): Native LoRA fine-tuning for M1/M2/M3/M4 unified memory in 15 minutes. - Nvidia CUDA (
train_lora_unsloth.py): 4-bit QLoRA fine-tuning on RTX 4090 / 5090 / Colab.
- Apple Silicon Mac (
- Active AST Tools:
execute_tool('audit_raw_sql_unparameterized_string'): Detects string formatting inside RawSQL() and .raw() calls across Django models.execute_tool('flag_deprecated_extra_clause_usage'): Flags use of vulnerable QuerySet.extra() and provides safe ORM expression replacements.execute_tool('enforce_django_db_params_tuple'): Ensures params argument is passed as a tuple/list to cursor.execute().execute_tool('detect_dynamic_order_by_sql_injection'): Checks order_by() clauses built from untrusted user input without field whitelisting.execute_tool('quarantine_unfiltered_bulk_create_payload'): Validates model field constraints on bulk_create() which bypasses save() and clean().execute_tool('fuzz_django_orm_lookup_transformation'): Tests custom database lookups for unescaped SQL fragments.execute_tool('sanitize_django_debug_toolbar_sql_queries'): Redacts customer passwords from SQL panel in local development environments.execute_tool('circuit_break_malicious_orm_subquery'): Terminates query execution if Subquery() contains unparameterized WHERE predicates.
π Quickstart: Apple Silicon Fine-Tuning (MLX)
pip install mlx mlx-lm
python train_mlx.py
π» Quickstart: Cursor IDE & Claude Desktop MCP Setup
Add the following to your .cursor/mcp.json or claude_desktop_config.json:
{
"mcpServers": {
"django_orm_raw_sql_unparameterized_injection_auditor": {
"command": "python",
"args": ["server.py"]
}
}
}
βοΈ License & Commercial Deployment
Distributed under Creative Commons Attribution-NonCommercial 4.0 International (CC-BY-NC-4.0).
For commercial enterprise deployment rights, BGB Β§ 97 UrhG indemnification, and EU AI Act Annex IV audit certificates, visit:
π emgena.com/trainingslager
- Downloads last month
- 40