Detecting F5 TMM overflows: 4 Sigma rules for Kubernetes and BIG-IP crash signals

Detecting F5 TMM overflows: 4 Sigma rules for Kubernetes and BIG-IP crash signals

Six critical TMM stack overflows, CVSS 9.8 each, and not one indicator of compromise to go with them. F5 describes the trigger only as “undisclosed requests,” no request details or proof of concept are public as far as I could find, and there is no known exploitation as of November 22, 2026 (not in CISA KEV; CISA’s SSVC enrichment says exploitation: none). If you run BIG-IP Next for Kubernetes, CNF or classic BIG-IP with service-provider iRules, you can’t search for the attack. You can search for the configuration it needs and for the one thing every one of these bugs does when it fires: it kills TMM.

The background (which iRule commands, which products, the messy CNF scope and the hotfix builds) is in my analysis of the F5 TMM overflows. This post is the detection side: four Sigma rules, the audit and log settings they depend on, what F5 documents versus what I’m inferring, tuning notes, safe lab tests and the gaps none of them close.

At a glance

  • Rules: 4 (one high, three medium)
  • Domains: Kubernetes (three rules) and Network (one rule for classic BIG-IP)
  • Log sources: F5 Coremond container logs; Kubernetes API audit log at Request level for pod status and the F5 iRule resource; BIG-IP /var/log/ltm via remote syslog
  • ATT&CK: T1499.004 Endpoint Denial of Service: Application or System Exploitation; T1190 Exploit Public-Facing Application
  • Status: all experimental. Field names and log messages come from F5 documentation or F5’s bug tracker where I could find them; the alert logic is mine
  • YAML: Detection Rules repo on GitHub (Kubernetes and Network folders)

The case in brief

Per F5’s CVE records, five of the bugs need an iRule that uses PEM::subscriber, DNS::scrape, PSC::ip_address, MR::message route or GENERICMESSAGE::route on a virtual server. The sixth (CVE-2026-123637) needs an APM per-request policy and only affects BIG-IP. An unauthenticated attacker then sends requests F5 hasn’t described, a native handler in the Traffic Management Microkernel overflows a stack buffer, and TMM terminates. F5 says code execution may be possible; as far as I could find, no public proof of concept shows it. The analysis covers the product scope in detail.

So the attack leaves traces at two points. Before: the vulnerable iRule exists, and in CNF and BNK it’s a Kubernetes object, so creating or changing it passes through the API server. After: TMM dies. In a cluster the kubelet records the f5-tmm container’s termination in the pod status, and F5’s Coremond DaemonSet picks up the core file. On an appliance, BIG-IP logs the TMM restart to /var/log/ltm. The request in between is invisible to every log I know of.

Here is where my sources stop and I start. F5 documents the F5BigCneIrule kind with the script in spec.iRule (CNF docs), the f5-tmm container name and the Coremond messages (BIG-IP Next for Kubernetes 2.0.0-GA docs only; I could not confirm that CNF or BNK 2.2 to 2.4, the affected releases, use the same names). The BIG-IP restart messages come from F5’s bug tracker and an F5 community thread, not from these advisories. Treating restarts as the alert signal for these CVEs, the core.tmm file prefix, and the iRule resource’s plural name on BNK are my inferences.

Detection map

Detection map: Coremond container logs, the Kubernetes API audit log and BIG-IP /var/log/ltm feed four Sigma rules (TMM core reported by Coremond, f5-tmm container terminated, iRule custom resource using an affected command, BIG-IP TMM restart) mapped to T1499.004 and T1190, with the exploit request and possible RCE marked as gaps.
Which telemetry feeds which rule, and what stays dark. All four rules are experimental; the alert logic is netsec101 inference.

Read it left to right. Coremond logs feed the high-level rule, because a TMM core is rare and always worth a look. The Kubernetes audit log feeds two rules: one for the f5-tmm container terminating, one for an iRule resource that uses an affected command. BIG-IP’s LTM log feeds the appliance restart rule. The dashed box is what stays dark: the exploit request itself and anything that might happen inside TMM if code execution turns out to be real.

Rule overview

