capta1n commited on
Commit
163ebd0
·
verified ·
1 Parent(s): 755ea31

Add 3 files

Browse files
Files changed (3) hide show
  1. README.md +6 -4
  2. index.html +620 -19
  3. prompts.txt +1 -0
README.md CHANGED
@@ -1,10 +1,12 @@
1
  ---
2
- title: Bas9
3
- emoji: 🐨
4
  colorFrom: purple
5
- colorTo: pink
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: bas9
3
+ emoji: 🐳
4
  colorFrom: purple
5
+ colorTo: yellow
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,620 @@
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: 110px;
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: 16px;
73
+ height: 16px;
74
+ text-align: center;
75
+ line-height: 16px;
76
+ color: #9ca3af;
77
+ font-size: 0.7rem;
78
+ }
79
+ .attacker-node {
80
+ background-color: #fee2e2;
81
+ border-left: 4px solid #dc2626;
82
+ height: 110px;
83
+ width: 100px;
84
+ }
85
+ .attack-flow-container {
86
+ width: 100%;
87
+ overflow-x: auto;
88
+ padding-bottom: 1.5rem;
89
+ }
90
+ .attack-flow-container .flex {
91
+ min-width: min-content;
92
+ padding-right: 1rem;
93
+ }
94
+ .attack-behavior {
95
+ display: -webkit-box;
96
+ -webkit-line-clamp: 2;
97
+ -webkit-box-orient: vertical;
98
+ overflow: hidden;
99
+ text-overflow: ellipsis;
100
+ font-size: 0.6rem;
101
+ line-height: 1.2;
102
+ color: #4b5563;
103
+ }
104
+ .stage-badge {
105
+ font-size: 0.55rem;
106
+ padding: 0.1rem 0.3rem;
107
+ background-color: #f3f4f6;
108
+ color: #6b7280;
109
+ }
110
+ .scroll-container {
111
+ scrollbar-width: thin;
112
+ scrollbar-color: #d1d5db #f3f4f6;
113
+ }
114
+ .scroll-container::-webkit-scrollbar {
115
+ height: 6px;
116
+ }
117
+ .scroll-container::-webkit-scrollbar-track {
118
+ background: #f3f4f6;
119
+ border-radius: 10px;
120
+ }
121
+ .scroll-container::-webkit-scrollbar-thumb {
122
+ background-color: #d1d5db;
123
+ border-radius: 10px;
124
+ }
125
+ .forensic-item {
126
+ position: relative;
127
+ padding-left: 1.5rem;
128
+ margin-bottom: 0.75rem;
129
+ }
130
+ .forensic-item:before {
131
+ content: "";
132
+ position: absolute;
133
+ left: 0.5rem;
134
+ top: 0.5rem;
135
+ width: 6px;
136
+ height: 6px;
137
+ border-radius: 50%;
138
+ background-color: #3b82f6;
139
+ }
140
+ .forensic-item:after {
141
+ content: "";
142
+ position: absolute;
143
+ left: 0.5rem;
144
+ top: 1.1rem;
145
+ bottom: -0.5rem;
146
+ width: 2px;
147
+ background-color: #e5e7eb;
148
+ }
149
+ .forensic-item:last-child:after {
150
+ display: none;
151
+ }
152
+ .alert-icon {
153
+ width: 1.8rem;
154
+ height: 1.8rem;
155
+ display: flex;
156
+ align-items: center;
157
+ justify-content: center;
158
+ border-radius: 50%;
159
+ flex-shrink: 0;
160
+ }
161
+ .alert-critical {
162
+ background-color: #fee2e2;
163
+ color: #dc2626;
164
+ }
165
+ .alert-high {
166
+ background-color: #fef3c7;
167
+ color: #d97706;
168
+ }
169
+ .alert-emergency {
170
+ background-color: #ffedd5;
171
+ color: #ea580c;
172
+ }
173
+ .timeline-marker {
174
+ width: 1rem;
175
+ height: 1rem;
176
+ border-radius: 50%;
177
+ display: flex;
178
+ align-items: center;
179
+ justify-content: center;
180
+ position: relative;
181
+ z-index: 1;
182
+ }
183
+ .timeline-marker:after {
184
+ content: "";
185
+ position: absolute;
186
+ left: 50%;
187
+ top: 50%;
188
+ transform: translate(-50%, -50%);
189
+ width: 0.5rem;
190
+ height: 0.5rem;
191
+ border-radius: 50%;
192
+ background-color: white;
193
+ }
194
+ .section-divider {
195
+ position: relative;
196
+ margin: 1.5rem 0;
197
+ }
198
+ .section-divider:before {
199
+ content: "";
200
+ position: absolute;
201
+ left: 0;
202
+ right: 0;
203
+ top: 50%;
204
+ height: 1px;
205
+ background-color: #e5e7eb;
206
+ }
207
+ .section-divider span {
208
+ position: relative;
209
+ padding: 0 0.5rem;
210
+ background-color: white;
211
+ z-index: 1;
212
+ font-size: 0.75rem;
213
+ color: #6b7280;
214
+ }
215
+ .compact-title {
216
+ font-size: 0.8rem;
217
+ line-height: 1.2;
218
+ }
219
+ </style>
220
+ </head>
221
+ <body class="bg-gray-50">
222
+ <div class="container mx-auto px-4 py-6 max-w-full">
223
+ <div class="text-center mb-6">
224
+ <h1 class="text-2xl font-bold text-gray-800 mb-1">BAS AI Hacker演练报告</h1>
225
+ <p class="text-xs text-gray-600">演练时间:2025-04-23 10:11 ~ 2025-04-23 11:10</p>
226
+ </div>
227
+
228
+ <!-- Defense Detection Summary -->
229
+ <div class="bg-white rounded-lg shadow-sm border border-gray-200 overflow-hidden mb-6">
230
+ <div class="border-b border-gray-200 px-4 py-3 bg-gray-50">
231
+ <h3 class="text-sm font-semibold text-gray-800">防御检测概览</h3>
232
+ </div>
233
+ <div id="defense-summary" class="p-4">
234
+ <div class="grid grid-cols-3 gap-3">
235
+ <div class="bg-blue-50 p-3 rounded-lg">
236
+ <div class="flex items-center">
237
+ <div class="w-10 h-10 rounded-full bg-blue-100 flex items-center justify-center mr-3">
238
+ <i class="fas fa-shield-alt text-blue-500 text-sm"></i>
239
+ </div>
240
+ <div>
241
+ <h4 class="text-xs font-medium text-gray-800">拦截率</h4>
242
+ <p class="text-xl font-bold text-blue-600">90%</p>
243
+ </div>
244
+ </div>
245
+ </div>
246
+ <div class="bg-yellow-50 p-3 rounded-lg">
247
+ <div class="flex items-center">
248
+ <div class="w-10 h-10 rounded-full bg-yellow-100 flex items-center justify-center mr-3">
249
+ <i class="fas fa-bell text-yellow-500 text-sm"></i>
250
+ </div>
251
+ <div>
252
+ <h4 class="text-xs font-medium text-gray-800">告警率</h4>
253
+ <p class="text-xl font-bold text-yellow-600">80%</p>
254
+ </div>
255
+ </div>
256
+ </div>
257
+ <div class="bg-green-50 p-3 rounded-lg">
258
+ <div class="flex items-center">
259
+ <div class="w-10 h-10 rounded-full bg-green-100 flex items-center justify-center mr-3">
260
+ <i class="fas fa-search text-green-500 text-sm"></i>
261
+ </div>
262
+ <div>
263
+ <h4 class="text-xs font-medium text-gray-800">溯源率</h4>
264
+ <p class="text-xl font-bold text-green-600">70%</p>
265
+ </div>
266
+ </div>
267
+ </div>
268
+ </div>
269
+ </div>
270
+ </div>
271
+
272
+ <!-- Attack Timeline Section -->
273
+ <div class="bg-white rounded-lg shadow-sm border border-gray-200 p-4 mb-6">
274
+ <div class="flex justify-between items-center mb-4">
275
+ <div>
276
+ <h2 class="text-lg font-semibold text-gray-800">攻击流程时间线</h2>
277
+ <p class="text-gray-500 text-xs">点击任意攻击阶段查看详细取证证据</p>
278
+ </div>
279
+ </div>
280
+
281
+ <div class="relative">
282
+ <div class="attack-flow-container scroll-container">
283
+ <div class="flex space-x-2 items-center pb-2">
284
+ <!-- Attacker Node -->
285
+ <div class="attack-card w-24 flex-shrink-0 bg-white rounded-lg border border-gray-200 overflow-hidden cursor-pointer transition-all duration-300 attacker-node">
286
+ <div class="p-2">
287
+ <div class="flex items-center justify-between mb-1">
288
+ <div class="flex items-center">
289
+ <div class="w-6 h-6 rounded-full bg-red-100 text-red-600 flex items-center justify-center mr-1">
290
+ <i class="fas fa-user-secret text-xs"></i>
291
+ </div>
292
+ <span class="text-2xs font-semibold text-gray-500">攻击源</span>
293
+ </div>
294
+ </div>
295
+ <h3 class="font-semibold text-gray-800 text-xs mb-1 compact-title">BAS AI Hacker</h3>
296
+ </div>
297
+ </div>
298
+
299
+ <div class="arrow">
300
+ <i class="fas fa-arrow-right"></i>
301
+ </div>
302
+
303
+ <!-- Attack cards will be inserted here by JavaScript -->
304
+ </div>
305
+ </div>
306
+ </div>
307
+ </div>
308
+
309
+ <!-- Attack Details Section -->
310
+ <div class="bg-white rounded-lg shadow-sm border border-gray-200 overflow-hidden">
311
+ <div class="border-b border-gray-200 px-4 py-3 bg-gray-50">
312
+ <h3 class="text-sm font-semibold text-gray-800">攻击阶段取证详情</h3>
313
+ </div>
314
+ <div id="attack-details" class="p-4">
315
+ <div class="text-center py-8">
316
+ <div class="mx-auto w-12 h-12 rounded-full bg-blue-50 flex items-center justify-center mb-3">
317
+ <i class="fas fa-mouse-pointer text-blue-500 text-lg"></i>
318
+ </div>
319
+ <h4 class="text-base font-medium text-gray-700 mb-1">选择攻击阶段</h4>
320
+ <p class="text-gray-500 text-xs max-w-md mx-auto">点击时间线上的任意攻击卡片查看攻击行为和触发防御的详细取证信息</p>
321
+ </div>
322
+ </div>
323
+ </div>
324
+ </div>
325
+
326
+ <script>
327
+ // Attack steps data in Chinese
328
+ const attackSteps = [
329
+ {
330
+ id: 1,
331
+ title: "钓鱼邮件投递",
332
+ icon: "envelope",
333
+ color: "bg-red-100 text-red-600",
334
+ behavior: "伪造的'拥抱AI变革'通知邮件,包含伪装为files.zip的恶意文件,使用社会工程学诱导用户点击",
335
+ defenses: "邮件安全网关",
336
+ alerts: [
337
+ {
338
+ severity: "critical",
339
+ message: "检测到伪造发件人 | 发件人: itsupport@fakecompany[.]com → 收件人: victim@corp.com | 包含恶意附件 (SHA256: a1b2c3...) | 识别为Emotet钓鱼模板"
340
+ }
341
+ ],
342
+ forensic: [
343
+ "发件人IP: 192.168.1.45 (保加利亚)",
344
+ "附件SHA256: a1b2c3d4e5f6...",
345
+ "邮件头显示DKIM验证失败",
346
+ "匹配已知Emotet模板(相似度90%)"
347
+ ]
348
+ },
349
+ {
350
+ id: 2,
351
+ title: "木马执行",
352
+ icon: "bug",
353
+ color: "bg-yellow-100 text-yellow-600",
354
+ behavior: "受害者下载恶意文件触发PowerShell脚本,下载Cobalt Strike DLL并注入到合法进程中",
355
+ defenses: "终端检测与响应(EDR)",
356
+ alerts: [
357
+ {
358
+ severity: "high",
359
+ message: "可疑进程注入 | 进程: C:\\Windows\\System32\\explorer.exe → 加载模块: a09xdf.dll | DLL签名无效且匹配已知Cobalt Strike签名"
360
+ }
361
+ ],
362
+ forensic: [
363
+ "进程树: files.zip → powershell.exe → explorer.exe",
364
+ "DLL内存分配模式匹配Cobalt Strike",
365
+ "网络连接尝试到185.123.32.1",
366
+ "注册表键修改: HKLM\\Software\\Microsoft\\Windows"
367
+ ]
368
+ },
369
+ {
370
+ id: 3,
371
+ title: "C2通信建立",
372
+ icon: "satellite-dish",
373
+ color: "bg-green-100 text-green-600",
374
+ behavior: "通过CDN域名(api.cloudfront[.]com)进行HTTPS心跳通信,部署反向SSH隧道到内部跳板服务器",
375
+ defenses: "网络流量分析(NTA)",
376
+ alerts: [
377
+ {
378
+ severity: "emergency",
379
+ message: "异常出站连接 | 目标IP: 54.231.1.1 (AWS新加坡) | 协议: HTTPS | 异常证书(CN=*.cloudfront[.]com但由通配符Let's Encrypt证书签发)"
380
+ }
381
+ ],
382
+ forensic: [
383
+ "C2域名: api.cloudfront[.]com (解析到54.231.1.1)",
384
+ "HTTPS流量模式: 每17秒5KB",
385
+ "证书签发者: Let's Encrypt(对CDN不常见)",
386
+ "SSH隧道建立到10.8.8.12(内部跳板服务器)"
387
+ ]
388
+ },
389
+ {
390
+ id: 4,
391
+ title: "凭证窃取",
392
+ icon: "user-secret",
393
+ color: "bg-blue-100 text-blue-600",
394
+ behavior: "使用Mimikatz提取Chrome浏览器cookie并伪造User-Agent(同步受害者浏览器指纹)",
395
+ defenses: "用户行为分析(UEBA)",
396
+ alerts: [
397
+ {
398
+ severity: "high",
399
+ message: "异常浏览器会话 | 用户: Victim_Account | 源IP: 172.16.1.23 → 设备指纹改变(新的VM特征/QEMU虚拟GPU)"
400
+ }
401
+ ],
402
+ forensic: [
403
+ "内存中检测到Mimikatz进程(伪装为svchost.exe)",
404
+ "访问了Chrome cookie数据库",
405
+ "User-Agent更改为匹配受害者原始浏览器",
406
+ "来自172.16.1.23的新登录会话带有VM指纹"
407
+ ]
408
+ },
409
+ {
410
+ id: 5,
411
+ title: "云文档渗透",
412
+ icon: "cloud",
413
+ color: "bg-purple-100 text-purple-600",
414
+ behavior: "劫持的Yuque API Token用于访问'生产环境操作手册',提取嵌入的SSH私钥(Base64编码)",
415
+ defenses: "数据防泄漏(DLP)",
416
+ alerts: [
417
+ {
418
+ severity: "critical",
419
+ message: "敏感数据访问 | 用户: Victim_Account | 操作: 下载文档ID: YUQUE-1234 | 内容匹配关键词: 'prod_ssh_private_key'"
420
+ }
421
+ ],
422
+ forensic: [
423
+ "API调用到yuque.com/v2/api/documents/YUQUE-1234",
424
+ "文档包含Base64编码的SSH密钥",
425
+ "密钥属于dba_admin@10.8.8.88",
426
+ "异常访问时间: 当地时间02:37 AM"
427
+ ]
428
+ },
429
+ {
430
+ id: 6,
431
+ title: "生产环境入侵",
432
+ icon: "server",
433
+ color: "bg-pink-100 text-pink-600",
434
+ behavior: "使用来自跳板服务器的SSH证书登录MySQL数据库服务器(IP: 10.8.8.88, 账号: dba_admin)",
435
+ defenses: "主机入侵检测(HIDS)",
436
+ alerts: [
437
+ {
438
+ severity: "emergency",
439
+ message: "异常时间SSH登录 | 账号: dba_admin | 源IP: 10.8.8.12 (测试环境跳板服务器) | 操作: 执行SHOW DATABASES"
440
+ }
441
+ ],
442
+ forensic: [
443
+ "SSH登录时间: 03:12 AM 来自10.8.8.12",
444
+ "执行命令: SHOW DATABASES, SELECT * FROM users",
445
+ "会话时长: 8分钟23秒",
446
+ "异常查询模式(扫描所有表)"
447
+ ]
448
+ },
449
+ {
450
+ id: 7,
451
+ title: "数据外泄",
452
+ icon: "file-export",
453
+ color: "bg-indigo-100 text-indigo-600",
454
+ behavior: "压缩并加密客户数据(文件名: taobaodata.tar.gz.enc)通过DNS隧道传输到alibaba-bas.com",
455
+ defenses: "全流量威胁分析",
456
+ alerts: [
457
+ {
458
+ severity: "critical",
459
+ message: "异常数据传输 | 协议: DNS TXT记录 | 目标域名: xyz.attacker[.]com | 数据量: 142MB (超过阈值500%)"
460
+ }
461
+ ],
462
+ forensic: [
463
+ "创建数据文件: /tmp/taobaodata.tar.gz.enc",
464
+ "DNS查询到xyz.attacker[.]com (TXT记录)",
465
+ "数据传输速率: 每次查询18.5KB",
466
+ "总外泄数据: 142MB 通过8,234次DNS请求"
467
+ ]
468
+ }
469
+ ];
470
+
471
+ // Render attack cards
472
+ const timelineContainer = document.querySelector('.attack-flow-container .flex');
473
+
474
+ attackSteps.forEach((step, index) => {
475
+ const card = document.createElement('div');
476
+ card.className = `attack-card w-24 flex-shrink-0 bg-white rounded-lg border border-gray-200 overflow-hidden cursor-pointer transition-all duration-300 ${index === 0 ? 'active border-l-4 border-red-500' : ''}`;
477
+ card.innerHTML = `
478
+ <div class="p-2">
479
+ <div class="flex items-center justify-between mb-1">
480
+ <div class="flex items-center">
481
+ <div class="w-6 h-6 rounded-full ${step.color} flex items-center justify-center mr-1">
482
+ <i class="fas fa-${step.icon} text-xs"></i>
483
+ </div>
484
+ <span class="stage-badge rounded-full">阶段 ${step.id}</span>
485
+ </div>
486
+ </div>
487
+ <h3 class="font-semibold text-gray-800 text-xs mb-1 compact-title">${step.title}</h3>
488
+ <div class="mt-1 flex justify-between items-center">
489
+ <span class="text-2xs text-gray-500">${step.defenses}</span>
490
+ <span class="text-2xs ${step.alerts[0].severity === 'critical' ? 'text-red-500' : step.alerts[0].severity === 'high' ? 'text-yellow-500' : 'text-orange-500'}">
491
+ <i class="fas fa-${step.alerts[0].severity === 'critical' ? 'exclamation-triangle' : step.alerts[0].severity === 'high' ? 'exclamation-circle' : 'exclamation'}"></i>
492
+ </span>
493
+ </div>
494
+ </div>
495
+ `;
496
+
497
+ card.addEventListener('click', () => {
498
+ // Update active card
499
+ 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'));
500
+ card.classList.add('active', 'border-l-4');
501
+
502
+ // Add specific border color
503
+ if (step.color.includes('red')) card.classList.add('border-red-500');
504
+ else if (step.color.includes('yellow')) card.classList.add('border-yellow-500');
505
+ else if (step.color.includes('green')) card.classList.add('border-green-500');
506
+ else if (step.color.includes('blue')) card.classList.add('border-blue-500');
507
+ else if (step.color.includes('purple')) card.classList.add('border-purple-500');
508
+ else if (step.color.includes('pink')) card.classList.add('border-pink-500');
509
+ else if (step.color.includes('indigo')) card.classList.add('border-indigo-500');
510
+
511
+ // Update attack details
512
+ const detailsContainer = document.getElementById('attack-details');
513
+ detailsContainer.innerHTML = `
514
+ <div>
515
+ <!-- Header with icon and title -->
516
+ <div class="flex items-center mb-4">
517
+ <div class="w-10 h-10 rounded-full ${step.color} flex items-center justify-center mr-3">
518
+ <i class="fas fa-${step.icon} text-lg"></i>
519
+ </div>
520
+ <div>
521
+ <h3 class="text-lg font-semibold text-gray-800">${step.title}</h3>
522
+ <p class="text-xs text-gray-500">攻击阶段 ${step.id} | ${step.id < 10 ? '0' + step.id : step.id}:00</p>
523
+ </div>
524
+ </div>
525
+
526
+ <!-- Attack Behavior Section -->
527
+ <div class="mb-6">
528
+ <div class="flex items-center mb-2">
529
+ <div class="w-5 h-5 rounded-full bg-blue-100 text-blue-600 flex items-center justify-center mr-2">
530
+ <i class="fas fa-bolt text-xs"></i>
531
+ </div>
532
+ <h4 class="text-sm font-medium text-gray-700">攻击行为</h4>
533
+ </div>
534
+ <div class="bg-gray-50 p-3 rounded-lg text-xs text-gray-700 border border-gray-200">
535
+ <div class="flex">
536
+ <div class="timeline-marker ${step.color} mr-2 flex-shrink-0">
537
+ </div>
538
+ <div>${step.behavior}</div>
539
+ </div>
540
+ </div>
541
+ </div>
542
+
543
+ <!-- Defense Trigger Section -->
544
+ <div class="mb-6">
545
+ <div class="flex items-center mb-2">
546
+ <div class="w-5 h-5 rounded-full bg-green-100 text-green-600 flex items-center justify-center mr-2">
547
+ <i class="fas fa-shield-alt text-xs"></i>
548
+ </div>
549
+ <h4 class="text-sm font-medium text-gray-700">触发防御</h4>
550
+ </div>
551
+ <div class="flex items-center bg-gray-50 p-3 rounded-lg border border-gray-200">
552
+ <span class="defense-badge bg-white text-gray-800 rounded-full border border-gray-300 mr-2 text-xs">${step.defenses}</span>
553
+ <span class="text-xs text-gray-600">检测到攻击行为并触发防御机制</span>
554
+ </div>
555
+ </div>
556
+
557
+ <!-- Security Alerts Section -->
558
+ <div class="mb-6">
559
+ <div class="flex items-center mb-2">
560
+ <div class="w-5 h-5 rounded-full bg-red-100 text-red-600 flex items-center justify-center mr-2">
561
+ <i class="fas fa-exclamation-triangle text-xs"></i>
562
+ </div>
563
+ <h4 class="text-sm font-medium text-gray-700">安全告警</h4>
564
+ </div>
565
+ <div class="space-y-2">
566
+ ${step.alerts.map(alert => `
567
+ <div class="p-3 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'}">
568
+ <div class="flex items-start">
569
+ <div class="alert-icon ${alert.severity === 'critical' ? 'alert-critical' : alert.severity === 'high' ? 'alert-high' : 'alert-emergency'} mr-2">
570
+ <i class="fas fa-${alert.severity === 'critical' ? 'exclamation-triangle' : alert.severity === 'high' ? 'exclamation-circle' : 'exclamation'} text-xs"></i>
571
+ </div>
572
+ <div>
573
+ <div class="text-xs font-medium text-gray-800 mb-1">${alert.severity === 'critical' ? '严重告警' : alert.severity === 'high' ? '高危告警' : '紧急告警'}</div>
574
+ <div class="text-2xs text-gray-600">${alert.message}</div>
575
+ </div>
576
+ </div>
577
+ </div>
578
+ `).join('')}
579
+ </div>
580
+ </div>
581
+
582
+ <!-- Forensic Evidence Section -->
583
+ <div>
584
+ <div class="flex items-center mb-2">
585
+ <div class="w-5 h-5 rounded-full bg-indigo-100 text-indigo-600 flex items-center justify-center mr-2">
586
+ <i class="fas fa-search text-xs"></i>
587
+ </div>
588
+ <h4 class="text-sm font-medium text-gray-700">取证证据</h4>
589
+ </div>
590
+ <div class="bg-white border border-gray-200 rounded-lg overflow-hidden">
591
+ <div class="p-3">
592
+ ${step.forensic.map((item, idx) => `
593
+ <div class="forensic-item">
594
+ <div class="text-xs text-gray-700 pl-2">${item}</div>
595
+ </div>
596
+ `).join('')}
597
+ </div>
598
+ </div>
599
+ </div>
600
+ </div>
601
+ `;
602
+ });
603
+
604
+ // Add card and arrow to timeline
605
+ timelineContainer.appendChild(card);
606
+
607
+ // Add arrow after each card except the last one
608
+ if (index < attackSteps.length - 1) {
609
+ const arrow = document.createElement('div');
610
+ arrow.className = 'arrow';
611
+ arrow.innerHTML = '<i class="fas fa-arrow-right"></i>';
612
+ timelineContainer.appendChild(arrow);
613
+ }
614
+ });
615
+
616
+ // Auto-select first card on load
617
+ document.querySelectorAll('.attack-card')[1].click();
618
+ </script>
619
+ <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/bas9" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
620
+ </html>
prompts.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ 调整攻击流程时间线中的节点及内容描述大小,使其可以在13寸MacBook电脑上完整展示全流程,无需左右滑动。