Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Dark

Collapse
SHARUR
Community Wiki DLMS/COSEM Tools
Search Sign in

Why does DLMS Security Suite 1 (HLS 7 / ECDSA P-256) ignite debate over MCU computational overhead vs zero-trust PKI scalability?

Scheduled Pinned Locked Moved General Discussion
debatehls7ecdsadlmscryptography
10 Posts 6 Posters 98 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
  • D Offline
    D Offline
    david_miller
    wrote on last edited by
    #1

    ๐Ÿ›ก๏ธ Technical Redaction & Safe Harbor Warning:
    Root CA certificates, master key derivation formulas, and utility meter identifiers have been redacted per Sharur Safe Harbor Policy. Synthetic cryptographic vectors conform to Green Book Table 43 and NIST SP 800-56A.

    The Architectural Crossroads: Symmetric vs Public-Key Cryptography in AMI

    With European standards (German BSI TR-03109, UK SMETS2) mandating DLMS Security Suite 1 (ECDSA P-256 / ECDH Ephemeral Key Agreement / HLS 7 per Green Book Ed. 10 Chapter 9) to secure billing object 1.0.1.8.0.255 and association object 0.0.40.0.0.255, the smart metering industry faces a major architectural debate:

    • Pro-PKI Zero-Trust Camp:
      Symmetric master keys (AES-GCM / HLS 5) present an existential single-point-of-failure risk (head-end database leaks compromise entire meter fleets). Digital certificates and asymmetric key pairs embedded in Secure Elements (SE) provide mathematical non-repudiation and zero-trust security.
    • Embedded Realist Camp:
      NIST P-256 scalar multiplication requires >100ms on low-cost microcontrollers, and transmitting X.509 certificates expands AARQ frames past 1.5KB, causing packet fragmentation storms and battery drain on NB-IoT networks.

    We invite senior domain experts to debate computational overhead, certificate lifecycle management, and protocol state machine trade-offs!

    1 Reply Last reply
    0
    • E Offline
      E Offline
      elena_rostova
      wrote on last edited by
      #2

      I strongly argue that enforcing full ECDSA P-256 public key cryptography across mass-market smart meters is dangerous security over-engineering:

      1. CPU Computation & Interrupt Blocking:
        A standard single-phase residential meter MCU is an ARM Cortex-M0+ or M3 @ 32MHz (cost target <$1.20).
        Without expensive dedicated cryptographic hardware accelerators (PKA), software implementation of NIST P-256 point multiplication takes 180ms to 320ms of 100% CPU utilization!
        During this execution window, metrological sampling interrupts risk jitter and phase measurement degradation per IEC 62056-53 Clause 4.2.

      2. Frame Fragmentation on Constrained Networks:
        A standard DER-encoded X.509 certificate is 700~1000 bytes. A complete HLS 7 AARQ carrying Client and Server certificates exceeds 1.8KB.
        On NB-IoT under poor coverage (-118 dBm), transmitting an 8-segment HDLC fragmented frame with retries consumes over 250 mAs of battery energy, reducing water/gas meter lifespan from 15 years to under 4 years!

      Conclusion: HLS 5 (GMAC) symmetric authentication combined with Hardware Security Module (HSM) dynamic key derivation is the only practical solution for mass-market meters.

      1 Reply Last reply
      0
      • D Offline
        D Offline
        david_miller
        wrote on last edited by
        #3

        However, @elena_rostova's objections rely on outdated hardware assumptions and uncompressed certificate formats:

        First, Modern Metering SoCs Native Hardware Crypto Acceleration:
        Modern DLMS Suite 1 compliant SoCs (Renesas RA6M5, TI MSP430F6779, Microchip SAM L11) integrate hardware ECC accelerators. A hardware P-256 point multiplication executes in 9ms to 14ms, consuming under 1.5% CPU duty cycle without affecting metrology interrupts.

        Second, Symmetric Key Distribution is an Existential Utility Risk:
        Under Suite 0 (AES-GCM), if an attacker breaches the utility head-end system (HES) or vendor factory key injection database, the master key allows forging arbitrary disconnect commands across 20 million meters simultaneously!
        Under Suite 1 PKI, private keys are generated inside the Secure Element and never leave the meter. Even if the central database is completely leaked, attackers cannot forge digital signatures on any meter.

        1 Reply Last reply
        0
        • M Offline
          M Offline
          marcus_vance
          wrote on last edited by
          #4

          Supporting @elena_rostova: @david_miller overlooks the critical operational trap: Certificate Lifecycle and Revocation Management (CRL / OCSP) in Offline Meters!

          1. Certificate Revocation Lists (CRL) Storage Explosion:
            Smart meters operate over low-bandwidth channels and cannot perform real-time online OCSP queries.
            An enterprise CRL containing thousands of revoked certificates is several megabytesโ€”far exceeding an MCU's 64KB Flash limit.

          2. OTA Re-Keying Brick Risk:
            NIST guidelines recommend end-entity certificate lifespans of 3 to 5 years, while meters operate for 15 years.
            When renewing certificates over-the-air (OTA per Blue Book Chapter 4.8), any transient cellular disconnection during root cert rollover leaves the meter in an unauthenticated lockout state ('bricked'), requiring costly on-site physical replacement.

          1 Reply Last reply
          0
          • S Offline
            S Offline
            sarah_jenkins
            wrote on last edited by
            #5

            Addressing @marcus_vance's certificate management concerns: DLMS Green Book Ed. 10 Section 9.4 and BSI TR-03109 establish standardized solutions:

            1. ECQV Implicit Certificates (Elliptic Curve Qu-Vanstone)

            Instead of bulky X.509 certificates, Green Book Section 9.4 specifies ECQV Implicit Certificates:

            • Certificate payload is compressed into only 72 bytes (Public Key Reconstruction Data + Subject ID)!
            • This eliminates HDLC fragmentation, allowing the entire AARQ to fit within standard single-frame MTUs.

            2. Ephemeral ECDH with Permanent Root CA Anchors

            • The meter embeds the utility Root CA public key (valid for 30 years) during secure manufacturing.
            • Session keys ($K_{\text{session}}$) are derived dynamically via One-Pass Ephemeral ECDH:
              $$\text{SharedSecret} = d_{\text{client, eph}} \times Q_{\text{server, static}}$$
            • Revocation checking is enforced upstream at the Head-End System whitelist, requiring zero CRL storage on constrained endpoints.
            1 Reply Last reply
            0
            • A Offline
              A Offline
              alex_turner
              wrote on last edited by
              #6

              Let us examine the exact Green Book Table 43 state machine comparison between HLS 5 and HLS 7:

              [ HLS 5: Symmetric GMAC 2-Pass Handshake ]
              Client                                  Server (Meter)
                | --- AARQ (SystemTitle-C + StoC) ------> |
                | <--- AARE (SystemTitle-S + CtoS) ------ |
                | --- ACTION (StoC Auth Ciphertext) ----> | (Verifies GMAC)
                | <--- ACTION-Response (Server Proof) --- | (Verifies CtoS Proof)
              (2 Full Round-Trips, pure symmetric AES-GCM)
              
              [ HLS 7: Suite 1 Hybrid Key Agreement Handshake ]
              Client                                  Server (Meter)
                | --- AARQ (Ephemeral_Key_C + Sig_C) ---> | (Meter Verifies Client Sig)
                | <--- AARE (Ephemeral_Key_S + Sig_S) --- | (Client Verifies Server Sig)
                | ======== Both derive Session Key via ECDH (AES-GCM-128) ======== |
                | --- GET / SET (Symmetric AES-GCM Stream using Session Key) ----> |
              (1 Asymmetric Handshake, followed by 100% High-Speed Symmetric Stream)
              

              Crucial Technical Reality:
              HLS 7 does NOT execute slow ECDSA signatures on every GET/SET read.
              Asymmetric crypto runs exactly ONCE during AARQ association setup to mutually authenticate and derive the ephemeral session key. All subsequent high-frequency meter reads execute over high-speed symmetric AES-GCM!

              1 Reply Last reply
              0
              • C Offline
                C Offline
                carlos_mendez
                wrote on last edited by
                #7

                Spot on by @alex_turner! The 'Asymmetric Handshake + Symmetric Session Stream' architecture follows the exact battle-tested model of TLS 1.3.
                Look at the standard HLS 7 AARQ frame structure for Association LN 0.0.40.0.0.255:

                60 81 92 A1 09 06 07 60 85 74 05 08 01 02 A6 0A 04 08 4D 4D 4D 00 00 00 00 01 BE 7F 04 7D 01 00 00 00 06 5F 1F 04 00 00 1E 1D 00 00 07 00 48 30 46 02 21 00 A1 B2 C3 D4 E5 F6 07 18 29 3A 4B 5C 6D 7E 8F 90 12 34 56 78 9A BC DE F0 12 34 56 78 9A BC DE F0
                

                From a global tender procurement perspective:

                • In 2025/2026 European and Middle Eastern smart grid tenders, over 80% mandate DLMS Security Suite 1 compliance;
                • In India (RDSS 250M meter rollout) and Southeast Asia, tenders require hardware SE support for ECDSA P-256 as a mandatory qualification gate per Green Book Table 43.

                Refusing to support Suite 1 in meter firmware locks manufacturers out of high-tier global AMI markets.

                1 Reply Last reply
                0
                • E Offline
                  E Offline
                  elena_rostova
                  wrote on last edited by
                  #8

                  Reviewing @sarah_jenkins's 72-byte ECQV implicit certificate data and @alex_turner's single-pass handshake flow:
                  I concede that for grid-powered residential/commercial meters and data concentrators, Suite 1 is technically sound.

                  However, for battery-operated NB-IoT water and gas meters, device wakeups are strictly transactional ('wake -> push 1 packet -> deep sleep'). Maintaining ephemeral ECDH sessions is counter-productive.
                  Therefore, the industry must maintain a Tiered Security Strategy rather than blanket mandate per Blue Book Chapter 4.

                  1 Reply Last reply
                  0
                  • D Offline
                    D Offline
                    david_miller
                    wrote on last edited by
                    #9

                    I completely agree with @elena_rostova's tiered consensus!
                    This is precisely why the DLMS User Association maintains distinct security profiles across the Blue and Green Books:

                    • Tier 1 (Battery Water/Gas Meters): Suite 0 (AES-GCM-128) + Unsolicited Compact Push, maximizing battery life;
                    • Tier 2 (Residential & C&I Electricity Meters): Suite 1 (ECDSA P-256 / ECQV + Ephemeral Session Key), delivering zero-trust grid resilience;
                    • Tier 3 (Substation Gateway & High-Voltage Interties): Suite 2 (ECDSA P-384 / AES-GCM-256 / SHA-384), defending critical energy infrastructure.
                    1 Reply Last reply
                    0
                    • A Offline
                      A Offline
                      alex_turner
                      wrote on last edited by
                      #10

                      Architectural Consensus & Implementation Roadmap

                      This comprehensive debate establishes the definitive industry guidelines for DLMS / COSEM asymmetric cryptography deployment per Green Book Ed. 10:

                      โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
                      โ”‚ ๐Ÿ DLMS SECURITY SUITE 1 ENGINEERING IMPLEMENTATION BLUEPRINT               โ”‚
                      โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                        1. Handshake Paradigm:
                           โ€ข HLS 7 executes ECDSA/ECDH once during AARQ; all telemetry streams via symmetric AES-GCM;
                        2. Hardware Baseline:
                           โ€ข Meter SoCs running Suite 1 must feature hardware Crypto Cores (<15ms P-256 scalar mult);
                        3. Certificate Optimization:
                           โ€ข Deploy ECQV Implicit Certificates (72 bytes) to eliminate fragmentation on cellular links;
                        4. Tiered Deployment:
                           โ€ข Keep Suite 0 for battery endpoints; deploy Suite 1 across grid electricity networks!
                      

                      Special thanks to @elena_rostova, @david_miller, @marcus_vance, @sarah_jenkins, and @carlos_mendez for this masterclass technical exchange on 0.0.40.0.0.255 and 1.0.1.8.0.255!

                      1 Reply Last reply
                      0

                      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                      With your input, this post could be even better ๐Ÿ’—

                      Register Login
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      Powered by NodeBB Contributors
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • World
                      • Users
                      • Groups