<?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 Extracting Domains Not from URL in Cortex XSOAR Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/extracting-domains-not-from-url/m-p/588008#M3343</link>
    <description>&lt;P&gt;Hello Live Comm,&lt;/P&gt;
&lt;P&gt;I am working on a use-case that allows us to extract indicators from specific reports and then pushes them to monitoring systems.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We have seen that using the built-in Extract Indicator command causes domains to be extracted from URLs. Is there a way to allow only domains that are not in a URL to be extracted? I can see that you cant detach the indicator type or edit its Regex property.&lt;/P&gt;
&lt;P&gt;For example:&lt;/P&gt;
&lt;P&gt;github.com/malicious/repo is extracting github.com. This can cause a lot of havoc as many FP alerts can be encountered from this generally legitimate domain.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Many thanks,&lt;/P&gt;
&lt;P&gt;MR&lt;/P&gt;
&lt;P&gt;&lt;LI-PRODUCT title="Cortex XSOAR" id="Cortex_XSOAR"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 27 May 2024 13:19:20 GMT</pubDate>
    <dc:creator>michaelsysec242</dc:creator>
    <dc:date>2024-05-27T13:19:20Z</dc:date>
    <item>
      <title>Extracting Domains Not from URL</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/extracting-domains-not-from-url/m-p/588008#M3343</link>
      <description>&lt;P&gt;Hello Live Comm,&lt;/P&gt;
&lt;P&gt;I am working on a use-case that allows us to extract indicators from specific reports and then pushes them to monitoring systems.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We have seen that using the built-in Extract Indicator command causes domains to be extracted from URLs. Is there a way to allow only domains that are not in a URL to be extracted? I can see that you cant detach the indicator type or edit its Regex property.&lt;/P&gt;
&lt;P&gt;For example:&lt;/P&gt;
&lt;P&gt;github.com/malicious/repo is extracting github.com. This can cause a lot of havoc as many FP alerts can be encountered from this generally legitimate domain.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Many thanks,&lt;/P&gt;
&lt;P&gt;MR&lt;/P&gt;
&lt;P&gt;&lt;LI-PRODUCT title="Cortex XSOAR" id="Cortex_XSOAR"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 May 2024 13:19:20 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/extracting-domains-not-from-url/m-p/588008#M3343</guid>
      <dc:creator>michaelsysec242</dc:creator>
      <dc:date>2024-05-27T13:19:20Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting Domains Not from URL</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/extracting-domains-not-from-url/m-p/588044#M3344</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/209373"&gt;@michaelsysec242&lt;/a&gt;, I don't think there is a way to ignore the domains without modifying the regex. I use the below method.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. Run the&amp;nbsp;&lt;CODE&gt;extractIndicators&lt;/CODE&gt; command (This will generate the list of URLs and Domains under the &lt;STRONG&gt;ExtractedIndicators&lt;/STRONG&gt; key, the list of domains also contain domain-only IOCs)&lt;/P&gt;
&lt;P&gt;2. Run the&amp;nbsp;&lt;CODE&gt;extractIndicators&lt;/CODE&gt; command on the&amp;nbsp;&lt;STRONG&gt;ExtractedIndicators.URL&lt;/STRONG&gt; key. You'll need to run the command with some DT to extract the domains. (Note, the list of domains added to&amp;nbsp;&lt;STRONG&gt;domainfromURL&lt;/STRONG&gt; key are domains extracted from URLs only)&lt;/P&gt;
&lt;P&gt;&lt;CODE&gt;!extractIndicators text=${ExtractedIndicators.URL} ignore-outputs=true extend-context=domainfromURL=.=JSON.parse(val).Domain[0]&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;3. Then run the set function with a filter to ignore Domains that are in the&amp;nbsp;&lt;STRONG&gt;domainfromURL&lt;/STRONG&gt; list. Example below.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="example_of_set_function.png" style="width: 704px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/60057i7562A61A21272C60/image-dimensions/704x331?v=v2" width="704" height="331" role="button" title="example_of_set_function.png" alt="example_of_set_function.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this helps.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 May 2024 03:08:49 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/extracting-domains-not-from-url/m-p/588044#M3344</guid>
      <dc:creator>jfernandes1</dc:creator>
      <dc:date>2024-05-28T03:08:49Z</dc:date>
    </item>
  </channel>
</rss>

