brscftc commited on
Commit
508f4b5
Β·
verified Β·
1 Parent(s): e49356a

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +466 -0
README.md CHANGED
@@ -2,4 +2,470 @@
2
  license: other
3
  license_name: brsx-open-license
4
  license_link: https://brsxlabs.gt.tc/brsxlicense.html
 
 
 
5
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
  license: other
3
  license_name: brsx-open-license
4
  license_link: https://brsxlabs.gt.tc/brsxlicense.html
5
+ tags:
6
+ - cyber
7
+ - hybrid
8
  ---
9
+ # ShadowCore-v2
10
+
11
+ ## Overview
12
+
13
+ ShadowCore-v2 is an 83.92M parameter hybrid neural architecture designed for symbolic network risk classification.
14
+
15
+ The model analyzes fixed-length sequences of network events and predicts a risk score between 0 and 9, representing increasing levels of network instability, degradation, and failure severity.
16
+
17
+ ShadowCore-v2 is the successor to ShadowCore-v1 and introduces a significantly expanded token vocabulary, a larger output space, and richer representation of network behavior while maintaining greater than 90% training accuracy.
18
+
19
+ Developed by BRSX-Labs.
20
+
21
+ ---
22
+
23
+ # Highlights
24
+
25
+ * 83.92M Parameters
26
+ * CNN + GRU + Transformer + Mamba-like Hybrid Architecture
27
+ * 11 Symbolic Network Event Tokens
28
+ * 10 Risk Classes (0-9)
29
+ * Context Length: 64 Tokens
30
+ * Global Sequence-Level Classification
31
+ * > 90% Training Accuracy
32
+ * Supports Recovery-Aware Risk Estimation
33
+
34
+ ---
35
+
36
+ # What's New in ShadowCore-v2
37
+
38
+ ## Expanded Vocabulary
39
+
40
+ ShadowCore-v1 used only four symbolic events:
41
+
42
+ ```text
43
+ U
44
+ D
45
+ +
46
+ -
47
+ ```
48
+
49
+ ShadowCore-v2 expands the vocabulary to eleven network events:
50
+
51
+ ```text
52
+ U
53
+ D
54
+ +
55
+ -
56
+ J
57
+ R
58
+ L
59
+ T
60
+ C
61
+ H
62
+ F
63
+ ```
64
+
65
+ This allows the model to represent more realistic network conditions and failure scenarios.
66
+
67
+ ---
68
+
69
+ ## Expanded Output Space
70
+
71
+ ShadowCore-v1:
72
+
73
+ ```text
74
+ 3 Risk Classes
75
+ ```
76
+
77
+ ShadowCore-v2:
78
+
79
+ ```text
80
+ 10 Risk Classes
81
+ (0-9)
82
+ ```
83
+
84
+ This enables finer anomaly severity estimation and more granular decision making.
85
+
86
+ ---
87
+
88
+ ## Improved Network Awareness
89
+
90
+ ShadowCore-v2 introduces explicit representation of:
91
+
92
+ * Packet Loss
93
+ * Retransmissions
94
+ * Jitter
95
+ * Connection Resets
96
+ * Timeouts
97
+ * Recovery Events
98
+ * Traffic Bursts
99
+
100
+ which were not available in ShadowCore-v1.
101
+
102
+ ---
103
+
104
+ # Token Definitions
105
+
106
+ ```text
107
+ U = Upload Increase
108
+ D = Download Increase
109
+
110
+ + = Latency Increase
111
+ - = Latency Decrease
112
+
113
+ J = Jitter
114
+ R = Retransmission
115
+ L = Packet Loss
116
+
117
+ T = Timeout
118
+ C = Connection Reset
119
+
120
+ H = Recovery
121
+ F = Flow Burst
122
+ ```
123
+
124
+ ---
125
+
126
+ # Token Interpretation
127
+
128
+ ```text
129
+ Low Risk
130
+
131
+ H = Recovery
132
+ U = Upload Increase
133
+ D = Download Increase
134
+ - = Latency Decrease
135
+
136
+ Moderate Risk
137
+
138
+ + = Latency Increase
139
+ F = Flow Burst
140
+
141
+ High Risk
142
+
143
+ J = Jitter
144
+ R = Retransmission
145
+
146
+ Critical Risk
147
+
148
+ L = Packet Loss
149
+ T = Timeout
150
+ C = Connection Reset
151
+ ```
152
+
153
+ Actual predictions depend on the entire sequence and not on individual token presence.
154
+
155
+ ---
156
+
157
+ # Risk Scale
158
+
159
+ ```text
160
+ 0 = Healthy
161
+
162
+ 1 = Normal Operation
163
+
164
+ 2 = Minor Variation
165
+
166
+ 3 = Low Risk Anomaly
167
+
168
+ 4 = Moderate Risk
169
+
170
+ 5 = Elevated Risk
171
+
172
+ 6 = Significant Risk
173
+
174
+ 7 = Severe Risk
175
+
176
+ 8 = Critical Risk
177
+
178
+ 9 = Extreme Risk / Failure State
179
+ ```
180
+
181
+ ---
182
+
183
+ # Architecture
184
+
185
+ ShadowCore-v2 uses four specialized experts operating in parallel.
186
+
187
+ ```text
188
+ Input
189
+ ↓
190
+ Embedding
191
+ ↓
192
+ β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
193
+ β”‚ CNN Expert β”‚
194
+ β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
195
+ β”‚ GRU Expert β”‚
196
+ β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
197
+ β”‚ Transformer β”‚
198
+ β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
199
+ β”‚ Mamba Expert β”‚
200
+ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
201
+ ↓
202
+ Fusion
203
+ ↓
204
+ Global Pooling
205
+ ↓
206
+ Classifier
207
+ ↓
208
+ Risk Score
209
+ ```
210
+
211
+ ---
212
+
213
+ # Embedding Layer
214
+
215
+ ```text
216
+ Vocabulary Size : 11
217
+ Dimension : 512
218
+ ```
219
+
220
+ All symbolic tokens are projected into a shared embedding space before expert processing.
221
+
222
+ ---
223
+
224
+ # CNN Expert
225
+
226
+ Purpose:
227
+
228
+ * Local pattern extraction
229
+ * Burst detection
230
+ * Short-term event relationships
231
+
232
+ Configuration:
233
+
234
+ ```text
235
+ Blocks : 7
236
+ Channels : 960
237
+ Kernel : 3
238
+ ```
239
+
240
+ ---
241
+
242
+ # GRU Expert
243
+
244
+ Purpose:
245
+
246
+ * Sequential modeling
247
+ * Temporal event tracking
248
+
249
+ Configuration:
250
+
251
+ ```text
252
+ Hidden Size : 960
253
+ Layers : 4
254
+ ```
255
+
256
+ ---
257
+
258
+ # Transformer Expert
259
+
260
+ Purpose:
261
+
262
+ * Long-range dependencies
263
+ * Global context understanding
264
+
265
+ Configuration:
266
+
267
+ ```text
268
+ Layers : 6
269
+ Heads : 8
270
+ Feedforward : 2048
271
+ Dropout : 0.1
272
+ ```
273
+
274
+ ---
275
+
276
+ # Mamba-like Expert
277
+
278
+ Purpose:
279
+
280
+ * Efficient state-space sequence modeling
281
+ * Long-context compression
282
+
283
+ Configuration:
284
+
285
+ ```text
286
+ Layers : 10
287
+ State Dim : 1408
288
+ ```
289
+
290
+ ---
291
+
292
+ # Fusion Layer
293
+
294
+ Outputs from all experts are concatenated and fused.
295
+
296
+ ```text
297
+ CNN
298
+ +
299
+ GRU
300
+ +
301
+ Transformer
302
+ +
303
+ Mamba
304
+ ↓
305
+ Linear Fusion
306
+ ↓
307
+ LayerNorm
308
+ ↓
309
+ GELU
310
+ ```
311
+
312
+ ---
313
+
314
+ # Classification Head
315
+
316
+ ```text
317
+ Global Mean Pooling
318
+ ↓
319
+ Linear(512)
320
+ ↓
321
+ GELU
322
+ ↓
323
+ Linear(10)
324
+ ```
325
+
326
+ Final output:
327
+
328
+ ```text
329
+ Risk Score
330
+ 0-9
331
+ ```
332
+
333
+ ---
334
+
335
+ # Model Size
336
+
337
+ ```text
338
+ Total Parameters
339
+
340
+ 83.92 Million
341
+ ```
342
+
343
+ ---
344
+
345
+ # Training Configuration
346
+
347
+ ```text
348
+ Optimizer : AdamW
349
+ Learning Rate : 1e-4
350
+
351
+ Batch Size : 64
352
+
353
+ Epochs : 4
354
+
355
+ Gradient Clip : 1.0
356
+
357
+ Checkpoint
358
+ Every 1000 Steps
359
+ ```
360
+
361
+ ---
362
+
363
+ # Sequence Format
364
+
365
+ Input length must be exactly 64 tokens.
366
+
367
+ Example:
368
+
369
+ ```text
370
+ UUUDDUUUDDUUUUDDHHHHUUUDD++JJRRLLTTUUUDDUUUDDUUUUDDHHHHUUUDD
371
+ ```
372
+
373
+ ---
374
+
375
+ # Benchmark Summary
376
+
377
+ ShadowCore-v2 maintains greater than 90% training accuracy despite:
378
+
379
+ ```text
380
+ Vocabulary Expansion
381
+
382
+ 4 Tokens
383
+ ↓
384
+ 11 Tokens
385
+
386
+ Output Expansion
387
+
388
+ 3 Classes
389
+ ↓
390
+ 10 Classes
391
+ ```
392
+
393
+ Observed training results:
394
+
395
+ ```text
396
+ Epoch 1 β‰ˆ 90%
397
+
398
+ Epoch 2 β‰ˆ 92%
399
+
400
+ Epoch 3 β‰ˆ 92%
401
+
402
+ Epoch 4 β‰ˆ 92-93%
403
+ ```
404
+
405
+ This indicates that the architecture successfully scales to a larger symbolic event space without major degradation in training performance.
406
+
407
+ ---
408
+
409
+ # Behavioral Evaluation
410
+
411
+ Observed behavior during manual testing suggests that the model:
412
+
413
+ * Differentiates Timeout and Connection Reset events.
414
+ * Detects increasing failure density.
415
+ * Uses intermediate risk levels instead of binary decisions.
416
+ * Recognizes Recovery patterns.
417
+ * Reacts to escalating anomaly accumulation.
418
+ * Produces stable risk estimates for normal traffic sequences.
419
+
420
+ Example observations:
421
+
422
+ ```text
423
+ Healthy Traffic
424
+ β†’ Low Risk
425
+
426
+ Timeout + Recovery
427
+ β†’ Reduced Risk
428
+
429
+ Connection Reset Dominated
430
+ β†’ Critical Risk
431
+
432
+ Mixed Jitter / Loss / Retransmission
433
+ β†’ Medium-High Risk
434
+ ```
435
+
436
+ ---
437
+
438
+ # Intended Use
439
+
440
+ ShadowCore-v2 is intended for:
441
+
442
+ * Network anomaly research
443
+ * Symbolic traffic classification
444
+ * Risk scoring experiments
445
+ * Cybersecurity research
446
+ * Educational projects
447
+ * Sequence classification studies
448
+
449
+ ---
450
+
451
+ # Limitations
452
+
453
+ * Fixed context length of 64 tokens.
454
+ * Requires symbolic event encoding.
455
+ * Not intended as a production IDS/IPS replacement.
456
+ * Training accuracy is not equivalent to real-world deployment performance.
457
+ * Requires domain-specific token generation pipelines.
458
+
459
+ ---
460
+
461
+ # Citation
462
+
463
+ ```text
464
+ ShadowCore-v2
465
+
466
+ 83.92M Parameter Hybrid CNN-GRU-Transformer-Mamba
467
+ Architecture for Symbolic Network Risk Classification
468
+
469
+ Developed by BRSX-Labs
470
+ 2026
471
+ ```