<?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: search IOC in Splunk Enterprise Security</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/search-IOC/m-p/464339#M6856</link>
    <description>&lt;P&gt;thank you very much for this introduction to the notion of rexgex which I did not know in SPLUNK.&lt;/P&gt;

&lt;P&gt;now I complicate it a bit:&lt;/P&gt;

&lt;P&gt;in my IOC.csv in FQDN column i have:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;873.lost.com&lt;/LI&gt;
&lt;LI&gt;lost.com&lt;/LI&gt;
&lt;LI&gt;always.lost.com&lt;/LI&gt;
&lt;LI&gt;31.always.lost.com&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;and i have two logs:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;"srcip=9.9.9.9 dstip=8.8.8.8 query=&lt;A href="http://www.123654873.lost.com"&gt;www.123654873.lost.com&lt;/A&gt;"&lt;/LI&gt;
&lt;LI&gt;"srcip=9.9.9.9 dstip=8.8.8.8 query=87431.always.lost.com"&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;the one solution would be to be able to put a "*" in front of the FQND when it is compared.&lt;BR /&gt;
If I put "*" in front of each FNDN in my IOC.csv it is considered as a character.&lt;/P&gt;

&lt;P&gt;sorry for the headaches &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 24 May 2020 09:54:43 GMT</pubDate>
    <dc:creator>theyukora</dc:creator>
    <dc:date>2020-05-24T09:54:43Z</dc:date>
    <item>
      <title>search IOC</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/search-IOC/m-p/464335#M6852</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;i use lookup to find IOC in log.&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;in my lookup &lt;STRONG&gt;IOC.csv&lt;/STRONG&gt; in FQDN column i have : &lt;STRONG&gt;lost.com&lt;/STRONG&gt; and &lt;STRONG&gt;&lt;A href="http://www.lost.com" target="_blank"&gt;www.lost.com&lt;/A&gt;&lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI&gt;my log is : "&lt;STRONG&gt;srcip=9.9.9.9 dstip=8.8.8.8 query=&lt;A href="http://www.lost.com" target="_blank"&gt;www.lost.com&lt;/A&gt;&lt;/STRONG&gt;"&lt;/LI&gt;
&lt;LI&gt;"&lt;STRONG&gt;index=test | lookup IOS.csv FQDN as query OUTPUT FQDN | search FQDN=&lt;/STRONG&gt;* "&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;the problem is that only IOC &lt;A href="http://www.lost.com" target="_blank"&gt;www.lost.com&lt;/A&gt; will come out and not lost.com&lt;/P&gt;
&lt;P&gt;I did find a solution with a request based on inputlookup but this is too greedy in resource&lt;/P&gt;
&lt;P&gt;do you have a proposal for me? thank you&lt;/P&gt;</description>
      <pubDate>Sun, 07 Jun 2020 15:55:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/search-IOC/m-p/464335#M6852</guid>
      <dc:creator>theyukora</dc:creator>
      <dc:date>2020-06-07T15:55:39Z</dc:date>
    </item>
    <item>
      <title>Re: search IOC</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/search-IOC/m-p/464336#M6853</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Maybe you could try to first extract the domain from your query field, and then search your IOC csv file.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=answers 