RuleDomainLog sourceATT&CK (tactic / technique)LevelStatus
F5 Coremond reports TMM core dumpKubernetesf5 / coremond (custom)Impact / T1499.004, Initial Access / T1190HighExperimental
F5 TMM container terminated in Kubernetes pod status updateKuberneteskubernetes / auditImpact / T1499.004MediumExperimental
F5 iRule custom resource created or changed with affected commandKuberneteskubernetes / auditInitial Access / T1190 (precondition)MediumExperimental
F5 BIG-IP TMM restart logged in LTM logNetworkf5 / bigip_ltm (custom)Impact / T1499.004MediumExperimental

The rules

F5 Coremond reports a TMM core dump

Context: this rule covers the five iRule CVEs that F5 lists for BIG-IP Next for Kubernetes; CVE-2026-123637 is BIG-IP APM only and doesn’t apply in a cluster. F5’s BIG-IP Next for Kubernetes 2.0.0-GA docs describe Coremond as a DaemonSet in the f5-utils namespace that watches /var/crash, converts kernel cores to core.<pod>.<container>.<process>...gz files and logs each step. The documented lines are "m"="new core file detected" with a file path and "m"="creating coredump" with a src path. The source file follows the core.%e.%p.%h.%t pattern, so the executable name comes right after core.. F5’s example crash is the observer process, not TMM, so the core.tmm prefix is my inference. Those 2.0.0-GA pages are the only Coremond documentation I found, so whether CNF and BNK 2.2 to 2.4 ship Coremond with the same messages is unverified.

Condition: alert when an f5-coremond log line contains “new core file detected” or “creating coredump”, and the same line contains core.tmm.

ATT&CK: Impact (TA0040) – T1499.004 Endpoint Denial of Service: Application or System Exploitation; secondary Initial Access (TA0001) – T1190 Exploit Public-Facing Application.

title: F5 Coremond Reports TMM Core Dump - Potential CVE-2026-121805 Family Crash
id: 52cd65cb-4265-4312-ad93-549f783e1c8d
status: experimental
description: |
    Detects the F5 Coremond DaemonSet logging a new or converted core file whose name starts with core.tmm.
    The five November 2026 iRule-triggered TMM stack overflows listed for BIG-IP Next for Kubernetes make TMM
    terminate when triggered (CVE-2026-123637 is BIG-IP APM only and not covered here).
    Coremond and its messages are documented on the BNK 2.0.0-GA pages only; CNF and BNK 2.2-2.4 applicability
    is unverified. The core.tmm file prefix is inferred from the core_pattern naming.
references:
    - https://clouddocs.f5.com/bigip-next-for-kubernetes/2.0.0-GA/spk-coremond.html
    - https://www.cve.org/CVERecord?id=CVE-2026-121805
    - https://www.cve.org/CVERecord?id=CVE-2026-120722
    - https://netsec101.com/?p=412
author: netsec101.com
date: 2026-11-22
tags:
    - attack.impact
    - attack.t1499.004
    - attack.initial-access
    - attack.t1190
    - cve.2026-121805
    - cve.2026-120722
    - cve.2026-120285
    - cve.2026-120292
    - cve.2026-116953
    - detection.emerging-threats
logsource:
    product: f5
    service: coremond
    definition: 'Container logs of the f5-coremond container (DaemonSet in the f5-utils namespace), shipped by your cluster log agent. Custom logsource: map it in your pipeline.'
detection:
    keywords_message:
        - 'new core file detected'
        - 'creating coredump'
    keywords_tmm:
        - 'core.tmm'
    condition: keywords_message and keywords_tmm
falsepositives:
    - TMM crashes from unrelated F5 bugs or resource exhaustion (still worth an F5 case)
    - Deliberate test crashes in a lab
level: high

View on GitHub

False positives and tuning: every TMM crash fires this, whatever the cause, and I think that’s correct. A crashing data plane is an incident even when it isn’t an attack. Ship the f5-coremond container logs (your cluster log agent usually does this already) and point the two keyword lists at that index. If your backend parses the pipe-delimited key/value format, tighten it to m equals the message and the path field starting with /var/crash/core.tmm. In F5’s example the path is in file on the “new core file detected” line and in src on the “creating coredump” line. Then join the alert to the result of the iRule grep in the analysis: a TMM core on a data plane that runs one of the five commands goes to the top of the queue.

