-
-
Notifications
You must be signed in to change notification settings - Fork 19
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 #13 from rohitcoder/feat/added-severity
Added Severity logic and severity query feature
- Loading branch information
Showing
5 changed files
with
71 additions
and
5 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 |
---|---|---|
|
@@ -3,7 +3,34 @@ notify: | |
suppress_duplicates: True | ||
slack: | ||
webhook_url: https://hooks.slack.com/services/T0XXXXXXXXXXX/BXXXXXXXX/1CIyXXXXXXXXXXXXXXX | ||
|
||
jira: | ||
username: "[email protected]" | ||
server_url: "https://amce.atlassian.net" | ||
api_token: "JIRA_API_TOKEN_HERE" | ||
project: "SEC" | ||
issue_type: "Task" | ||
labels: | ||
- "hawk-eye" | ||
assignee: "[email protected]" | ||
issue_fields: | ||
summary_prefix: "[Hawk-eye] PII Exposed - " | ||
description_template: | | ||
A Data Security issue has been identified: | ||
|
||
{details} | ||
severity_rules: | ||
critical: | ||
- query: "length(matches) > `10` && contains(['EMAIL', 'PAN'], pattern_name)" | ||
description: "Detected more than 10 Email or Pan exposed" | ||
high: | ||
- query: "length(matches) > `10` && contains(['EMAIL', 'PAN'], pattern_name) && data_source == 'slack'" | ||
description: "Detected more than 10 Email or Pan exposed in Slack" | ||
medium: | ||
- query: "length(matches) > `5` && length(matches) <= `10` && contains(['EMAIL', 'PAN'], pattern_name) && data_source == 'slack' && profile == 'customer_support'" | ||
description: "Detected more than 5 and less than 10 Email or Pan exposed in Customer support Slack workspace" | ||
low: | ||
- query: "length(matches) <= `5`" | ||
description: "Detected less than 5 PII or Secrets" | ||
sources: | ||
redis: | ||
redis_example: | ||
|
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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
boto3 | ||
PyYAML | ||
jmespath | ||
rich | ||
mysql-connector-python | ||
pymysql | ||
|