-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcloud-quick-assessment.html
More file actions
445 lines (388 loc) · 14.6 KB
/
Copy pathcloud-quick-assessment.html
File metadata and controls
445 lines (388 loc) · 14.6 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
436
437
438
439
440
441
442
443
444
445
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="styles.css">
<title>Cloud Security Quick Assessment - Mousa Cloud Consulting</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
max-width: 800px;
margin: 0 auto;
padding: 20px;
background: #f8fafc;
line-height: 1.6;
color: #1e293b;
}
.header {
text-align: center;
padding: 40px 20px;
background: linear-gradient(135deg, #0f766e, #115e59);
color: white;
border-radius: 12px;
margin-bottom: 30px;
}
.header h1 {
font-size: 2.2em;
margin-bottom: 10px;
}
.header p {
font-size: 1.1em;
opacity: 0.95;
}
.section {
background: white;
padding: 30px;
border-radius: 12px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
margin-bottom: 25px;
}
.question {
margin-bottom: 20px;
}
.question h3 {
color: #1e293b;
margin-bottom: 8px;
font-size: 1.1em;
}
label {
display: block;
margin: 8px 0;
cursor: pointer;
padding: 12px 16px;
border: 2px solid #e2e8f0;
border-radius: 8px;
transition: all 0.2s;
}
label:hover {
border-color: #0f766e;
background: #f0fdfa;
}
input[type="radio"] {
margin-right: 10px;
transform: scale(1.2);
}
input[type="radio"]:checked+label {
background: #ecfdf5;
border-color: #10b981;
}
button {
background: linear-gradient(135deg, #10b981, #059669);
color: white;
border: none;
padding: 16px 40px;
font-size: 1.1em;
border-radius: 12px;
cursor: pointer;
width: 100%;
font-weight: 600;
transition: transform 0.2s;
}
button:hover {
transform: translateY(-2px);
}
button:disabled {
opacity: 0.6;
cursor: not-allowed;
transform: none;
}
.results {
display: none;
animation: fadeIn 0.5s;
}
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.risk-badge {
padding: 12px 24px;
border-radius: 50px;
font-size: 1.2em;
font-weight: bold;
text-align: center;
margin: 20px 0;
}
.risk-low {
background: #ecfdf5;
color: #166534;
border: 2px solid #10b981;
}
.risk-medium {
background: #fef3c7;
color: #92400e;
border: 2px solid #f59e0b;
}
.risk-high {
background: #fee2e2;
color: #991b1b;
border: 2px solid #ef4444;
}
.fixes {
background: #f8fafc;
padding: 20px;
border-radius: 8px;
border-left: 5px solid #10b981;
margin-top: 20px;
}
.cta {
background: linear-gradient(135deg, #0f766e, #115e59);
color: white;
padding: 24px;
border-radius: 12px;
text-align: center;
margin-top: 30px;
}
.cta a {
color: #ecfdf5;
text-decoration: none;
font-weight: 600;
}
.footer {
text-align: center;
padding: 30px 0;
color: #64748b;
font-size: 0.9em;
}
@media (max-width: 600px) {
.header h1 {
font-size: 1.8em;
}
body {
padding: 15px;
}
}
.flex-center {
display: flex;
justify-content: center;
/* Horizontal */
align-items: center;
/* Vertical */
min-height: 200px;
/* Container height */
}
</style>
<link rel="icon" type="image/png" sizes="16x16" href="favicon-16x16.png">
<link rel="icon" type="image/png" sizes="32x32" href="favicon-32x32.png">
<link rel="apple-touch-icon" sizes="180x180" href="apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="192x192" href="android-chrome-192x192.png">
<link rel="icon" type="image/png" sizes="512x512" href="android-chrome-512x512.png">
<link rel="shortcut icon" href="favicon.ico">
<link rel="manifest" href="site.webmanifest">
<script src="book-call.js" defer></script>
</head>
<body>
<header class="flex-center">
<div>
<a href="/">
<video autoplay muted>
<source src="resized-logo.mp4" type='video/mp4'>
Your browser does not support the video tag.
</video>
</a>
</div>
</header>
<div id="header-placeholder"></div>
<script>
fetch('standalone-header.html')
.then(response => response.text())
.then(data => {
document.getElementById('header-placeholder').outerHTML = data;
const menuBtn = document.getElementById('menuBtn');
const panel = document.getElementById('mobilePanel');
if (menuBtn && panel) {
menuBtn.addEventListener('click', function () {
const open = panel.classList.toggle('show');
menuBtn.setAttribute('aria-expanded', String(open));
});
}
});
</script>
<div class="header">
<h1>🛡️ Cloud Security Quick Assessment</h1>
<p>Answer 8 simple questions. Get your risk score + 3 priority fixes.<br><strong>Takes 2 minutes.</strong></p>
</div>
<div class="section">
<h2>Section 1: IAM & Access</h2>
<div class="question">
<h3>1. Do you have IAM roles/users with wildcard permissions (*)?</h3>
<label><input type="radio" name="q1" value="1"> Yes</label>
<label><input type="radio" name="q1" value="0"> No</label>
</div>
<div class="question">
<h3>2. Are there AWS service accounts >90 days old that haven't been used?</h3>
<label><input type="radio" name="q2" value="1"> Yes</label>
<label><input type="radio" name="q2" value="0"> No</label>
</div>
<div class="question">
<h3>3. Is MFA enforced for all users with admin privileges?</h3>
<label><input type="radio" name="q3" value="0"> Yes</label>
<label><input type="radio" name="q3" value="1"> No</label>
</div>
</div>
<div class="section">
<h2>Section 2: Infrastructure Security</h2>
<div class="question">
<h3>4. Do you have public S3 buckets containing sensitive data?</h3>
<label><input type="radio" name="q4" value="1"> Yes</label>
<label><input type="radio" name="q4" value="0"> No</label>
</div>
<div class="question">
<h3>5. Are all EC2 security groups allowing 0.0.0.0/0 inbound?</h3>
<label><input type="radio" name="q5" value="1"> Yes</label>
<label><input type="radio" name="q5" value="0"> No</label>
</div>
<div class="question">
<h3>6. Is CloudTrail logging enabled across ALL regions?</h3>
<label><input type="radio" name="q6" value="0"> Yes</label>
<label><input type="radio" name="q6" value="1"> No</label>
</div>
</div>
<div class="section">
<h2>Section 3: Compliance & Operations</h2>
<div class="question">
<h3>7. Do you conduct quarterly access reviews for privileged accounts?</h3>
<label><input type="radio" name="q7" value="0"> Yes</label>
<label><input type="radio" name="q7" value="1"> No</label>
</div>
<div class="question">
<h3>8. Are all production databases encrypted at rest AND in transit?</h3>
<label><input type="radio" name="q8" value="0"> Yes</label>
<label><input type="radio" name="q8" value="1"> No</label>
</div>
</div>
<div class="section">
<h2>Section 4: Cloud Cost Leaks (Bonus)</h2>
<div class="question">
<h3>9. Do dev/test environments run 24/7?</h3>
<label><input type="radio" name="q9" value="1"> Yes</label>
<label><input type="radio" name="q9" value="0"> No</label>
</div>
<div class="question">
<h3>10. Are there unused snapshots/volumes >90 days old?</h3>
<label><input type="radio" name="q10" value="1"> Yes</label>
<label><input type="radio" name="q10" value="0"> No</label>
</div>
</div>
<button onclick="calculateScore()" id="submitBtn">Get My Risk Score & Fixes</button>
<div id="results" class="results">
<div class="risk-badge" id="riskBadge"></div>
<h2 id="riskTitle"></h2>
<p id="riskDesc"></p>
<div class="fixes">
<h3>Your 3 Priority Fixes:</h3>
<ol id="priorityFixes"></ol>
</div>
<div class="cta">
<!-- Calendly link widget begin -->
<link href="https://assets.calendly.com/assets/external/widget.css" rel="stylesheet">
<script src="https://assets.calendly.com/assets/external/widget.js" type="text/javascript" async></script>
<a class="btn btn-primary book-call" href=""
onclick="Calendly.initPopupWidget({url: 'https://calendly.com/contact-mousa-cloud-consulting/30min'});return false;">
<p><strong>Want personalized fixes for YOUR environment?</strong></p>
👉 Click here to book a quick meeting!
</a>
<!-- Calendly link widget end -->
</div>
</div>
<script>
fetch('footer.html')
.then(response => response.text())
.then(data => {
document.getElementById('footer-placeholder').outerHTML = data;
});
</script>
<div id="cookie-banner" style="position:fixed;bottom:0;left:0;right:0;background:#111;color:#fff;
padding:1rem;z-index:9999;display:none;font-size:0.9rem;">
<div style="max-width:960px;margin:0 auto;display:flex;flex-wrap:wrap;
gap:0.75rem;align-items:center;">
<p style="flex:1;margin:0;">
Essential fraud protection (TrafficGuard) runs by default to block bots and click fraud.
Non-essential analytics & ads (Google, TikTok & Reddit) only load if you consent below. See our
<a href="privacy-policy.html" style="color:#4ea3ff;">Privacy Policy</a>.
</p>
<div style="display:flex;gap:0.5rem;flex-wrap:wrap;">
<button id="cookie-reject" style="background:#444;color:#fff;border:none;padding:0.5rem 1rem;
border-radius:4px;cursor:pointer;">
Reject non‑essential
</button>
<button id="cookie-accept" style="background:#007bff;color:#fff;border:none;padding:0.5rem 1rem;
border-radius:4px;cursor:pointer;">
Accept all
</button>
</div>
</div>
</div>
<script src="common.js"></script>
<script src="cookie-consent.js"></script>
<div id="footer-placeholder"></div>
<script>
function calculateScore() {
const answers = ['q1', 'q2', 'q3', 'q4', 'q5', 'q6', 'q7', 'q8', 'q9', 'q10'];
let score = 0;
let answered = 0;
for (let q of answers) {
const selected = document.querySelector(`input[name="${q}"]:checked`);
if (selected) {
score += parseInt(selected.value);
answered++;
}
}
if (answered < 8) {
alert('Please answer all questions for accurate results.');
return;
}
const submitBtn = document.getElementById('submitBtn');
const results = document.getElementById('results');
submitBtn.style.display = 'none';
results.style.display = 'block';
let riskClass, riskTitle, riskDesc, fixes;
if (score <= 2) {
riskClass = 'risk-low';
riskTitle = '🟢 Low Risk';
riskDesc = 'Solid foundation. Keep up basic hygiene.';
fixes = [
'1. Schedule quarterly access reviews',
'2. Verify MFA everywhere',
'3. Test your incident response once/year'
];
} else if (score <= 5) {
riskClass = 'risk-medium';
riskTitle = '🟡 Medium Risk';
riskDesc = '3-5 gaps to address. Fix these within 30 days.';
fixes = [
'1. Remove wildcard IAM permissions (*)',
'2. Enable CloudTrail across ALL regions',
'3. Tighten Security Groups (no 0.0.0.0/0)'
];
} else {
riskClass = 'risk-high';
riskTitle = '🔴 High Risk';
riskDesc = 'Immediate action required. 6+ critical gaps.';
fixes = [
'1. Audit ALL IAM roles for wildcards immediately',
'2. Enable MFA + delete dormant accounts',
'3. Fix public S3 buckets + enable full logging'
];
}
document.getElementById('riskBadge').className = `risk-badge ${riskClass}`;
document.getElementById('riskBadge').textContent = riskTitle;
document.getElementById('riskTitle').textContent = riskTitle;
document.getElementById('riskDesc').textContent = riskDesc;
const fixesList = document.getElementById('priorityFixes');
fixesList.innerHTML = fixes.map(fix => `<li>${fix}</li>`).join('');
}
</script>
</body>
</html>