How to test: F5’s own Coremond page crashes a non-TMM process with kill -11 in a lab to show the pipeline; do that in a lab to confirm the logs reach your SIEM. To check the core.tmm filter without crashing anything, write a synthetic log line in the documented format with a /var/crash/core.tmm... path into a test index. Don’t crash TMM in production to test a rule.

F5 TMM container terminated in a Kubernetes pod status update

Context: when TMM dies inside a pod, the kubelet restarts the container, and my understanding is that it reports the previous termination in the pod’s status (lastState.terminated). I haven’t verified that every audited status patch carries that field. The analyst’s suggestion (not F5’s) was to alert on this for the f5-tmm container, the TMM container name in F5’s BIG-IP Next for Kubernetes 2.0.0-GA debug sidecar docs. Whether CNF and BNK 2.2 to 2.4 use the same container name is unverified. Most teams would do this with kube-state-metrics; this rule does it from the API audit log so it lands in the same SIEM as everything else.

Condition: alert when a node identity (system:node:*) patches or updates pods/status, the body lists a container named f5-tmm, and a container’s lastState.terminated.reason is Error or OOMKilled.

ATT&CK: Impact (TA0040) – T1499.004 Endpoint Denial of Service: Application or System Exploitation.

title: F5 TMM Container Terminated in Kubernetes Pod Status Update
id: eb267455-b350-4ccf-b6da-b05390a462b5
status: experimental
description: |
    Detects the kubelet reporting that the f5-tmm container of a BIG-IP Next for Kubernetes or CNF pod
    terminated with reason Error or OOMKilled. The November 2026 TMM stack overflows crash TMM when triggered.
    The f5-tmm container name is documented on the BNK 2.0.0-GA pages only; CNF and BNK 2.2-2.4 naming is
    unverified. Using pod status audit events as the signal is netsec101 inference.
references:
    - https://clouddocs.f5.com/bigip-next-for-kubernetes/2.0.0-GA/spk-tmm-debug.html
    - https://kubernetes.io/docs/tasks/debug/debug-cluster/audit/
    - https://www.cve.org/CVERecord?id=CVE-2026-121805
    - https://netsec101.com/?p=412
author: netsec101.com
date: 2026-11-22
tags:
    - attack.impact
    - attack.t1499.004
    - cve.2026-121805
    - cve.2026-120722
    - cve.2026-120285
    - cve.2026-120292
    - cve.2026-116953
    - detection.emerging-threats
logsource:
    product: kubernetes
    service: audit
    definition: 'Requires an audit policy that logs pods/status at level Request or RequestResponse for the BNK/CNF namespaces. The upstream example policy logs pods/status at Metadata only, which drops the body this rule needs.'
detection:
    selection_status:
        objectRef.resource: 'pods'
        objectRef.subresource: 'status'
        verb:
            - 'patch'
            - 'update'
        user.username|startswith: 'system:node:'
    selection_container:
        requestObject.status.containerStatuses.name: 'f5-tmm'
    selection_terminated:
        requestObject.status.containerStatuses.lastState.terminated.reason:
            - 'Error'
            - 'OOMKilled'
    condition: all of selection_*
falsepositives:
    - Planned restarts, upgrades or node drains that end TMM uncleanly
    - OOMKilled from undersized memory limits (operationally relevant, not linked to these CVEs)
    - Multi-container pods where another container terminated (array fields flatten in most backends)
    - Repeat matches on later status patches while lastState is unchanged; deduplicate on pod name and restart count
level: medium

View on GitHub

False positives and tuning: this rule depends on your audit policy more than anything else. The example policy in the Kubernetes docs logs pods/status at Metadata level, which records who patched what but drops the body. Add a rule that logs pods/status at Request level, scoped to the namespaces where BNK or CNF runs, or the volume will hurt. I haven’t verified that every kubelet status patch carries lastState, so expect repeat matches while the old termination stays in the status; deduplicate on pod name and restart count. Most backends flatten arrays, so in a pod with several containers the name and the reason could come from different containers. OOMKilled is there because a TMM out of memory also drops traffic, not because these bugs cause it; drop it if you only want the CVE angle. Planned rollouts and node drains will also fire.

