Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move severity configurations to config file
- Loading branch information
1 parent
3d1840d
commit 4ff89f4
Showing
8 changed files
with
138 additions
and
76 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,27 @@ | ||
fileignoreconfig: | ||
- filename: detector/pattern_detector_test.go | ||
checksum: 4d70b790f28f2d23d506f808d489aa43f1efd2514549ae6a83a535e1223382e3 | ||
- filename: detector/detection_results_test.go | ||
checksum: 69fed055782cddfe0f0d23ea440cef9f9dd0b9e8a3c8a73856741bb26257b223 | ||
ignore_detectors: | ||
- filecontent | ||
- filename: detector/match_pattern_test.go | ||
checksum: d68aa0e06355e3b848941727d1fcb32cf47e3d615f9921f0db39855325010446 | ||
ignore_detectors: [] | ||
- filename: global_install_scripts/install.bash | ||
checksum: 5d659125ecbe619ea99f5bc71c2d761b586ce3ec9ccab7683ee54f4ebde9f748 | ||
- filename: detector/filecontent/filecontent_detector_test.go | ||
checksum: affb25839a87476dcef4f4169ccb9b54b2d2f2437cef3aca24f4d3b69d5886c5 | ||
- filename: detector/filename/filename_detector.go | ||
checksum: 5404565683a7e812fa98ff2d14237c4d1ba7dc5b4aca2dd3ba663b33dc8ddae7 | ||
- filename: detector/filename/filename_detector_test.go | ||
checksum: 0a9c9f113e203ca29d3a9bf0b4802a252e990c2132e1f168a46ab49ed532e6c9 | ||
- filename: detector/match_pattern_test.go | ||
checksum: d68aa0e06355e3b848941727d1fcb32cf47e3d615f9921f0db39855325010446 | ||
- filename: detector/pattern/match_pattern_test.go | ||
checksum: b90530d286fbc0ee864d2350fc0c532e0fb2f01149d51e81339b420439014238 | ||
- filename: detector/pattern/pattern_detector.go | ||
checksum: 98c4edddc95b4b974ed9b3e4f48079f2503b5c85309fadf37878a3d28de31e72 | ||
- filename: detector/pattern/pattern_detector_test.go | ||
checksum: 4d70b790f28f2d23d506f808d489aa43f1efd2514549ae6a83a535e1223382e3 | ||
- filename: detector/pattern/pattern_detector.go | ||
checksum: 248bc5f67fa12d39b0fa1b63319a5b125006858a11603a837d8c53dbab2277c3 | ||
- filename: detector/filename/filename_detector.go | ||
checksum: 5782cb11c373723ec7b40279a3dd375c0cd1d285ac0d032599f0300d9e133eec | ||
- filename: detector/filename/filename_detector_test.go | ||
checksum: 0a9c9f113e203ca29d3a9bf0b4802a252e990c2132e1f168a46ab49ed532e6c9 | ||
- filename: detector/pattern_detector_test.go | ||
checksum: 4d70b790f28f2d23d506f808d489aa43f1efd2514549ae6a83a535e1223382e3 | ||
- filename: detector/severity/severity_config.go | ||
checksum: 7e5442d7ee07a6fad12cf636c5dc2880c69b9593fd286e44d567e178ffdd0194 | ||
- filename: global_install_scripts/install.bash | ||
checksum: 5d659125ecbe619ea99f5bc71c2d761b586ce3ec9ccab7683ee54f4ebde9f748 | ||
scopeconfig: | ||
- scope: go |
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
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
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,59 @@ | ||
package severity | ||
|
||
var SeverityConfiguration = map[string]Severity{ | ||
"ConsumerKeyPattern": High(), | ||
"ConsumerSecretParrern": High(), | ||
"AWSKeyPattern": High(), | ||
"AWSSecretPattern": High(), | ||
"RSAKeyPattern": High(), | ||
"DSAFile": High(), | ||
"PrivateKeyFile":High(), | ||
"CreditCardContent": High(), | ||
"PemFile": High(), | ||
"PpkFile": High(), | ||
"SecretToken": High(), | ||
"KeyPairFile": High(), | ||
"CustomPattern": High(), | ||
"PKCSFile": High(), | ||
"PFXFile": High(), | ||
"P12File": High(), | ||
"NetrcFile": High(), | ||
"RSAFile": High(), | ||
"KeyChainFile": High(), | ||
"KeyStoreFile": High(), | ||
"OauthTokenFile":High(), | ||
"HTPASSWDFile": High(), | ||
"TunnelBlockFile": High(), | ||
"CredentialsXML": High(), | ||
"JenkinsPublishOverSSHFile": High(), | ||
"PasswordPhrasePattern": Medium(), | ||
"OpenVPNFile": Medium(), | ||
"s3Config": Medium(), | ||
"LargeFileSize": Medium(), | ||
"Base64Content": Medium(), | ||
"HexContent": Medium(), | ||
"DatabaseYml": Medium(), | ||
"ShellHistory": Low(), | ||
"ASCFile": Low(), | ||
"KDBFile": Low(), | ||
"AgileKeyChainFile": Low(), | ||
"PubXML": Low(), | ||
"GitRobRC": Low(), | ||
"ShellRC": Low(), | ||
"ShellProfile": Low(), | ||
"ShellAlias": Low(), | ||
"OmniAuth": Low(), | ||
"CarrierWaveRB": Low(), | ||
"SchemaRB": Low(), | ||
"PythonSettings": Low(), | ||
"PhpConfig": Low(), | ||
"PhpLocalSettings": Low(), | ||
"EnvFile": Low(), | ||
"BDumpFile": Low(), | ||
"BSQLFile": Low(), | ||
"PasswordFile":Low(), | ||
"BackupFile":Low(), | ||
"LogFile":Low(), | ||
"KWallet":Low(), | ||
"GNUCash":Low(), | ||
} |