|
| 1 | +id: a924d317-03d2-4420-a71f-4d347bda4bd8 |
| 2 | +name: TI map IP entity to Workday(ASimAuditEventLogs) |
| 3 | +description: | |
| 4 | + Detects a match in Workday activity from any IP Indicator of Compromise (IOC) provided by Threat Intelligence (TI). |
| 5 | +severity: Medium |
| 6 | +requiredDataConnectors: |
| 7 | + - connectorId: ThreatIntelligence |
| 8 | + dataTypes: |
| 9 | + - ThreatIntelligenceIndicator |
| 10 | + - connectorId: ThreatIntelligenceTaxii |
| 11 | + dataTypes: |
| 12 | + - ThreatIntelligenceIndicator |
| 13 | + - connectorId: Workday |
| 14 | + dataTypes: |
| 15 | + - Workday |
| 16 | + - connectorId: MicrosoftDefenderThreatIntelligence |
| 17 | + dataTypes: |
| 18 | + - ThreatIntelligenceIndicator |
| 19 | +queryFrequency: 1h |
| 20 | +queryPeriod: 14d |
| 21 | +triggerOperator: gt |
| 22 | +triggerThreshold: 0 |
| 23 | +tactics: |
| 24 | + - CommandAndControl |
| 25 | +relevantTechniques: |
| 26 | + - T1071 |
| 27 | +query: | |
| 28 | + let dtLookBack = 1h; // Define the lookback period for audit events |
| 29 | + let ioc_lookBack = 14d; // Define the lookback period for threat intelligence indicators |
| 30 | + ThreatIntelligenceIndicator |
| 31 | + | where TimeGenerated >= ago(ioc_lookBack) // Filter threat intelligence indicators within the lookback period |
| 32 | + | where isnotempty(NetworkIP) |
| 33 | + or isnotempty(EmailSourceIpAddress) |
| 34 | + or isnotempty(NetworkDestinationIP) |
| 35 | + or isnotempty(NetworkSourceIP) // Filter for indicators with relevant IP fields |
| 36 | + | summarize LatestIndicatorTime = arg_max(TimeGenerated, *) by IndicatorId // Get the latest indicator time for each IndicatorId |
| 37 | + | extend TI_ipEntity = coalesce(NetworkIP, NetworkDestinationIP, NetworkSourceIP, EmailSourceIpAddress) // Combine IP fields into a single entity |
| 38 | + | where Active == true and ExpirationDateTime > now() // Filter for active indicators that have not expired |
| 39 | + | join kind=inner ( |
| 40 | + ASimAuditEventLogs |
| 41 | + | where EventVendor == "Workday" // Filter for Workday events |
| 42 | + | where TimeGenerated >= ago(dtLookBack) // Filter events within the lookback period |
| 43 | + | where isnotempty(DvcIpAddr) // Filter for events with a device IP address |
| 44 | + | extend WD_TimeGenerated = EventStartTime // Rename the event start time column |
| 45 | + | project WD_TimeGenerated, ActorUsername, DvcIpAddr, Operation, Object // Select relevant columns |
| 46 | + ) |
| 47 | + on $left.TI_ipEntity == $right.DvcIpAddr // Join on the IP entity |
| 48 | + | project |
| 49 | + LatestIndicatorTime, |
| 50 | + Description, |
| 51 | + ActivityGroupNames, |
| 52 | + IndicatorId, |
| 53 | + ThreatType, |
| 54 | + Url, |
| 55 | + ExpirationDateTime, |
| 56 | + ConfidenceScore, |
| 57 | + WD_TimeGenerated, |
| 58 | + ActorUsername, |
| 59 | + DvcIpAddr, |
| 60 | + Operation, |
| 61 | + Object // Select relevant columns after the join |
| 62 | + | extend |
| 63 | + timestamp = WD_TimeGenerated, |
| 64 | + Name = tostring(split(ActorUsername, '@', 0)), |
| 65 | + UPNSuffix = tostring(split(ActorUsername, '@', 1)) // Add additional fields for timestamp, name, and UPN suffix |
| 66 | +entityMappings: |
| 67 | + - entityType: Account |
| 68 | + fieldMappings: |
| 69 | + - identifier: FullName |
| 70 | + columnName: ActorUsername |
| 71 | + - identifier: Name |
| 72 | + columnName: Name |
| 73 | + - identifier: UPNSuffix |
| 74 | + columnName: UPNSuffix |
| 75 | + - entityType: IP |
| 76 | + fieldMappings: |
| 77 | + - identifier: Address |
| 78 | + columnName: DvcIpAddr |
| 79 | +version: 1.0.0 |
| 80 | +kind: Scheduled |
0 commit comments