<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Correlation Rule for services in Cortex XDR Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/correlation-rule-for-services/m-p/507747#M2322</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/24508"&gt;@NathanBradley&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using the Cortex XDR Forensics add-on you could enable the collection of services via the Agent Settings Profile, that data can then be queried in XQL using the dataset forensics_services, you could then craft a correlation rule against that dataset to get the outcome you want.&amp;nbsp;&lt;BR /&gt;Another way would be via the Host Insights add-on you could retrieve a list of services for a given endpoint, but this data is not currently exposed in XQL so you would have to export from the UI and would not be able to build a correlation rule against it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ben&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 01 Jul 2022 19:59:58 GMT</pubDate>
    <dc:creator>bbucao</dc:creator>
    <dc:date>2022-07-01T19:59:58Z</dc:date>
    <item>
      <title>Correlation Rule for services</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/correlation-rule-for-services/m-p/507691#M2319</link>
      <description>&lt;P&gt;Is it possible to create a correlation rule to identify when new services are present on an endpoint&lt;/P&gt;&lt;P&gt;For example,&lt;/P&gt;&lt;P&gt;Create a correlation rule ,using a query that returns all services on an endpoint, that creates a new data set of the results..say there are 201 services&lt;/P&gt;&lt;P&gt;Create a rule that then alarms when either a new service is present or just when the result is greater than 201&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jul 2022 15:38:44 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/correlation-rule-for-services/m-p/507691#M2319</guid>
      <dc:creator>NathanBradley</dc:creator>
      <dc:date>2022-07-01T15:38:44Z</dc:date>
    </item>
    <item>
      <title>Re: Correlation Rule for services</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/correlation-rule-for-services/m-p/507747#M2322</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/24508"&gt;@NathanBradley&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using the Cortex XDR Forensics add-on you could enable the collection of services via the Agent Settings Profile, that data can then be queried in XQL using the dataset forensics_services, you could then craft a correlation rule against that dataset to get the outcome you want.&amp;nbsp;&lt;BR /&gt;Another way would be via the Host Insights add-on you could retrieve a list of services for a given endpoint, but this data is not currently exposed in XQL so you would have to export from the UI and would not be able to build a correlation rule against it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ben&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jul 2022 19:59:58 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/correlation-rule-for-services/m-p/507747#M2322</guid>
      <dc:creator>bbucao</dc:creator>
      <dc:date>2022-07-01T19:59:58Z</dc:date>
    </item>
    <item>
      <title>Re: Correlation Rule for services</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/correlation-rule-for-services/m-p/508353#M2330</link>
      <description>&lt;P&gt;I can currently query and get a list of services using xql&lt;/P&gt;
&lt;P&gt;Using that query im building a correlation rule to save to a new dataset&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Im stuck on how to build a new rule to alert when a service has been added&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;config case_sensitive = false &lt;BR /&gt;| dataset = host_inventory&lt;BR /&gt;| filter services != null&lt;BR /&gt;| arrayexpand services&lt;BR /&gt;| alter Display_Name=json_extract(services, "$.display_name")&lt;BR /&gt;| alter Path_Name=json_extract(services, "$.path_name")&lt;BR /&gt;| alter Service_Name=json_extract(services, "$.service_name")&lt;BR /&gt;| alter UserName=json_extract(services, "$.start_user_name")&lt;BR /&gt;| alter Start_Mode=json_extract(services, "$.start_mode")&lt;BR /&gt;| alter Started=json_extract(services, "$.started")&lt;BR /&gt;| alter State=json_extract(services, "$.state")&lt;BR /&gt;| alter Service_Type=json_extract(services, "$.service_type")&lt;BR /&gt;| alter Accept_Pause=json_extract(services, "$.accept_pause")&lt;BR /&gt;| alter Accept_Stop=json_extract(services, "$.accept_stop")&lt;BR /&gt;| alter Delayed=json_extract(services, "$.delayed")&lt;BR /&gt;| alter Desktop_Interact=json_extract(services, "$.desktop_interact")&lt;BR /&gt;| alter state = replace(replace(replace(replace(replace(replace(replace(state, "1", "Start_Pending"),"2", "Stop_Pending"), "3", "Running"), "4", "Continue_Pending"), "5", "Pause_Pending"), "6", "Paused"), "0", "Stopped")&lt;BR /&gt;| alter start_mode = replace(replace(replace(replace(replace(start_mode, "4", "Disabled"),"2", "Automatic"),"0", "Boot"),"1", "System,"),"3", "Manual")&lt;BR /&gt;| fields host_name,Display_Name,Service_Name,Path_Name,UserName,Start_Mode,Started,Service_Type,state,Accept_Pause,Accept_Stop, Delayed, Desktop_Interact&lt;BR /&gt;| sort asc Display_Name &lt;BR /&gt;| filter (host_name contains """NameofHost""")&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jul 2022 17:37:57 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/correlation-rule-for-services/m-p/508353#M2330</guid>
      <dc:creator>NathanBradley</dc:creator>
      <dc:date>2022-07-08T17:37:57Z</dc:date>
    </item>
  </channel>
</rss>

