-
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
45 additions
and
0 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,37 @@ | ||
|
||
Config: | ||
Flags: | ||
policy_schedule: "*/15 * * * * *" | ||
report_schedule: "*/50 * * * * *" | ||
# target: "targets/" | ||
ignore: | ||
- "targets/scan/" | ||
|
||
Policies: | ||
- id: "SCAN-001 Private Keys" | ||
type: "scan" | ||
enforcement: | ||
- environment: "production" | ||
fatal: "true" | ||
exceptions: "false" | ||
confidence: "high" | ||
- environment: "development" | ||
fatal: "true" | ||
exceptions: "false" | ||
confidence: "high" | ||
metadata: | ||
name: "Detect private keys" | ||
description: "Generic long description for (metadata) policy" | ||
msg_solution: "Generic solution message to production issue." | ||
msg_error: "Generic error message for production issue" | ||
tags: | ||
- "security" | ||
- "encryption" | ||
score: "9" | ||
_regex: | ||
- \s*(-----BEGIN PRIVATE KEY-----) | ||
- \s*(-----BEGIN RSA PRIVATE KEY-----) | ||
- \s*(-----BEGIN DSA PRIVATE KEY-----) | ||
- \s*(-----BEGIN EC PRIVATE KEY-----) | ||
- \s*(-----BEGIN OPENSSH PRIVATE KEY-----) | ||
- \s*(-----BEGIN PGP PRIVATE KEY BLOCK-----) |