-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdashboard.html
More file actions
435 lines (387 loc) · 14 KB
/
dashboard.html
File metadata and controls
435 lines (387 loc) · 14 KB
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
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>DeepTrace - Attack Visualization Dashboard</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: #333;
padding: 20px;
min-height: 100vh;
}
.container {
max-width: 1400px;
margin: 0 auto;
}
header {
background: white;
padding: 30px;
border-radius: 15px;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
margin-bottom: 30px;
text-align: center;
}
h1 {
color: #667eea;
font-size: 2.5em;
margin-bottom: 10px;
display: flex;
align-items: center;
justify-content: center;
gap: 15px;
}
.subtitle {
color: #ffffff;
font-size: 1.1em;
margin-top: 10px;
}
.incident-summary {
background: #fff3cd;
border-left: 5px solid #ffc107;
padding: 20px;
margin: 20px 0;
border-radius: 8px;
}
.incident-summary h2 {
color: #856404;
margin-bottom: 10px;
}
.incident-summary ul {
list-style: none;
padding-left: 0;
}
.incident-summary li {
padding: 5px 0;
color: #856404;
}
.incident-summary li::before {
content: "⚠️ ";
margin-right: 8px;
}
.stats-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 20px;
margin-bottom: 30px;
}
.stat-card {
background: white;
padding: 25px;
border-radius: 12px;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
text-align: center;
transition: transform 0.3s ease;
}
.stat-card:hover {
transform: translateY(-5px);
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}
.stat-value {
font-size: 2.5em;
font-weight: bold;
color: #667eea;
margin: 10px 0;
}
.stat-label {
color: #666;
font-size: 0.9em;
text-transform: uppercase;
letter-spacing: 1px;
}
.stat-change {
color: #dc3545;
font-size: 0.9em;
margin-top: 5px;
}
.charts-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
gap: 30px;
margin-bottom: 30px;
}
.chart-card {
background: white;
padding: 25px;
border-radius: 12px;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.chart-card h3 {
color: #667eea;
margin-bottom: 15px;
font-size: 1.3em;
}
.chart-card img {
width: 100%;
height: auto;
border-radius: 8px;
}
.full-width {
grid-column: 1 / -1;
}
.timeline {
background: white;
padding: 30px;
border-radius: 12px;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
margin-bottom: 30px;
}
.timeline h2 {
color: #667eea;
margin-bottom: 20px;
}
.timeline-item {
display: flex;
gap: 20px;
padding: 15px;
border-left: 3px solid #667eea;
margin-left: 20px;
position: relative;
}
.timeline-item::before {
content: '';
position: absolute;
left: -8px;
top: 20px;
width: 12px;
height: 12px;
border-radius: 50%;
background: #667eea;
}
.timeline-item.critical::before {
background: #dc3545;
}
.timeline-time {
font-weight: bold;
color: #667eea;
min-width: 80px;
}
.timeline-content {
flex: 1;
}
.severity-badge {
display: inline-block;
padding: 3px 10px;
border-radius: 12px;
font-size: 0.8em;
font-weight: bold;
margin-left: 10px;
}
.severity-critical {
background: #dc3545;
color: white;
}
.severity-high {
background: #ffc107;
color: #333;
}
.severity-warning {
background: #17a2b8;
color: white;
}
footer {
text-align: center;
color: white;
padding: 20px;
margin-top: 30px;
}
.refresh-btn {
background: #ff6b6b; /* brighter, high-contrast */
color: #ffffff;
border: none;
padding: 12px 30px;
border-radius: 8px;
font-size: 1em;
cursor: pointer;
margin-top: 20px;
transition: background 0.2s ease, transform 0.12s ease;
box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}
.refresh-btn:hover {
background: #e85a5a;
transform: translateY(-2px);
}
@media (max-width: 768px) {
.charts-grid {
grid-template-columns: 1fr;
}
h1 {
font-size: 1.8em;
}
}
</style>
</head>
<body>
<div class="container">
<header>
<h1>
🔍 DeepTrace
</h1>
<div class="subtitle">Attack Visualization Dashboard - JSON Payload Bomb Incident</div>
<div class="incident-summary">
<h2>🚨 Incident Summary</h2>
<ul>
<li><strong>Attack Type:</strong> JSON Payload Bomb</li>
<li><strong>Target:</strong> /api/search endpoint</li>
<li><strong>Attack Window:</strong> 14:15 - 14:30 UTC (15 minutes)</li>
<li><strong>Attacker IP:</strong> 203.0.113.45</li>
<li><strong>Root Cause:</strong> Missing input validation and rate limiting</li>
</ul>
</div>
</header>
<div class="stats-grid">
<div class="stat-card">
<div class="stat-label">Response Time</div>
<div class="stat-value">8-12s</div>
<div class="stat-change">↑ 40x increase from 200ms</div>
</div>
<div class="stat-card">
<div class="stat-label">CPU Usage</div>
<div class="stat-value">95%</div>
<div class="stat-change">↑ from 25% baseline</div>
</div>
<div class="stat-card">
<div class="stat-label">Memory Usage</div>
<div class="stat-value">90%</div>
<div class="stat-change">↑ from 40% baseline</div>
</div>
<div class="stat-card">
<div class="stat-label">Error Rate</div>
<div class="stat-value">45%</div>
<div class="stat-change">↑ 225x increase from 0.2%</div>
</div>
<div class="stat-card">
<div class="stat-label">Attack Payloads</div>
<div class="stat-value">47</div>
<div class="stat-change">5-10 MB each</div>
</div>
<div class="stat-card">
<div class="stat-label">Pod Restarts</div>
<div class="stat-value">15</div>
<div class="stat-change">OOM kills in 10 minutes</div>
</div>
</div>
<div class="charts-grid">
<div class="chart-card full-width">
<h3>📊 Resource Usage During Attack</h3>
<img src="charts/1_resource_usage.png" alt="Resource Usage Chart">
<p style="margin-top: 10px; color: #666;">
CPU and memory usage spiked dramatically during the attack window (14:15-14:30),
reaching critical levels that triggered OOM kills and pod restarts.
</p>
</div>
<div class="chart-card">
<h3>⏱️ Response Time Degradation</h3>
<img src="charts/2_response_time.png" alt="Response Time Chart">
<p style="margin-top: 10px; color: #666;">
Response times increased 40x from baseline, with p99 reaching 12+ seconds.
</p>
</div>
<div class="chart-card">
<h3>❌ Error Rate Spike</h3>
<img src="charts/3_error_rate.png" alt="Error Rate Chart">
<p style="margin-top: 10px; color: #666;">
Error rate jumped from 0.2% to 45%, a 225x increase affecting ~2,000 customers.
</p>
</div>
<div class="chart-card">
<h3>📦 Request Size Distribution</h3>
<img src="charts/4_request_size_distribution.png" alt="Request Size Distribution">
<p style="margin-top: 10px; color: #666;">
47 attack payloads (>5MB) detected among normal traffic patterns.
</p>
</div>
<div class="chart-card">
<h3>🎯 Top Source IPs</h3>
<img src="charts/6_top_ips.png" alt="Top IPs Chart">
<p style="margin-top: 10px; color: #666;">
Single attacker IP (203.0.113.45) responsible for all large payload requests.
</p>
</div>
<div class="chart-card full-width">
<h3>📅 Attack Timeline</h3>
<img src="charts/5_attack_timeline.png" alt="Attack Timeline">
<p style="margin-top: 10px; color: #666;">
Chronological view showing correlation between large payloads, errors, and pod restarts.
</p>
</div>
</div>
<div class="timeline">
<h2>⏰ Incident Timeline</h2>
<div class="timeline-item">
<div class="timeline-time">14:15 UTC</div>
<div class="timeline-content">
<strong>Attack Begins</strong>
<span class="severity-badge severity-critical">CRITICAL</span>
<p>Attacker starts sending large JSON payloads (5-10 MB) to /api/search endpoint</p>
</div>
</div>
<div class="timeline-item">
<div class="timeline-time">14:17 UTC</div>
<div class="timeline-content">
<strong>Performance Degradation</strong>
<span class="severity-badge severity-high">HIGH</span>
<p>Search API response time degrades from 200ms to 8+ seconds</p>
</div>
</div>
<div class="timeline-item critical">
<div class="timeline-time">14:20 UTC</div>
<div class="timeline-content">
<strong>CPU Exhaustion</strong>
<span class="severity-badge severity-critical">CRITICAL</span>
<p>CPU usage spikes to 95% across all search service pods</p>
</div>
</div>
<div class="timeline-item critical">
<div class="timeline-time">14:22 UTC</div>
<div class="timeline-content">
<strong>Memory Exhaustion</strong>
<span class="severity-badge severity-critical">CRITICAL</span>
<p>Memory usage reaches 90%, pods start experiencing OOM kills</p>
</div>
</div>
<div class="timeline-item critical">
<div class="timeline-time">14:25 UTC</div>
<div class="timeline-content">
<strong>Service Instability</strong>
<span class="severity-badge severity-critical">CRITICAL</span>
<p>Kubernetes begins automatic pod restarts, service becomes unstable</p>
</div>
</div>
<div class="timeline-item">
<div class="timeline-time">14:28 UTC</div>
<div class="timeline-content">
<strong>Alerts Triggered</strong>
<span class="severity-badge severity-high">HIGH</span>
<p>Monitoring alerts trigger - service severely degraded</p>
</div>
</div>
<div class="timeline-item critical">
<div class="timeline-time">14:30 UTC</div>
<div class="timeline-content">
<strong>Peak Impact</strong>
<span class="severity-badge severity-critical">CRITICAL</span>
<p>Error rate reaches 45%, legitimate searches timing out. ~2,000 customers affected</p>
</div>
</div>
</div>
<div style="text-align: center;">
<button class="refresh-btn" onclick="location.reload()">🔄 Refresh Dashboard</button>
</div>
<footer>
<p>DeepTrace - AI-Powered Security Incident Investigation</p>
<p style="margin-top: 10px; font-size: 0.9em;">
Generated from real attack simulation data |
<a href="README.md" style="color: white; text-decoration: underline;">Documentation</a>
</p>
</footer>
</div>
</body>
</html>