Skip to content

Commit

Permalink
feat: Included 7.x rules for aws nist 800-53 rev4
Browse files Browse the repository at this point in the history
  • Loading branch information
m-pizarro committed Apr 26, 2022
1 parent f3e21e7 commit 4ab8b83
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/aws/nist-800-53-rev4/rules/aws-nist-800-53-rev4-7.1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,15 @@ export default {
arn
accountId
__typename
cloudwatches {
cloudwatch {
metric
}
}
}`,
resource: 'queryawsCloudfront[*]',
severity: 'medium',
conditions: {
jq: '.cloudwatches | map(select(.metric == "4xxErrorRate" or .metric == "5xxErrorRate")) | { "twoOrMore" : (length >= 2) }',
jq: '.cloudwatch | map(select(.metric == "4xxErrorRate" or .metric == "5xxErrorRate")) | { "twoOrMore" : (length >= 2) }',
path: '@',
and: [
{
Expand Down
4 changes: 2 additions & 2 deletions src/aws/nist-800-53-rev4/tests/nist-800-53-rev4-7.x.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ export interface QueryawsAccount {

export interface QueryawsCloudfront {
id: string
cloudwatches: Cloudwatch[]
cloudwatch: Cloudwatch[]
}

export interface NIST7xQueryResponse {
Expand Down Expand Up @@ -215,7 +215,7 @@ describe('AWS NIST 800-53: Rev. 4', () => {
queryawsCloudfront: [
{
id: cuid(),
cloudwatches: [
cloudwatch: [
{
metric: metric1
},
Expand Down

0 comments on commit 4ab8b83

Please sign in to comment.