Specialist Web & Network Security Models v2.6 (12x MiniLM-L6-v2 INT8 ONNX Suite)

Author: Tekniko

This repository contains 12 single-task cybersecurity specialist models (v2.6) built on sentence-transformers/all-MiniLM-L6-v2 (320-token context) and quantized to INT8 ONNX (22.0 to 22.3 MB each, 265.2 MB total) and INT4 PyTorch (13.1 to 13.7 MB each). Trained on 18,000 hybrid real-plus-synthetic soft-labeled rows (blending 1,334 real public security samples from deepset/prompt-injections, zrmarine/sql_injection, AmirAliGharesoufloo/XSS, and pyToshka/network-intrusion-detection with 40 to 42% strong benign priors and zero synthetic alarm-word crutches). Includes novapay_app/, a live FinTech banking portal protected inline by Primary-Gate Uncertainty-Gated Ensemble Consensus.

Important Warning: Test Before Production Use

These models are lightweight local ML security sensors and are not a standalone replacement for deterministic security controls (WAF signatures, parameterized SQL, strict RBAC/BOLA enforcement, hardware MFA, EDR, or regex DLP). Always validate before enabling automated blocking:

  • Deploy in shadow (monitor-only) mode first on your real production traffic to measure false positives and false negatives.
  • Put deterministic L3/L4/L7 rate-limiting in front of ML gates for volumetric DDoS protection.
  • Canonicalize/decode inputs (URL-decode, HTML-unescape, NFKC normalize) and scan head+tail chunks for payloads exceeding 320 tokens.
  • Use Primary-Gate Uncertainty-Gated Ensemble Consensus rather than naive majority voting or standalone single-head blocking.

Included 12 Specialist Models and Benchmarks (v2.6)

Evaluated locally on CPU (onnxruntime):

  • 68-Case Adversarial Stress Test: 97.1% (66/68), with 11 of 12 specialists at 100.0%
  • 24-Case In-the-Wild OOD Benchmark: 91.7% (22/24), up from 70.8% (synthetic-only)
  • 18-Vector Live NovaPay Ensemble Campaign: 94.4% (17/18) with 100.0% attacks blocked (10/10) and 87.5% tricky benign customers allowed (7/8)

Models included:

  • sec_web_waf_gate (noul, 22.1 MB, threshold 0.55): HTTP/WAF attack gate covering 38 web attack classes (SQLi, NoSQLi, XSS, SSRF, LFI/RFI, XXE, SSTI, JWT alg:none, HTTP smuggling, prototype pollution, WebSocket CSWSH, CORS abuse, Zip Slip, SAML XSW). Wild OOD: 100.0% (8/8).
  • sec_net_intrusion_gate (noul, 22.1 MB, threshold 0.55): L2-L7 network intrusion gate covering 29 network threats (SYN/UDP/ICMP floods, DNS water torture, fast/slow port scans, DNS/ICMP tunneling, C2 beacons, SSH/RDP brute force, Pass-the-Hash, reverse shells, unauth Kubelet exec, S3 exfil, ARP/DNS/VLAN spoofing, BGP hijacks). 68-case stress: 100.0% (8/8).
  • sec_api_abuse_router (choice, 22.1 MB): 5-way API traffic classifier (BENIGN, SCRAPING_BOT, BOLA_IDOR, RATE_ABUSE, PAYLOAD_INJECTION). Stress: 100.0% (5/5).
  • sec_auth_anomaly_gate (noul, 22.1 MB, threshold 0.55): Zero-trust login anomaly gate (stuffing, slow spray, impossible travel, Tor exit logins, zero-fail OAuth replay, MFA fatigue, OAuth phishing, Kerberoasting, Golden Ticket, AitM proxy). Stress: 100.0% (8/8).
  • sec_prompt_injection_gate (noul, 22.1 MB, threshold 0.40): LLM prompt firewall (direct, stealth, persona, polite audit, multilingual, HTML comments, Markdown exfil, leetspeak, tool hijacks). Wild OOD: 100.0% (8/8).
  • sec_domain_router (choice, 22.1 MB): 5-way domain router (BENIGN, WEB_API, APP_IDENTITY, NETWORK_TRAFFIC, HOST_SYSTEM). Stress: 100.0% (5/5).
  • sec_incident_action (choice, 22.1 MB): 4-way containment recommender (ALLOW_LOG, INVESTIGATE_SOC, REVOKE_CREDENTIALS, ISOLATE_CONTAIN). Stress: 100.0% (4/4).
  • sec_risk_severity (score, 22.1 MB): Calibrated 1 to 5 risk severity scorer. Stress: 100.0% (4/4).
  • sec_alert_indicators (tags, 22.1 MB): 5-tactic multi-label detector (credential_risk, data_exfiltration, defense_evasion, lateral_movement, web_network_exploit). Stress: 100.0% (4/4).
  • sec_log_redact_secrets (extract, 22.0 MB): BIO secret extractor (API_KEY, PASSWORD, TOKEN). Stress: 100.0% (4/4).
  • sec_ioc_extract (extract, 22.0 MB): BIO IOC extractor (IP_ADDR IPv4/IPv6, DOMAIN, USER_ACCOUNT). Stress: 100.0% (4/4).
  • sec_unified_soc_triage (schema, 22.3 MB): Single-pass 3-head schema returning domain, needs_escalation, and severity. Stress: 100.0% (4/4).

Quickstart: Run the NovaPay Ensemble Demo

Install dependencies:

pip install onnxruntime transformers tokenizers numpy flask

Run the live NovaPay FinTech portal protected by all 12 v2.6 ONNX models:

python novapay_app/server.py --variant mixed --port 8002

Open http://127.0.0.1:8002 in a browser to run the built-in 10-vector live attack and benign customer simulator or test custom HTTP, auth, prompt, and network payloads.

Known Architectural Limitations

  • Stateless single-event scoring: pair with upstream sliding-window counters or SIEM correlation for multi-step attacks across time.
  • 320-token context limit: chunk or scan individual parameters for long payloads.
  • CPU latency ceiling: place deterministic rate-limiting in front of ML gates under volumetric traffic.
  • Public model weights: always combine with parameterized queries, strict RBAC, hardware MFA, and private enterprise fine-tuning.

Repository Structure

  • README.md: Model card and documentation
  • sec_*/: All 12 specialist model directories (specialist_int8.onnx, specialist_int4.pt, meta.json)
  • novapay_app/: NovaPay FinTech portal and ensemble_shield.py
Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for TeknikoAI/specialist-web-network-security-v2