Skip to content

Commit

Permalink
feat: Included 6.x rules for aws nist 800-53
Browse files Browse the repository at this point in the history
  • Loading branch information
m-pizarro committed Apr 21, 2022
1 parent 03b9889 commit b51f652
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/aws/cis-1.2.0/rules/aws-cis-1.2.0-2.4.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,10 @@ export default {
resource: 'queryawsCloudtrail[*]',
severity: 'medium',
conditions: {
or: [
and: [
{
path: '@.cloudWatchLogsLogGroupArn',
equal: null,
notEqual: null,
},
{
value: {
Expand Down
4 changes: 2 additions & 2 deletions src/aws/cis-1.2.0/tests/aws-cis-1.2.0-2.x.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ describe('CIS Amazon Web Services Foundations: 1.2.0', () => {

expect(processedRule.result).toBe(Result.FAIL)
})
test('Should pass when a trail does not have cloudwatch logs integrated', async () => {
test('Should fail when a trail does not have cloudwatch logs integrated', async () => {
const data = {
queryawsCloudtrail: [
{
Expand All @@ -375,7 +375,7 @@ describe('CIS Amazon Web Services Foundations: 1.2.0', () => {
{ ...data } as any
)

expect(processedRule.result).toBe(Result.PASS)
expect(processedRule.result).toBe(Result.FAIL)
})
})

Expand Down
4 changes: 2 additions & 2 deletions src/aws/nist-800-53-rev4/rules/aws-nist-800-53-rev4-6.7.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,10 @@ export default {
resource: 'queryawsCloudtrail[*]',
severity: 'medium',
conditions: {
or: [
and: [
{
path: '@.cloudWatchLogsLogGroupArn',
equal: null,
notEqual: null,
},
{
value: {
Expand Down

0 comments on commit b51f652

Please sign in to comment.