If you already run Prometheus, this alert is simpler and catches the same thing without audit bodies. kube_pod_container_status_restarts_total is a stable kube-state-metrics counter with a container label, per its pod metrics docs. Both lines below are generic Kubernetes examples to test in your environment, not F5 guidance:

# kube-state-metrics: any f5-tmm restart in the last 15 minutes
increase(kube_pod_container_status_restarts_total{container="f5-tmm"}[15m]) > 0

# Ad hoc check from a shell
kubectl get pods -A -o custom-columns=NS:.metadata.namespace,POD:.metadata.name,RESTARTS:.status.containerStatuses[*].restartCount \
  | grep f5-tmm

How to test: this is a generic Kubernetes test, not something F5 documents. In a lab cluster with the audit rule above, run a throwaway pod whose single container is named f5-tmm and runs a busybox command that exits with status 1. The kubelet should restart it, and I’d expect the status patch to carry reason: Error; check the raw audit event before trusting the rule.

F5 iRule custom resource created or changed with an affected command

Context: this one isn’t about an attacker at all. It catches the vulnerable configuration being deployed, so you know which data planes are exposed and when a team adds a new one before the hotfix is in. F5’s CNF docs define iRules as the F5BigCneIrule kind (k8s.f5net.com/v1, short name irule) with the Tcl in spec.iRule. The docs don’t state the plural resource name, and I couldn’t confirm the BNK equivalent, so the rule matches any resource whose name contains irule and relies on the F5-specific command names to stay precise.

Condition: alert on create, update or patch of a resource with irule in its name when spec.iRule contains PEM::subscriber, DNS::scrape, PSC::ip_address or GENERICMESSAGE::route, or matches MR::message followed by whitespace and route.

ATT&CK: Initial Access (TA0001) – T1190 Exploit Public-Facing Application, as the precondition for exploitation, not as evidence of it.

title: F5 iRule Custom Resource Created or Changed With Command Affected by TMM Overflows
id: e57d2b48-ce3a-40a6-8127-4d5829d17142
status: experimental
description: |
    Detects create, update or patch of an F5 iRule custom resource (F5BigCneIrule in the CNF docs) whose
    spec.iRule text uses PEM::subscriber, DNS::scrape, PSC::ip_address, MR::message route or GENERICMESSAGE::route,
    the commands F5 names as triggers for CVE-2026-121805, -120722, -120285, -120292 and -116953.
    The resource plural and BNK CRD names are not confirmed, so the rule matches on 'irule' in the resource name.
references:
    - https://clouddocs.f5.com/cnfs/robin/latest/cnf-irule-crd.html
    - https://www.cve.org/CVERecord?id=CVE-2026-121805
    - https://www.cve.org/CVERecord?id=CVE-2026-120722
    - https://www.cve.org/CVERecord?id=CVE-2026-120285
    - https://www.cve.org/CVERecord?id=CVE-2026-120292
    - https://www.cve.org/CVERecord?id=CVE-2026-116953
    - https://netsec101.com/?p=412
author: netsec101.com
date: 2026-11-22
tags:
    - attack.initial-access
    - attack.t1190
    - cve.2026-121805
    - cve.2026-120722
    - cve.2026-120285
    - cve.2026-120292
    - cve.2026-116953
    - detection.emerging-threats
logsource:
    product: kubernetes
    service: audit
    definition: 'Requires the F5 iRule resource to be audited at level Request or RequestResponse so requestObject is recorded.'
detection:
    selection_resource:
        objectRef.resource|contains: 'irule'
        verb:
            - 'create'
            - 'update'
            - 'patch'
    selection_command:
        - requestObject.spec.iRule|contains:
              - 'PEM::subscriber'
              - 'DNS::scrape'
              - 'PSC::ip_address'
              - 'GENERICMESSAGE::route'
        - requestObject.spec.iRule|re: 'MR::message\s+route'
    condition: all of selection_*
