-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathinsecure-server.report.sarif
More file actions
838 lines (838 loc) · 28.6 KB
/
insecure-server.report.sarif
File metadata and controls
838 lines (838 loc) · 28.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
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
{
"$schema": "https://json.schemastore.org/sarif-2.1.0.json",
"version": "2.1.0",
"runs": [
{
"tool": {
"driver": {
"name": "MCP Scorecard",
"semanticVersion": "1.0.0",
"rules": [
{
"id": "duplicate_tool_names",
"name": "Duplicate tool names",
"shortDescription": {
"text": "Duplicate tool names"
},
"fullDescription": {
"text": "Tool names should be unique within one MCP server."
},
"defaultConfiguration": {
"level": "error"
},
"help": {
"text": "Tool names should be unique within one MCP server. Severity: error. Score impact: 20."
},
"properties": {
"tags": [
"tools",
"identity",
"tool-identity",
"metadata_hygiene",
"conformance"
],
"precision": "medium",
"problem.severity": "error",
"risk_category": "metadata_hygiene",
"bucket": "conformance",
"score_impact": 20
}
},
{
"id": "missing_tool_description",
"name": "Missing tool description",
"shortDescription": {
"text": "Missing tool description"
},
"fullDescription": {
"text": "Each tool should include a non-empty description."
},
"defaultConfiguration": {
"level": "warning"
},
"help": {
"text": "Each tool should include a non-empty description. Severity: warning. Score impact: 10."
},
"properties": {
"tags": [
"tools",
"description",
"tool-description",
"metadata_hygiene",
"metadata"
],
"precision": "medium",
"problem.severity": "warning",
"risk_category": "metadata_hygiene",
"bucket": "metadata",
"score_impact": 10
}
},
{
"id": "overly_generic_tool_name",
"name": "Overly generic tool name",
"shortDescription": {
"text": "Overly generic tool name"
},
"fullDescription": {
"text": "Tool names should communicate behavior clearly."
},
"defaultConfiguration": {
"level": "warning"
},
"help": {
"text": "Tool names should communicate behavior clearly. Severity: warning. Score impact: 10."
},
"properties": {
"tags": [
"tools",
"identity",
"tool-identity",
"metadata_hygiene",
"ergonomics"
],
"precision": "medium",
"problem.severity": "warning",
"risk_category": "metadata_hygiene",
"bucket": "ergonomics",
"score_impact": 10
}
},
{
"id": "vague_tool_description",
"name": "Vague tool description",
"shortDescription": {
"text": "Vague tool description"
},
"fullDescription": {
"text": "Tool descriptions should clearly explain what the tool does."
},
"defaultConfiguration": {
"level": "warning"
},
"help": {
"text": "Tool descriptions should clearly explain what the tool does. Severity: warning. Score impact: 10."
},
"properties": {
"tags": [
"tools",
"description",
"tool-description",
"metadata_hygiene",
"ergonomics"
],
"precision": "medium",
"problem.severity": "warning",
"risk_category": "metadata_hygiene",
"bucket": "ergonomics",
"score_impact": 10
}
},
{
"id": "missing_schema_type",
"name": "Missing schema type",
"shortDescription": {
"text": "Missing schema type"
},
"fullDescription": {
"text": "Tool input schemas should declare a top-level type."
},
"defaultConfiguration": {
"level": "warning"
},
"help": {
"text": "Tool input schemas should declare a top-level type. Severity: warning. Score impact: 10."
},
"properties": {
"tags": [
"schema",
"validation",
"input-schema",
"schema_hygiene",
"conformance"
],
"precision": "medium",
"problem.severity": "warning",
"risk_category": "schema_hygiene",
"bucket": "conformance",
"score_impact": 10
}
},
{
"id": "schema_allows_arbitrary_properties",
"name": "Schema allows arbitrary properties",
"shortDescription": {
"text": "Schema allows arbitrary properties"
},
"fullDescription": {
"text": "Tool input schemas should not allow arbitrary top-level properties."
},
"defaultConfiguration": {
"level": "warning"
},
"help": {
"text": "Tool input schemas should not allow arbitrary top-level properties. Severity: warning. Score impact: 10."
},
"properties": {
"tags": [
"schema",
"validation",
"input-schema",
"schema_hygiene",
"conformance"
],
"precision": "medium",
"problem.severity": "warning",
"risk_category": "schema_hygiene",
"bucket": "conformance",
"score_impact": 10
}
},
{
"id": "weak_input_schema",
"name": "Weak input schema",
"shortDescription": {
"text": "Weak input schema"
},
"fullDescription": {
"text": "Tool input schemas should constrain free-form payloads clearly."
},
"defaultConfiguration": {
"level": "warning"
},
"help": {
"text": "Tool input schemas should constrain free-form payloads clearly. Severity: warning. Score impact: 10."
},
"properties": {
"tags": [
"schema",
"validation",
"input-schema",
"schema_hygiene",
"ergonomics"
],
"precision": "medium",
"problem.severity": "warning",
"risk_category": "schema_hygiene",
"bucket": "ergonomics",
"score_impact": 10
}
},
{
"id": "missing_required_for_critical_fields",
"name": "Missing required critical fields",
"shortDescription": {
"text": "Missing required critical fields"
},
"fullDescription": {
"text": "Critical schema fields such as path, command, or URL should be required."
},
"defaultConfiguration": {
"level": "warning"
},
"help": {
"text": "Critical schema fields such as path, command, or URL should be required. Severity: warning. Score impact: 10."
},
"properties": {
"tags": [
"schema",
"validation",
"input-schema",
"schema_hygiene",
"conformance"
],
"precision": "medium",
"problem.severity": "warning",
"risk_category": "schema_hygiene",
"bucket": "conformance",
"score_impact": 10
}
},
{
"id": "dangerous_exec_tool",
"name": "Dangerous execution tool",
"shortDescription": {
"text": "Dangerous execution tool"
},
"fullDescription": {
"text": "Tools that execute host shell commands are high risk."
},
"defaultConfiguration": {
"level": "error"
},
"help": {
"text": "Tools that execute host shell commands are high risk. Severity: error. Score impact: 20."
},
"properties": {
"tags": [
"capability",
"execution",
"command_execution",
"security"
],
"precision": "medium",
"problem.severity": "error",
"risk_category": "command_execution",
"bucket": "security",
"score_impact": 20
}
},
{
"id": "dangerous_shell_download_exec",
"name": "Dangerous download-and-execute tool",
"shortDescription": {
"text": "Dangerous download-and-execute tool"
},
"fullDescription": {
"text": "Tools that combine remote download with shell execution are high risk."
},
"defaultConfiguration": {
"level": "error"
},
"help": {
"text": "Tools that combine remote download with shell execution are high risk. Severity: error. Score impact: 20."
},
"properties": {
"tags": [
"capability",
"execution",
"network",
"command_execution",
"security"
],
"precision": "medium",
"problem.severity": "error",
"risk_category": "command_execution",
"bucket": "security",
"score_impact": 20
}
},
{
"id": "dangerous_fs_write_tool",
"name": "Dangerous filesystem write tool",
"shortDescription": {
"text": "Dangerous filesystem write tool"
},
"fullDescription": {
"text": "Tools that write files on disk are high risk."
},
"defaultConfiguration": {
"level": "error"
},
"help": {
"text": "Tools that write files on disk are high risk. Severity: error. Score impact: 20."
},
"properties": {
"tags": [
"capability",
"filesystem",
"file_system",
"security"
],
"precision": "medium",
"problem.severity": "error",
"risk_category": "file_system",
"bucket": "security",
"score_impact": 20
}
},
{
"id": "dangerous_fs_delete_tool",
"name": "Dangerous filesystem delete tool",
"shortDescription": {
"text": "Dangerous filesystem delete tool"
},
"fullDescription": {
"text": "Tools that delete files or directories are high risk."
},
"defaultConfiguration": {
"level": "error"
},
"help": {
"text": "Tools that delete files or directories are high risk. Severity: error. Score impact: 20."
},
"properties": {
"tags": [
"capability",
"filesystem",
"destructive",
"file_system",
"security"
],
"precision": "medium",
"problem.severity": "error",
"risk_category": "file_system",
"bucket": "security",
"score_impact": 20
}
},
{
"id": "dangerous_http_request_tool",
"name": "Dangerous HTTP request tool",
"shortDescription": {
"text": "Dangerous HTTP request tool"
},
"fullDescription": {
"text": "Tools that issue arbitrary HTTP requests are high risk."
},
"defaultConfiguration": {
"level": "error"
},
"help": {
"text": "Tools that issue arbitrary HTTP requests are high risk. Severity: error. Score impact: 20."
},
"properties": {
"tags": [
"capability",
"network",
"http",
"security"
],
"precision": "medium",
"problem.severity": "error",
"risk_category": "network",
"bucket": "security",
"score_impact": 20
}
},
{
"id": "dangerous_network_tool",
"name": "Dangerous network tool",
"shortDescription": {
"text": "Dangerous network tool"
},
"fullDescription": {
"text": "Tools that expose generic network access are high risk."
},
"defaultConfiguration": {
"level": "error"
},
"help": {
"text": "Tools that expose generic network access are high risk. Severity: error. Score impact: 20."
},
"properties": {
"tags": [
"capability",
"network",
"security"
],
"precision": "medium",
"problem.severity": "error",
"risk_category": "network",
"bucket": "security",
"score_impact": 20
}
},
{
"id": "write_tool_without_scope_hint",
"name": "Write tool without scope hint",
"shortDescription": {
"text": "Write tool without scope hint"
},
"fullDescription": {
"text": "Filesystem mutation tools should document scope constraints clearly."
},
"defaultConfiguration": {
"level": "warning"
},
"help": {
"text": "Filesystem mutation tools should document scope constraints clearly. Severity: warning. Score impact: 10."
},
"properties": {
"tags": [
"capability",
"filesystem",
"scope",
"external_side_effects",
"ergonomics"
],
"precision": "medium",
"problem.severity": "warning",
"risk_category": "external_side_effects",
"bucket": "ergonomics",
"score_impact": 10
}
},
{
"id": "tool_description_mentions_destructive_access",
"name": "Description mentions destructive access",
"shortDescription": {
"text": "Description mentions destructive access"
},
"fullDescription": {
"text": "Tool descriptions should make destructive broad-scope access easy to spot."
},
"defaultConfiguration": {
"level": "warning"
},
"help": {
"text": "Tool descriptions should make destructive broad-scope access easy to spot. Severity: warning. Score impact: 10."
},
"properties": {
"tags": [
"tools",
"description",
"destructive",
"capability",
"external_side_effects",
"metadata"
],
"precision": "medium",
"problem.severity": "warning",
"risk_category": "external_side_effects",
"bucket": "metadata",
"score_impact": 10
}
}
]
}
},
"invocations": [
{
"executionSuccessful": true,
"endTimeUtc": "2026-04-09T16:08:35.505980+00:00",
"workingDirectory": {
"uri": "file:///D:/Dev/MCP%20Trust%20Kit"
}
}
],
"properties": {
"product_name": "MCP Scorecard",
"tool_name": "mcp-scorecard",
"report_schema_id": "mcp-scorecard-report",
"report_schema_version": "1.0",
"scan_timestamp": "2026-04-09T16:08:35.505980+00:00",
"total_score": 10,
"category_scores": {
"conformance": {
"score": 90,
"max_score": 100,
"penalty_points": 10,
"finding_count": 1
},
"security": {
"score": 60,
"max_score": 100,
"penalty_points": 40,
"finding_count": 2
},
"ergonomics": {
"score": 60,
"max_score": 100,
"penalty_points": 40,
"finding_count": 4
},
"metadata": {
"score": 100,
"max_score": 100,
"penalty_points": 0,
"finding_count": 0
}
},
"why_this_score": "Score is driven mainly by security findings in command execution and file system and ergonomics findings.",
"limitations": [
"Low score means more deterministic findings or higher-risk exposed surface, not malicious intent.",
"High score means fewer deterministic findings, not a guarantee of safety."
]
},
"results": [
{
"ruleId": "overly_generic_tool_name",
"ruleIndex": 2,
"level": "warning",
"message": {
"text": "Tool 'do_it' uses an overly generic name that hides its behavior."
},
"partialFingerprints": {
"primaryLocationLineHash": "e92487b6734c4b2941222b39cf769d345860a914a201e0c96718f0bc976c8617"
},
"properties": {
"risk_category": "metadata_hygiene",
"bucket": "ergonomics",
"score_impact": 10,
"tool_name": "do_it",
"finding_category": "tool-identity",
"evidence": [
"tool_name='do_it'"
],
"check_title": "Overly generic tool name",
"check_rationale": "Tool names should communicate behavior clearly."
},
"locations": [
{
"physicalLocation": {
"artifactLocation": {
"uri": "examples/insecure-server/server.py"
},
"region": {
"startLine": 1
}
},
"message": {
"text": "tool_name='do_it'"
}
}
],
"rule": {
"id": "overly_generic_tool_name"
}
},
{
"ruleId": "vague_tool_description",
"ruleIndex": 3,
"level": "warning",
"message": {
"text": "Tool 'do_it' uses a vague description that does not explain its behavior clearly."
},
"partialFingerprints": {
"primaryLocationLineHash": "d4baaac7a1cf5eaf452c3c70de57a85ea47f3401ea40321d2c82f1b99ae07971"
},
"properties": {
"risk_category": "metadata_hygiene",
"bucket": "ergonomics",
"score_impact": 10,
"tool_name": "do_it",
"finding_category": "tool-description",
"evidence": [
"description='Helps with stuff.'",
"word_count=3",
"matched_phrase='helps with stuff'"
],
"check_title": "Vague tool description",
"check_rationale": "Tool descriptions should clearly explain what the tool does."
},
"locations": [
{
"physicalLocation": {
"artifactLocation": {
"uri": "examples/insecure-server/server.py"
},
"region": {
"startLine": 1
}
},
"message": {
"text": "description='Helps with stuff.'"
}
}
],
"rule": {
"id": "vague_tool_description"
}
},
{
"ruleId": "schema_allows_arbitrary_properties",
"ruleIndex": 5,
"level": "warning",
"message": {
"text": "Tool 'debug_payload' allows arbitrary additional input properties."
},
"partialFingerprints": {
"primaryLocationLineHash": "8d36e623640eadf17ddb18185c403f6625d35b8eb3838f9b9403d0a8607e656c"
},
"properties": {
"risk_category": "schema_hygiene",
"bucket": "conformance",
"score_impact": 10,
"tool_name": "debug_payload",
"finding_category": "input-schema",
"evidence": [
"additionalProperties=True",
"property_count=0"
],
"check_title": "Schema allows arbitrary properties",
"check_rationale": "Tool input schemas should not allow arbitrary top-level properties."
},
"locations": [
{
"physicalLocation": {
"artifactLocation": {
"uri": "examples/insecure-server/server.py"
},
"region": {
"startLine": 1
}
},
"message": {
"text": "additionalProperties=True"
}
}
],
"rule": {
"id": "schema_allows_arbitrary_properties"
}
},
{
"ruleId": "weak_input_schema",
"ruleIndex": 6,
"level": "warning",
"message": {
"text": "Tool 'debug_payload' exposes a weak input schema that leaves free-form input underconstrained."
},
"partialFingerprints": {
"primaryLocationLineHash": "b79a90dd4f12aa8bf1476f3b4d001e16e89df7b3b47efcae11dc411a96970d5e"
},
"properties": {
"risk_category": "schema_hygiene",
"bucket": "ergonomics",
"score_impact": 10,
"tool_name": "debug_payload",
"finding_category": "input-schema",
"evidence": [
"matched_heuristic=inputful_tool_with_empty_object_schema"
],
"check_title": "Weak input schema",
"check_rationale": "Tool input schemas should constrain free-form payloads clearly."
},
"locations": [
{
"physicalLocation": {
"artifactLocation": {
"uri": "examples/insecure-server/server.py"
},
"region": {
"startLine": 1
}
},
"message": {
"text": "matched_heuristic=inputful_tool_with_empty_object_schema"
}
}
],
"rule": {
"id": "weak_input_schema"
}
},
{
"ruleId": "dangerous_exec_tool",
"ruleIndex": 8,
"level": "error",
"message": {
"text": "Tool 'exec_command' appears to expose host command execution."
},
"partialFingerprints": {
"primaryLocationLineHash": "72ef9a2139b24a15d49158424b19f5fb9a89a07d27f66c25278d490f6543dc09"
},
"properties": {
"risk_category": "command_execution",
"bucket": "security",
"score_impact": 20,
"tool_name": "exec_command",
"finding_category": "capability",
"evidence": [
"name_markers=['exec', 'command']",
"description_markers=['execute', 'shell command', 'host machine']",
"input_keys=['command']"
],
"check_title": "Dangerous execution tool",
"check_rationale": "Tools that execute host shell commands are high risk."
},
"locations": [
{
"physicalLocation": {
"artifactLocation": {
"uri": "examples/insecure-server/server.py"
},
"region": {
"startLine": 1
}
},
"message": {
"text": "name_markers=['exec', 'command']"
}
}
],
"rule": {
"id": "dangerous_exec_tool"
}
},
{
"ruleId": "dangerous_fs_write_tool",
"ruleIndex": 10,
"level": "error",
"message": {
"text": "Tool 'write_file' appears to provide filesystem write access."
},
"partialFingerprints": {
"primaryLocationLineHash": "4828ab4bad018e12f98728c62603e4abbbbab48d1235504194da21035fa55b4b"
},
"properties": {
"risk_category": "file_system",
"bucket": "security",
"score_impact": 20,
"tool_name": "write_file",
"finding_category": "capability",
"evidence": [
"write_markers=['write']",
"file_markers=['file', 'disk', 'path']",
"path_keys=['path']",
"content_keys=['content']"
],
"check_title": "Dangerous filesystem write tool",
"check_rationale": "Tools that write files on disk are high risk."
},
"locations": [
{
"physicalLocation": {
"artifactLocation": {
"uri": "examples/insecure-server/server.py"
},
"region": {
"startLine": 1
}
},
"message": {
"text": "write_markers=['write']"
}
}
],
"rule": {
"id": "dangerous_fs_write_tool"
}
},
{
"ruleId": "write_tool_without_scope_hint",
"ruleIndex": 14,
"level": "warning",
"message": {
"text": "Tool 'write_file' modifies the filesystem without any visible scope hint."
},
"partialFingerprints": {
"primaryLocationLineHash": "445e9230405e475d5b431aefc81be46b8a72dab9bd4d0650c0d6cbca04185bd9"
},
"properties": {
"risk_category": "external_side_effects",
"bucket": "ergonomics",
"score_impact": 10,
"tool_name": "write_file",
"finding_category": "capability",
"evidence": [
"path_keys=['path']",
"scope_hint=<missing>"
],
"check_title": "Write tool without scope hint",
"check_rationale": "Filesystem mutation tools should document scope constraints clearly."
},
"locations": [
{
"physicalLocation": {
"artifactLocation": {
"uri": "examples/insecure-server/server.py"
},
"region": {
"startLine": 1
}
},
"message": {
"text": "path_keys=['path']"
}
}
],
"rule": {
"id": "write_tool_without_scope_hint"
}
}
]
}
]
}