-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy paththreagile.yaml
708 lines (708 loc) · 24.1 KB
/
threagile.yaml
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
threagile_version: 1.0.0
title: Sample Application
author:
name: Ciro Bologna
homepage: ""
date: "2023-09-27"
business_overview:
description: This sample app can be used to send and store greetings to your friendly security architect
images: []
technical_overview:
description: frontend is in react (which I never used before), backend is in spring boot, database is mysql
images: []
business_criticality: important
management_summary_comment: Threat modeling should be part of SDLC
questions:
Some question with an answer?: |
Some answer
Some question without an answer?: ""
abuse_cases:
Abuse Case 1: |
A malicious user can impersonate somebody else and say bad words to the security architect
Abuse Case 2: |
A malicious external user can attempt exfiltrating greetings meant for the security architect eyes only
Abuse Case 3: |
A malicious admin with access to the database can attempt modifying the greeting value
security_requirements:
Authentication: Authentication is required to avoid unpleasant greetings from trolls.
Input Validation: Strict input validation is required to reduce the overall attack surface.
tags_available:
- aws
- aws:apigateway
- aws:dynamodb
- aws:ebs
- aws:ec2
- aws:iam
- aws:lambda
- aws:rds
- aws:s3
- aws:sqs
- aws:vpc
- azure
- docker
- gcp
- git
- kubernetes
- nexus
- ocp
- openshift
- tomcat
- react
- nginx
- spring
- mysql
- some-other-tag
- aws secret manager
- github
- github action
- amazon ecr
- amazon eks
data_assets:
Configuration Secrets:
id: configuration-secrets
description: Configuration secrets (like credentials, keys, certificates, etc.) secured and managed by a vault
usage: devops
tags: []
origin: ""
owner: ""
quantity: very-few
confidentiality: strictly-confidential
integrity: critical
availability: critical
justification_cia_rating: Configuration secrets are rated as being 'strictly-confidential'.
Deployment:
id: deployment
description: Deployment unit being installed/shipped
usage: devops
tags: []
origin: ""
owner: devops team
quantity: very-few
confidentiality: confidential
integrity: critical
availability: important
justification_cia_rating: Deployment units are at least rated as 'critical' in terms of integrity, because any malicious modification of it might lead to a backdoored production system.
Greetings:
id: greetings
description: few words
usage: business
tags: []
origin: Users
owner: Security Architect
quantity: many
confidentiality: confidential
integrity: critical
availability: archive
justification_cia_rating: greetings should remain private and should not be disclosed to unauthorized users
Sourcecode:
id: sourcecode
description: Sourcecode to build the application components from
usage: devops
tags: []
origin: ""
owner: devops team
quantity: few
confidentiality: confidential
integrity: critical
availability: important
justification_cia_rating: Sourcecode is at least rated as 'critical' in terms of integrity, because any malicious modification of it might lead to a backdoored production system.
technical_assets:
AWS Secret Manager Vault:
id: aws-secret-manager-vault
description: AWS Secret Manager Vault
type: process
usage: devops
used_as_client_by_human: false
out_of_scope: false
justification_out_of_scope: ""
size: service
technology: vault
tags:
- aws secret manager
internet: false
machine: serverless
encryption: transparent
owner: ""
confidentiality: strictly-confidential
integrity: critical
availability: critical
justification_cia_rating: Vault components are rated as 'strictly-confidential'.
multi_tenant: false
redundant: false
custom_developed_parts: false
data_assets_processed:
- configuration-secrets
data_assets_stored: []
data_formats_accepted: []
diagram_tweak_order: 0
communication_links: {}
Amazon ECR Container Registry:
id: amazon-ecr-container-registry
description: Amazon ECR Container Registry
type: process
usage: devops
used_as_client_by_human: false
out_of_scope: false
justification_out_of_scope: ""
size: service
technology: artifact-registry
tags:
- amazon ecr
internet: true
machine: virtual
encryption: none
owner: devops team
confidentiality: confidential
integrity: critical
availability: important
justification_cia_rating: Container registry components are at least rated as 'critical' in terms of integrity, because any malicious modification of it might lead to a backdoored production system.
multi_tenant: false
redundant: false
custom_developed_parts: false
data_assets_processed:
- deployment
data_assets_stored:
- deployment
data_formats_accepted:
- file
diagram_tweak_order: 0
communication_links: {}
Amazon EKS Container Platform:
id: amazon-eks-container-platform
description: Amazon EKS Container Platform
type: process
usage: devops
used_as_client_by_human: false
out_of_scope: false
justification_out_of_scope: ""
size: system
technology: container-platform
tags:
- amazon eks
internet: true
machine: virtual
encryption: none
owner: devops team
confidentiality: confidential
integrity: mission-critical
availability: mission-critical
justification_cia_rating: Container platform components are rated as 'mission-critical' in terms of integrity and availability, because any malicious modification of it might lead to a backdoored production system.
multi_tenant: false
redundant: false
custom_developed_parts: false
data_assets_processed:
- deployment
data_assets_stored:
- deployment
data_formats_accepted:
- file
diagram_tweak_order: 0
communication_links:
Container Platform Pull:
target: amazon-ecr-container-registry
description: Container Platform Pull
protocol: https
authentication: credentials
authorization: technical-user
tags: []
vpn: false
ip_filtered: false
readonly: true
usage: devops
data_assets_sent: []
data_assets_received:
- deployment
diagram_tweak_weight: 0
diagram_tweak_constraint: false
Backend:
id: backend
description: Some Description
type: process
usage: business
used_as_client_by_human: false
out_of_scope: false
justification_out_of_scope: ""
size: component
technology: web-service-rest
tags:
- tomcat
- spring
internet: false
machine: container
encryption: none
owner: Some Owner
confidentiality: confidential
integrity: critical
availability: critical
justification_cia_rating: Some Justification
multi_tenant: false
redundant: false
custom_developed_parts: true
data_assets_processed:
- greetings
- configuration-secrets
data_assets_stored: []
data_formats_accepted:
- json
diagram_tweak_order: 0
communication_links:
Server Traffic:
target: database
description: Some Description
protocol: jdbc
authentication: credentials
authorization: none
tags: []
vpn: false
ip_filtered: false
readonly: false
usage: business
data_assets_sent:
- greetings
data_assets_received:
- greetings
diagram_tweak_weight: 0
diagram_tweak_constraint: false
Vault Access (backend):
target: aws-secret-manager-vault
description: Vault Access Traffic (by backend)
protocol: https
authentication: externalized
authorization: technical-user
tags: []
vpn: false
ip_filtered: false
readonly: true
usage: devops
data_assets_sent: []
data_assets_received:
- configuration-secrets
diagram_tweak_weight: 0
diagram_tweak_constraint: false
Database:
id: database
description: Some Description
type: process
usage: business
used_as_client_by_human: false
out_of_scope: false
justification_out_of_scope: ""
size: component
technology: database
tags:
- mysql
internet: false
machine: container
encryption: none
owner: Some Owner
confidentiality: confidential
integrity: critical
availability: critical
justification_cia_rating: Some Justification
multi_tenant: false
redundant: false
custom_developed_parts: true
data_assets_processed:
- greetings
data_assets_stored:
- greetings
data_formats_accepted:
- serialization
diagram_tweak_order: 0
communication_links: {}
Development Client:
id: development-client
description: Development Client
type: external-entity
usage: devops
used_as_client_by_human: true
out_of_scope: true
justification_out_of_scope: Development client is not directly in-scope of the application.
size: system
technology: devops-client
tags: []
internet: true
machine: physical
encryption: none
owner: devops team
confidentiality: confidential
integrity: critical
availability: important
justification_cia_rating: Sourcecode processing components are at least rated as 'critical' in terms of integrity, because any malicious modification of it might lead to a backdoored production system.
multi_tenant: false
redundant: false
custom_developed_parts: false
data_assets_processed:
- sourcecode
- deployment
data_assets_stored:
- sourcecode
- deployment
data_formats_accepted:
- file
diagram_tweak_order: 0
communication_links:
Artifact Registry Traffic:
target: nexus-artifact-registry
description: Artifact Registry Traffic
protocol: https
authentication: credentials
authorization: enduser-identity-propagation
tags: []
vpn: false
ip_filtered: false
readonly: true
usage: devops
data_assets_sent: []
data_assets_received:
- deployment
diagram_tweak_weight: 0
diagram_tweak_constraint: false
Build Pipeline Traffic:
target: github-action-build-pipeline
description: Build Pipeline Traffic
protocol: https
authentication: credentials
authorization: enduser-identity-propagation
tags: []
vpn: false
ip_filtered: false
readonly: true
usage: devops
data_assets_sent: []
data_assets_received:
- deployment
diagram_tweak_weight: 0
diagram_tweak_constraint: false
Container Platform Traffic:
target: amazon-eks-container-platform
description: Container Platform Traffic
protocol: https
authentication: credentials
authorization: enduser-identity-propagation
tags: []
vpn: false
ip_filtered: false
readonly: false
usage: devops
data_assets_sent:
- deployment
data_assets_received:
- deployment
diagram_tweak_weight: 0
diagram_tweak_constraint: false
Container Registry Traffic:
target: amazon-ecr-container-registry
description: Container Registry Traffic
protocol: https
authentication: credentials
authorization: enduser-identity-propagation
tags: []
vpn: false
ip_filtered: false
readonly: false
usage: devops
data_assets_sent:
- deployment
data_assets_received:
- deployment
diagram_tweak_weight: 0
diagram_tweak_constraint: false
Sourcecode Repository Traffic:
target: github-sourcecode-repository
description: Sourcecode Repository Traffic
protocol: https
authentication: credentials
authorization: enduser-identity-propagation
tags: []
vpn: false
ip_filtered: false
readonly: false
usage: devops
data_assets_sent:
- sourcecode
data_assets_received:
- sourcecode
diagram_tweak_weight: 0
diagram_tweak_constraint: false
Frontend:
id: frontend
description: react frontend
type: process
usage: business
used_as_client_by_human: true
out_of_scope: false
justification_out_of_scope: ""
size: application
technology: browser
tags:
- react
- nginx
internet: true
machine: container
encryption: transparent
owner: Some Owner
confidentiality: public
integrity: critical
availability: operational
justification_cia_rating: Some Justification
multi_tenant: false
redundant: false
custom_developed_parts: true
data_assets_processed:
- greetings
data_assets_stored: []
data_formats_accepted:
- json
diagram_tweak_order: 0
communication_links:
User Traffic:
target: backend
description: Some Description
protocol: https
authentication: none
authorization: none
tags: []
vpn: false
ip_filtered: false
readonly: false
usage: business
data_assets_sent:
- greetings
data_assets_received: []
diagram_tweak_weight: 0
diagram_tweak_constraint: false
Nexus Artifact Registry:
id: nexus-artifact-registry
description: Nexus Artifact Registry
type: process
usage: devops
used_as_client_by_human: false
out_of_scope: false
justification_out_of_scope: ""
size: service
technology: artifact-registry
tags:
- nexus
internet: true
machine: virtual
encryption: none
owner: devops team
confidentiality: confidential
integrity: critical
availability: important
justification_cia_rating: Artifact registry components are at least rated as 'critical' in terms of integrity, because any malicious modification of it might lead to a backdoored production system.
multi_tenant: false
redundant: false
custom_developed_parts: false
data_assets_processed:
- sourcecode
- deployment
data_assets_stored:
- sourcecode
- deployment
data_formats_accepted:
- file
diagram_tweak_order: 0
communication_links: {}
github Sourcecode Repository:
id: github-sourcecode-repository
description: github Sourcecode Repository
type: process
usage: devops
used_as_client_by_human: false
out_of_scope: false
justification_out_of_scope: ""
size: service
technology: sourcecode-repository
tags:
- github
internet: true
machine: virtual
encryption: none
owner: devops team
confidentiality: confidential
integrity: critical
availability: important
justification_cia_rating: Sourcecode processing components are at least rated as 'critical' in terms of integrity, because any malicious modification of it might lead to a backdoored production system.
multi_tenant: false
redundant: false
custom_developed_parts: false
data_assets_processed:
- sourcecode
data_assets_stored:
- sourcecode
data_formats_accepted:
- file
diagram_tweak_order: 0
communication_links: {}
github action Build Pipeline:
id: github-action-build-pipeline
description: github action Build Pipeline
type: process
usage: devops
used_as_client_by_human: false
out_of_scope: false
justification_out_of_scope: ""
size: service
technology: build-pipeline
tags:
- github action
internet: true
machine: virtual
encryption: none
owner: devops team
confidentiality: confidential
integrity: critical
availability: important
justification_cia_rating: Build pipeline components are at least rated as 'critical' in terms of integrity, because any malicious modification of it might lead to a backdoored production system.
multi_tenant: false
redundant: false
custom_developed_parts: false
data_assets_processed:
- sourcecode
- deployment
data_assets_stored:
- sourcecode
- deployment
data_formats_accepted:
- file
diagram_tweak_order: 0
communication_links:
Artifact Registry Traffic:
target: nexus-artifact-registry
description: Artifact Registry Traffic
protocol: https
authentication: credentials
authorization: technical-user
tags: []
vpn: false
ip_filtered: false
readonly: false
usage: devops
data_assets_sent:
- deployment
data_assets_received:
- deployment
diagram_tweak_weight: 0
diagram_tweak_constraint: false
Container Registry Traffic:
target: amazon-ecr-container-registry
description: Container Registry Traffic
protocol: https
authentication: credentials
authorization: technical-user
tags: []
vpn: false
ip_filtered: false
readonly: false
usage: devops
data_assets_sent:
- deployment
data_assets_received:
- deployment
diagram_tweak_weight: 0
diagram_tweak_constraint: false
Sourcecode Repository Traffic:
target: github-sourcecode-repository
description: Sourcecode Repository Traffic
protocol: https
authentication: credentials
authorization: technical-user
tags: []
vpn: false
ip_filtered: false
readonly: true
usage: devops
data_assets_sent: []
data_assets_received:
- sourcecode
diagram_tweak_weight: 0
diagram_tweak_constraint: false
trust_boundaries:
Trust Boundary:
id: trusted-boundary
description: Some Description
type: network-cloud-security-group
tags: []
technical_assets_inside:
- backend
- database
- aws-secret-manager-vault
- github-sourcecode-repository
- amazon-ecr-container-registry
- amazon-eks-container-platform
- github-action-build-pipeline
- nexus-artifact-registry
trust_boundaries_nested: []
shared_runtimes:
Amazon EKS Runtime:
id: amazon-eks-container-runtime
description: Amazon EKS Runtime
tags:
- amazon eks
technical_assets_running: []
EKS:
id: eks
description: AWS containerization
tags: []
technical_assets_running:
- frontend
- backend
- database
individual_risk_categories:
Some Individual Risk Example:
id: something-strange
description: Some text describing the risk category...
impact: Some text describing the impact...
asvs: V0 - Something Strange
cheat_sheet: https://example.com
action: Some text describing the action...
mitigation: Some text describing the mitigation...
check: Check if XYZ...
function: business-side
stride: repudiation
detection_logic: Some text describing the detection logic...
risk_assessment: Some text describing the risk assessment...
false_positives: Some text describing the most common types of false positives...
model_failure_possible_reason: false
cwe: 693
risks_identified:
<b>Example Individual Risk</b> at <b>Some Technical Asset</b>:
severity: critical
exploitation_likelihood: likely
exploitation_impact: medium
data_breach_probability: probable
data_breach_technical_assets:
- database
most_relevant_data_asset: ""
most_relevant_technical_asset: database
most_relevant_communication_link: ""
most_relevant_trust_boundary: ""
most_relevant_shared_runtime: ""
risk_tracking:
missing-hardening@*:
status: in-discussion
justification: The hardening measures on the docker images are completed, the network ones in progress
ticket: XYZ-1234
date: "2023-01-10"
checked_by: Ciro Bologna
sql-nosql-injection@*:
status: mitigated
justification: The backend is using hibernate and not manipulating SQL directly
ticket: XYZ-1234
date: "2023-01-10"
checked_by: Ciro Bologna
unencrypted-asset@database:
status: accepted
justification: Risk accepted as tolerable
ticket: XYZ-1234
date: "2023-10-01"
checked_by: Ciro Bologna
diagram_tweak_nodesep: 0
diagram_tweak_ranksep: 0
diagram_tweak_edge_layout: ""
diagram_tweak_suppress_edge_labels: false
diagram_tweak_layout_left_to_right: false
diagram_tweak_invisible_connections_between_assets: []
diagram_tweak_same_rank_assets: []