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