<?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: Will the Rule Builder accept Powershell commands? in Cortex XDR Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/will-the-rule-builder-accept-powershell-commands/m-p/540918#M4282</link>
    <description>&lt;P&gt;Hi Chris_Dietz,&lt;BR /&gt;&lt;BR /&gt;Yes, the CMD field in the BIOC rule builder applies to any process command line captured by the XDR agent, including powershell. You can narrow your rule down further by defining powershell.exe as the process name in the rule builder as well.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Ben&lt;/P&gt;</description>
    <pubDate>Wed, 03 May 2023 14:21:50 GMT</pubDate>
    <dc:creator>bbucao</dc:creator>
    <dc:date>2023-05-03T14:21:50Z</dc:date>
    <item>
      <title>Will the Rule Builder accept Powershell commands?</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/will-the-rule-builder-accept-powershell-commands/m-p/540606#M4260</link>
      <description>&lt;P&gt;Will the process rule builder accept Powershell commands? or only Windows command line?&lt;/P&gt;</description>
      <pubDate>Mon, 01 May 2023 15:59:52 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/will-the-rule-builder-accept-powershell-commands/m-p/540606#M4260</guid>
      <dc:creator>Chris_Dietz</dc:creator>
      <dc:date>2023-05-01T15:59:52Z</dc:date>
    </item>
    <item>
      <title>Re: Will the Rule Builder accept Powershell commands?</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/will-the-rule-builder-accept-powershell-commands/m-p/540918#M4282</link>
      <description>&lt;P&gt;Hi Chris_Dietz,&lt;BR /&gt;&lt;BR /&gt;Yes, the CMD field in the BIOC rule builder applies to any process command line captured by the XDR agent, including powershell. You can narrow your rule down further by defining powershell.exe as the process name in the rule builder as well.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Ben&lt;/P&gt;</description>
      <pubDate>Wed, 03 May 2023 14:21:50 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/will-the-rule-builder-accept-powershell-commands/m-p/540918#M4282</guid>
      <dc:creator>bbucao</dc:creator>
      <dc:date>2023-05-03T14:21:50Z</dc:date>
    </item>
    <item>
      <title>Re: Will the Rule Builder accept Powershell commands?</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/will-the-rule-builder-accept-powershell-commands/m-p/540923#M4285</link>
      <description>&lt;P&gt;Thanks Ben! What do I do if I have a multiple line command? Do I just paste it all in there?&lt;/P&gt;</description>
      <pubDate>Wed, 03 May 2023 14:30:09 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/will-the-rule-builder-accept-powershell-commands/m-p/540923#M4285</guid>
      <dc:creator>Chris_Dietz</dc:creator>
      <dc:date>2023-05-03T14:30:09Z</dc:date>
    </item>
    <item>
      <title>Re: Will the Rule Builder accept Powershell commands?</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/will-the-rule-builder-accept-powershell-commands/m-p/540941#M4287</link>
      <description>&lt;P&gt;Hi Chris_Dietz,&lt;BR /&gt;&lt;BR /&gt;I may have misunderstood your original question. The logic you use to match the traffic will depend on how it was executed. If a command prompt is used to execute powershell commands such as&amp;nbsp;&lt;EM&gt;powershell.exe Write-Host "Hello, World!",&amp;nbsp;&lt;/EM&gt;You could use the process rule builder to match on the command line.&amp;nbsp; If the command/commands were executed through a powershell terminal you can try using the query below as a template to create rules off of. You can add any number of filtering criteria on the "content" field which should result in matches on your identified powershell activity. I do recommend running some test powershell commands and validating that you can match on it using a variation of the below query, which is valid to save as a BIOC rule.&lt;BR /&gt;&lt;BR /&gt;dataset = xdr_data&lt;BR /&gt;| filter event_type = EVENT_LOG and action_evtlog_message = "AmsiScanBuffer "&lt;BR /&gt;| alter content = json_extract_scalar(action_evtlog_data_fields, "$.content")&lt;BR /&gt;|filter actor_process_image_path contains "powershell"&lt;BR /&gt;//| filter content contains "Write-Host Hello, World"&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Ben&lt;/P&gt;</description>
      <pubDate>Wed, 03 May 2023 17:04:10 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/will-the-rule-builder-accept-powershell-commands/m-p/540941#M4287</guid>
      <dc:creator>bbucao</dc:creator>
      <dc:date>2023-05-03T17:04:10Z</dc:date>
    </item>
    <item>
      <title>Re: Will the Rule Builder accept Powershell commands?</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/will-the-rule-builder-accept-powershell-commands/m-p/540962#M4288</link>
      <description>&lt;P&gt;Hi Ben,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm trying to take some of the Red Canary tests and add the criteria to Cortex. Here is a link to what I'm looking at to give you an idea.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1218.004/T1218.004.md" target="_blank"&gt;https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1218.004/T1218.004.md&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 May 2023 17:22:31 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/will-the-rule-builder-accept-powershell-commands/m-p/540962#M4288</guid>
      <dc:creator>Chris_Dietz</dc:creator>
      <dc:date>2023-05-03T17:22:31Z</dc:date>
    </item>
  </channel>
</rss>

