graval commited on
Commit
7702e45
ยท
verified ยท
1 Parent(s): 33020a0

Add comprehensive EdgeShield model card with architecture and citation details

Browse files
Files changed (1) hide show
  1. README.md +99 -0
README.md ADDED
@@ -0,0 +1,99 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - en
4
+ license: apache-2.0
5
+ tags:
6
+ - cybersecurity
7
+ - small-language-models
8
+ - ransomware-detection
9
+ - lateral-movement
10
+ - onnx
11
+ - int8
12
+ - edge-ai
13
+ pipeline_tag: text-classification
14
+ ---
15
+
16
+ # EdgeShield: Dual-Stream Small Language Model Cybersecurity Framework
17
+
18
+ [![License: Apache 2.0](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
19
+ [![GitHub](https://img.shields.io/badge/GitHub-graval%2Fedgeshield-black.svg)](https://github.com/graval/edgeshield)
20
+ [![Kaggle](https://img.shields.io/badge/Kaggle-edgeshield--models-blue.svg)](https://www.kaggle.com/models/gauravr1/edgeshield-models)
21
+
22
+ EdgeShield is an edge-native cybersecurity framework that uses a decoupled dual-stream Small Language Model (SLM) architecture and tiered selective gating to intercept lateral movement (MITRE TA0008) and pre-encryption ransomware before cryptographic destruction begins.
23
+
24
+ ---
25
+
26
+ ## ๐Ÿ›๏ธ Architecture & Model Lineage
27
+
28
+ EdgeShield decouples host threat monitoring into two specialized streams:
29
+
30
+ 1. **Stream A (LSA - Log Sequence Analyzer)**:
31
+ - **Backbone:** 44M parameter `microsoft/deberta-v3-small` with sliding-window attention ($K=3$) and Supervised Contrastive Loss.
32
+ - **Target:** High-fidelity authentication logs and host command sequences to detect stealthy lateral movement.
33
+ - **Formats:** PyTorch FP32 and Quantized INT8 ONNX (with AVX-VNNI acceleration).
34
+
35
+ 2. **Stream B (BPD - Behavioral Pattern Detector)**:
36
+ - **Backbone:** Compact Transformer with Attention Threat Scoring Head.
37
+ - **Target:** Captures pre-encryption ransomware precursor indicators, defense evasion (T1562.001), and rapid file entropy variations.
38
+ - **Formats:** PyTorch FP32 and Quantized INT8 ONNX.
39
+
40
+ 3. **Tiered Selective Gating Engine**:
41
+ - Two-stage filter (fast-path allowlist + Shannon file entropy triage).
42
+ - Operates in **48.55 μs**, discarding **94.75%** of benign telemetry with **100% attack pass-through** (0 drop misses).
43
+
44
+ ---
45
+
46
+ ## ๐Ÿ—บ๏ธ Repository Structure & Releases
47
+
48
+ | Tag / Revision | Milestone | Key Artifacts |
49
+ | :--- | :--- | :--- |
50
+ | **`v1.0-temscon`** | **IEEE TEMSCON-ASPAC 2026** (Oct 2026) | Baseline PyTorch FP32 weights for Stream A (`edgeshield_lsa`) and Stream B (`edgeshield_bpd`) |
51
+ | **`v2.0-int8-quantized` (`main`)** | **Extended Journal** | Quantized INT8 ONNX models (`edgeshield_lsa_int8.onnx`, `edgeshield_bpd_int8.onnx`) optimized for edge CPUs (<50 MB RAM, 15.30 ms latency) |
52
+
53
+ ---
54
+
55
+ ## ๐Ÿš€ Quick Usage (ONNX Runtime INT8)
56
+
57
+ ```python
58
+ import onnxruntime as ort
59
+ import numpy as np
60
+
61
+ # Load quantized Stream A (LSA)
62
+ session = ort.InferenceSession("models/v2_int8/edgeshield_lsa_int8.onnx", providers=["CPUExecutionProvider"])
63
+
64
+ # Example dummy sequence input
65
+ input_ids = np.zeros((1, 128), dtype=np.int64)
66
+ attention_mask = np.ones((1, 128), dtype=np.int64)
67
+
68
+ outputs = session.run(None, {"input_ids": input_ids, "attention_mask": attention_mask})
69
+ logits = outputs[0]
70
+ print("Prediction logits:", logits)
71
+ ```
72
+
73
+ ---
74
+
75
+ ## ๐Ÿ“š Citation
76
+
77
+ ```bibtex
78
+ % 1. Accepted Conference Baseline
79
+ @inproceedings{raval2026edgeshield_temscon,
80
+ author = {Raval, Gauravkumar and Bhatt, Tejaskumar},
81
+ title = {{EdgeShield: Lightweight Dual-Stream Small Language Model Architecture for Pre-Encryption Ransomware Defense on Edge Devices}},
82
+ booktitle = {Proceedings of the 5th IEEE Technology and Engineering Management Conference - Asia Pacific (TEMSCON-ASPAC)},
83
+ year = {2026},
84
+ note = {Accepted and In Press}
85
+ }
86
+
87
+ % 2. Extended Framework & Deployment Benchmarks
88
+ @article{raval2026edgeshield_journal,
89
+ author = {Raval, Gauravkumar and Bhatt, Tejaskumar},
90
+ title = {{EdgeShield: A High-Throughput Edge-Native Small Language Model Architecture for Pre-Encryption Ransomware Early Warning and Lateral Movement Interception}},
91
+ journal = {Target Journal: TBD (Manuscript in Preparation)},
92
+ year = {2026},
93
+ note = {Under Submission / Pre-submission Draft}
94
+ }
95
+ ```
96
+
97
+ ## ๐Ÿ‘ฅ Authors
98
+ - **Gauravkumar Raval** (GLS University)
99
+ - **Dr. Tejaskumar Bhatt** (GLS University)