Name:Ollama Abnormal Network Connectivity id:19ec30ad-faa2-496a-a6a9-f2e5f778fbdb version:6 date:None author:Rod Soto, Nasreddine Bencherchali, Splunk status:production type:Anomaly Description:Detects repeated Ollama warning-level network errors, such as DNS lookup failures, TCP connection issues, or host resolution problems. These events can indicate a connectivity issue and warrant investigation, but do not by themselves establish unauthorized access or reconnaissance. Data_source:
-Ollama Server
search:`ollama_server` level=WARN msg IN ( "*connection*", "*dial tcp*", "*failed*", "*lookup*", "*network*", "*no such host*", "*refused*", "*timeout*", "*unreachable*" )
| eval dest=coalesce(dest, host) | bin _time span=5m | stats count as incidents values(msg) as warning_messages latest(_time) as last_incident by _time dest
| table last_incident dest incidents warning_messages severity attack_type
| `ollama_abnormal_network_connectivity_filter`
how_to_implement:Ingest Ollama logs via Splunk TA-ollama add-on by configuring file monitoring inputs pointed to your Ollama server log directories (sourcetype: ollama:server), or enable HTTP Event Collector (HEC) for real-time API telemetry and prompt analytics (sourcetypes: ollama:api, ollama:prompts). CIM compatibility using the Web datamodel for standardized security detections. known_false_positives:Legitimate remote access from authorized users or applications connecting from non-localhost addresses, temporary network infrastructure issues causing DNS resolution failures, firewall or network configuration changes resulting in connection timeouts, cloud-hosted Ollama instances receiving valid external API requests, or intermittent connectivity problems during network maintenance may trigger this detection during normal operations. References: -https://github.com/rosplk/ta-ollama drilldown_searches: name:'View the detection results for - "$dest$"' search:'%original_detection_search%
| search dest="$dest$"' earliest_offset:'$info_min_time$' latest_offset:'$info_max_time$' name:'View risk events for the last 7 days for - "$dest$"' search:'from datamodel Risk.All_Risk
| search normalized_risk_object IN ("$dest$")
| stats count min(_time) as firstTime max(_time) as lastTime values(search_name) as "Search Name" values(risk_message) as "Risk Message" values(analyticstories) as "Analytic Stories" values(annotations._all) as "Annotations" values(annotations.mitre_attack.mitre_tactic) as "ATT&CK Tactics" by normalized_risk_object
| `security_content_ctime(firstTime)`
| `security_content_ctime(lastTime)`' earliest_offset:'7d' latest_offset:'0' analytic_story:['Suspicious Ollama Activities']