Repository navigation
Expand file tree
/
Copy pathcomparison_workbench.html
More file actions
1115 lines (1005 loc) · 45.2 KB
/
Copy pathcomparison_workbench.html
File metadata and controls
1115 lines (1005 loc) · 45.2 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
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html lang="en" data-theme="dark">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>MazAPI — Interactive Security Platform Comparison Workbench</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&family=Fira+Code:wght@400;500&display=swap" rel="stylesheet">
<style>
:root {
--bg: #070b13;
--surf: #0e1424;
--surf-elevated: #171e35;
--border: rgba(255, 255, 255, 0.08);
--border-glow: rgba(99, 102, 241, 0.35);
--text: #f3f4f6;
--muted: #9ca3af;
--emerald: #10b981;
--emerald-bg: rgba(16, 185, 129, 0.15);
--indigo: #6366f1;
--indigo-bg: rgba(99, 102, 241, 0.15);
--rose: #f43f5e;
--rose-bg: rgba(244, 63, 94, 0.15);
--amber: #f59e0b;
--amber-bg: rgba(245, 158, 11, 0.15);
--radius: 16px;
--shadow-glass: 0 12px 40px 0 rgba(0, 0, 0, 0.45);
--glass-blur: blur(16px) saturate(180%);
}
* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Inter', sans-serif; }
body {
background: var(--bg);
color: var(--text);
min-height: 100vh;
padding: 32px 24px;
background-image:
radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.12) 0%, transparent 40%),
radial-gradient(circle at 90% 80%, rgba(16, 185, 129, 0.12) 0%, transparent 40%);
}
.container {
max-width: 1440px;
margin: 0 auto;
}
header {
margin-bottom: 32px;
text-align: center;
}
.brand-badge {
display: inline-flex;
align-items: center;
gap: 8px;
background: var(--emerald-bg);
color: var(--emerald);
border: 1px solid rgba(16, 185, 129, 0.3);
padding: 6px 14px;
border-radius: 99px;
font-size: 0.85rem;
font-weight: 600;
letter-spacing: 0.5px;
text-transform: uppercase;
margin-bottom: 12px;
}
h1 {
font-family: 'Outfit', sans-serif;
font-size: 2.5rem;
font-weight: 800;
background: linear-gradient(135deg, #ffffff 0%, #a5b4fc 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
margin-bottom: 8px;
}
p.subtitle {
color: var(--muted);
font-size: 1.05rem;
max-width: 760px;
margin: 0 auto;
}
/* Controls Bar */
.controls-bar {
display: flex;
justify-content: space-between;
align-items: center;
gap: 16px;
margin-bottom: 24px;
flex-wrap: wrap;
background: var(--surf);
padding: 16px 20px;
border-radius: var(--radius);
border: 1px solid var(--border);
backdrop-filter: var(--glass-blur);
}
.search-input {
background: var(--bg);
border: 1px solid var(--border);
color: var(--text);
padding: 10px 16px;
border-radius: 10px;
font-size: 0.95rem;
width: 300px;
transition: all 0.2s ease;
}
.search-input:focus {
outline: none;
border-color: var(--indigo);
box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}
.legend {
display: flex;
gap: 16px;
font-size: 0.85rem;
}
.legend-item {
display: flex;
align-items: center;
gap: 6px;
}
.badge {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 4px 10px;
border-radius: 6px;
font-size: 0.8rem;
font-weight: 600;
cursor: pointer;
transition: all 0.2s ease;
user-select: none;
position: relative;
}
.badge-yes { background: var(--emerald-bg); color: var(--emerald); border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-partial { background: var(--amber-bg); color: var(--amber); border: 1px solid rgba(245, 158, 11, 0.3); }
.badge-no { background: var(--rose-bg); color: var(--rose); border: 1px solid rgba(244, 63, 94, 0.3); }
.badge-mazapi { background: linear-gradient(135deg, #059669 0%, #10b981 100%); color: #ffffff; font-weight: 700; }
.badge:hover {
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
/* Comparison Table Container */
.table-wrapper {
background: var(--surf);
border-radius: var(--radius);
border: 1px solid var(--border);
overflow-x: auto;
box-shadow: var(--shadow-glass);
backdrop-filter: var(--glass-blur);
position: relative;
}
table {
width: 100%;
border-collapse: collapse;
text-align: left;
min-width: 1100px;
}
th {
background: var(--surf-elevated);
padding: 16px;
font-size: 0.85rem;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.5px;
color: var(--muted);
border-bottom: 1px solid var(--border);
position: sticky;
top: 0;
z-index: 10;
cursor: pointer;
}
th:hover {
color: #ffffff;
background: rgba(99, 102, 241, 0.15);
}
th.mazapi-header {
color: var(--emerald);
background: rgba(16, 185, 129, 0.08);
border-bottom: 2px solid var(--emerald);
}
td {
padding: 16px;
border-bottom: 1px solid var(--border);
font-size: 0.9rem;
vertical-align: middle;
cursor: pointer;
}
tr:hover td {
background: rgba(255, 255, 255, 0.04);
}
.feature-name {
font-weight: 600;
color: var(--text);
}
.feature-category {
font-size: 0.75rem;
color: var(--muted);
margin-top: 2px;
}
td.mazapi-cell {
background: rgba(16, 185, 129, 0.04);
}
/* Floating Hover Tooltip Popover Card */
.hover-popover {
position: fixed;
z-index: 2000;
width: 320px;
background: #0e1424;
border: 1px solid var(--border-glow);
border-radius: 12px;
padding: 14px 16px;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
pointer-events: none;
opacity: 0;
transform: translateY(6px);
transition: opacity 0.15s ease, transform 0.15s ease;
backdrop-filter: blur(16px);
}
.hover-popover.active {
opacity: 1;
transform: translateY(0);
}
.popover-header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 6px;
}
.popover-title {
font-family: 'Outfit', sans-serif;
font-weight: 700;
font-size: 0.95rem;
color: #ffffff;
}
.popover-badge {
font-size: 0.7rem;
font-weight: 700;
padding: 2px 6px;
border-radius: 4px;
}
.popover-desc {
font-size: 0.82rem;
color: var(--muted);
line-height: 1.45;
margin-bottom: 8px;
}
.popover-footer {
font-size: 0.75rem;
color: var(--indigo);
font-weight: 600;
border-top: 1px solid var(--border);
padding-top: 6px;
}
/* Detail Drawer Modal */
.modal-overlay {
position: fixed;
top: 0; left: 0; right: 0; bottom: 0;
background: rgba(7, 11, 19, 0.85);
backdrop-filter: blur(12px);
display: flex;
justify-content: center;
align-items: center;
z-index: 1000;
opacity: 0;
pointer-events: none;
transition: all 0.3s ease;
}
.modal-overlay.active {
opacity: 1;
pointer-events: auto;
}
.modal-container {
background: var(--surf);
border: 1px solid var(--border-glow);
border-radius: var(--radius);
width: 90%;
max-width: 840px;
max-height: 85vh;
overflow-y: auto;
padding: 32px;
box-shadow: var(--shadow-glass);
transform: scale(0.95) translateY(20px);
transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-overlay.active .modal-container {
transform: scale(1) translateY(0);
}
.modal-header {
display: flex;
justify-content: space-between;
align-items: flex-start;
margin-bottom: 20px;
padding-bottom: 16px;
border-bottom: 1px solid var(--border);
}
.modal-title-group h2 {
font-family: 'Outfit', sans-serif;
font-size: 1.6rem;
color: #ffffff;
margin-bottom: 4px;
}
.modal-close-btn {
background: var(--surf-elevated);
border: 1px solid var(--border);
color: var(--muted);
width: 36px; height: 36px;
border-radius: 50%;
font-size: 1.2rem;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.2s ease;
}
.modal-close-btn:hover {
color: #fff;
background: var(--rose-bg);
border-color: var(--rose);
}
.comparison-split {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 20px;
margin-bottom: 24px;
}
.split-card {
background: var(--surf-elevated);
border-radius: 12px;
padding: 20px;
border: 1px solid var(--border);
}
.split-card.mazapi-card {
border-color: rgba(16, 185, 129, 0.4);
background: rgba(16, 185, 129, 0.05);
}
.split-card.other-card {
border-color: rgba(244, 63, 94, 0.4);
background: rgba(244, 63, 94, 0.05);
}
.split-card h3 {
font-size: 1.1rem;
margin-bottom: 12px;
display: flex;
align-items: center;
gap: 8px;
}
.split-card p {
font-size: 0.9rem;
line-height: 1.6;
color: var(--muted);
}
.impact-box {
background: var(--bg);
border-left: 4px solid var(--amber);
padding: 16px;
border-radius: 8px;
margin-bottom: 24px;
}
.impact-box h4 {
color: var(--amber);
font-size: 0.95rem;
margin-bottom: 6px;
}
.impact-box p {
font-size: 0.88rem;
color: var(--muted);
line-height: 1.5;
}
.code-block {
background: var(--bg);
border: 1px solid var(--border);
border-radius: 8px;
padding: 16px;
font-family: 'Fira Code', monospace;
font-size: 0.85rem;
color: #a5b4fc;
overflow-x: auto;
line-height: 1.5;
}
/* ── Scenario Feature Walkthrough Section ────────────────────────────────── */
.scenario-section {
margin-top: 48px;
margin-bottom: 40px;
}
.scenario-header {
text-align: center;
margin-bottom: 32px;
}
.scenario-header h2 {
font-family: 'Outfit', sans-serif;
font-size: 2rem;
color: #ffffff;
margin-top: 8px;
margin-bottom: 6px;
}
.scenario-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
gap: 24px;
}
.scenario-card {
background: var(--surf);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 26px;
box-shadow: var(--shadow-glass);
backdrop-filter: var(--glass-blur);
transition: all 0.25s ease;
position: relative;
display: flex;
flex-direction: column;
}
.scenario-card:hover {
transform: translateY(-4px);
border-color: var(--border-glow);
box-shadow: 0 16px 40px rgba(99, 102, 241, 0.15);
}
.scenario-icon {
font-size: 2.2rem;
margin-bottom: 12px;
}
.scenario-badge {
position: absolute;
top: 20px;
right: 20px;
background: var(--emerald-bg);
color: var(--emerald);
border: 1px solid rgba(16, 185, 129, 0.3);
padding: 4px 10px;
border-radius: 99px;
font-size: 0.75rem;
font-weight: 700;
text-transform: uppercase;
}
.scenario-card h3 {
font-family: 'Outfit', sans-serif;
font-size: 1.3rem;
color: #ffffff;
margin-bottom: 8px;
}
.target-pill {
background: var(--surf-elevated);
border: 1px solid var(--border);
color: var(--amber);
font-size: 0.78rem;
font-weight: 600;
padding: 4px 10px;
border-radius: 6px;
margin-bottom: 14px;
display: inline-block;
width: fit-content;
}
.scenario-card p {
font-size: 0.9rem;
color: var(--muted);
line-height: 1.55;
margin-bottom: 16px;
}
.scenario-steps {
display: grid;
grid-template-columns: auto 1fr;
gap: 10px 12px;
font-size: 0.86rem;
color: var(--text);
margin-bottom: 16px;
}
.step-num {
background: var(--indigo-bg);
border: 1px solid rgba(99, 102, 241, 0.4);
color: #a5b4fc;
font-weight: 700;
font-size: 0.74rem;
padding: 3px 8px;
border-radius: 4px;
height: fit-content;
}
.result-box {
background: rgba(16, 185, 129, 0.08);
border-left: 3px solid var(--emerald);
padding: 10px 12px;
border-radius: 6px;
font-size: 0.82rem;
color: #34d399;
margin-top: 10px;
margin-bottom: 12px;
}
.scenario-cmd {
background: var(--bg);
border: 1px solid var(--border);
border-radius: 8px;
padding: 12px 14px;
font-family: 'Fira Code', monospace;
font-size: 0.8rem;
color: #38bdf8;
word-break: break-all;
margin-top: auto;
line-height: 1.4;
}
footer {
text-align: center;
margin-top: 40px;
font-size: 0.85rem;
color: var(--muted);
}
</style>
</head>
<body>
<div class="container">
<header>
<div class="brand-badge">⚡ MazAPI Security Workbench</div>
<h1>Interactive API Security Feature Matrix</h1>
<p class="subtitle">Hover over any column header, badge, or row for quick tooltip insights, or click to lock open the full comparative deep-dive drawer.</p>
</header>
<div class="controls-bar">
<input type="text" id="searchInput" class="search-input" placeholder="🔍 Search features, protocols, frameworks..." onkeyup="filterFeatures()">
<div class="legend">
<div class="legend-item"><span class="badge badge-mazapi">MazAPI</span> Native Core</div>
<div class="legend-item"><span class="badge badge-yes">YES</span> Full Support</div>
<div class="legend-item"><span class="badge badge-partial">PARTIAL</span> Limited/Cloud Only</div>
<div class="legend-item"><span class="badge badge-no">NO</span> Lacking / Missing</div>
</div>
</div>
<div class="table-wrapper">
<table id="matrixTable">
<thead>
<tr>
<th style="width: 28%;">Feature / Capability</th>
<th class="mazapi-header" style="width: 14%;" onmouseenter="showToolHeaderPopover(event, 'mazapi')" onmouseleave="hidePopover()">MazAPI (Ours)</th>
<th style="width: 10%;" onmouseenter="showToolHeaderPopover(event, 'apisec')" onmouseleave="hidePopover()">APISec / BOLT</th>
<th style="width: 10%;" onmouseenter="showToolHeaderPopover(event, 'akamai')" onmouseleave="hidePopover()">Akamai/Noname</th>
<th style="width: 10%;" onmouseenter="showToolHeaderPopover(event, 'salt')" onmouseleave="hidePopover()">Salt Security</th>
<th style="width: 10%;" onmouseenter="showToolHeaderPopover(event, 'traceable')" onmouseleave="hidePopover()">Traceable AI</th>
<th style="width: 9%;" onmouseenter="showToolHeaderPopover(event, 'crunch')" onmouseleave="hidePopover()">42Crunch</th>
<th style="width: 9%;" onmouseenter="showToolHeaderPopover(event, 'stackhawk')" onmouseleave="hidePopover()">StackHawk</th>
</tr>
</thead>
<tbody id="tableBody">
</tbody>
</table>
</div>
<!-- 🚀 Scenario Feature Testing Guide Section -->
<section class="scenario-section">
<div class="scenario-header">
<div class="brand-badge" style="background:var(--indigo-bg);color:var(--indigo);border-color:rgba(99,102,241,0.3)">
🧪 Comprehensive Testing Guide
</div>
<h2>How to Test MazAPI Features on External Websites, AI Agents & IoT Devices</h2>
<p class="subtitle">Detailed step-by-step testing workflows with copyable commands, target examples, and expected visual results.</p>
</div>
<div class="scenario-grid">
<!-- Scenario Card 1: External Websites & Web Apps -->
<div class="scenario-card">
<div class="scenario-icon">🌐</div>
<div class="scenario-badge">Browser Extension</div>
<h3>1. Test Chrome Side Panel on Any External Website</h3>
<div class="target-pill">🎯 Target Example: http://localhost:8000/ui or https://jwt.io or your own web app</div>
<p>Intercept live traffic, harvest Bearer tokens, decode JWT claims for <code>alg:none</code> bypasses, and replay tampered BOLA/IDOR requests directly in your browser.</p>
<div class="scenario-steps">
<div class="step-num">Step 1</div><div>Open Chrome or Brave and load the unpacked extension from <code>./mazapi-extension</code> in <code>chrome://extensions</code>.</div>
<div class="step-num">Step 2</div><div>Navigate to your website (e.g., <code>http://localhost:8000/ui</code>) and press <b>Ctrl+Shift+Y</b> (or click extension icon) to open the <b>BOLT Side Panel</b>.</div>
<div class="step-num">Step 3</div><div>Log in as user <code>alice</code> (pass: <code>alice123</code>). Notice the panel automatically captures Bearer tokens and decodes JWT payload claims inline.</div>
<div class="step-num">Step 4</div><div>In the captured endpoint list, click <code>GET /users/1</code>. Change the parameter ID from <code>1</code> to <code>2</code> using <b>Smart Parameter Picker</b>.</div>
<div class="step-num">Step 5</div><div>Click <b>Replay Request</b>. Watch user <code>bob</code>'s private profile exfiltrated directly in the panel.</div>
</div>
<div class="result-box">✅ Expected Output: Panel alerts "Weak Secret (secret)", "Missing Exp Claim", and shows Bob's data on parameter tampering (BOLA Vulnerability Verified).</div>
<div class="scenario-cmd">Extension Folder: ./mazapi-extension (Manifest V3) | Shortcut: Ctrl+Shift+Y</div>
</div>
<!-- Scenario Card 2: AI Agents & LLM Tools -->
<div class="scenario-card">
<div class="scenario-icon">🤖</div>
<div class="scenario-badge">AI Agent Audit</div>
<h3>2. Audit Your AI Agents & Generate CycloneDX AI-BOM</h3>
<div class="target-pill">🎯 Target Example: LangChain, CrewAI, AutoGen, Swarm, Bedrock Agent Python files</div>
<p>Audit autonomous AI agent graphs for authorization gaps, unconstrained shell execution, confused deputy risks, and cyber-physical actuation violations.</p>
<div class="scenario-steps">
<div class="step-num">Step 1</div><div>Open terminal in your project workspace directory.</div>
<div class="step-num">Step 2</div><div>Run AI Agent auditor with regulatory governance flags (EU AI Act Art. 14/15, NIST AI RMF, ISO 42001):</div>
</div>
<div class="scenario-cmd">python api-security-project/cli.py agent-audit scan ./api-security-project/agent_audit --governance</div>
<div class="scenario-steps" style="margin-top:10px">
<div class="step-num">Step 3</div><div>Export a structured CycloneDX 1.6 Artificial Intelligence Bill of Materials (AI-BOM) for your model pipeline:</div>
</div>
<div class="scenario-cmd">python api-security-project/cli.py agent-audit scan ./api-security-project/agent_audit --format ai-bom -o ./ai-bom.json</div>
<div class="result-box">✅ Expected Output: Flags 'unlock_door' tool executing without Human-in-the-Loop approval & generates compliant ai-bom.json detailing models & tool sinks.</div>
</div>
<!-- Scenario Card 3: Embedded IoT Microcontrollers & Devices -->
<div class="scenario-card">
<div class="scenario-icon">📡</div>
<div class="scenario-badge">IoT & Edge Security</div>
<h3>3. Audit Embedded IoT Devices, Microcontrollers & OTA</h3>
<div class="target-pill">🎯 Target Example: ESP32 / Arduino C/C++ firmware (.ino, .cpp), MQTT brokers, CoAP servers</div>
<p>Parse C/C++ AST syntax trees for microcontroller routes, audit MQTT broker wildcard ACLs, CoAP reflection, and unsigned OTA firmware updates.</p>
<div class="scenario-steps">
<div class="step-num">Step 1</div><div>Scan embedded C/C++ microcontroller source files (ESP-IDF <code>httpd_register_uri_handler</code>, Arduino WebServer):</div>
</div>
<div class="scenario-cmd">python api-security-project/cli.py app-surface scan ./api-security-project/vulnerable-api --format table</div>
<div class="scenario-steps" style="margin-top:10px">
<div class="step-num">Step 2</div><div>Run dynamic IoT vulnerability probes against your live target device or local API container:</div>
</div>
<div class="scenario-cmd">python api-security-project/cli.py iot-audit --target http://localhost:8000</div>
<div class="result-box">✅ Expected Output: Uncovers IOT-OTA-01 (Unauthenticated & Unsigned Firmware Upload) and IOT-ACT-01 (Unauthenticated Door Lock Actuation).</div>
</div>
<!-- Scenario Card 4: Active DAST Security Scanner -->
<div class="scenario-card">
<div class="scenario-icon">🎯</div>
<div class="scenario-badge">Active DAST Scanner</div>
<h3>4. Run Active DAST Scans Against Your Live REST APIs</h3>
<p>Execute zero-egress dynamic security probes testing OWASP API Top 10 (SQLi, BOLA, BFLA, CORS, Rate Limiting, SSRF) against any URL.</p>
<div class="scenario-steps">
<div class="step-num">Step 1</div><div>Target your local, staging, or production REST API with Bearer JWT token authentication:</div>
</div>
<div class="scenario-cmd">python api-security-project/cli.py scan --target http://localhost:8000 --auth "Bearer YOUR_JWT_TOKEN"</div>
<div class="scenario-steps" style="margin-top:10px">
<div class="step-num">Step 2</div><div>Export scan results as GitHub SARIF 2.1.0 format for automated CI/CD PR checks:</div>
</div>
<div class="scenario-cmd">python api-security-project/cli.py scan --target http://localhost:8000 --format sarif -o ./scan-results.sarif</div>
<div class="result-box">✅ Expected Output: Generates detailed scorecard detailing vulnerable endpoints, actual payloads, severity ratings, and remediation steps.</div>
</div>
<!-- Scenario Card 5: PR-Time AST Discovery & Diff Engine -->
<div class="scenario-card">
<div class="scenario-icon">⚡</div>
<div class="scenario-badge">AST Surface Engine</div>
<h3>5. Scan Source Code AST & Git PR Shadow Route Diffs</h3>
<div class="target-pill">🎯 Target Example: Python, Node.js, Java, .NET, Go, PHP, C/C++ git repos</div>
<p>Extract API endpoints straight from source code syntax trees before building Docker images or deploying code to production.</p>
<div class="scenario-steps">
<div class="step-num">Step 1</div><div>Run multi-language AST surface discovery on your project directory:</div>
</div>
<div class="scenario-cmd">python api-security-project/cli.py app-surface scan ./api-security-project/vulnerable-api --format table</div>
<div class="scenario-steps" style="margin-top:10px">
<div class="step-num">Step 2</div><div>Compare two Git branches (or PR Base vs Head) to catch undocumented shadow APIs:</div>
</div>
<div class="scenario-cmd">python api-security-project/cli.py app-surface diff --base main --head feature-branch /path/to/repo</div>
<div class="result-box">✅ Expected Output: Displays grade (e.g. Grade F 50/100), 45 mapped endpoints, missing auth flags, and newly introduced shadow routes.</div>
</div>
<!-- Scenario Card 6: Real-Time ML Anomaly Proxy -->
<div class="scenario-card">
<div class="scenario-icon">🛡️</div>
<div class="scenario-badge">ML Anomaly Proxy</div>
<h3>6. Monitor Live Microservice Traffic & ML Threat Detector</h3>
<div class="target-pill">🎯 Target Example: http://localhost:9000/dashboard & http://localhost:9000 proxy</div>
<p>Inspect incoming HTTP traffic in real-time through a 32-feature Random Forest & Isolation Forest ML ensemble model (99.73% accuracy).</p>
<div class="scenario-steps">
<div class="step-num">Step 1</div><div>Open <code>http://localhost:9000/dashboard</code> in your web browser.</div>
<div class="step-num">Step 2</div><div>Send normal vs malicious attack traffic through the proxy using terminal:</div>
</div>
<div class="scenario-cmd">python api-security-project/rate_limit_demo.py</div>
<div class="scenario-steps" style="margin-top:10px">
<div class="step-num">Step 3</div><div>Observe live threat classification, anomaly scores (-0.95), and explainable attack type badges (SQLi, BOLA, IoT OTA Tampering).</div>
</div>
<div class="result-box">✅ Expected Output: Dashboard streams live intercepted requests, flags anomalies instantly with zero cloud egress, and auto-blocks high-risk attacks.</div>
</div>
</div>
</section>
<footer>
<p>MazAPI Security Platform — Open-Source Zero-Egress API & AI Intelligence Architecture</p>
</footer>
</div>
<!-- Dynamic Hover Popover Card -->
<div class="hover-popover" id="hoverPopover">
<div class="popover-header">
<div class="popover-title" id="popoverTitle">Title</div>
<div class="popover-badge" id="popoverBadge">STATUS</div>
</div>
<div class="popover-desc" id="popoverDesc">Description goes here...</div>
<div class="popover-footer" id="popoverFooter">💡 Click row for full technical deep-dive →</div>
</div>
<!-- Interactive Deep-Dive Modal -->
<div class="modal-overlay" id="detailModal">
<div class="modal-container">
<div class="modal-header">
<div class="modal-title-group">
<h2 id="modalFeatureTitle">Feature Title</h2>
<span class="brand-badge" id="modalCategoryBadge">Category</span>
</div>
<button class="modal-close-btn" onclick="closeModal()">✕</button>
</div>
<div class="comparison-split">
<div class="split-card mazapi-card">
<h3>🛡️ MazAPI Platform (Ours)</h3>
<p id="modalMazapiDesc">MazAPI full native implementation details.</p>
</div>
<div class="split-card other-card">
<h3 id="modalOtherTitle">⚠️ Industry / Competitor Status</h3>
<p id="modalOtherDesc">What other tools are lacking or require SaaS subscription for.</p>
</div>
</div>
<div class="impact-box">
<h4>⚡ Architectural Security Impact & Why It Matters</h4>
<p id="modalImpactDesc">Impact statement describing the operational and security risk.</p>
</div>
<div class="code-block" id="modalCodeSnippet">
// Code or CLI snippet demonstration
</div>
</div>
</div>
<script>
const TOOL_INFO = {
mazapi: { name: "MazAPI Platform", type: "Unified Security Intelligence", model: "100% Local Zero-Egress", desc: "Shift-Left static AST parsing, AsyncAPI 3.0 synthesis, active DAST, AI Agent rules, and real-time ML anomaly proxy." },
apisec: { name: "APISec / BOLT", type: "Active Scanner & Surface", model: "Cloud SaaS Required", desc: "Focuses on static OpenAPI linting and cloud DAST scanning. Lacks C/C++ IoT parsing, AsyncAPI, and offline zero-egress." },
akamai: { name: "Akamai / Noname", type: "Enterprise Gateway WAF", model: "Cloud / On-Prem", desc: "Inspects API gateway traffic at runtime. Lacks PR-time AST code parsing, AI Agent BOMs, and local-first execution." },
salt: { name: "Salt Security", type: "Enterprise API Protection", model: "Cloud SaaS Required", desc: "Uses behavioral baselining on cloud gateways. Does not scan source code, AI tools, MCP servers, or IoT microcontrollers." },
traceable: { name: "Traceable AI", type: "eBPF API Security", model: "Hybrid Cloud", desc: "Deploys eBPF kernel agents for traffic collection. Requires cloud telemetry and lacks static IoT firmware AST parsing." },
crunch: { name: "42Crunch", type: "OpenAPI Spec Security", model: "Cloud / IDE", desc: "Lints OpenAPI 3.0 YAML/JSON files. Does not parse source code ASTs, active DAST vulnerabilities, or ML anomalies." },
stackhawk: { name: "StackHawk", type: "ZAP-based DAST Scanner", model: "Cloud SaaS", desc: "Runs OWASP ZAP vulnerability scans in CI/CD pipelines. Lacks AST surface discovery, ML anomaly proxy, and AI-BOMs." }
};
const COMPARISON_DATA = [
{
id: "ast_discovery",
category: "Static AST Discovery",
name: "PR-Time Multi-Language AST Discovery",
desc: "Parses source code syntax trees at Pull Request time to map routes, HTTP methods, and parameters without running the application.",
mazapi: { status: "YES", text: "Yes (7 Langs)" },
apisec: { status: "PARTIAL", text: "3 Langs" },
akamai: { status: "NO", text: "NO" },
salt: { status: "NO", text: "NO" },
traceable: { status: "PARTIAL", text: "eBPF Agent" },
crunch: { status: "PARTIAL", text: "Spec Only" },
stackhawk: { status: "NO", text: "NO" },
mazapi_deep: "Native AST syntax tree extraction across 7 enterprise ecosystems: Python (FastAPI, Flask, Django), Node.js (Express, NestJS), Java (Spring Boot), .NET (C#), Go (Gin, Echo), PHP (Laravel), and C/C++ (ESP-IDF, Arduino).",
other_deep: "Enterprise tools (Salt, Noname, StackHawk) require deployed running instances or gateway proxies. They cannot inspect source code at PR time to stop vulnerabilities before deployment.",
impact: "PR-time AST discovery enables zero-latency Shift-Left security, blocking undocumented endpoints and authorization gaps before code reaches production servers.",
snippet: "$ python cli.py app-surface scan ./vulnerable-api --format table\n[+] Mapped 45 endpoints across Python, Node.js, and C/C++ AST syntax trees."
},
{
id: "cpp_iot",
category: "IoT & Edge AST Parsing",
name: "Embedded C/C++ & Microcontroller AST Parser",
desc: "Extracts REST, MQTT, and CoAP endpoints from embedded C/C++ microcontroller code (ESP32, Arduino, FreeRTOS).",
mazapi: { status: "YES", text: "Yes (ESP/Arduino)" },
apisec: { status: "NO", text: "NO" },
akamai: { status: "NO", text: "NO" },
salt: { status: "NO", text: "NO" },
traceable: { status: "NO", text: "NO" },
crunch: { status: "NO", text: "NO" },
stackhawk: { status: "NO", text: "NO" },
mazapi_deep: "Parses C/C++ embedded files (.c, .cpp, .ino, .h) to discover ESP-IDF httpd_register_uri_handler, Arduino WebServer, FreeRTOS MQTT subscriptions, and CoAP resource handlers.",
other_deep: "No commercial API scanner (APISec, Salt, Noname, 42Crunch) supports embedded microcontroller AST parsing for IoT firmware source code.",
impact: "Prevents firmware update hijacking, unauthenticated door lock actuation, and cleartext sensor telemetry leaks in connected smart devices.",
snippet: "httpd_uri_t uri_get = { .uri = \"/api/v1/iot/telemetry\", .method = HTTP_GET };\nesp_mqtt_client_subscribe(client, \"/home/actuator/lock\", 0);"
},
{
id: "asyncapi_spec",
category: "Spec Synthesis",
name: "AsyncAPI 3.0 & OpenAPI 3.0 Auto-Synthesis",
desc: "Synthesizes event-driven AsyncAPI 3.0 specs alongside REST OpenAPI 3.0 specs straight from source code.",
mazapi: { status: "YES", text: "Yes (Both)" },
apisec: { status: "PARTIAL", text: "OpenAPI Only" },
akamai: { status: "PARTIAL", text: "Gateway Only" },
salt: { status: "PARTIAL", text: "Gateway Only" },
traceable: { status: "PARTIAL", text: "Gateway Only" },
crunch: { status: "PARTIAL", text: "OpenAPI Only" },
stackhawk: { status: "NO", text: "NO" },
mazapi_deep: "Generates AsyncAPI 3.0 JSON/YAML specifications documenting MQTT pub/sub topics, CoAP channels, and message payload schemas directly from static code.",
other_deep: "Existing tools focus exclusively on REST/GraphQL OpenAPI 3.0. They lack support for synthesizing AsyncAPI specifications for event-driven pub/sub channels.",
impact: "Enables comprehensive governance and documentation across both synchronous REST APIs and event-driven pub/sub IoT message channels.",
snippet: "$ python cli.py app-surface scan ./vulnerable-api --format asyncapi -o ./asyncapi.json\n[+] Exported AsyncAPI 3.0 spec for MQTT & CoAP channels."
},
{
id: "iot_dast",
category: "IoT Dynamic Security",
name: "IoT & Edge Protocol Security Scanner (MQTT/CoAP/OTA)",
desc: "Audits MQTT broker ACLs, CoAP UDP reflection, cleartext telemetry, and unsigned OTA firmware update endpoints.",
mazapi: { status: "YES", text: "Yes (Local)" },
apisec: { status: "NO", text: "NO" },
akamai: { status: "PARTIAL", text: "Basic MQTT" },
salt: { status: "PARTIAL", text: "Basic MQTT" },
traceable: { status: "PARTIAL", text: "Basic MQTT" },
crunch: { status: "NO", text: "NO" },
stackhawk: { status: "NO", text: "NO" },
mazapi_deep: "Includes dedicated dynamic probes (OWASP IoT Top 10) testing for unauthenticated /api/v1/iot/ota/upload, unauthenticated physical actuator triggers, and MQTT wildcard '#' topic hijacking.",
other_deep: "Traditional web DAST tools (StackHawk, OWASP ZAP, APISec) omit IoT specific protocol checks such as CoAP UDP reflection and unsigned firmware binary uploads.",
impact: "Blocks rogue firmware flashing attacks and unauthorized physical actuation triggers on connected edge devices.",
snippet: "$ python cli.py iot-audit --target http://localhost:8000\n[CRITICAL] IOT-OTA-01: Unauthenticated & Unsigned OTA Firmware Upload accepted."
},
{
id: "ai_agent_audit",
category: "AI Agent Security",
name: "AI Agent & LLM Supply-Chain Security Audit",
desc: "Audits autonomous AI agent workflows (11+ frameworks) for confused deputy, excessive agency, and key leakage.",
mazapi: { status: "YES", text: "Yes (11+ Fwks)" },
apisec: { status: "PARTIAL", text: "Basic Config" },
akamai: { status: "NO", text: "NO" },
salt: { status: "NO", text: "NO" },
traceable: { status: "PARTIAL", text: "Firewall Only" },
crunch: { status: "NO", text: "NO" },
stackhawk: { status: "NO", text: "NO" },
mazapi_deep: "Audits 11+ AI Agent frameworks (LangChain, LangGraph, CrewAI, AutoGen, Swarm, Bedrock Agents) for authorization gaps, unconstrained shell execution, and hardcoded provider keys.",
other_deep: "Enterprise API platforms do not inspect LLM tool call definitions or autonomous agent graphs, leaving AI tool execution unmonitored.",
impact: "Prevents prompt injection attacks from triggering unauthorized OS commands or database mutations via AI agent tools.",
snippet: "$ python cli.py agent-audit scan ./agent_src --governance\n[HIGH] Cyber-Physical Actuation Tool 'unlock_door' lacks Human-In-The-Loop approval."
},
{
id: "cyber_physical_ai",
category: "AI Cyber-Physical",
name: "Cyber-Physical AI Actuation Guardrails",
desc: "Identifies AI Agent tools triggering physical actuators (locks, motors, relays, valves) without Human-in-the-Loop oversight.",
mazapi: { status: "YES", text: "Yes (Native)" },
apisec: { status: "NO", text: "NO" },
akamai: { status: "NO", text: "NO" },
salt: { status: "NO", text: "NO" },
traceable: { status: "NO", text: "NO" },
crunch: { status: "NO", text: "NO" },
stackhawk: { status: "NO", text: "NO" },
mazapi_deep: "Enforces strict safety guardrail rules on AI Agent tools that interact with physical infrastructure, mapping findings directly to EU AI Act Art. 14 and NIST AI RMF MANAGE 2.4.",
other_deep: "No existing commercial or open-source scanner correlates AI agent tool definitions with physical actuator control safety bounds.",
impact: "Protects physical infrastructure, smart buildings, and industrial systems from automated rogue AI actuation.",
snippet: "@tool\ndef unlock_door_tool(device_id: str):\n return execute_actuator_unlock(device_id) # Flagged: Missing HITL confirmation"
},
{
id: "ai_bom",
category: "AI Compliance",
name: "CycloneDX 1.6 AI-BOM Generation",
desc: "Generates structured Artificial Intelligence Software Bill of Materials (AI-BOM) tracking models, datasets, and tool sinks.",
mazapi: { status: "YES", text: "Yes (CycloneDX)" },
apisec: { status: "NO", text: "NO" },
akamai: { status: "NO", text: "NO" },
salt: { status: "NO", text: "NO" },
traceable: { status: "NO", text: "NO" },
crunch: { status: "NO", text: "NO" },
stackhawk: { status: "NO", text: "NO" },
mazapi_deep: "Produces valid CycloneDX 1.6 JSON/XML AI-BOM specifications detailing LLM model endpoints, vector store configurations, data flows, and tool execution boundaries.",
other_deep: "Standard software BOM generators track npm/pip dependencies but omit AI models, prompt templates, and vector store retrieval pipelines.",
impact: "Ensures compliance with EU AI Act documentation requirements and provides complete supply-chain visibility into deployed AI components.",
snippet: "$ python cli.py agent-audit scan . --format ai-bom -o ./ai-bom.json"
},
{
id: "mcp_audit",
category: "MCP Security",
name: "Model Context Protocol (MCP) Auditor",
desc: "Evaluates IDE and desktop MCP server configurations against 50+ known servers and scans custom MCP code for injection sinks.",
mazapi: { status: "YES", text: "Yes (50+ Reg)" },
apisec: { status: "PARTIAL", text: "Config Only" },
akamai: { status: "NO", text: "NO" },
salt: { status: "NO", text: "NO" },
traceable: { status: "NO", text: "NO" },
crunch: { status: "NO", text: "NO" },
stackhawk: { status: "NO", text: "NO" },
mazapi_deep: "Scans Claude Desktop, Cursor, and VS Code MCP settings files while performing static AST source code scans on custom Python and Node.js MCP server implementations.",
other_deep: "Commercial tools ignore the Model Context Protocol ecosystem, allowing malicious MCP tools to execute commands inside developer IDEs.",
impact: "Secures developer workspaces against malicious third-party MCP extensions and unconstrained local filesystem access.",
snippet: "$ python cli.py mcp-audit source-scan ./custom-mcp-server/\n[CRITICAL] Shell injection in MCP tool handler 'execute_cmd' (line 42)."
},
{
id: "side_panel",
category: "Browser Interception",
name: "Manifest V3 Browser Side Panel Workbench",
desc: "Persistent Chrome/Brave Side Panel workbench for live token harvesting, JWT inspection, and BOLA/IDOR replay.",
mazapi: { status: "YES", text: "Yes (Side Panel)" },
apisec: { status: "PARTIAL", text: "Popup Only" },
akamai: { status: "NO", text: "NO" },
salt: { status: "NO", text: "NO" },
traceable: { status: "NO", text: "NO" },
crunch: { status: "NO", text: "NO" },
stackhawk: { status: "NO", text: "NO" },
mazapi_deep: "Utilizes Chrome Manifest V3 Side Panel API to run persistent traffic discovery, harvest Bearer tokens, decode JWT payloads (detecting alg:none bypasses), and replay tampered BOLA requests.",
other_deep: "APISec uses a standard popup window that closes when clicking off. Enterprise platforms (Salt, Noname) rely on gateway agents and offer no browser developer workbench.",
impact: "Accelerates interactive API security testing directly in the developer's browser workspace without requiring complex proxy setups.",
snippet: "// Live JWT Inspection in MazAPI Side Panel:\nAlert: Token uses weak secret 'secret' & lacks expiration claim 'exp'."
},
{
id: "zero_egress",
category: "Privacy & Deployment",
name: "100% Local Zero-Egress Architecture",
desc: "Executes 100% locally on-device without cloud telemetry egress, external SaaS servers, or paid subscriptions.",
mazapi: { status: "YES", text: "100% Local" },
apisec: { status: "NO", text: "Cloud SaaS" },
akamai: { status: "PARTIAL", text: "Hybrid" },
salt: { status: "NO", text: "Cloud SaaS" },
traceable: { status: "PARTIAL", text: "Hybrid" },
crunch: { status: "PARTIAL", text: "Cloud/IDE" },
stackhawk: { status: "NO", text: "Cloud SaaS" },
mazapi_deep: "Operates completely zero-egress inside standard Docker environments or local developer machines. No request data, source code, or traffic logs leave the local network.",
other_deep: "APISec, Salt, and StackHawk require cloud SaaS backend accounts to process traffic and run scans, posing data privacy risks under GDPR/PCI-DSS.",
impact: "Guarantees complete data privacy and enables security testing in air-gapped, high-security, or defense environments.",
snippet: "Docker Compose Stack: 100% Local on localhost:8000, 8001, 8002, 9000. Zero telemetry egress."
},
{
id: "ml_ensemble",
category: "ML Threat Detection",
name: "Calibrated 32-Feature ML Threat Ensemble",
desc: "Dual-model ensemble (Calibrated Random Forest + Isolation Forest) achieving 99.73% accuracy in real-time threat detection.",
mazapi: { status: "YES", text: "Yes (99.73% RF)" },
apisec: { status: "PARTIAL", text: "Heuristic" },
akamai: { status: "YES", text: "Behavioral" },
salt: { status: "YES", text: "Baseline" },
traceable: { status: "YES", text: "eBPF ML" },
crunch: { status: "NO", text: "NO" },
stackhawk: { status: "NO", text: "NO" },
mazapi_deep: "Engineers a 32-dimensional feature vector (entropy, path depth, signature densities, burst timing) and runs a dual ensemble model delivering 99.73% validation accuracy and 2.17% false-positive rate.",
other_deep: "42Crunch and StackHawk have no machine learning capabilities. APISec relies primarily on static heuristics.",
impact: "Detects zero-day API attack patterns and anomaly signatures in real-time without relying solely on known static signatures.",
snippet: "[ML Ensemble] Threat Detected: SQL Injection Payload (Confidence: 0.985, Model: CalibratedRF+IF)"
}
];
function renderTable() {
const tbody = document.getElementById("tableBody");
tbody.innerHTML = "";
COMPARISON_DATA.forEach((row, rIdx) => {
const tr = document.createElement("tr");
tr.onclick = () => openModal(row.id);
tr.onmouseenter = (e) => showRowPopover(e, row);
tr.onmouseleave = () => hidePopover();
tr.innerHTML = `
<td>
<div class="feature-name">${row.name}</div>
<div class="feature-category">${row.category}</div>
</td>
<td class="mazapi-cell" onmouseenter="showCellPopover(event, '${row.id}', 'mazapi')"><span class="badge badge-mazapi">${row.mazapi.text}</span></td>
<td onmouseenter="showCellPopover(event, '${row.id}', 'apisec')"><span class="badge ${getBadgeClass(row.apisec.status)}">${row.apisec.text}</span></td>
<td onmouseenter="showCellPopover(event, '${row.id}', 'akamai')"><span class="badge ${getBadgeClass(row.akamai.status)}">${row.akamai.text}</span></td>
<td onmouseenter="showCellPopover(event, '${row.id}', 'salt')"><span class="badge ${getBadgeClass(row.salt.status)}">${row.salt.text}</span></td>
<td onmouseenter="showCellPopover(event, '${row.id}', 'traceable')"><span class="badge ${getBadgeClass(row.traceable.status)}">${row.traceable.text}</span></td>
<td onmouseenter="showCellPopover(event, '${row.id}', 'crunch')"><span class="badge ${getBadgeClass(row.crunch.status)}">${row.crunch.text}</span></td>
<td onmouseenter="showCellPopover(event, '${row.id}', 'stackhawk')"><span class="badge ${getBadgeClass(row.stackhawk.status)}">${row.stackhawk.text}</span></td>
`;