forked from bridgecrewio/checkov
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(secrets): change entropy limit in Combinator plugin (bridgecrewio…
…#3575) * inital try - 1 test fails * changed the example in the false positive test * indicate the failed test * adjusted limits for relevant files * removed unnessary added plugins * moved both limits to be together * remove comment * change combinator plugin to examine only non-source-code files * undo the last change to combinator plugin * changed the combinator to combine keywords only in Iac, in sc files scan only with high entropy * remove commented code * improved statement
- Loading branch information
Showing
6 changed files
with
108 additions
and
78 deletions.
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
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
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,22 @@ | ||
""" | ||
no False Positive - where it's not an actual secret | ||
""" | ||
|
||
CleanBucketFunction: | ||
Type: "AWS::Lambda::Function" | ||
DependsOn: CleanupRole | ||
Properties: | ||
Handler: index.clearS3Bucket | ||
Role: | ||
Fn::GetAtt: CleanupRole.Arn | ||
Runtime: nodejs12.x | ||
Timeout: 25 | ||
Code: | ||
ZipFile: | | ||
no False Positive - where it's not an actual secret | ||
check_metadata_values = ('bafadssda$#%2', 'bdfsver#$@%') | ||
CHECKOV_METADATA_RESULT = 'checkov_results5243gvr' | ||
check1 = {'blabla': 'blabla1'} | ||
check2 = {'blabla': 'blabla2'} | ||
check1['some_key_1235#$@'] = check2.get('some_value_1235') | ||
not_a_secr_k = "wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY" |
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
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
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