falsepositives:
    - Legitimate service-provider iRules that use these commands (PEM, DNS, MRF deployments); treat a match as an exposure to patch, not an intrusion
    - GitOps reconciliation re-applying an unchanged rule
level: medium

View on GitHub

False positives and tuning: every match is a real use of the command, and in a service-provider cluster that may be normal. Route it to the platform team as an exposure ticket, not to the SOC as an intrusion. Audit the iRule resource at Request or RequestResponse level so requestObject is there. Patches sent as JSON-patch arrays put the script under an operation’s value instead of spec.iRule, so the rule misses them; check how your own tooling (kubectl, Helm, GitOps controller) writes changes to this resource. GitOps controllers re-applying an unchanged rule will repeat the alert. Once you’ve confirmed the resource name with kubectl api-resources | grep -i irule, tighten objectRef.resource to that exact value and add objectRef.apiGroup. This rule doesn’t see existing rules that never change, so run the inventory grep from the analysis once as well.

How to test: in a lab cluster, apply an iRule resource whose script contains DNS::scrape inside a Tcl comment. No traffic, no listener, no risk.

F5 BIG-IP TMM restart logged in the LTM log

Context: on appliances and VEs, TMM restarts show up in /var/log/ltm. F5’s bug tracker entry for Bug ID 462903 shows the sod daemon logging 01140029:5: HA daemon_heartbeat tmm fails action is go offline down links and restart, (F5 says you might see a message “similar to” this), and a 2014 F5 community thread shows emerg logger: Re-starting tmm and Re-starting tmm1. I couldn’t verify either string on 17.1, 17.5 or 21.1, the affected branches. Neither line comes from the CVE advisories, and the CVE that only affects APM (CVE-2026-123637) is covered here only through the crash.

Condition: alert on any BIG-IP LTM log line containing “Re-starting tmm” or “daemon_heartbeat tmm fails”.

ATT&CK: Impact (TA0040) – T1499.004 Endpoint Denial of Service: Application or System Exploitation.

title: F5 BIG-IP TMM Restart Logged in LTM Log
id: fab7f5f8-1bbc-4629-a5b3-8e525e57ffb3
status: experimental
description: |
    Detects BIG-IP messages that TMM is being restarted, either the "Re-starting tmm" line or the sod heartbeat
    failure "HA daemon_heartbeat tmm fails", as written to /var/log/ltm. All six November 2026 TMM stack overflows
    make TMM terminate when triggered. The strings come from an F5 bug entry (which says "similar to") and a 2014
    F5 community thread, and are unverified on 17.1, 17.5 and 21.1. Linking a restart to these CVEs is inference.
references:
    - https://cdn.f5.com/product/bugtracker/ID462903.html
    - https://community.f5.com/discussions/technicalforum/gtm-emerg-logger-re-starting-tmm1/107659
    - https://www.cve.org/CVERecord?id=CVE-2026-121805
    - https://www.cve.org/CVERecord?id=CVE-2026-123637
    - https://netsec101.com/?p=412
author: netsec101.com
date: 2026-11-22
tags:
    - attack.impact
    - attack.t1499.004
    - cve.2026-121805
    - cve.2026-120722
    - cve.2026-120285
    - cve.2026-120292
    - cve.2026-116953
    - cve.2026-123637
    - detection.emerging-threats
logsource:
    product: f5
    service: bigip_ltm
    definition: 'BIG-IP /var/log/ltm forwarded by remote syslog. Custom logsource: map it to your BIG-IP syslog index.'
detection:
    keywords:
        - 'Re-starting tmm'
        - 'daemon_heartbeat tmm fails'
    condition: keywords
falsepositives:
    - Planned reboots, upgrades, hotfix installs and failover tests
    - TMM restarts from unrelated bugs, hardware faults or HA/VLAN failsafe actions
level: medium

View on GitHub

False positives and tuning: reboots, upgrades, hotfix installs (including the ones you’re about to do for these CVEs) and failover tests all restart TMM. Suppress during change windows. Configure remote syslog on every unit first; many estates only forward ASM or APM logs. F5’s Bug ID 1000973 notes that a TMM core can be written with no message in /var/log at all, so also watch /var/core for new files with whatever file monitoring your appliance team allows. When you find a TMM restart, look up which virtual servers on that unit attach a rule using one of the five commands.

