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.

2.5 KB
Raw Blame
id: splunk-security-content-0f83244b-425b-4528-83db-7a88c5f66e48
name: Kubernetes Nginx Ingress LFI
description: The following analytic detects local file inclusion (LFI) attacks targeting
  Kubernetes Nginx ingress controllers. It leverages Kubernetes logs, parsing fields
  such as `request` and `status` to identify suspicious patterns indicative of LFI
  attempts. This activity is significant because LFI attacks can allow attackers to
  read sensitive files from the server, potentially exposing critical information.
  If confirmed malicious, this could lead to unauthorized access to sensitive data,
  further exploitation, and potential compromise of the Kubernetes environment.
severity: medium
enabled: false
tags:
  mitre:
  - T1212
  categories:
  - cloud
references:
- https://github.com/splunk/splunk-connect-for-kubernetes
- https://www.offensive-security.com/metasploit-unleashed/file-inclusion-vulnerabilities/
logsource:
  product: splunk
detection:
  splunk_spl: '`kubernetes_container_controller` | rex field=_raw "^(?<remote_addr>\S+)\s+-\s+-\s+\[(?<time_local>[^\]]*)\]\s\"(?<request>[^\"]*)\"\s(?<status>\S*)\s(?<body_bytes_sent>\S*)\s\"(?<http_referer>[^\"]*)\"\s\"(?<http_user_agent>[^\"]*)\"\s(?<request_length>\S*)\s(?<request_time>\S*)\s\[(?<proxy_upstream_name>[^\]]*)\]\s\[(?<proxy_alternative_upstream_name>[^\]]*)\]\s(?<upstream_addr>\S*)\s(?<upstream_response_length>\S*)\s(?<upstream_response_time>\S*)\s(?<upstream_status>\S*)\s(?<req_id>\S*)"
    | rename remote_addr AS src_ip, upstream_status as status, proxy_upstream_name
    as proxy | rex field=request "^(?<http_method>\S+)\s(?<url>\S+)\s" | eval phase="operate"
    | eval severity="high" | stats count min(_time) as firstTime max(_time) as lastTime
    by src_ip, status, url, http_method, host, http_user_agent, proxy, phase, severity,
    request | lookup local_file_inclusion_paths local_file_inclusion_paths AS request
    OUTPUT lfi_path | search lfi_path=yes | `security_content_ctime(firstTime)` |
    `security_content_ctime(lastTime)` | `kubernetes_nginx_ingress_lfi_filter`'
provenance:
  source: splunk/security_content
  source_id: 0f83244b-425b-4528-83db-7a88c5f66e48
  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_nginx_ingress_lfi.yml
notes:
  splunk_status: production
  splunk_data_source: []
  quarantine_reason: raw SPL — needs translation to AiSOC detection schema