-
Notifications
You must be signed in to change notification settings - Fork 169
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'release' into THREAT-274-OCSF-data-model,-CloudTrail
- Loading branch information
Showing
25 changed files
with
976 additions
and
65 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,13 @@ | ||
AnalysisType: pack | ||
PackID: PantherManaged.PushSecurity | ||
Description: Group of all Push Security detections | ||
PackDefinition: | ||
IDs: | ||
- Push.Security.App.Banner.Acknowledged | ||
- Push.Security.MFA.Method.Changed | ||
- Push.Security.New.App.Detected | ||
- Push.Security.New.SaaS.Account.Created | ||
- Push.Security.Open.Security.Finding | ||
- Push.Security.Phishable.MFA.Method | ||
- Push.Security.Phishing.Attack | ||
DisplayName: "Panther Push Security Pack" |
23 changes: 23 additions & 0 deletions
23
rules/push_security_rules/push_security_app_banner_acknowledged.py
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,23 @@ | ||
def rule(event): | ||
if event.get("object") != "APP_BANNER": | ||
return False | ||
|
||
if event.deep_get("new", "action") == "ACKNOWLEDGED": | ||
return True | ||
|
||
return False | ||
|
||
|
||
def title(event): | ||
app_type = event.deep_get("new", "appType") | ||
employee_email = event.deep_get("new", "employee", "email") | ||
return f"{app_type} accessed by {employee_email}" | ||
|
||
|
||
def alert_context(event): | ||
return { | ||
"Push Security app banner": event.deep_get("new", "appBanner", "mode"), | ||
"Title": event.deep_get("new", "appBanner", "title"), | ||
"Subtext": event.deep_get("new", "appBanner", "subtext"), | ||
"Button": event.deep_get("new", "appBanner", "buttonText"), | ||
} |
98 changes: 98 additions & 0 deletions
98
rules/push_security_rules/push_security_app_banner_acknowledged.yml
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,98 @@ | ||
AnalysisType: rule | ||
Filename: push_security_app_banner_acknowledged.py | ||
RuleID: "Push.Security.App.Banner.Acknowledged" | ||
DisplayName: "Push Security App Banner Acknowledged" | ||
Enabled: true | ||
LogTypes: | ||
- PushSecurity.Activity | ||
Severity: Low | ||
DedupPeriodMinutes: 60 | ||
Threshold: 1 | ||
Tests: | ||
- Name: App Banner Acknowledged | ||
ExpectedResult: true | ||
Log: | ||
id: c478966c-f927-411c-b919-179832d3d50c | ||
new: | ||
action: ACKNOWLEDGED | ||
appBanner: | ||
buttonText: Proceed anyway | ||
mode: ACKNOWLEDGE | ||
subtext: This app is not approved, please use Google Drive instead. | ||
title: This app is not approved for use | ||
appType: DROPBOX | ||
browser: CHROME | ||
employee: | ||
chatopsEnabled: true | ||
creationTimestamp: 1.698669223e+09 | ||
department: Security Engineering | ||
email: [email protected] | ||
firstName: John | ||
id: 2a2197de-ad2c-47e4-8dcb-fb0f04cf83e0 | ||
lastName: Hill | ||
licensed: true | ||
location: New York | ||
os: WINDOWS | ||
sourceIpAddress: 8.158.25.38 | ||
userAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36 Edge/16.16299 | ||
object: APP_BANNER | ||
timestamp: 1.698604061e+09 | ||
version: "1" | ||
- Name: App Banner Displayed | ||
ExpectedResult: false | ||
Log: | ||
id: c478966c-f927-411c-b919-179832d3d50c | ||
new: | ||
action: DISPLAYED | ||
appBanner: | ||
buttonText: Proceed anyway | ||
mode: ACKNOWLEDGE | ||
subtext: This app is not approved, please use Google Drive instead. | ||
title: This app is not approved for use | ||
appType: DROPBOX | ||
browser: CHROME | ||
employee: | ||
chatopsEnabled: true | ||
creationTimestamp: 1.698669223e+09 | ||
department: Security Engineering | ||
email: [email protected] | ||
firstName: John | ||
id: 2a2197de-ad2c-47e4-8dcb-fb0f04cf83e0 | ||
lastName: Hill | ||
licensed: true | ||
location: New York | ||
os: WINDOWS | ||
sourceIpAddress: 8.158.25.38 | ||
userAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36 Edge/16.16299 | ||
object: APP_BANNER | ||
timestamp: 1.698604061e+09 | ||
version: "1" | ||
- Name: App Banner Inform Mode | ||
ExpectedResult: false | ||
Log: | ||
id: c478966c-f927-411c-b919-179832d3d50c | ||
new: | ||
action: DISPLAYED | ||
appBanner: | ||
buttonText: null | ||
mode: INFORM | ||
subtext: This app is not approved, please use Google Drive instead. | ||
title: This app is not approved for use | ||
appType: DROPBOX | ||
browser: CHROME | ||
employee: | ||
chatopsEnabled: true | ||
creationTimestamp: 1.698669223e+09 | ||
department: Security Engineering | ||
email: [email protected] | ||
firstName: John | ||
id: 2a2197de-ad2c-47e4-8dcb-fb0f04cf83e0 | ||
lastName: Hill | ||
licensed: true | ||
location: New York | ||
os: WINDOWS | ||
sourceIpAddress: 8.158.25.38 | ||
userAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36 Edge/16.16299 | ||
object: APP_BANNER | ||
timestamp: 1.698604061e+09 | ||
version: "1" |
30 changes: 30 additions & 0 deletions
30
rules/push_security_rules/push_security_mfa_method_changed.py
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,30 @@ | ||
def rule(event): | ||
if event.get("object") != "ACCOUNT": | ||
return False | ||
|
||
if event.get("old") is None: | ||
return False | ||
|
||
new_mfa_methods = set(event.deep_get("new", "mfaMethods")) | ||
old_mfa_methods = set(event.deep_get("old", "mfaMethods", default=[])) | ||
|
||
if new_mfa_methods != old_mfa_methods: | ||
return True | ||
|
||
return False | ||
|
||
|
||
def severity(event): | ||
if event.deep_get("new", "mfaMethods") == []: | ||
return "HIGH" | ||
return "LOW" | ||
|
||
|
||
def title(event): | ||
mfa_methods = ", ".join(event.deep_get("new", "mfaMethods", default="No MFA")) | ||
new_email = event.deep_get("new", "email") | ||
new_apptype = event.deep_get("new", "appType") | ||
|
||
if mfa_methods == "": | ||
return f"{new_email} removed all MFA methods on {new_apptype}" | ||
return f"{new_email} changed MFA method to {mfa_methods} on {new_apptype}" |
Oops, something went wrong.