How to test: send a synthetic test line from a lab syslog client that forwards to the same index, for example logger -p local0.emerg "Re-starting tmm". The facility here is a placeholder I picked; adjust it to wherever LTM messages land on your build. A failover test on a lab HA pair gives you real restart lines and is the better check of the wording.

Coverage and gaps

Step in caseTacticTechniqueRuleCovered?
Vulnerable iRule deployedInitial Access (TA0001)T1190 (precondition)iRule custom resource rulePartly: Kubernetes only, changes only
Exploit request to the listenerInitial Access (TA0001)T1190NoneGap: request structure undisclosed and not logged by TMM
TMM crash and restartImpact (TA0040)T1499.004Coremond, pod status and LTM restart rulesYes
Possible code execution inside TMMExecution / PersistenceUnknownNoneGap: no telemetry inside TMM; RCE unconfirmed
APM per-request policy trigger (CVE-2026-123637)Initial Access (TA0001)T1190LTM restart ruleCrash only

The honest summary is that these rules tell you a crash happened and where you were exposed. They can’t tell you a crash was an attack. Closing that gap would need F5 or watchTowr to publish what the requests look like (then a Suricata or vendor WAF signature becomes possible), or packet captures on the listeners that run the affected commands, which you could replay against a crash timestamp. If code execution in TMM is ever demonstrated, the next layer would be integrity checking of the TMM container image and node-level runtime monitoring (Falco or similar) on the nodes that host TMM pods. The core file remains the best forensic artefact, which is why my first step on any of these alerts is to keep it.

Deploying the rules

Grab the YAML from the GitHub repo and convert it with sigma-cli after installing the backend plugin for your SIEM. The Elasticsearch backend ships an ecs_kubernetes pipeline for the audit rules. I didn’t find a Kubernetes pipeline for Splunk, and the two F5 rules use a custom logsource (product: f5) with plain keyword searches, so for those you mainly need to scope the query to the right index:

# See what your install offers first
sigma list targets
sigma list pipelines

# Elastic: Kubernetes audit rules with the ECS Kubernetes pipeline
sigma convert -t lucene -p ecs_kubernetes kubernetes_audit_f5_tmm_container_terminated.yml
sigma convert -t esql -p ecs_kubernetes kubernetes_audit_f5_irule_cr_vulnerable_command.yml

# Splunk: no Kubernetes or F5 pipeline that I know of; if your sigma-cli
# version refuses to run without one, check "sigma convert --help" for a
# without-pipeline option, then map fields to your audit sourcetype yourself
sigma convert -t splunk kubernetes_audit_f5_irule_cr_vulnerable_command.yml
sigma convert -t splunk f5_bigip_ltm_tmm_restart.yml

The iRule rule uses the |re modifier for MR::message route. I haven’t checked regex support in each backend’s docs, so confirm the converted query keeps the regex; if it doesn’t, fall back to contains on MR::message and filter the hits by hand. Run all four in alert-only mode for a week before anything pages a human, mostly to learn how often TMM restarts in your estate for boring reasons.

My take

This is a case where detection is mostly hygiene, and I think that’s fine. A memory-corruption bug in a data plane with no published trigger gives defenders almost nothing to match on. What you can do is know where you’re exposed and notice the moment TMM falls over. If I could turn on only one thing it would be the Coremond rule, because a TMM core is rare, F5 already ships the DaemonSet that produces the log, and it works without touching your audit policy.

The bigger lesson is about audit policies. Plenty of clusters log custom resources and pod status at Metadata level or not at all, which means the API server knows a vulnerable iRule went in and nobody else does. If you run network functions as CRDs, their bodies belong in your audit log at Request level. And F5 could make this much easier: a structured TMM crash event in the BNK and CNF logs, naming the iRule that was executing, would turn a guessing game into a one-line rule.

Sources

One thought on “Detecting F5 TMM overflows: 4 Sigma rules for Kubernetes and BIG-IP crash signals”

Leave a Reply