forked from Azure/Azure-Sentinel
-
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.
Merge pull request Azure#10379 from skeerthivasan/playbook-push
Added Playbooks and Analytic Rules for Pure Storage Solutions
- Loading branch information
Showing
10 changed files
with
2,464 additions
and
8 deletions.
There are no files selected for viewing
44 changes: 44 additions & 0 deletions
44
Solutions/Pure Storage/Analytic Rules/PureControllerFailed.yaml
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,44 @@ | ||
id: c317b007-84e7-4449-93f4-4444f6638fd0 | ||
name: Pure Controller Failed | ||
version: 1.0.0 | ||
kind: NRT | ||
description: Detect controller failure and take appropriate response action. | ||
severity: High | ||
tactics: | ||
- Execution | ||
relevantTechniques: | ||
- T0871 | ||
query: |- | ||
Syslog | ||
| where SyslogMessage has "purity.alert" | ||
| extend Message = replace_regex(SyslogMessage, "#012", "\n") | ||
| extend ParsedLog = extract_all(@"((?P<process>.*?)\[(?P<processid>.*?)\]:\s(?P<object>.*)\[(?P<responsecode>\w+)\][\s\S]*Severity:\s*(?P<severity>\S+)\s*(Tag:\s*(?P<reason>\S+))?\s*UTC([\s\S]*)Array Name:\s*(?P<objectname>\S+)\s*Domain:\s*(?P<domainorigin>\S+)\s*(?P<part2log>[\s\S]*))", dynamic(['process','processid','object','objectname','responsecode','severity','reason','domainorigin','part2log']), Message) | ||
| mv-expand ParsedLog | ||
| extend ResidueLog = tostring(ParsedLog[8]) | ||
| extend Rlog = extract_all(@"(((Suggested Action:\s*(?P<action>[\s\S]*)\s*Knowledge Base Article:\s*(?P<url>.*))|(Knowledge Base Article:\s*(?P<url>.*)\s*Suggested Action:\s*(?P<action>.*)\s*)|(Suggested Action:\s*(?P<action>[\s\S]*)))(([\s\S]*)Purity Version:\s*(?P<pversion>.*))?\s*([\s\S]*)Variables: \(below\)\s*(?P<subject>[\s\S]*))", dynamic(['action','url','pversion','subject']),ResidueLog) | ||
| mv-expand Rlog | ||
| extend PureLogType = ParsedLog[0], PureProcessID = ParsedLog[1], PureObject = ParsedLog[2], PureCode = ParsedLog[4], PureSeverity = ParsedLog[5], PureReason = ParsedLog[6], PureObjectName = ParsedLog[3], PureDomainOrigin = ParsedLog[7], PureAction = Rlog[0], PureUrl = Rlog[1], PureVersion = Rlog[2], PureMessage = Rlog[3] | ||
| project-away ResidueLog, Rlog, ParsedLog | ||
| where PureObject matches regex @"(Controllers ct[0-9] have failed)" | ||
suppressionDuration: 5h | ||
suppressionEnabled: false | ||
eventGroupingSettings: | ||
aggregationKind: SingleAlert | ||
alertDetailsOverride: | ||
alertDynamicProperties: [] | ||
entityMappings: | ||
- entityType: IP | ||
fieldMappings: | ||
- identifier: Address | ||
columnName: HostIP | ||
incidentConfiguration: | ||
createIncident: true | ||
groupingConfiguration: | ||
enabled: false | ||
reopenClosedIncident: false | ||
lookbackDuration: PT5H | ||
matchingMethod: AllEntities | ||
groupByEntities: [] | ||
groupByAlertDetails: [] | ||
groupByCustomDetails: [] | ||
|
53 changes: 53 additions & 0 deletions
53
Solutions/Pure Storage/Analytic Rules/PureFailedLogin.yaml
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,53 @@ | ||
id: ed32b115-5001-43a7-a2bb-f53026db4d97 | ||
name: Pure Failed Login | ||
version: 1.0.0 | ||
kind: NRT | ||
description: Detect failed login attacks and delete user | ||
severity: High | ||
tactics: | ||
- CredentialAccess | ||
relevantTechniques: | ||
- T1212 | ||
query: |- | ||
Syslog | ||
| where SyslogMessage has "purity.alert" and SyslogMessage has "invalid username or password" | ||
| extend Message = SyslogMessage | ||
| extend ParsedLog = extract_all(@"((?P<process>.*?)\[(?P<processid>.*?)\][\s\S]*?Array name:\s*'(?P<arrayname>\S+)'[\s\S]*?Controller:\s*'?(?P<controller>[^']+)'?[\s\S]*Interface:\s*'(?P<interface>\S+)'.*?User:\s'(?P<login>.*?)'\sLocation: '(?P<location>[^']+)'\sSublocation: '(?P<sublocation>[^']+)\s*(?P<part2log>[\s\S]*))", dynamic(['process', 'processid', 'arrayname', 'controller', 'interface','login', 'location', 'sublocation', 'part2log']), Message) | ||
| mv-expand ParsedLog | ||
| extend ResidueLog = tostring(ParsedLog[8]) | ||
| extend Rlog = extract_all(@"[\s\S]*Action:\s'(?P<action>[^']+)'[\s\S]*Method:\s'(?P<method>[^']+)'[\s\S]*Result:\s(?P<result>[^']+)[\s\S]*Description:\s'(?P<description>[^']*)'", dynamic(['action', 'method', 'result', 'description']), ResidueLog) | ||
| mv-expand Rlog | ||
| extend PureLogType = ParsedLog[0], PureProcessID = ParsedLog[1], PureArrayName = ParsedLog[2], PureController = ParsedLog[3], PureInterface = ParsedLog[4], PureLogin = ParsedLog [5], PureLocation = ParsedLog [6], PureSublocation = ParsedLog [7], PureAction = Rlog [0], PureMethod = Rlog [1], PureResult = Rlog [2], PureDescription = Rlog [3] | ||
| project-away ResidueLog, Rlog, ParsedLog | ||
| summarize count() by tostring(PureLogin), tostring(PureArrayName), HostIP | ||
| where count_ >= 10 | ||
suppressionDuration: 5h | ||
suppressionEnabled: false | ||
eventGroupingSettings: | ||
aggregationKind: SingleAlert | ||
alertDetailsOverride: | ||
alertDynamicProperties: [] | ||
entityMappings: | ||
- entityType: IP | ||
fieldMappings: | ||
- identifier: Address | ||
columnName: HostIP | ||
- entityType: Account | ||
fieldMappings: | ||
- identifier: Name | ||
columnName: PureLogin | ||
- entityType: Host | ||
fieldMappings: | ||
- identifier: HostName | ||
columnName: PureArrayName | ||
incidentConfiguration: | ||
createIncident: true | ||
groupingConfiguration: | ||
enabled: false | ||
reopenClosedIncident: false | ||
lookbackDuration: PT5H | ||
matchingMethod: AllEntities | ||
groupByEntities: [] | ||
groupByAlertDetails: [] | ||
groupByCustomDetails: [] | ||
|
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
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
Oops, something went wrong.