From 36b398ef6149d94d4b247925690c062d49f071a2 Mon Sep 17 00:00:00 2001 From: Jonathan Hui Date: Tue, 5 May 2026 15:22:45 -0700 Subject: [PATCH] [tmf] enforce link security for all TMF messages (#13048) This commit updates Tmf::Agent::Filter to require link-layer security for all incoming TMF requests. Thread Management Framework (TMF) messages are used for network management and configuration. The Thread specification requires that all TMF messages be secured. While individual handlers often have specific checks, enforcing this at the TMF Agent level provides a consistent security layer for all TMF traffic. For most TMF messages, security is provided by the Network Key. For commissioning-related messages (like Joiner Entrust), security is provided by the Key Encryption Key (KEK). In all cases, a valid TMF message must have link-layer security enabled. This change prevents unauthenticated attackers from sending unsecured TMF messages to manipulate network state or configuration. --- src/core/thread/tmf.cpp | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/src/core/thread/tmf.cpp b/src/core/thread/tmf.cpp index f24dd2235..fae6d5c62 100644 --- a/src/core/thread/tmf.cpp +++ b/src/core/thread/tmf.cpp @@ -173,10 +173,16 @@ Error Agent::Filter(void *aContext, const Msg &aRxMsg) { return static_cast