-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathvercel.html
More file actions
352 lines (293 loc) · 16 KB
/
vercel.html
File metadata and controls
352 lines (293 loc) · 16 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Security Report: ~/.ask/repos/vercel</title>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<style>
:root {
--critical: #d73a49;
--warning: #dbab09;
--info: #0366d6;
--bg-color: #f6f8fa;
--card-bg: #ffffff;
--text-color: #24292e;
--border-color: #e1e4e8;
}
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; line-height: 1.6; color: var(--text-color); max-width: 1200px; margin: 0 auto; padding: 20px; background-color: var(--bg-color); }
.header { background: var(--card-bg); padding: 20px; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); margin-bottom: 20px; display: flex; justify-content: space-between; align-items: center; }
.header h1 { margin: 0; font-size: 24px; }
.timestamp { color: #586069; font-size: 14px; }
.dashboard { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.card { background: var(--card-bg); padding: 20px; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.card h2 { margin-top: 0; font-size: 18px; border-bottom: 1px solid var(--border-color); padding-bottom: 10px; }
.summary-stats { display: flex; justify-content: space-around; text-align: center; margin-top: 20px; }
.stat-item { flex: 1; }
.stat-value { font-size: 36px; font-weight: bold; display: block; }
.stat-label { font-size: 14px; color: #586069; text-transform: uppercase; letter-spacing: 0.5px; }
.text-critical { color: var(--critical); }
.text-warning { color: var(--warning); }
.text-info { color: var(--info); }
.tabs { display: flex; margin-bottom: 20px; border-bottom: 1px solid var(--border-color); }
.tab { padding: 10px 20px; cursor: pointer; border-bottom: 2px solid transparent; font-weight: 500; }
.tab.active { border-bottom-color: #0366d6; color: #0366d6; }
.tab-content { display: none; }
.tab-content.active { display: block; }
.module-group { margin-bottom: 30px; background: var(--card-bg); border-radius: 8px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.module-header { background: #f1f8ff; padding: 15px 20px; font-weight: bold; border-bottom: 1px solid var(--border-color); display: flex; justify-content: space-between; align-items: center; cursor: pointer; user-select: none; }
.module-header:hover { background-color: #e6f3ff; }
.module-header::after { content: '▼'; font-size: 12px; transition: transform 0.3s ease; }
.module-group.collapsed .module-header::after { transform: rotate(-90deg); }
.module-group.collapsed .finding-list { display: none; }
.module-bg-critical { background-color: #ffeef0; }
.module-bg-critical:hover { background-color: #ffdce0; }
.finding-list { padding: 0; margin: 0; list-style: none; }
.finding-item { padding: 15px 20px; border-bottom: 1px solid var(--border-color); }
.finding-item:last-child { border-bottom: none; }
.finding-header { display: flex; justify-content: space-between; margin-bottom: 8px; }
.finding-title { font-weight: 600; display: flex; align-items: center; gap: 10px; }
.badge { padding: 2px 8px; border-radius: 12px; font-size: 12px; font-weight: 600; color: white; text-transform: uppercase; }
.bg-critical { background-color: var(--critical); }
.bg-warning { background-color: var(--warning); }
.bg-info { background-color: var(--info); }
.location { font-family: monospace; color: #586069; font-size: 13px; margin-bottom: 8px; }
.code-snippet { background: #f6f8fa; padding: 10px; border-radius: 4px; overflow-x: auto; font-family: monospace; font-size: 12px; border: 1px solid var(--border-color); }
.empty-state { text-align: center; padding: 50px; color: #586069; }
.chart-container { position: relative; height: 250px; width: 100%; display: flex; justify-content: center; }
.footer { text-align: center; margin-top: 40px; border-top: 1px solid var(--border-color); padding-top: 20px; color: #586069; font-size: 14px; }
.footer a { color: #0366d6; text-decoration: none; }
.footer a:hover { text-decoration: underline; }
</style>
</head>
<body>
<div class="header">
<div>
<h1>🛡️ Agent Security Audit Report</h1>
<div class="timestamp">Target: ~/.ask/repos/vercel | Generated: 2026-01-26 11:06:56 by <a href="https://github.com/yeasy/ask" target="_blank" style="color: #0366d6; text-decoration: none;">ASK</a></div>
</div>
<div>
<span class="badge bg-info" style="font-size: 14px; padding: 8px 16px;">
PASSED
</span>
</div>
</div>
<div class="dashboard">
<div class="card">
<h2>Severity Distribution</h2>
<div class="chart-container">
<canvas id="severityChart"></canvas>
</div>
</div>
<div class="card">
<h2>Overview</h2>
<div class="summary-stats">
<div class="stat-item">
<span class="stat-value text-critical">0</span>
<span class="stat-label">Critical</span>
</div>
<div class="stat-item">
<span class="stat-value text-warning">5</span>
<span class="stat-label">Warning</span>
</div>
<div class="stat-item">
<span class="stat-value text-info">0</span>
<span class="stat-label">Info</span>
</div>
<div class="stat-item">
<span class="stat-value">5</span>
<span class="stat-label">Total Findings</span>
</div>
</div>
<div style="margin-top: 30px; padding: 15px; background: #f1f8ff; border-radius: 4px; font-size: 14px;">
<strong>Scan Scope:</strong> ~/.ask/repos/vercel<br>
<strong>Modules Affected:</strong> 2<br>
<strong>Status:</strong>
<span class="text-warning">Review Recommended</span>
</div>
</div>
</div>
<div class="tabs">
<div class="tab active" onclick="switchTab('by-module')">By Module</div>
<div class="tab" onclick="switchTab('by-severity')">By Severity</div>
</div>
<div id="by-module" class="tab-content active">
<div class="module-group collapsed">
<div class="module-header " onclick="toggleGroup(this)">
<span>📦 vercel-deploy</span>
<div>
<span class="badge bg-warning" style="margin-right: 5px">1 Warn</span>
<span style="font-size: 12px; color: #586069;">1 issues</span>
</div>
</div>
<ul class="finding-list">
<li class="finding-item">
<div class="finding-header">
<div class="finding-title">
<span class="badge bg-warning">WARNING</span>
Dangerous use of 'rm -rf' on root-level directories
</div>
<span style="font-size: 12px; color: #999;">CMD-RM-RF</span>
</div>
<div class="location">File: skills/claude.ai/vercel-deploy-claimable/scripts/deploy.sh:168</div>
<div class="code-snippet">rm -rf "$TEMP_DIR"</div>
</li>
</ul>
</div>
<div class="module-group collapsed">
<div class="module-header " onclick="toggleGroup(this)">
<span>📦 vercel-react-best-practices</span>
<div>
<span class="badge bg-warning" style="margin-right: 5px">4 Warn</span>
<span style="font-size: 12px; color: #586069;">4 issues</span>
</div>
</div>
<ul class="finding-list">
<li class="finding-item">
<div class="finding-header">
<div class="finding-title">
<span class="badge bg-warning">WARNING</span>
Obfuscated command execution detected
</div>
<span style="font-size: 12px; color: #999;">CMD-OBFUSCATION</span>
</div>
<div class="location">File: skills/react-best-practices/AGENTS.md:1163</div>
<div class="code-snippet">eval</div>
</li>
<li class="finding-item">
<div class="finding-header">
<div class="finding-title">
<span class="badge bg-warning">WARNING</span>
Obfuscated command execution detected
</div>
<span style="font-size: 12px; color: #999;">CMD-OBFUSCATION</span>
</div>
<div class="location">File: skills/react-best-practices/README.md:14</div>
<div class="code-snippet">eval</div>
</li>
<li class="finding-item">
<div class="finding-header">
<div class="finding-title">
<span class="badge bg-warning">WARNING</span>
Obfuscated command execution detected
</div>
<span style="font-size: 12px; color: #999;">CMD-OBFUSCATION</span>
</div>
<div class="location">File: skills/react-best-practices/README.md:107</div>
<div class="code-snippet">eval</div>
</li>
<li class="finding-item">
<div class="finding-header">
<div class="finding-title">
<span class="badge bg-warning">WARNING</span>
Obfuscated command execution detected
</div>
<span style="font-size: 12px; color: #999;">CMD-OBFUSCATION</span>
</div>
<div class="location">File: skills/react-best-practices/rules/client-swr-dedup.md:10</div>
<div class="code-snippet">eval</div>
</li>
</ul>
</div>
</div>
<div id="by-severity" class="tab-content">
<div class="module-group collapsed">
<div class="module-header" onclick="toggleGroup(this)">
<span class="badge bg-warning" style="font-size: 14px;">WARNING</span>
<span style="font-size: 12px; color: #586069;">5 findings</span>
</div>
<ul class="finding-list">
<li class="finding-item">
<div class="finding-header">
<div class="finding-title">
<span style="color: #666;">[vercel-deploy]</span> Dangerous use of 'rm -rf' on root-level directories
</div>
<span style="font-size: 12px; color: #999;">CMD-RM-RF</span>
</div>
<div class="location">File: skills/claude.ai/vercel-deploy-claimable/scripts/deploy.sh:168</div>
<div class="code-snippet">rm -rf "$TEMP_DIR"</div>
</li>
<li class="finding-item">
<div class="finding-header">
<div class="finding-title">
<span style="color: #666;">[vercel-react-best-practices]</span> Obfuscated command execution detected
</div>
<span style="font-size: 12px; color: #999;">CMD-OBFUSCATION</span>
</div>
<div class="location">File: skills/react-best-practices/AGENTS.md:1163</div>
<div class="code-snippet">eval</div>
</li>
<li class="finding-item">
<div class="finding-header">
<div class="finding-title">
<span style="color: #666;">[vercel-react-best-practices]</span> Obfuscated command execution detected
</div>
<span style="font-size: 12px; color: #999;">CMD-OBFUSCATION</span>
</div>
<div class="location">File: skills/react-best-practices/README.md:14</div>
<div class="code-snippet">eval</div>
</li>
<li class="finding-item">
<div class="finding-header">
<div class="finding-title">
<span style="color: #666;">[vercel-react-best-practices]</span> Obfuscated command execution detected
</div>
<span style="font-size: 12px; color: #999;">CMD-OBFUSCATION</span>
</div>
<div class="location">File: skills/react-best-practices/README.md:107</div>
<div class="code-snippet">eval</div>
</li>
<li class="finding-item">
<div class="finding-header">
<div class="finding-title">
<span style="color: #666;">[vercel-react-best-practices]</span> Obfuscated command execution detected
</div>
<span style="font-size: 12px; color: #999;">CMD-OBFUSCATION</span>
</div>
<div class="location">File: skills/react-best-practices/rules/client-swr-dedup.md:10</div>
<div class="code-snippet">eval</div>
</li>
</ul>
</div>
</div>
<script>
const ctx = document.getElementById('severityChart').getContext('2d');
const labels = [];
const data = [];
const colors = [];
labels.push('Warning');
data.push( 5 );
colors.push('#dbab09');
new Chart(ctx, {
type: 'doughnut',
data: {
labels: labels,
datasets: [{
data: data,
backgroundColor: colors,
borderWidth: 0
}]
},
options: {
responsive: true,
maintainAspectRatio: false,
plugins: {
legend: { position: 'right' }
}
}
});
function switchTab(id) {
document.querySelectorAll('.tab').forEach(t => t.classList.remove('active'));
document.querySelectorAll('.tab-content').forEach(c => c.classList.remove('active'));
event.target.classList.add('active');
document.getElementById(id).classList.add('active');
}
function toggleGroup(header) {
header.parentElement.classList.toggle('collapsed');
}
</script>
<div class="footer">
generated by <a href="https://github.com/yeasy/ask/" target="_blank">ASK</a>, Agent Skills Manager for Enterprise AI
</div>
</body>
</html>