capta1n commited on
Commit
cab02fa
·
verified ·
1 Parent(s): 5705991

Add 3 files

Browse files
Files changed (3) hide show
  1. README.md +6 -4
  2. index.html +731 -19
  3. prompts.txt +3 -0
README.md CHANGED
@@ -1,10 +1,12 @@
1
  ---
2
- title: Bas10
3
- emoji: 🦀
4
- colorFrom: blue
5
  colorTo: green
6
  sdk: static
7
  pinned: false
 
 
8
  ---
9
 
10
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
1
  ---
2
+ title: bas10
3
+ emoji: 🐳
4
+ colorFrom: green
5
  colorTo: green
6
  sdk: static
7
  pinned: false
8
+ tags:
9
+ - deepsite
10
  ---
11
 
12
+ Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
index.html CHANGED
@@ -1,19 +1,731 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
19
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="zh-CN">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>BAS AI Hacker演练报告</title>
7
+ <script src="https://cdn.tailwindcss.com"></script>
8
+ <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
9
+ <style>
10
+ .attack-card {
11
+ transition: all 0.3s ease;
12
+ transform-origin: center;
13
+ height: 120px;
14
+ overflow: hidden;
15
+ }
16
+ .attack-card:hover {
17
+ transform: translateY(-5px);
18
+ box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
19
+ }
20
+ .attack-card.active {
21
+ border-left-width: 4px;
22
+ transform: translateY(-5px);
23
+ }
24
+ .timeline-connector {
25
+ position: relative;
26
+ height: 4px;
27
+ background: linear-gradient(90deg, #e5e7eb, #9ca3af);
28
+ }
29
+ .timeline-connector::after {
30
+ content: '';
31
+ position: absolute;
32
+ top: -4px;
33
+ width: 12px;
34
+ height: 12px;
35
+ border-radius: 50%;
36
+ background-color: #3b82f6;
37
+ transform: translateX(-50%);
38
+ }
39
+ .severity-badge {
40
+ font-size: 0.65rem;
41
+ padding: 0.15rem 0.4rem;
42
+ }
43
+ .severity-critical {
44
+ background-color: #fee2e2;
45
+ color: #dc2626;
46
+ }
47
+ .severity-high {
48
+ background-color: #fef3c7;
49
+ color: #d97706;
50
+ }
51
+ .severity-emergency {
52
+ background-color: #ffedd5;
53
+ color: #ea580c;
54
+ }
55
+ .defense-badge {
56
+ font-size: 0.7rem;
57
+ padding: 0.2rem 0.5rem;
58
+ }
59
+ .animate-pulse-slow {
60
+ animation: pulse 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
61
+ }
62
+ @keyframes pulse {
63
+ 0%, 100% {
64
+ opacity: 1;
65
+ }
66
+ 50% {
67
+ opacity: 0.5;
68
+ }
69
+ }
70
+ .arrow {
71
+ display: inline-block;
72
+ width: 24px;
73
+ height: 24px;
74
+ text-align: center;
75
+ line-height: 24px;
76
+ color: #9ca3af;
77
+ }
78
+ .attacker-node {
79
+ background-color: #fee2e2;
80
+ border-left: 4px solid #dc2626;
81
+ height: 120px;
82
+ }
83
+ .attack-flow-container {
84
+ width: 100%;
85
+ overflow-x: auto;
86
+ padding-bottom: 1.5rem;
87
+ }
88
+ .attack-flow-container .flex {
89
+ min-width: max-content;
90
+ }
91
+ .attack-behavior {
92
+ display: -webkit-box;
93
+ -webkit-line-clamp: 2;
94
+ -webkit-box-orient: vertical;
95
+ overflow: hidden;
96
+ text-overflow: ellipsis;
97
+ font-size: 0.7rem;
98
+ line-height: 1.2;
99
+ color: #4b5563;
100
+ }
101
+ .stage-badge {
102
+ font-size: 0.6rem;
103
+ padding: 0.15rem 0.4rem;
104
+ background-color: #f3f4f6;
105
+ color: #6b7280;
106
+ }
107
+ .scroll-container {
108
+ scrollbar-width: thin;
109
+ scrollbar-color: #d1d5db #f3f4f6;
110
+ }
111
+ .scroll-container::-webkit-scrollbar {
112
+ height: 6px;
113
+ }
114
+ .scroll-container::-webkit-scrollbar-track {
115
+ background: #f3f4f6;
116
+ border-radius: 10px;
117
+ }
118
+ .scroll-container::-webkit-scrollbar-thumb {
119
+ background-color: #d1d5db;
120
+ border-radius: 10px;
121
+ }
122
+ .forensic-item {
123
+ position: relative;
124
+ padding-left: 1.5rem;
125
+ margin-bottom: 0.75rem;
126
+ }
127
+ .forensic-item:before {
128
+ content: "";
129
+ position: absolute;
130
+ left: 0.5rem;
131
+ top: 0.5rem;
132
+ width: 6px;
133
+ height: 6px;
134
+ border-radius: 50%;
135
+ background-color: #3b82f6;
136
+ }
137
+ .forensic-item:after {
138
+ content: "";
139
+ position: absolute;
140
+ left: 0.5rem;
141
+ top: 1.1rem;
142
+ bottom: -0.5rem;
143
+ width: 2px;
144
+ background-color: #e5e7eb;
145
+ }
146
+ .forensic-item:last-child:after {
147
+ display: none;
148
+ }
149
+ .alert-icon {
150
+ width: 2rem;
151
+ height: 2rem;
152
+ display: flex;
153
+ align-items: center;
154
+ justify-content: center;
155
+ border-radius: 50%;
156
+ flex-shrink: 0;
157
+ }
158
+ .alert-critical {
159
+ background-color: #fee2e2;
160
+ color: #dc2626;
161
+ }
162
+ .alert-high {
163
+ background-color: #fef3c7;
164
+ color: #d97706;
165
+ }
166
+ .alert-emergency {
167
+ background-color: #ffedd5;
168
+ color: #ea580c;
169
+ }
170
+ .timeline-marker {
171
+ width: 1rem;
172
+ height: 1rem;
173
+ border-radius: 50%;
174
+ display: flex;
175
+ align-items: center;
176
+ justify-content: center;
177
+ position: relative;
178
+ z-index: 1;
179
+ }
180
+ .timeline-marker:after {
181
+ content: "";
182
+ position: absolute;
183
+ left: 50%;
184
+ top: 50%;
185
+ transform: translate(-50%, -50%);
186
+ width: 0.5rem;
187
+ height: 0.5rem;
188
+ border-radius: 50%;
189
+ background-color: white;
190
+ }
191
+ .section-divider {
192
+ position: relative;
193
+ margin: 1.5rem 0;
194
+ }
195
+ .section-divider:before {
196
+ content: "";
197
+ position: absolute;
198
+ left: 0;
199
+ right: 0;
200
+ top: 50%;
201
+ height: 1px;
202
+ background-color: #e5e7eb;
203
+ }
204
+ .section-divider span {
205
+ position: relative;
206
+ padding: 0 0.5rem;
207
+ background-color: white;
208
+ z-index: 1;
209
+ font-size: 0.75rem;
210
+ color: #6b7280;
211
+ }
212
+ .status-badge {
213
+ font-size: 0.6rem;
214
+ padding: 0.15rem 0.4rem;
215
+ border-radius: 4px;
216
+ margin-right: 0.25rem;
217
+ }
218
+ .intercepted {
219
+ background-color: #dcfce7;
220
+ color: #166534;
221
+ }
222
+ .not-intercepted {
223
+ background-color: #fee2e2;
224
+ color: #991b1b;
225
+ }
226
+ .alerted {
227
+ background-color: #fef3c7;
228
+ color: #92400e;
229
+ }
230
+ .not-alerted {
231
+ background-color: #e5e7eb;
232
+ color: #4b5563;
233
+ }
234
+ .status-tag {
235
+ position: absolute;
236
+ top: -8px;
237
+ right: 8px;
238
+ font-size: 0.6rem;
239
+ padding: 0.15rem 0.4rem;
240
+ border-radius: 4px;
241
+ z-index: 1;
242
+ box-shadow: 0 1px 2px rgba(0,0,0,0.1);
243
+ }
244
+ .status-tag-intercepted {
245
+ background-color: #dcfce7;
246
+ color: #166534;
247
+ border: 1px solid #bbf7d0;
248
+ }
249
+ .status-tag-not-intercepted {
250
+ background-color: #fee2e2;
251
+ color: #991b1b;
252
+ border: 1px solid #fecaca;
253
+ }
254
+ .status-tag-alerted {
255
+ background-color: #fef3c7;
256
+ color: #92400e;
257
+ border: 1px solid #fde68a;
258
+ }
259
+ .status-tag-not-alerted {
260
+ background-color: #e5e7eb;
261
+ color: #4b5563;
262
+ border: 1px solid #d1d5db;
263
+ }
264
+ </style>
265
+ </head>
266
+ <body class="bg-gray-50">
267
+ <div class="container mx-auto px-4 py-8 max-w-full">
268
+ <div class="text-center mb-10">
269
+ <h1 class="text-3xl font-bold text-gray-800 mb-2">BAS AI Hacker演练报告</h1>
270
+ <p class="text-gray-600 max-w-3xl mx-auto">演练时间:2025-04-23 10:11 ~ 2025-04-23 11:10</p>
271
+ </div>
272
+
273
+ <!-- Defense Detection Summary -->
274
+ <div class="bg-white rounded-xl shadow-sm border border-gray-200 overflow-hidden mb-8">
275
+ <div class="border-b border-gray-200 px-6 py-4 bg-gray-50">
276
+ <h3 class="font-semibold text-gray-800">防御检测概览</h3>
277
+ </div>
278
+ <div id="defense-summary" class="p-6">
279
+ <div class="grid grid-cols-1 md:grid-cols-3 gap-6">
280
+ <div class="bg-blue-50 p-4 rounded-lg">
281
+ <div class="flex items-center">
282
+ <div class="w-12 h-12 rounded-full bg-blue-100 flex items-center justify-center mr-4">
283
+ <i class="fas fa-shield-alt text-blue-500"></i>
284
+ </div>
285
+ <div>
286
+ <h4 class="text-sm font-medium text-gray-800">拦截率</h4>
287
+ <p class="text-2xl font-bold text-blue-600">90%</p>
288
+ </div>
289
+ </div>
290
+ </div>
291
+ <div class="bg-yellow-50 p-4 rounded-lg">
292
+ <div class="flex items-center">
293
+ <div class="w-12 h-12 rounded-full bg-yellow-100 flex items-center justify-center mr-4">
294
+ <i class="fas fa-bell text-yellow-500"></i>
295
+ </div>
296
+ <div>
297
+ <h4 class="text-sm font-medium text-gray-800">告警率</h4>
298
+ <p class="text-2xl font-bold text-yellow-600">80%</p>
299
+ </div>
300
+ </div>
301
+ </div>
302
+ <div class="bg-green-50 p-4 rounded-lg">
303
+ <div class="flex items-center">
304
+ <div class="w-12 h-12 rounded-full bg-green-100 flex items-center justify-center mr-4">
305
+ <i class="fas fa-search text-green-500"></i>
306
+ </div>
307
+ <div>
308
+ <h4 class="text-sm font-medium text-gray-800">溯源率</h4>
309
+ <p class="text-2xl font-bold text-green-600">70%</p>
310
+ </div>
311
+ </div>
312
+ </div>
313
+ </div>
314
+ </div>
315
+ </div>
316
+
317
+ <!-- Attack Timeline Section -->
318
+ <div class="bg-white rounded-xl shadow-sm border border-gray-200 p-6 mb-8">
319
+ <div class="flex justify-between items-center mb-6">
320
+ <div>
321
+ <h2 class="text-xl font-semibold text-gray-800">攻击流程时间线</h2>
322
+ <p class="text-gray-500 text-sm">点击任意攻击阶段查看详细取证证据</p>
323
+ </div>
324
+ <div class="flex items-center">
325
+ <span class="text-xs text-gray-500 mr-2">滚动查看完整时间线</span>
326
+ <i class="fas fa-chevron-right text-gray-400 text-xs"></i>
327
+ </div>
328
+ </div>
329
+
330
+ <div class="relative">
331
+ <div class="attack-flow-container scroll-container">
332
+ <div class="flex space-x-4 items-center pb-2">
333
+ <!-- Attacker Node -->
334
+ <div class="attack-card w-48 flex-shrink-0 bg-white rounded-lg border border-gray-200 overflow-hidden cursor-pointer transition-all duration-300 attacker-node">
335
+ <div class="p-4">
336
+ <div class="flex items-center justify-between mb-2">
337
+ <div class="flex items-center">
338
+ <div class="w-8 h-8 rounded-full bg-red-100 text-red-600 flex items-center justify-center mr-2">
339
+ <i class="fas fa-user-secret"></i>
340
+ </div>
341
+ <span class="text-xs font-semibold text-gray-500">攻击源</span>
342
+ </div>
343
+ </div>
344
+ <h3 class="font-semibold text-gray-800 text-sm mb-1">BAS AI Hacker</h3>
345
+ <p class="text-xs text-gray-500">发起攻击</p>
346
+ </div>
347
+ </div>
348
+
349
+ <div class="arrow">
350
+ <i class="fas fa-arrow-right"></i>
351
+ </div>
352
+
353
+ <!-- Attack cards will be inserted here by JavaScript -->
354
+ </div>
355
+ </div>
356
+ </div>
357
+ </div>
358
+
359
+ <!-- Attack Details Section -->
360
+ <div class="bg-white rounded-xl shadow-sm border border-gray-200 overflow-hidden">
361
+ <div class="border-b border-gray-200 px-6 py-4 bg-gray-50">
362
+ <h3 class="font-semibold text-gray-800">攻击阶段取证详情</h3>
363
+ </div>
364
+ <div id="attack-details" class="p-6">
365
+ <div class="text-center py-12">
366
+ <div class="mx-auto w-16 h-16 rounded-full bg-blue-50 flex items-center justify-center mb-4">
367
+ <i class="fas fa-mouse-pointer text-blue-500 text-2xl"></i>
368
+ </div>
369
+ <h4 class="text-lg font-medium text-gray-700 mb-2">选择攻击阶段</h4>
370
+ <p class="text-gray-500 max-w-md mx-auto">点击时间线上的任意攻击卡片查看攻击行为和触发防御的详细取证信息</p>
371
+ </div>
372
+ </div>
373
+ </div>
374
+ </div>
375
+
376
+ <script>
377
+ // Attack steps data in Chinese
378
+ const attackSteps = [
379
+ {
380
+ id: 1,
381
+ title: "钓鱼邮件投递",
382
+ icon: "envelope",
383
+ color: "bg-red-100 text-red-600",
384
+ behavior: "伪造的'拥抱AI变革'通知邮件,包含伪装为files.zip的恶意文件,使用社会工程学诱导用户点击",
385
+ defenses: "邮件安全网关",
386
+ intercepted: true,
387
+ alerted: true,
388
+ alerts: [
389
+ {
390
+ severity: "critical",
391
+ message: "检测到伪造发件人 | 发件人: itsupport@fakecompany[.]com → 收件人: victim@corp.com | 包含恶意附件 (SHA256: a1b2c3...) | 识别为Emotet钓鱼模板"
392
+ }
393
+ ],
394
+ forensic: [
395
+ "发件人IP: 192.168.1.45 (保加利亚)",
396
+ "附件SHA256: a1b2c3d4e5f6...",
397
+ "邮件头显示DKIM验证失败",
398
+ "匹配已知Emotet模板(相似度90%)"
399
+ ]
400
+ },
401
+ {
402
+ id: 2,
403
+ title: "木马执行",
404
+ icon: "bug",
405
+ color: "bg-yellow-100 text-yellow-600",
406
+ behavior: "受害者下载恶意文件触发PowerShell脚本,下载Cobalt Strike DLL并注入到合法进程中",
407
+ defenses: "终端检测与响应(EDR)",
408
+ intercepted: false,
409
+ alerted: true,
410
+ alerts: [
411
+ {
412
+ severity: "high",
413
+ message: "可疑进程注入 | 进程: C:\\Windows\\System32\\explorer.exe → 加载模块: a09xdf.dll | DLL签名无效且匹配已知Cobalt Strike签名"
414
+ }
415
+ ],
416
+ forensic: [
417
+ "进程树: files.zip → powershell.exe → explorer.exe",
418
+ "DLL内存分配模式匹配Cobalt Strike",
419
+ "网络连接尝试到185.123.32.1",
420
+ "注册表键修改: HKLM\\Software\\Microsoft\\Windows"
421
+ ]
422
+ },
423
+ {
424
+ id: 3,
425
+ title: "C2通信建立",
426
+ icon: "satellite-dish",
427
+ color: "bg-green-100 text-green-600",
428
+ behavior: "通过CDN域名(api.cloudfront[.]com)进行HTTPS心跳通信,部署反向SSH隧道到内部跳板服务器",
429
+ defenses: "网络流量分析(NTA)",
430
+ intercepted: true,
431
+ alerted: true,
432
+ alerts: [
433
+ {
434
+ severity: "emergency",
435
+ message: "异常出站连接 | 目标IP: 54.231.1.1 (AWS新加坡) | 协议: HTTPS | 异常证书(CN=*.cloudfront[.]com但由通配符Let's Encrypt证书签发)"
436
+ }
437
+ ],
438
+ forensic: [
439
+ "C2域名: api.cloudfront[.]com (解析到54.231.1.1)",
440
+ "HTTPS流量模式: 每17秒5KB",
441
+ "证书签发者: Let's Encrypt(对CDN不常见)",
442
+ "SSH隧道建立到10.8.8.12(内部跳板服务器)"
443
+ ]
444
+ },
445
+ {
446
+ id: 4,
447
+ title: "凭证窃取",
448
+ icon: "user-secret",
449
+ color: "bg-blue-100 text-blue-600",
450
+ behavior: "使用Mimikatz提取Chrome浏览器cookie并伪造User-Agent(同步受害者浏览器指纹)",
451
+ defenses: "用户行为分析(UEBA)",
452
+ intercepted: false,
453
+ alerted: false,
454
+ alerts: [
455
+ {
456
+ severity: "high",
457
+ message: "异常浏览器会话 | 用户: Victim_Account | 源IP: 172.16.1.23 → 设备指纹改变(新的VM特征/QEMU虚拟GPU)"
458
+ }
459
+ ],
460
+ forensic: [
461
+ "内存中检测到Mimikatz进程(伪装为svchost.exe)",
462
+ "访问了Chrome cookie数据库",
463
+ "User-Agent更改为匹配受害者原始浏览器",
464
+ "来自172.16.1.23的新登录会话带有VM指纹"
465
+ ]
466
+ },
467
+ {
468
+ id: 5,
469
+ title: "云文档渗透",
470
+ icon: "cloud",
471
+ color: "bg-purple-100 text-purple-600",
472
+ behavior: "劫持的Yuque API Token用于访问'生产环境操作手册',提取嵌入的SSH私钥(Base64编码)",
473
+ defenses: "数据防泄漏(DLP)",
474
+ intercepted: true,
475
+ alerted: true,
476
+ alerts: [
477
+ {
478
+ severity: "critical",
479
+ message: "敏感数据访问 | 用户: Victim_Account | 操作: 下载文档ID: YUQUE-1234 | 内容匹配关键词: 'prod_ssh_private_key'"
480
+ }
481
+ ],
482
+ forensic: [
483
+ "API调用到yuque.com/v2/api/documents/YUQUE-1234",
484
+ "文档包含Base64编码的SSH密钥",
485
+ "密钥属于dba_admin@10.8.8.88",
486
+ "异常访问时间: 当地时间02:37 AM"
487
+ ]
488
+ },
489
+ {
490
+ id: 6,
491
+ title: "生产环境入侵",
492
+ icon: "server",
493
+ color: "bg-pink-100 text-pink-600",
494
+ behavior: "使用来自跳板服务器的SSH证书登录MySQL数据库服务器(IP: 10.8.8.88, 账号: dba_admin)",
495
+ defenses: "主机入侵检测(HIDS)",
496
+ intercepted: false,
497
+ alerted: true,
498
+ alerts: [
499
+ {
500
+ severity: "emergency",
501
+ message: "异常时间SSH登录 | 账号: dba_admin | 源IP: 10.8.8.12 (测试环境跳板服务器) | 操作: 执行SHOW DATABASES"
502
+ }
503
+ ],
504
+ forensic: [
505
+ "SSH登录时间: 03:12 AM 来自10.8.8.12",
506
+ "执行命令: SHOW DATABASES, SELECT * FROM users",
507
+ "会话时长: 8分钟23秒",
508
+ "异常查询模式(扫描所有表)"
509
+ ]
510
+ },
511
+ {
512
+ id: 7,
513
+ title: "数据外泄",
514
+ icon: "file-export",
515
+ color: "bg-indigo-100 text-indigo-600",
516
+ behavior: "压缩并加密客户数据(文件名: taobaodata.tar.gz.enc)通过DNS隧道传输到alibaba-bas.com",
517
+ defenses: "全流量威胁分析",
518
+ intercepted: true,
519
+ alerted: true,
520
+ alerts: [
521
+ {
522
+ severity: "critical",
523
+ message: "异常数据传输 | 协议: DNS TXT记录 | 目标域名: xyz.attacker[.]com | 数据量: 142MB (超过阈值500%)"
524
+ }
525
+ ],
526
+ forensic: [
527
+ "创建数据文件: /tmp/taobaodata.tar.gz.enc",
528
+ "DNS查询到xyz.attacker[.]com (TXT记录)",
529
+ "数据传输速率: 每次查询18.5KB",
530
+ "总外泄数据: 142MB 通过8,234次DNS请求"
531
+ ]
532
+ }
533
+ ];
534
+
535
+ // Render attack cards
536
+ const timelineContainer = document.querySelector('.attack-flow-container .flex');
537
+
538
+ attackSteps.forEach((step, index) => {
539
+ const card = document.createElement('div');
540
+ card.className = `attack-card w-48 flex-shrink-0 bg-white rounded-lg border border-gray-200 overflow-hidden cursor-pointer transition-all duration-300 relative ${index === 0 ? 'active border-l-4 border-red-500' : ''}`;
541
+
542
+ // Add status tags for intercepted and alerted
543
+ const statusTags = `
544
+ <div class="status-tag ${step.intercepted ? 'status-tag-intercepted' : 'status-tag-not-intercepted'}">
545
+ ${step.intercepted ? '已拦截' : '未拦截'}
546
+ </div>
547
+ <div class="status-tag ${step.alerted ? 'status-tag-alerted' : 'status-tag-not-alerted'}" style="right: 8px; top: 14px;">
548
+ ${step.alerted ? '已告警' : '未告警'}
549
+ </div>
550
+ `;
551
+
552
+ card.innerHTML = `
553
+ ${statusTags}
554
+ <div class="p-4">
555
+ <div class="flex items-center justify-between mb-1">
556
+ <div class="flex items-center">
557
+ <div class="w-8 h-8 rounded-full ${step.color} flex items-center justify-center mr-2">
558
+ <i class="fas fa-${step.icon}"></i>
559
+ </div>
560
+ <span class="stage-badge rounded-full">阶段 ${step.id}</span>
561
+ </div>
562
+ <span class="text-xs ${step.alerts[0].severity === 'critical' ? 'text-red-500' : step.alerts[0].severity === 'high' ? 'text-yellow-500' : 'text-orange-500'}">
563
+ <i class="fas fa-${step.alerts[0].severity === 'critical' ? 'exclamation-triangle' : step.alerts[0].severity === 'high' ? 'exclamation-circle' : 'exclamation'}"></i>
564
+ </span>
565
+ </div>
566
+ <h3 class="font-semibold text-gray-800 text-sm mb-1">${step.title}</h3>
567
+ <p class="attack-behavior text-xs">${step.behavior}</p>
568
+ <div class="mt-2 flex justify-between items-center">
569
+ <div class="flex">
570
+ <span class="status-badge ${step.intercepted ? 'intercepted' : 'not-intercepted'}">
571
+ ${step.intercepted ? '已拦截' : '未拦截'}
572
+ </span>
573
+ <span class="status-badge ${step.alerted ? 'alerted' : 'not-alerted'}">
574
+ ${step.alerted ? '已告警' : '未告警'}
575
+ </span>
576
+ </div>
577
+ <span class="text-xs text-gray-500">${step.defenses}</span>
578
+ </div>
579
+ </div>
580
+ `;
581
+
582
+ card.addEventListener('click', () => {
583
+ // Update active card
584
+ document.querySelectorAll('.attack-card').forEach(c => c.classList.remove('active', 'border-l-4', 'border-red-500', 'border-yellow-500', 'border-green-500', 'border-blue-500', 'border-purple-500', 'border-pink-500', 'border-indigo-500'));
585
+ card.classList.add('active', 'border-l-4');
586
+
587
+ // Add specific border color
588
+ if (step.color.includes('red')) card.classList.add('border-red-500');
589
+ else if (step.color.includes('yellow')) card.classList.add('border-yellow-500');
590
+ else if (step.color.includes('green')) card.classList.add('border-green-500');
591
+ else if (step.color.includes('blue')) card.classList.add('border-blue-500');
592
+ else if (step.color.includes('purple')) card.classList.add('border-purple-500');
593
+ else if (step.color.includes('pink')) card.classList.add('border-pink-500');
594
+ else if (step.color.includes('indigo')) card.classList.add('border-indigo-500');
595
+
596
+ // Update attack details
597
+ const detailsContainer = document.getElementById('attack-details');
598
+ detailsContainer.innerHTML = `
599
+ <div>
600
+ <!-- Header with icon and title -->
601
+ <div class="flex items-center mb-6">
602
+ <div class="w-12 h-12 rounded-full ${step.color} flex items-center justify-center mr-4">
603
+ <i class="fas fa-${step.icon} text-xl"></i>
604
+ </div>
605
+ <div>
606
+ <h3 class="text-xl font-semibold text-gray-800">${step.title}</h3>
607
+ <p class="text-sm text-gray-500">攻击阶段 ${step.id} | ${step.id < 10 ? '0' + step.id : step.id}:00</p>
608
+ </div>
609
+ </div>
610
+
611
+ <!-- Defense Status Section -->
612
+ <div class="flex mb-6 space-x-4">
613
+ <div class="flex-1 bg-white border ${step.intercepted ? 'border-green-200 bg-green-50' : 'border-red-200 bg-red-50'} rounded-lg p-4">
614
+ <div class="flex items-center">
615
+ <div class="w-8 h-8 rounded-full ${step.intercepted ? 'bg-green-100 text-green-600' : 'bg-red-100 text-red-600'} flex items-center justify-center mr-3">
616
+ <i class="fas fa-${step.intercepted ? 'shield-alt' : 'shield-virus'}"></i>
617
+ </div>
618
+ <div>
619
+ <h4 class="text-sm font-medium text-gray-700">拦截状态</h4>
620
+ <p class="text-sm ${step.intercepted ? 'text-green-600' : 'text-red-600'} font-medium">${step.intercepted ? '已成功拦截' : '未能拦截'}</p>
621
+ </div>
622
+ </div>
623
+ </div>
624
+ <div class="flex-1 bg-white border ${step.alerted ? 'border-yellow-200 bg-yellow-50' : 'border-gray-200 bg-gray-50'} rounded-lg p-4">
625
+ <div class="flex items-center">
626
+ <div class="w-8 h-8 rounded-full ${step.alerted ? 'bg-yellow-100 text-yellow-600' : 'bg-gray-100 text-gray-600'} flex items-center justify-center mr-3">
627
+ <i class="fas fa-${step.alerted ? 'bell' : 'bell-slash'}"></i>
628
+ </div>
629
+ <div>
630
+ <h4 class="text-sm font-medium text-gray-700">告警状态</h4>
631
+ <p class="text-sm ${step.alerted ? 'text-yellow-600' : 'text-gray-600'} font-medium">${step.alerted ? '已触发告警' : '未触发告警'}</p>
632
+ </div>
633
+ </div>
634
+ </div>
635
+ </div>
636
+
637
+ <!-- Attack Behavior Section -->
638
+ <div class="mb-8">
639
+ <div class="flex items-center mb-3">
640
+ <div class="w-6 h-6 rounded-full bg-blue-100 text-blue-600 flex items-center justify-center mr-2">
641
+ <i class="fas fa-bolt text-xs"></i>
642
+ </div>
643
+ <h4 class="font-medium text-gray-700">攻击行为</h4>
644
+ </div>
645
+ <div class="bg-gray-50 p-4 rounded-lg text-sm text-gray-700 border border-gray-200">
646
+ <div class="flex">
647
+ <div class="timeline-marker ${step.color} mr-3 flex-shrink-0">
648
+ </div>
649
+ <div>${step.behavior}</div>
650
+ </div>
651
+ </div>
652
+ </div>
653
+
654
+ <!-- Defense Trigger Section -->
655
+ <div class="mb-8">
656
+ <div class="flex items-center mb-3">
657
+ <div class="w-6 h-6 rounded-full bg-green-100 text-green-600 flex items-center justify-center mr-2">
658
+ <i class="fas fa-shield-alt text-xs"></i>
659
+ </div>
660
+ <h4 class="font-medium text-gray-700">触发防御</h4>
661
+ </div>
662
+ <div class="flex items-center bg-gray-50 p-4 rounded-lg border border-gray-200">
663
+ <span class="defense-badge bg-white text-gray-800 rounded-full border border-gray-300 mr-3">${step.defenses}</span>
664
+ <span class="text-sm text-gray-600">检测到攻击行为并触发防御机制</span>
665
+ </div>
666
+ </div>
667
+
668
+ <!-- Security Alerts Section -->
669
+ <div class="mb-8">
670
+ <div class="flex items-center mb-3">
671
+ <div class="w-6 h-6 rounded-full bg-red-100 text-red-600 flex items-center justify-center mr-2">
672
+ <i class="fas fa-exclamation-triangle text-xs"></i>
673
+ </div>
674
+ <h4 class="font-medium text-gray-700">安全告警</h4>
675
+ </div>
676
+ <div class="space-y-3">
677
+ ${step.alerts.map(alert => `
678
+ <div class="p-4 rounded-lg border ${alert.severity === 'critical' ? 'border-red-200 bg-red-50' : alert.severity === 'high' ? 'border-yellow-200 bg-yellow-50' : 'border-orange-200 bg-orange-50'}">
679
+ <div class="flex items-start">
680
+ <div class="alert-icon ${alert.severity === 'critical' ? 'alert-critical' : alert.severity === 'high' ? 'alert-high' : 'alert-emergency'} mr-3">
681
+ <i class="fas fa-${alert.severity === 'critical' ? 'exclamation-triangle' : alert.severity === 'high' ? 'exclamation-circle' : 'exclamation'} text-sm"></i>
682
+ </div>
683
+ <div>
684
+ <div class="text-sm font-medium text-gray-800 mb-1">${alert.severity === 'critical' ? '严重告警' : alert.severity === 'high' ? '高危告警' : '紧急告警'}</div>
685
+ <div class="text-xs text-gray-600">${alert.message}</div>
686
+ </div>
687
+ </div>
688
+ </div>
689
+ `).join('')}
690
+ </div>
691
+ </div>
692
+
693
+ <!-- Forensic Evidence Section -->
694
+ <div>
695
+ <div class="flex items-center mb-3">
696
+ <div class="w-6 h-6 rounded-full bg-indigo-100 text-indigo-600 flex items-center justify-center mr-2">
697
+ <i class="fas fa-search text-xs"></i>
698
+ </div>
699
+ <h4 class="font-medium text-gray-700">取证证据</h4>
700
+ </div>
701
+ <div class="bg-white border border-gray-200 rounded-lg overflow-hidden">
702
+ <div class="p-4">
703
+ ${step.forensic.map((item, idx) => `
704
+ <div class="forensic-item">
705
+ <div class="text-sm text-gray-700 pl-2">${item}</div>
706
+ </div>
707
+ `).join('')}
708
+ </div>
709
+ </div>
710
+ </div>
711
+ </div>
712
+ `;
713
+ });
714
+
715
+ // Add card and arrow to timeline
716
+ timelineContainer.appendChild(card);
717
+
718
+ // Add arrow after each card except the last one
719
+ if (index < attackSteps.length - 1) {
720
+ const arrow = document.createElement('div');
721
+ arrow.className = 'arrow';
722
+ arrow.innerHTML = '<i class="fas fa-arrow-right"></i>';
723
+ timelineContainer.appendChild(arrow);
724
+ }
725
+ });
726
+
727
+ // Auto-select first card on load
728
+ document.querySelectorAll('.attack-card')[1].click();
729
+ </script>
730
+ <p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=capta1n/bas10" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
731
+ </html>
prompts.txt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ 1、攻击流程时间线中除第一个攻击者节点外,每个节点上都增加是否拦截以及是否告警的标签 2、攻击阶段取证详情:增加是否拦截以及是否告警的标签
2
+ 攻击流程时间线中的攻击节点也需要增加是否拦截是否告警的标签
3
+ 攻击流程时间线中除第一个攻击者节点外,每个节点上都增加是否拦截以及是否告警的标签,例已拦截、已告警、