CodeCommitsIssuesPull requestsActionsInsightsSecurity
87e534657113fed61f51630ba64afc8e37726b94

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

Exploration Queries/InputEntity_IP/IP2Host_HostByTrafficFromIPMost.yaml

28lines · modecode

1Id: 73fb9b8d-fd13-4c43-8136-6d693cafaa23
2DisplayName: Hosts receiving the most amount of data from this IP
3Description: Hosts receiving the most amount of data from this IP during the range of -1d and +1d
4InputEntityType: Ip
5InputFields:
6 - Address
7OutputEntityTypes:
8 - Host
9QueryPeriodBefore: 1d
10QueryPeriodAfter: 1d
11DataSources:
12 - WireData
13Tactics:
14 - Exfiltration
15 - CommandAndControl
16 - Collection
17query: |
18
19 let HostsReceivingDatafromIP = (v_IP_Address:string){
20 WireData
21 | parse Computer with HostName '.' Host_DnsDomain
22 | where SessionState == 'Disconnected'
23 | where RemoteIP =~ v_IP_Address
24 | extend Host_HostName = iff(Computer has '.', HostName, Computer)
25 | summarize Host_Aux_BytesReceived = sum(ReceivedBytes), make_set(LocalIP) by Host_HostName, Host_DnsDomain
26 | top 10 by Host_Aux_BytesReceived desc nulls last
27 };
28 HostsReceivingDatafromIP('<Address>')