Skip to content

Commit

Permalink
Merge pull request #9693 from Azure/shainw-CiscoEntityFix
Browse files Browse the repository at this point in the history
Removing custom entity mapping
  • Loading branch information
shainw authored Dec 29, 2023
2 parents 93da382 + a0976f0 commit e4bdeeb
Show file tree
Hide file tree
Showing 10 changed files with 30 additions and 44 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,15 @@ query: |
| where DvcAction =~ 'Allowed'
| where UrlCategory has_any ('Dynamic and Residential', 'Personal VPN')
| project TimeGenerated, SrcIpAddr, Identities
| extend IPCustomEntity = SrcIpAddr
| extend AccountCustomEntity = Identities
entityMappings:
- entityType: Account
fieldMappings:
- identifier: FullName
columnName: AccountCustomEntity
columnName: Identities
- entityType: IP
fieldMappings:
- identifier: Address
columnName: IPCustomEntity
version: 1.1.0
columnName: SrcIpAddr
version: 1.1.1
kind: Scheduled

Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,14 @@ query: |
| where Hostname !in (top_million_list)
| extend Message = "Connect to unpopular website (possible malicious payload delivery)"
| project Message, SrcIpAddr, DstIpAddr,UrlOriginal, TimeGenerated
| extend IPCustomEntity = SrcIpAddr, UrlCustomEntity = UrlOriginal
entityMappings:
- entityType: URL
fieldMappings:
- identifier: Url
columnName: UrlCustomEntity
columnName: UrlOriginal
- entityType: IP
fieldMappings:
- identifier: Address
columnName: IPCustomEntity
version: 1.1.1
columnName: SrcIpAddr
version: 1.1.2
kind: Scheduled
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,14 @@ query: |
| where HttpUserAgentOriginal contains "XMRig" or HttpUserAgentOriginal contains "ccminer"
| extend Message = "Crypto Miner User Agent"
| project Message, SrcIpAddr, DstIpAddr, UrlOriginal, TimeGenerated,HttpUserAgentOriginal
| extend IPCustomEntity = SrcIpAddr, UrlCustomEntity = UrlOriginal
entityMappings:
- entityType: URL
fieldMappings:
- identifier: Url
columnName: UrlCustomEntity
columnName: UrlOriginal
- entityType: IP
fieldMappings:
- identifier: Address
columnName: IPCustomEntity
version: 1.1.1
columnName: SrcIpAddr
version: 1.1.2
kind: Scheduled
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,14 @@ query: |
| where HttpUserAgentOriginal == ''
| extend Message = "Empty User Agent"
| project Message, SrcIpAddr, DstIpAddr, UrlOriginal, TimeGenerated
| extend IPCustomEntity = SrcIpAddr, UrlCustomEntity = UrlOriginal
entityMappings:
- entityType: URL
fieldMappings:
- identifier: Url
columnName: UrlCustomEntity
columnName: UrlOriginal
- entityType: IP
fieldMappings:
- identifier: Address
columnName: IPCustomEntity
version: 1.1.1
columnName: SrcIpAddr
version: 1.1.2
kind: Scheduled
Original file line number Diff line number Diff line change
Expand Up @@ -69,15 +69,14 @@ query: |
| where HttpUserAgentOriginal has_any (user_agents)
| extend Message = "Hack Tool User Agent"
| project Message, SrcIpAddr, DstIpAddr, UrlOriginal, TimeGenerated, HttpUserAgentOriginal
| extend IPCustomEntity = SrcIpAddr, UrlCustomEntity = UrlOriginal
entityMappings:
- entityType: URL
fieldMappings:
- identifier: Url
columnName: UrlCustomEntity
columnName: UrlOriginal
- entityType: IP
fieldMappings:
- identifier: Address
columnName: IPCustomEntity
version: 1.1.1
columnName: SrcIpAddr
version: 1.1.2
kind: Scheduled
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,14 @@ query: |
| where HttpUserAgentOriginal contains "WindowsPowerShell"
| extend Message = "Windows PowerShell User Agent"
| project Message, SrcIpAddr, DstIpAddr, UrlOriginal, TimeGenerated,HttpUserAgentOriginal
| extend IPCustomEntity = SrcIpAddr, UrlCustomEntity = UrlOriginal
entityMappings:
- entityType: URL
fieldMappings:
- identifier: Url
columnName: UrlCustomEntity
columnName: UrlOriginal
- entityType: IP
fieldMappings:
- identifier: Address
columnName: IPCustomEntity
version: 1.1.1
columnName: SrcIpAddr
version: 1.1.2
kind: Scheduled
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,14 @@ query: |
| where HttpUserAgentOriginal !in (user_agents_list)
| extend Message = "Rare User Agent"
| project Message, SrcIpAddr, DstIpAddr, UrlOriginal, TimeGenerated, HttpUserAgentOriginal
| extend IPCustomEntity = SrcIpAddr, UrlCustomEntity = UrlOriginal
entityMappings:
- entityType: URL
fieldMappings:
- identifier: Url
columnName: UrlCustomEntity
columnName: UrlOriginal
- entityType: IP
fieldMappings:
- identifier: Address
columnName: IPCustomEntity
version: 1.1.1
columnName: SrcIpAddr
version: 1.1.2
kind: Scheduled
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,14 @@ query: |
UrlCategory contains 'Lingerie/Bikini' or
UrlCategory contains 'Weapons'
| project TimeGenerated, SrcIpAddr, Identities
| extend IPCustomEntity = SrcIpAddr
| extend AccountCustomEntity = Identities
entityMappings:
- entityType: Account
fieldMappings:
- identifier: FullName
columnName: AccountCustomEntity
columnName: Identities
- entityType: IP
fieldMappings:
- identifier: Address
columnName: IPCustomEntity
version: 1.1.0
columnName: SrcIpAddr
version: 1.1.1
kind: Scheduled
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,14 @@ query: |
| extend Filename = extract(@'.*\/*\/(.*\.\w+)$', 1, UrlOriginal)
| where file_ext in (file_ext_blocklist)
| project TimeGenerated, SrcIpAddr, Identities, Filename
| extend IPCustomEntity = SrcIpAddr
| extend AccountCustomEntity = Identities
entityMappings:
- entityType: Account
fieldMappings:
- identifier: FullName
columnName: AccountCustomEntity
columnName: Identities
- entityType: IP
fieldMappings:
- identifier: Address
columnName: IPCustomEntity
version: 1.0.0
columnName: SrcIpAddr
version: 1.0.1
kind: Scheduled
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,14 @@ query: |
| where DvcAction =~ 'Allowed'
| where UrlOriginal matches regex @'\Ahttp:\/\/\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}.*'
| project TimeGenerated, SrcIpAddr, Identities
| extend IPCustomEntity = SrcIpAddr
| extend AccountCustomEntity = Identities
entityMappings:
- entityType: Account
fieldMappings:
- identifier: FullName
columnName: AccountCustomEntity
columnName: Identities
- entityType: IP
fieldMappings:
- identifier: Address
columnName: IPCustomEntity
version: 1.1.0
columnName: SrcIpAddr
version: 1.1.1
kind: Scheduled

0 comments on commit e4bdeeb

Please sign in to comment.