-
Notifications
You must be signed in to change notification settings - Fork 165
/
aws_acm_certificate_expiration.yml
198 lines (198 loc) · 7.15 KB
/
aws_acm_certificate_expiration.yml
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
AnalysisType: policy
Filename: aws_acm_certificate_expiration.py
PolicyID: "AWS.ACM.Certificate.Expiration"
DisplayName: "AWS ACM Certificate Expiration"
Enabled: true
ResourceTypes:
- AWS.ACM.Certificate
Reports:
MITRE ATT&CK:
- TA0042:T1588
Tags:
- AWS
- Availability
- Resource Development:Obtain Capabilities
Severity: Medium
Description: >
When a certificate is 60 days away from expiration, ACM automatically attempts to renew it every hour.
Runbook: >
https://docs.runpanther.io/alert-runbooks/built-in-policies/aws-acm-certificate-is-not-expired
Reference: https://docs.aws.amazon.com/acm/latest/userguide/troubleshooting-renewal.html
Tests:
- Name: Future Expiration
ExpectedResult: true
Resource:
{
"Arn": "arn:aws:acm:us-east-1:123456789012:certificate/33333333-5555-4444-aaaa-04206915b869",
"CertificateArn": "arn:aws:acm:us-east-1:123456789012:certificate/33333333-5555-4444-aaaa-04206915b869",
"CertificateAuthorityArn": null,
"CreatedAt": "2019-05-23T19:20:52Z",
"DomainName": "test.domain.io",
"DomainValidationOptions":
[
{
"DomainName": "test.domain.io",
"ResourceRecord":
{
"Name": "_cc1fccccc11111111c286666111ee999.test.domain.io.",
"Type": "CNAME",
"Value": "_cc1fccccc11111111c286666111ee999.ltfvzjuylp.acm-validations.aws.",
},
"ValidationDomain": "test.domain.io",
"ValidationEmails": null,
"ValidationMethod": "DNS",
"ValidationStatus": "SUCCESS",
},
],
"ExtendedKeyUsages":
[
{
"Name": "TLS_WEB_CLIENT_AUTHENTICATION",
"OID": "1.3.6.1.5.5.7.3.2",
},
{
"Name": "TLS_WEB_SERVER_AUTHENTICATION",
"OID": "1.3.6.1.5.5.7.3.1",
},
],
"FailureReason": null,
"ImportedAt": null,
"InUseBy": null,
"IssuedAt": "2019-05-23T19:21:48Z",
"Issuer": "Amazon",
"KeyAlgorithm": "RSA-2048",
"KeyUsages":
[{ "Name": "DIGITAL_SIGNATURE" }, { "Name": "KEY_ENCIPHERMENT" }],
"NotAfter": "3020-06-23T12:00:00Z",
"NotBefore": "2019-05-23T00:00:00Z",
"Options": { "CertificateTransparencyLoggingPreference": "ENABLED" },
"RenewalEligibility": "INELIGIBLE",
"RenewalSummary": null,
"RevocationReason": null,
"RevokedAt": null,
"Serial": "00:bb:cc:aa:66:11:22:00:dd:88:f8:48:3e:92:6e:0d",
"SignatureAlgorithm": "SHA256WITHRSA",
"Status": "ISSUED",
"Subject": "CN=test.domain.io",
"SubjectAlternativeNames": ["test.domain.io"],
"Type": "AMAZON_ISSUED",
"Domain": "test.domain.io",
}
- Name: Past Expiration
ExpectedResult: false
Resource:
{
"Arn": "arn:aws:acm:us-east-1:123456789012:certificate/33333333-5555-4444-aaaa-04206915b869",
"CertificateArn": "arn:aws:acm:us-east-1:123456789012:certificate/33333333-5555-4444-aaaa-04206915b869",
"CertificateAuthorityArn": null,
"CreatedAt": "2019-05-23T19:20:52Z",
"DomainName": "test.domain.io",
"DomainValidationOptions":
[
{
"DomainName": "test.domain.io",
"ResourceRecord":
{
"Name": "_cc1fccccc11111111c286666111ee999.test.domain.io.",
"Type": "CNAME",
"Value": "_cc1fccccc11111111c286666111ee999.ltfvzjuylp.acm-validations.aws.",
},
"ValidationDomain": "test.domain.io",
"ValidationEmails": null,
"ValidationMethod": "DNS",
"ValidationStatus": "SUCCESS",
},
],
"ExtendedKeyUsages":
[
{
"Name": "TLS_WEB_CLIENT_AUTHENTICATION",
"OID": "1.3.6.1.5.5.7.3.2",
},
{
"Name": "TLS_WEB_SERVER_AUTHENTICATION",
"OID": "1.3.6.1.5.5.7.3.1",
},
],
"FailureReason": null,
"ImportedAt": null,
"InUseBy": null,
"IssuedAt": "2019-05-23T19:21:48Z",
"Issuer": "Amazon",
"KeyAlgorithm": "RSA-2048",
"KeyUsages":
[{ "Name": "DIGITAL_SIGNATURE" }, { "Name": "KEY_ENCIPHERMENT" }],
"NotAfter": "2000-06-23T12:00:00Z",
"NotBefore": "2019-05-23T00:00:00Z",
"Options": { "CertificateTransparencyLoggingPreference": "ENABLED" },
"RenewalEligibility": "INELIGIBLE",
"RenewalSummary": null,
"RevocationReason": null,
"RevokedAt": null,
"Serial": "00:bb:cc:aa:66:11:22:00:dd:88:f8:48:3e:92:6e:0d",
"SignatureAlgorithm": "SHA256WITHRSA",
"Status": "ISSUED",
"Subject": "CN=test.domain.io",
"SubjectAlternativeNames": ["test.domain.io"],
"Type": "AMAZON_ISSUED",
"Domain": "test.domain.io",
}
- Name: Null Expiration
ExpectedResult: false
Resource:
{
"Arn": "arn:aws:acm:us-east-1:123456789012:certificate/33333333-5555-4444-aaaa-04206915b869",
"CertificateArn": "arn:aws:acm:us-east-1:123456789012:certificate/33333333-5555-4444-aaaa-04206915b869",
"CertificateAuthorityArn": null,
"CreatedAt": "2019-05-23T19:20:52Z",
"DomainName": "test.domain.io",
"DomainValidationOptions":
[
{
"DomainName": "test.domain.io",
"ResourceRecord":
{
"Name": "_cc1fccccc11111111c286666111ee999.test.domain.io.",
"Type": "CNAME",
"Value": "_cc1fccccc11111111c286666111ee999.ltfvzjuylp.acm-validations.aws.",
},
"ValidationDomain": "test.domain.io",
"ValidationEmails": null,
"ValidationMethod": "DNS",
"ValidationStatus": "SUCCESS",
},
],
"ExtendedKeyUsages":
[
{
"Name": "TLS_WEB_CLIENT_AUTHENTICATION",
"OID": "1.3.6.1.5.5.7.3.2",
},
{
"Name": "TLS_WEB_SERVER_AUTHENTICATION",
"OID": "1.3.6.1.5.5.7.3.1",
},
],
"FailureReason": null,
"ImportedAt": null,
"InUseBy": null,
"IssuedAt": "2019-05-23T19:21:48Z",
"Issuer": "Amazon",
"KeyAlgorithm": "RSA-2048",
"KeyUsages":
[{ "Name": "DIGITAL_SIGNATURE" }, { "Name": "KEY_ENCIPHERMENT" }],
"NotAfter": null,
"NotBefore": "2019-05-23T00:00:00Z",
"Options": { "CertificateTransparencyLoggingPreference": "ENABLED" },
"RenewalEligibility": "INELIGIBLE",
"RenewalSummary": null,
"RevocationReason": null,
"RevokedAt": null,
"Serial": "00:bb:cc:aa:66:11:22:00:dd:88:f8:48:3e:92:6e:0d",
"SignatureAlgorithm": "SHA256WITHRSA",
"Status": "ISSUED",
"Subject": "CN=test.domain.io",
"SubjectAlternativeNames": ["test.domain.io"],
"Type": "AMAZON_ISSUED",
"Domain": "test.domain.io",
}