| rex field=query "\.(?&amp;lt;domain&amp;gt;\w+\.\w+?)(?:$|\/)" 
| eval query = mvappend(query, domain) 
| lookup ioc FQDN as query OUTPUT FQDN 
| search FQDN=* 
| table srcip, dstip, query, FQDN
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The search above had returned a table like this:&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/8984i2442C8825670589B/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Also, if you are using Splunk Enterprise Security, I recommend you to take a look on the Threat Activity Detected correlation search and on the Splunk threat feeds feature.&lt;/P&gt;</description>
      <pubDate>Sat, 23 May 2020 15:02:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/search-IOC/m-p/464336#M6853</guid>
      <dc:creator>alonsocaio</dc:creator>
      <dc:date>2020-05-23T15:02:51Z</dc:date>
    </item>
    <item>
      <title>Re: search IOC</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/search-IOC/m-p/464337#M6854</link>
      <description>&lt;P&gt;thank you i try&lt;/P&gt;</description>
      <pubDate>Sat, 23 May 2020 16:31:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/search-IOC/m-p/464337#M6854</guid>
      <dc:creator>theyukora</dc:creator>
      <dc:date>2020-05-23T16:31:21Z</dc:date>
    </item>
    <item>
      <title>Re: search IOC</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/search-IOC/m-p/464338#M6855</link>
      <description>&lt;P&gt;&lt;CODE&gt;| rex field=query "\.(?&amp;lt;domain&amp;gt;\w+\.\w+?)(?:$|\/)"&lt;/CODE&gt; can't handle about &lt;CODE&gt;&lt;A href="https://community.splunk.com/www.bbc.co.uk" target="test_blank"&gt;www.bbc.co.uk&lt;/A&gt;&lt;/CODE&gt; ,&lt;CODE&gt;&lt;A href="https://community.splunk.com/www.cctv.com.cn" target="test_blank"&gt;www.cctv.com.cn&lt;/A&gt;&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;| rex field=query "[\w-]+\.(?&amp;lt;domain&amp;gt;[^\/:]+)"&lt;/CODE&gt; is better.&lt;/P&gt;</description>
      <pubDate>Sat, 23 May 2020 21:15:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/search-IOC/m-p/464338#M6855</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-05-23T21:15:32Z</dc:date>
    </item>
    <item>
      <title>Re: search IOC</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/search-IOC/m-p/464339#M6856</link>
      <description>&lt;P&gt;thank you very much for this introduction to the notion of rexgex which I did not know in SPLUNK.&lt;/P&gt;

&lt;P&gt;now I complicate it a bit:&lt;/P&gt;

&lt;P&gt;in my IOC.csv in FQDN column i have:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;873.lost.com&lt;/LI&gt;
&lt;LI&gt;lost.com&lt;/LI&gt;
&lt;LI&gt;always.lost.com&lt;/LI&gt;
&lt;LI&gt;31.always.lost.com&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;and i have two logs:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;"srcip=9.9.9.9 dstip=8.8.8.8 query=&lt;A href="http://www.123654873.lost.com"&gt;www.123654873.lost.com&lt;/A&gt;"&lt;/LI&gt;
&lt;LI&gt;"srcip=9.9.9.9 dstip=8.8.8.8 query=87431.always.lost.com"&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;the one solution would be to be able to put a "*" in front of the FQND when it is compared.&lt;BR /&gt;
If I put "*" in front of each FNDN in my IOC.csv it is considered as a character.&lt;/P&gt;

&lt;P&gt;sorry for the headaches &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 24 May 2020 09:54:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/search-IOC/m-p/464339#M6856</guid>
      <dc:creator>theyukora</dc:creator>
      <dc:date>2020-05-24T09:54:43Z</dc:date>
    </item>
    <item>
      <title>Re: search IOC</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/search-IOC/m-p/464340#M6857</link>
      <description>&lt;P&gt;Well, since you need to match the FQDN, I guess that using the regex proposed by @to4kawa would help you better.&lt;/P&gt;

&lt;P&gt;But just to confirm, you need "87431.always.lost.com" to match just "always.lost.com" on your IOC list? Or do you need it to also match "lost.com"?&lt;/P&gt;</description>
      <pubDate>Sun, 24 May 2020 18:23:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/search-IOC/m-p/464340#M6857</guid>
      <dc:creator>alonsocaio</dc:creator>
      <dc:date>2020-05-24T18:23:11Z</dc:date>
    </item>
    <item>
      <title>Re: search IOC</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/search-IOC/m-p/464341#M6858</link>
      <description>&lt;P&gt;the hoped result is that for the LOG:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;"srcip=9.9.9.9 dstip=8.8.8.8 query=&lt;A href="http://www.123654873.lost.com"&gt;www.123654873.lost.com&lt;/A&gt;"&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;I must have iOC : lost.com , 873.lost.com&lt;/P&gt;

&lt;P&gt;ans for the log:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;"srcip=9.9.9.9 dstip=8.8.8.8 query=87431.always.lost.com"&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;I must have IOC : lost.com, always.lost.com, 31.always.lost.com&lt;/P&gt;</description>
      <pubDate>Mon, 25 May 2020 07:06:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/search-IOC/m-p/464341#M6858</guid>
      <dc:creator>theyukora</dc:creator>
      <dc:date>2020-05-25T07:06:56Z</dc:date>
    </item>
  </channel>
</rss>

