Datasets:
Download README.md from emgena/agent_prompt_injection_via_git_commit_shield_teaser: direct link, hf CLI and curl.
- Browser
- Download file 4.63 kB
-
https://huggingface.co/datasets/emgena/agent_prompt_injection_via_git_commit_shield_teaser/resolve/main/README.md
- Command line
-
hf download hf://datasets/emgena/agent_prompt_injection_via_git_commit_shield_teaser/README.md
-
curl -L -o README.md https://huggingface.co/datasets/emgena/agent_prompt_injection_via_git_commit_shield_teaser/resolve/main/README.md
license: cc-by-nc-4.0
tags:
- mcp
- cursor
- claude-desktop
- sre
- ast-guard
- apple-mlx
- mac-ready
- security
- unsloth
- deepseek-r1
- spitzenprodukt
size_categories:
- n<1K
task_categories:
- text-generation
language:
- en
- de
pretty_name: Agent Prompt Injection via Git Commit & PR Shield MCP
๐ Fachbereich / Domain: ๐ก๏ธ DevSecOps & Cloud Security
๐ Katalog-Filter: Alle verwandten DevSecOps & Cloud Security Suiten auf Hugging Face anzeigen
๐ Kommerzielle Lizenz & Webshop: emgena.com/trainingslager?product=agent_prompt_injection_via_git_commit_shield&coupon=LAUNCH20
๐ก๏ธ Agent Prompt Injection via Git Commit & PR Shield 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 (
agent_prompt_injection_via_git_commit_shield.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('intercept_git_commit_prompt_injection'): Scans git commit messages and PR bodies for prompt injection keywords attempting system overrides.execute_tool('sanitize_pull_request_markdown_payload'): Strips hidden zero-width spaces, malicious HTML comments, and adversarial Unicode from markdown issue descriptions.execute_tool('quarantine_untrusted_contributor_instructions'): Flags system-override instructions authored by external non-maintainer contributors.execute_tool('audit_git_hook_injection_vector'): Detects adversarial shell directives inside .git/hooks/ and .githooks templates.execute_tool('enforce_prompt_context_role_separation'): Enforces clear delimiters preventing LLMs from executing commit messages as commands.execute_tool('verify_pgp_commit_signature_trust'): Asserts that commit messages triggering agentic refactoring are cryptographically signed with trusted maintainer keys.execute_tool('fuzz_indirect_injection_obfuscation'): Tests for base64, ROT13, and leetspeak prompt injection payloads inside git patches.execute_tool('circuit_break_malicious_commit_execution'): Kills agent subprocess if untrusted commit instructions attempt to trigger code execution.
๐ 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": {
"agent_prompt_injection_via_git_commit_shield": {
"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