Fast, compact prompt-injection and jailbreak detection for lightweight deployment. This 68.4M-parameter model is designed for low-latency local, edge, and agent-side use. It detects direct and indirect prompt injection and jailbreak attempts while also returning optional channel, objective, and technique classifications.
The model provides a security signal for policy and approval systems. Runtime permissions must still be enforced at the action boundary.
Apply sigmoid to presence, objective, and technique logits. Apply softmax to the three channel logits. Presence then uses the runtime-specific calibration in calibration.json; objective and technique calibration is already embedded in the weights.
Files And Runtime Targets
File
Precision
Size
Intended runtime
model.safetensors
FP32
261.0 MiB
Transformers, CPU or GPU
onnx/model.onnx
FP32
261.4 MiB
ONNX reference path
onnx/model_fp16.onnx
FP16 + FP32 pooling
131.1 MiB
Fast GPU inference
onnx/model_quantized.onnx
INT8/FP32
117.8 MiB
Compact CPU inference
All ONNX files use ordinary ONNX operators and return the same single [batch, 22] tensor. No project package, source checkout, remote model code, or quantization plugin is required for inference.
The FP16 graph accumulates masked mean pooling in FP32 to remain finite at the full 1,024-token context; encoder and classifier matrix operations remain FP16.
Evaluation
Internal evaluation
Evaluation on Sheltron internal eval dataset.
Variant
Presence P
Presence R
Presence F1
FP32 Safetensors
0.9897
0.9909
0.9903
FP16 ONNX
0.9898
0.9909
0.9904
INT8 ONNX
0.9943
0.9955
0.9949
Public evaluation
External evaluation on a mixture of public datasets.
For inputs longer than 1024 serialized tokens, use overlapping windows with stride 768 and take the maximum calibrated attack probability across windows.
For ONNX deployment, download one file from onnx/, pass the same input_ids and attention_mask as int64 arrays, and read the first output tensor. Use CUDAExecutionProvider for model_fp16.onnx and CPUExecutionProvider for model_quantized.onnx.
License
The release is provided under CC BY-NC 4.0 for noncommercial research.