<?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 How do I Exclude Blocked IPs from Threat Activity Detected Rule? in Other Usage</title>
    <link>https://community.splunk.com/t5/Other-Usage/How-do-I-Exclude-Blocked-IPs-from-Threat-Activity-Detected-Rule/m-p/648457#M955</link>
    <description>&lt;P&gt;Hey,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am wondering how can we modify the below query/rule to exclude IPs that have been blocked by firewall.&amp;nbsp; orig_sourcetype="fortigate_utm".&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Query:&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;

| from datamodel:"Threat_Intelligence"."Threat_Activity" | dedup threat_match_field,threat_match_value | `get_event_id` | table _raw,event_id,source,src,dest,src_user,user,threat*,weight | rename weight as record_weight | `per_panel_filter("ppf_threat_activity","threat_match_field,threat_match_value")` | `get_threat_attribution(threat_key)` | rename source_* as threat_source_*,description as threat_description | fields - *time | eval risk_score=case(isnum(record_weight), record_weight, isnum(weight) AND weight=1, 60, isnum(weight), weight, 1=1, null()),risk_system=if(threat_match_field IN("query", "answer"),threat_match_value,null()),risk_hash=if(threat_match_field IN("file_hash"),threat_match_value,null()),risk_network=if(threat_match_field IN("http_user_agent", "url") OR threat_match_field LIKE "certificate_%",threat_match_value,null()),risk_host=if(threat_match_field IN("file_name", "process", "service") OR threat_match_field LIKE "registry_%",threat_match_value,null()),risk_other=if(threat_match_field IN("query", "answer", "src", "dest", "src_user", "user", "file_hash", "http_user_agent", "url", "file_name", "process", "service") OR threat_match_field LIKE "certificate_%" OR threat_match_field LIKE "registry_%",threat_match_value,null()) | search (src=10.0.0.0/8 OR src=172.16.0.0/12 OR src=192.168.0.0/16)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image_2023-06-28_154803120.png" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/26044i3838156A22E567B0/image-size/large?v=v2&amp;amp;px=999" role="button" title="image_2023-06-28_154803120.png" alt="image_2023-06-28_154803120.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 28 Jun 2023 15:35:59 GMT</pubDate>
    <dc:creator>cookislands</dc:creator>
    <dc:date>2023-06-28T15:35:59Z</dc:date>
    <item>
      <title>How do I Exclude Blocked IPs from Threat Activity Detected Rule?</title>
      <link>https://community.splunk.com/t5/Other-Usage/How-do-I-Exclude-Blocked-IPs-from-Threat-Activity-Detected-Rule/m-p/648457#M955</link>
      <description>&lt;P&gt;Hey,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am wondering how can we modify the below query/rule to exclude IPs that have been blocked by firewall.&amp;nbsp; orig_sourcetype="fortigate_utm".&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Query:&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;

| from datamodel:"Threat_Intelligence"."Threat_Activity" | dedup threat_match_field,threat_match_value | `get_event_id` | table _raw,event_id,source,src,dest,src_user,user,threat*,weight | rename weight as record_weight | `per_panel_filter("ppf_threat_activity","threat_match_field,threat_match_value")` | `get_threat_attribution(threat_key)` | rename source_* as threat_source_*,description as threat_description | fields - *time | eval risk_score=case(isnum(record_weight), record_weight, isnum(weight) AND weight=1, 60, isnum(weight), weight, 1=1, null()),risk_system=if(threat_match_field IN("query", "answer"),threat_match_value,null()),risk_hash=if(threat_match_field IN("file_hash"),threat_match_value,null()),risk_network=if(threat_match_field IN("http_user_agent", "url") OR threat_match_field LIKE "certificate_%",threat_match_value,null()),risk_host=if(threat_match_field IN("file_name", "process", "service") OR threat_match_field LIKE "registry_%",threat_match_value,null()),risk_other=if(threat_match_field IN("query", "answer", "src", "dest", "src_user", "user", "file_hash", "http_user_agent", "url", "file_name", "process", "service") OR threat_match_field LIKE "certificate_%" OR threat_match_field LIKE "registry_%",threat_match_value,null()) | search (src=10.0.0.0/8 OR src=172.16.0.0/12 OR src=192.168.0.0/16)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image_2023-06-28_154803120.png" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/26044i3838156A22E567B0/image-size/large?v=v2&amp;amp;px=999" role="button" title="image_2023-06-28_154803120.png" alt="image_2023-06-28_154803120.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jun 2023 15:35:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Other-Usage/How-do-I-Exclude-Blocked-IPs-from-Threat-Activity-Detected-Rule/m-p/648457#M955</guid>
      <dc:creator>cookislands</dc:creator>
      <dc:date>2023-06-28T15:35:59Z</dc:date>
    </item>
  </channel>
</rss>

