File size: 5,097 Bytes
7bab16c
 
 
 
645df29
 
 
b94a7a1
7bab16c
645df29
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
b94a7a1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
---
license: other
license_name: brsx-open-license
license_link: https://brsxlabs.gt.tc/brsxlicense.html
tags:
- cybersecurity
- hybrid
pipeline_tag: token-classification
---

# ShadowCore-v1

**Lightweight Network Behavior Classification Model**

ShadowCore-v1 is a compact sequence classification model designed to analyze short network-behavior streams and classify overall system state in real time.

The model operates on a minimal four-token vocabulary representing abstract network activity and can detect healthy, degraded, and potentially dangerous traffic patterns with millisecond-scale inference latency on modern hardware.

---

## Overview

ShadowCore-v1 was created to explore whether a small specialized model can perform behavior-level network analysis without requiring massive LLM-scale architectures.

Instead of processing raw packets, logs, or protocol metadata, ShadowCore-v1 analyzes compressed symbolic sequences that represent network behavior over time.

The model is intended for:

* Network health monitoring
* Congestion detection
* Anomaly detection
* Traffic pattern analysis
* Lightweight edge deployment
* Real-time alerting systems

---

## Vocabulary

ShadowCore-v1 uses a fixed vocabulary of only four tokens:

| Token | Meaning                             |
| ----- | ----------------------------------- |
| U     | Upload activity                     |
| D     | Download activity                   |
| +     | High latency / congestion / waiting |
| -     | Processing completed / idle time    |

Example:

```text
UU--DD--UU--DD--
```

Interpretation:

```text
Request

Processing

Response

Idle
```

This pattern generally represents healthy behavior.

---

## Classification Labels

### NORMAL

Healthy system state.

Characteristics:

* Upload and download remain balanced
* Few latency spikes
* Stable processing flow
* Idle periods present

Example:

```text
UDUDUDUDUDUDUDUD
```

---

### CRITICAL

System degradation.

Characteristics:

* Upload activity begins exceeding download activity
* Latency clusters appear
* Processing flow becomes unstable
* Queue buildup starts forming

Example:

```text
UUUU++++DDUUUU++++DD
```

---

### DANGER

Potential failure or attack condition.

Characteristics:

* Upload activity dominates
* Download activity becomes rare
* Large latency clusters
* Severe congestion

Example:

```text
UUUUUU++++++++UUUUUU++++++++
```

---

## Input Format

Input length:

```text
64 tokens
```

Example:

```text
UUUU++++DDUUUU++++DDUUUU++++DDUUUU++++DDUUUU++++DDUUUU++++DD
```

Output:

```text
NORMAL
CRITICAL
DANGER
```

---

## Architecture

ShadowCore-v1 is built on the same core architecture family used in previous successful experiments including:

* GenoLite
* IsingBreaker
* ShadowCore

Key design goals:

* Small parameter count
* Fast training
* Fast inference
* Low memory usage
* Strong pattern recognition on symbolic sequences

Model size:

```text
~88 Million Parameters
```

---

## Dataset

Training data was generated using a rule-based synthetic behavior generator.

Dataset characteristics:

```text
4,500 samples
1,500 NORMAL
1,500 CRITICAL
1,500 DANGER
```

Features:

* Fixed-length sequences
* Duplicate filtering
* Motif composition
* Cluster variation
* Sequence rotation
* Behavioral balancing

The generator was designed to teach behavior patterns rather than memorization of exact sequences.

---

## Benchmark Results

Evaluation Accuracy:

```text
94.07%
```

The model consistently identifies:

* Healthy traffic patterns
* Growing congestion states
* Severe overload conditions

Testing also demonstrated reasonable behavior on ambiguous boundary cases, where the model produces mixed confidence instead of collapsing into a single class prediction.

---

## Performance

Training Environment:

```text
NVIDIA T4
Batch Size: 64
Epochs: 5
```

Training Time:

```text
~4.5 minutes
```

Inference:

```text
Millisecond-scale
```

on modern GPUs and suitable for real-time monitoring pipelines.

---

## Example Predictions

Input:

```text
UDUDUDUDUDUDUDUDUDUDUDUDUDUDUDUDUDUDUDUDUDUDUDUDUDUDUDUDUDUDUDUD
```

Prediction:

```text
NORMAL
```

---

Input:

```text
UUUU++++DDUUUU++++DDUUUU++++DDUUUU++++DD
```

Prediction:

```text
CRITICAL
```

---

Input:

```text
UUUUUU++++++++UUUUUU++++++++UUUUUU++++++++
```

Prediction:

```text
DANGER
```

---

## Limitations

ShadowCore-v1 was trained on synthetic data.

While the model successfully learns network-behavior concepts, production deployment should include:

* Real traffic validation
* Domain-specific calibration
* Additional anomaly classes
* Real-world benchmark datasets

---

## Future Work

Planned improvements:

* ShadowCore-v2
* Larger motif library
* Real traffic traces
* Multi-stage anomaly classification
* Attack family detection
* Early-warning forecasting

---

## License

Research & Experimental Use

---

**ShadowCore-v1 demonstrates that lightweight specialized models can achieve >90% accuracy on behavior-oriented sequence classification tasks without requiring large-scale foundation models.** 🚀