| 1 | package SSVC::CISA::BOD2604; | ||
| 2 | |||
| 3 | 2 | ▶ | use feature ':5.10'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 2 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 2 | ▶ | use utf8; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | 2 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | |||
| 8 | 2 | ▶ | use parent 'SSVC::Base'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | |||
| 10 | 2 | ▶ | use constant METADATA => +{ |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 11 | key => 'cisa_bod_26_04', | ||
| 12 | name => 'CISA BOD 26-04 Response Model', | ||
| 13 | description => 'CISA Binding Operational Directive 26-04 remediation timeline for a vulnerability.', | ||
| 14 | url => 'https://certcc.github.io/SSVC/howto/cisa_response/', | ||
| 15 | 2 | }; | |
| 16 | |||
| 17 | #<<< | ||
| 18 | 2 | ▶ | use constant DECISION_POINTS => +{ |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 19 | in_kev => { | ||
| 20 | vector_name => 'KEV', | ||
| 21 | label => 'In CISA KEV', | ||
| 22 | definition => 'Is the vulnerability listed in the CISA Known Exploited Vulnerabilities (KEV) catalog?', | ||
| 23 | values => [N => 'no', Y => 'yes'], | ||
| 24 | }, | ||
| 25 | |||
| 26 | publicly_exposed => { | ||
| 27 | vector_name => 'PE', | ||
| 28 | label => 'Publicly Exposed', | ||
| 29 | definition => | ||
| 30 | 'Is the affected asset accessible to unauthenticated or untrusted entities via public networks?', | ||
| 31 | values => [N => 'no', Y => 'yes'], | ||
| 32 | }, | ||
| 33 | |||
| 34 | automatable => { | ||
| 35 | vector_name => 'A', | ||
| 36 | label => 'Automatable', | ||
| 37 | definition => 'Can an attacker reliably automate creating exploitation events for this vulnerability?', | ||
| 38 | values => [N => 'no', Y => 'yes'], | ||
| 39 | }, | ||
| 40 | |||
| 41 | technical_impact => { | ||
| 42 | vector_name => 'TI', | ||
| 43 | label => 'Technical Impact', | ||
| 44 | definition => 'The technical impact of the vulnerability.', | ||
| 45 | values => [P => 'partial', T => 'total'], | ||
| 46 | }, | ||
| 47 | |||
| 48 | decision => { | ||
| 49 | vector_name => 'RT', | ||
| 50 | label => 'Remediation Timeline', | ||
| 51 | definition => 'The CISA BOD 26-04 remediation timeline for the vulnerability.', | ||
| 52 | values => [ | ||
| 53 | FSU => 'fix_on_system_upgrade', | ||
| 54 | D60 => '60_days', | ||
| 55 | D14 => '14_days', | ||
| 56 | D3 => '3_days', | ||
| 57 | D3F => '3_days_forensic_investigation', | ||
| 58 | ], | ||
| 59 | }, | ||
| 60 | 2 | }; | |
| 61 | #>>> | ||
| 62 | |||
| 63 | 2 | ▶ | use constant VECTOR => [qw(KEV PE A TI RT)]; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 64 | 2 | ▶ | use constant DECISION_PATH => [qw(KEV PE A TI)]; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 65 | |||
| 66 | # https://certcc.github.io/SSVC/howto/cisa_response/ (In KEV x Publicly Exposed x Automatable x Technical Impact -> Remediation Timeline) | ||
| 67 | # KEV PE A TI => RT | ||
| 68 | #<<< | ||
| 69 | 2 | ▶ | use constant DECISION_TREE => +{ |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 70 | 'N:N:N:P' => 'FSU', 'N:N:N:T' => 'FSU', 'N:N:Y:P' => 'D60', 'N:N:Y:T' => 'D60', | ||
| 71 | 'N:Y:N:P' => 'D60', 'N:Y:N:T' => 'D14', 'N:Y:Y:P' => 'D14', 'N:Y:Y:T' => 'D3', | ||
| 72 | 'Y:N:N:P' => 'D14', 'Y:N:N:T' => 'D14', 'Y:N:Y:P' => 'D14', 'Y:N:Y:T' => 'D3F', | ||
| 73 | 'Y:Y:N:P' => 'D14', 'Y:Y:N:T' => 'D3F', 'Y:Y:Y:P' => 'D3', 'Y:Y:Y:T' => 'D3F', | ||
| 74 | 2 | }; | |
| 75 | #>>> | ||
| 76 | |||
| 77 | 16 | ▶ | sub new { |
|
Subroutine
new: called CC=1 SCAR=0.0
Pod
documented
| |||
| 78 | |||
| 79 | 16 | my ($class, %params) = @_; | |
| 80 | |||
| 81 | 16 | my $self = $class->SUPER::new(%params); | |
| 82 | |||
| 83 | 16 | my $decision = $self->compute; | |
| 84 | |||
| 85 | 16 | $self->{vector}->{RT} = $decision; | |
| 86 | 16 | $self->{decision} = $class->decision_point_labels('decision')->{$self->vector_value('RT')}; | |
| 87 | |||
| 88 | 16 | return $self; | |
| 89 | |||
| 90 | } | ||
| 91 | |||
| 92 | 0 | ▶ | sub in_kev { shift->{decision_points}->{in_kev} } |
|
Subroutine
in_kev: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 93 | 0 | ▶ | sub publicly_exposed { shift->{decision_points}->{publicly_exposed} } |
|
Subroutine
publicly_exposed: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 94 | 0 | ▶ | sub automatable { shift->{decision_points}->{automatable} } |
|
Subroutine
automatable: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 95 | 0 | ▶ | sub technical_impact { shift->{decision_points}->{technical_impact} } |
|
Subroutine
technical_impact: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 96 | 16 | ▶ | sub decision { shift->{decision} } |
|
Subroutine
decision: called CC=1 SCAR=0.0
Pod
documented
| |||
| 97 | |||
| 98 | 0 | ▶ | sub TO_JSON { |
|
Subroutine
TO_JSON: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 99 | |||
| 100 | 0 | my $self = shift; | |
| 101 | |||
| 102 | return { | ||
| 103 | 0 | in_kev => $self->in_kev, | |
| 104 | publicly_exposed => $self->publicly_exposed, | ||
| 105 | automatable => $self->automatable, | ||
| 106 | technical_impact => $self->technical_impact, | ||
| 107 | decision => $self->decision, | ||
| 108 | }; | ||
| 109 | |||
| 110 | } | ||
| 111 | |||
| 112 | 2 | 1; | |
| 113 | |||
| 114 | |||
| 115 | __END__ | ||