-
Notifications
You must be signed in to change notification settings - Fork 297
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6553 from Checkmarx/kics/945
fix(query): iam_access_analyzer_not_enabled
- Loading branch information
Showing
4 changed files
with
69 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 43 additions & 0 deletions
43
assets/queries/cloudFormation/aws/iam_access_analyzer_not_enabled/test/negative2.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
{ | ||
"AWSTemplateFormatVersion": "2010-09-09", | ||
"Resources": { | ||
"Analyzer": { | ||
"Type": "AWS::AccessAnalyzer::Analyzer", | ||
"Properties": { | ||
"AnalyzerName": "MyAccountAnalyzer", | ||
"Type": "ACCOUNT", | ||
"Tags": [ | ||
{ | ||
"Key": "Kind", | ||
"Value": "Dev" | ||
} | ||
], | ||
"ArchiveRules": [ | ||
{ | ||
"RuleName": "ArchiveTrustedAccountAccess", | ||
"Filter": [ | ||
{ | ||
"Property": "principal.AWS", | ||
"Eq": [ | ||
"123456789012" | ||
] | ||
} | ||
] | ||
}, | ||
{ | ||
"RuleName": "ArchivePublicS3BucketsAccess", | ||
"Filter": [ | ||
{ | ||
"Property": "resource", | ||
"Contains": [ | ||
"arn:aws:s3:::docs-bucket", | ||
"arn:aws:s3:::clients-bucket" | ||
] | ||
} | ||
] | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
16 changes: 16 additions & 0 deletions
16
assets/queries/cloudFormation/aws/iam_access_analyzer_not_enabled/test/positive2.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"AWSTemplateFormatVersion": "2010-09-09", | ||
"Description": "A sample template 2", | ||
"Resources": { | ||
"myuseeer": { | ||
"Type": "AWS::IAM::Group", | ||
"Properties": { | ||
"Path": "/", | ||
"LoginProfile": { | ||
"Password": "myP@ssW0rd" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters