Skip to content

armgit / AiSOC

Public Imported from GitHub
0

Open-source AI Security Operations Center: alert fusion, LLM-agent triage, MITRE ATT&CK investigation, and a replayable decision ledger for every agent step. Self-hostable, runs with no API keys, MIT licensed. Ships an MCP server for Claude, Cursor and Continue.

3.0 KB
Raw Blame
id: splunk-security-content-dd6afee6-e0a3-4028-a089-f47dd2842c22
name: Kubernetes Anomalous Outbound Network Activity from Process
description: The following analytic identifies anomalously high outbound network activity
  from processes running within containerized workloads in a Kubernetes environment.
  It leverages Network Performance Monitoring metrics collected via an OTEL collector
  and pulled from Splunk Observability Cloud. The detection compares recent network
  metrics (tcp.bytes, tcp.new_sockets, tcp.packets, udp.bytes, udp.packets) over the
  last hour with the average metrics over the past 30 days. This activity is significant
  as it may indicate data exfiltration, process modification, or container compromise.
  If confirmed malicious, it could lead to unauthorized data exfiltration, communication
  with malicious entities, or further attacks within the containerized environment.
severity: medium
enabled: false
tags:
  mitre:
  - T1204
  categories:
  - cloud
references:
- https://github.com/signalfx/splunk-otel-collector-chart
logsource:
  product: splunk
detection:
  splunk_spl: '| mstats avg(tcp.*) as tcp.* avg(udp.*) as udp.* where `kubernetes_metrics`
    AND earliest=-1h by k8s.cluster.name source.workload.name source.process.name  span=10s
    | eval key=''source.workload.name'' + ":" + ''source.process.name'' | join type=left
    key [ mstats avg(tcp.*) as avg_tcp.* avg(udp.*) as avg_udp.* stdev(tcp.*) as stdev_tcp.*
    avg(udp.*) as stdev_udp.* where `kubernetes_metrics` AND earliest=-30d latest=-1h
    by source.workload.name source.process.name | eval key=''source.workload.name''
    + ":" + ''source.process.name'' ] | eval anomalies = "" | foreach stdev_* [ eval
    anomalies =if( ''<<MATCHSTR>>'' > (''avg_<<MATCHSTR>>'' + 3 * ''stdev_<<MATCHSTR>>''),
    anomalies + "<<MATCHSTR>> higher than average by " + tostring(round((''<<MATCHSTR>>''
    - ''avg_<<MATCHSTR>>'')/''stdev_<<MATCHSTR>>'' ,2)) + " Standard Deviations. <<MATCHSTR>>="
    + tostring(''<<MATCHSTR>>'') + " avg_<<MATCHSTR>>=" + tostring(''avg_<<MATCHSTR>>'')
    + " ''stdev_<<MATCHSTR>>''=" + tostring(''stdev_<<MATCHSTR>>'') + ", " , anomalies)
    ] | fillnull | eval anomalies = split(replace(anomalies, ",\s$$$$", "") ,", ")
    | where anomalies!="" | stats count(anomalies) as count values(anomalies) as anomalies
    by k8s.cluster.name source.workload.name source.process.name | where count > 5
    | rename k8s.cluster.name as host | `kubernetes_anomalous_outbound_network_activity_from_process_filter`'
provenance:
  source: splunk/security_content
  source_id: dd6afee6-e0a3-4028-a089-f47dd2842c22
  source_commit: 4d4c7ee
  license: Apache-2.0
  license_url: https://github.com/splunk/security_content/blob/develop/LICENSE
  imported_at: '2026-05-04'
  imported_by: splunk_importer
  upstream_path: detections/cloud/kubernetes_anomalous_outbound_network_activity_from_process.yml
notes:
  splunk_status: experimental
  splunk_data_source: []
  quarantine_reason: 'upstream status: experimental'