Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Hardware
  3. Security OTA Sketch

Security OTA Sketch

Scheduled Pinned Locked Moved Hardware
19 Posts 2 Posters 2.4k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • AndurilA
    AndurilA
    Anduril
    wrote on last edited by
    #7

    I have not yet enabled signing or encryption on the node that was running the personalizer with radio activated. Therefor I would expect it to give serial output mysensors started, find parent and so on. Nothing on the output after that security Execution result SUCCESS
    The gateway also has no security activated for now, as this node was the first one to test the personalizer with radio and OTA

    AnticimexA 1 Reply Last reply
    0
    • AndurilA Anduril

      I have not yet enabled signing or encryption on the node that was running the personalizer with radio activated. Therefor I would expect it to give serial output mysensors started, find parent and so on. Nothing on the output after that security Execution result SUCCESS
      The gateway also has no security activated for now, as this node was the first one to test the personalizer with radio and OTA

      AnticimexA
      AnticimexA
      Anticimex
      Contest Winner
      wrote on last edited by
      #8

      @Anduril I believe the setup() function is hijacked by the personalizer so radio is not initialized properly, nor is the library.

      Do you feel secure today? No? Start requiring some signatures and feel better tomorrow ;)

      1 Reply Last reply
      0
      • AndurilA
        AndurilA
        Anduril
        wrote on last edited by
        #9

        that might be true... so it's kind of impossible I think to merge those.
        So I have to first upload the personalizer and directly after that the sketch with security enabled and OTA. Is the personalizer sketch the only way to find out its serial for whitelisting? Maybe I need this feature down the road so it's good to know how to get it later

        AnticimexA 1 Reply Last reply
        0
        • AndurilA Anduril

          that might be true... so it's kind of impossible I think to merge those.
          So I have to first upload the personalizer and directly after that the sketch with security enabled and OTA. Is the personalizer sketch the only way to find out its serial for whitelisting? Maybe I need this feature down the road so it's good to know how to get it later

          AnticimexA
          AnticimexA
          Anticimex
          Contest Winner
          wrote on last edited by
          #10

          @Anduril well, you can always rewrite the personalizer to not use a setup() function.

          Do you feel secure today? No? Start requiring some signatures and feel better tomorrow ;)

          1 Reply Last reply
          0
          • AndurilA
            AndurilA
            Anduril
            wrote on last edited by
            #11

            I think that's a little beyond my skills :-)

            1 Reply Last reply
            0
            • AndurilA
              AndurilA
              Anduril
              wrote on last edited by
              #12

              @Anticimex still the question: is there a way to find out a nodes whitelist serial later?

              AnticimexA 1 Reply Last reply
              0
              • AndurilA Anduril

                @Anticimex still the question: is there a way to find out a nodes whitelist serial later?

                AnticimexA
                AnticimexA
                Anticimex
                Contest Winner
                wrote on last edited by
                #13

                @Anduril that depend on your backend. For software signing the serial is stored in eeprom. For atsha204a it is only readable from the device itself.

                Do you feel secure today? No? Start requiring some signatures and feel better tomorrow ;)

                1 Reply Last reply
                0
                • AndurilA
                  AndurilA
                  Anduril
                  wrote on last edited by
                  #14

                  that's sad.
                  Maybe it would be possible to write a sketch to read out the atsha serial and transmit it via mysensors... I will be looking into this further when in need of whitelisting. Until then I will just leave it as it is and only use signing and maybe encryption.

                  AnticimexA 1 Reply Last reply
                  0
                  • AndurilA Anduril

                    that's sad.
                    Maybe it would be possible to write a sketch to read out the atsha serial and transmit it via mysensors... I will be looking into this further when in need of whitelisting. Until then I will just leave it as it is and only use signing and maybe encryption.

                    AnticimexA
                    AnticimexA
                    Anticimex
                    Contest Winner
                    wrote on last edited by
                    #15

                    @Anduril I'd prefer not as the serial is also considered a semi-secret to maintain the integrity of the security infrastructure. It should not be thrown around the network unprotected.

                    Do you feel secure today? No? Start requiring some signatures and feel better tomorrow ;)

                    1 Reply Last reply
                    0
                    • AndurilA
                      AndurilA
                      Anduril
                      wrote on last edited by
                      #16

                      I understand that. Two questions:
                      what about updating via OTA with whitelisting enabled? Everyone could sniff the new hexfile and read the serial of the whitelisted node, correct?
                      what about activating encryption? Would that prevent both of these cases? No one could read the hexfile or the send serial without knowing the AES key before.

                      AnticimexA 1 Reply Last reply
                      0
                      • AndurilA Anduril

                        I understand that. Two questions:
                        what about updating via OTA with whitelisting enabled? Everyone could sniff the new hexfile and read the serial of the whitelisted node, correct?
                        what about activating encryption? Would that prevent both of these cases? No one could read the hexfile or the send serial without knowing the AES key before.

                        AnticimexA
                        AnticimexA
                        Anticimex
                        Contest Winner
                        wrote on last edited by
                        #17

                        @Anduril if encrypted the data "cannot" be decoded. The serial is not stored in any firmware. The only exception being a personalizer sketch that will personalize for software signing.
                        For atsha204a based signing, serial is never stored in sketch, only in runtime.

                        Do you feel secure today? No? Start requiring some signatures and feel better tomorrow ;)

                        1 Reply Last reply
                        0
                        • AndurilA
                          AndurilA
                          Anduril
                          wrote on last edited by
                          #18

                          Just in the rare case I want to use it later (and I have encryption enabled in the whole mysensors network) I could theoretically write a sketch inspired by the personalizer to read the serial and send this as a payload to the gateway without anyone out there able to read.

                          AnticimexA 1 Reply Last reply
                          0
                          • AndurilA Anduril

                            Just in the rare case I want to use it later (and I have encryption enabled in the whole mysensors network) I could theoretically write a sketch inspired by the personalizer to read the serial and send this as a payload to the gateway without anyone out there able to read.

                            AnticimexA
                            AnticimexA
                            Anticimex
                            Contest Winner
                            wrote on last edited by
                            #19

                            @Anduril Well, its all opensource, so you are free to do whatever you want. Just remember that if you are starting to alter the behaviour and use of the security infrastructure, you could potentially compromise it for yourself and those that use your code.

                            Do you feel secure today? No? Start requiring some signatures and feel better tomorrow ;)

                            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


                            15

                            Online

                            12.4k

                            Users

                            11.2k

                            Topics

                            113.5k

                            Posts


                            Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
                            • Login

                            • Don't have an account? Register

                            • Login or register to search.
                            • First post
                              Last post
                            0
                            • MySensors
                            • OpenHardware.io
                            • Categories
                            • Recent
                            • Tags
                            • Popular