I tried searching for answers as to why these machines are reaching out to numerous locations despite not using PrusaConnect. Location lookup returns the expected Czech, as well as location across the US. I recently also set a friend up with with an Elegoo printer and that was expectedly noisy as hell, but I was surprised with Prusa being the ‘privacy pick’.

For those curious, here’s the logs since about midnight, it seemingly doesn’t talk during the day.

209.51.161.238:123
195.113.144.238:123
23.150.41.122:123
193.29.63.226:123
162.244.81.139:123
64.246.132.14:123
172.104.182.184:123
66.85.78.80:123
68.234.48.70:123
129.250.35.250:123

Edit: Midnight brain forgot what ports are for, and that is for NTP, thanks yall

    • 7toed@midwest.socialOP
      link
      fedilink
      English
      arrow-up
      9
      ·
      1 day ago

      Haha now I feel like I overreacted. That mentioned Elegoo printer had me on edge, 100s of https requests per minute without an attached account even. Time to tidy up my services more and see if I can point them at my own ntp

        • doodoo_wizard@lemmy.ml
          link
          fedilink
          arrow-up
          14
          ·
          1 day ago

          Anything that connects to the network needs a synchronized clock with other devices it directly communicates with in order to make sure it’s not being subjected to timing attacks. This has been standard practice for 25 years, maybe more, in the end user world because some high profile computer screw ups made use of it. People with weird systems, off the gridders of olde and ppl still on dial up in the teens had some interesting problems to solve when generally all ISPs got drug kicking and screaming to the table by os updates that made synchronized clocks a non negotiable requirement.

          • ThirdConsul@lemmy.ml
            link
            fedilink
            arrow-up
            3
            ·
            1 day ago

            Anything that connects to the network needs a synchronized clock with other devices it directly communicates with in order to make sure it’s not being subjected to timing attacks

            Please explain what kind of timing attacks because what you wrote doesn’t make sense in the context of a damn printer.

            Server? Sure. Printer? Why can it even access public internet?

            • floquant@lemmy.dbzer0.com
              link
              fedilink
              arrow-up
              6
              ·
              edit-2
              24 hours ago

              I’m not sure why you think any digital device shouldn’t know what time it is. It’s not leaking any kind of personal information, just literal facts about reality.

              Maintaining a shared “now” is actually an interesting problem from a relativistic point of view, considering you need time to communicate what time it is. NTP is a relatively simple protocol with some clever tricks around latency; it is organized by strata which go from very precise, authoritative sources (these are atomic clocks at universities, not the NSA) to various levels of “mirrors”, down to within your LAN. It is massively distributed and decentralized by nature, to be able to handle everyone to be in sync without overwhelming a handful of primary clocks.

              The end device does not need to be able to talk to the internet at all, just to your router (or designated NTP server if you’re into that). It is such an old protocol that it is embedded in most consumer routers, and getting a server running in Linux is literally just install, start. You don’t need to connect upstream at all, you can absolutely say “on this network I am the god-clock”.

              • ThirdConsul@lemmy.ml
                link
                fedilink
                arrow-up
                0
                ·
                15 hours ago

                I’m not sure why you think any digital device shouldn’t know what time it is. It’s not leaking any kind of personal information, just literal facts about reality.

                My challenge isn’t about NTP but about printer shouldn’t be able to communicate with the internet, as it has no need for it.

                You said: It’s common.

                Okay, cool. So is cancer.

                does not need to be able to talk to the internet at all, just to your router (or designated NTP server if you’re into that)

                Exactly! So why allow the printer to go past it!

                • 7toed@midwest.socialOP
                  link
                  fedilink
                  English
                  arrow-up
                  2
                  ·
                  2 hours ago

                  So why allow the printer to go past it!

                  Well yeah, me needing to lock down this network properly is why I ran up on this, but also being someone who hates reseting the stove clock after a power out, I wouldn’t bat my eye at NTP requests really.

            • doodoo_wizard@lemmy.ml
              link
              fedilink
              arrow-up
              5
              ·
              23 hours ago

              The types of attacks can be mischaracterized as “race conditions but over the network”. Theres about forty years of history here and it’s way more complicated so unless you really wanna get into it I’ll leave it there.

              The printer doesn’t know if it’s plugged into a private network or is internet facing. Timing attacks can occur on private networks as well as on the internet. Having accurate utc is almost always a prerequisite for communicating with other devices.

              Therefore, the printer needs to know what time it is. It does this through ntp on port 123 just like phones, computers and network connected paper and ink printers do.

              • ThirdConsul@lemmy.ml
                link
                fedilink
                arrow-up
                2
                ·
                15 hours ago

                Me: please explain what kinds of timing attacks can affect a printer and what are the consequences, because I can’t think of any

                You: Timing attacks. They are old. They are bad. Therefore printer needs to be protected from them.

                I don’t think you answered my question.

                • doodoo_wizard@lemmy.ml
                  link
                  fedilink
                  arrow-up
                  3
                  ·
                  edit-2
                  5 hours ago

                  Well, one example of a timing attack is replaying. It’s a fucking classic, chefs kiss kind of signaling attack where you bypass the need to understand what’s going on by just saying it verbatim using your capacity to accurately reproduce some information, easily sidestepping all kinds of shibboleths.

                  Before computers replaying was used during both ww1 and ww2 to confuse and misdirect radio operators and back when keyless entry was a newfangled thing it was used to spoof the unique signals each manufacturer chose to use. Even after they all switched to rolling codes, replaying is a way to both desynchronize the owners fob and replay their command at almost the same time, getting you into the car.

                  In computing, replaying would be a fantastic way for a man in the middle to pretend like he knew some password or was some service, indicated by an encrypted or hashed transmission the man in the middle could just store and replay. Darla can listen in to the way alfalfa says the password to the he man woman haters club and with good practice, recite it convincingly!

                  If Darla were a computer then even alfalfas securely hashed password would be no problem because she doesn’t need to pronounce it, but just reproduce it in all its unpronounceable hexadecimal glory.

                  But if the instructions for the he man woman haters club authentication was instead an encrypted transmission saying “the clubs clock says it’s 4:15.45.6789 pm April twentieth 1969. When you reply with your password hash, include the clubs clock time down to the millisecond.” Now Darla can’t just replay alfalfas hashed authentication token because it’s the wrong time!

                  Because of ntp, girls remain not allowed.

                  How would such an attack affect the printer? Who can say! I can speculate that an interloper could make it do things the user could, like print stuff, burn up the nozzle or smash into its extents. The printer controller is basically just a little computer so gaining access to it as an authenticated user might make it easier to escalate privileges and use it like any other computer might be used by a malicious actor as well.

                  Let’s say though, that part of the out of the box setup is connecting to the printer through some app or program. You want encrypted tls for that and you want the user or their software to exchange certificates to make it all official, but that technology requires that time be synchronized between the two devices in order to do so. If the printer has inaccurate enough time it can’t even negotiate a secure connection with the owners phone app they use to send it instructions.

                  So ntp makes sense in this case. If you’re gonna be doing communication you gotta do it responsibly and it’s good that iot stuff like this is making some effort!

                  E: I realized I glossed over some stuff assuming you’d make some jumps and in the cold light of morning that might not actually be the case.

                  Uhh, let me be clear: what is much closer to reality is that the guard doesn’t assert the clubs clock time but instead relies on all parties knowledge of utc (gmt but long and made by fat people) and there’s a snappy little back and forth between Darla and the door guard at the hmwhc where Darla asserts her systems time a few times and the door guard is able to use that to reasonably expect what a hashed token containing her understanding of the current time could be off by.

                  Now when she tries to pass alfalfas hashed password and current time token she fails because it doesn’t match her expected time or the door guards and there’s even possibly a record of who asserted and when, giving a forensic chain that can be used in legal proceedings against women!

                  Hashing is exactly what it sounds like, but math. Just like at the breakfast spot, it’s when you take your easily recognizable potato with the word “formosissima” carved into it and cut it into a bunch of equally sized pieces. It’s still all there, just made into a hash! If someone knew exactly your cutting process they could put the tater back together and have a big ol meltdown over it.

                  That simple system where you figure out how incapable of telling time your unknown, untrustworthy weirdo attempting to gain access to some resource is, then expect them to cough up a token that contains hashes of both that resources shared secret and the time and then check em out to make sure they’re reasonable is a super straightforward way to implement the “actually look at the id being presented at the bar” test in computers.

                  This is so widespread that you can’t do credit card transactions without it, can’t establish secure http connections to websites without it and most certainly can’t responsibly pass credentials back and forth without it.

                  But why would that be required if the printer is only on the local network? Because we can’t trust the local network any more than the internet! The end user could be responsible Laura, carefully considering what devices are allowed on her local network and rotating keys when any of those devices spend time on another network or they could be Steve who just kinda does whatever and hasn’t changed his password in over a decade.

                  What if we could trust the local network though? Well, in that case you’d want to be coloring inside the lines of the end users expected behavior a make sure to not predicate operating the thingamabob you’re selling on making insecure http connections that the browser pitches a hissy fit over.

                  Okay but what specifically do bad guys try to do with machines they’ve escalated privileges on? Well botnets are the obvious answer. Iot devices like appliances and whatnot are a juicy target too because once you’ve go one you can more easily find a quicker and more persistent way to get into more and suddenly that million plus unit install base is your oyster!

                  With all that hopefully a little clearer, why should these things even be on the local network? Well, you can’t do network printing if you’re not on the network, can you! It’s a feature that brings a lot more users to the table and removes reliance on any particular weird port or the increasingly untrustworthy universal port. Nowadays people expect it even!

    • 7toed@midwest.socialOP
      link
      fedilink
      English
      arrow-up
      2
      ·
      1 day ago

      Huh thank you. Now its not like I already have my own NTP instance that I seemingly don’t have the option on the printers for… not sure why I didn’t to look at the destination port frankly 🤷‍♂️

      • SirEDCaLot@lemmy.today
        link
        fedilink
        arrow-up
        2
        ·
        21 hours ago

        You can put the time server in your DHCP offer. No idea if the printer will use that, but it’s worth a shot.

    • ThirdConsul@lemmy.ml
      link
      fedilink
      arrow-up
      2
      ·
      1 day ago

      Why would a printer need time? The only think that cames to mind is freezing cartridges after x months.

      • Tja@programming.dev
        link
        fedilink
        arrow-up
        19
        ·
        edit-2
        1 day ago

        Prusa is a 3d printer. It can be to show the date, check the validity of certificates, show in logs, or just tell you when your print will be done.

        AFAIK the firmware is open source so ultimately you can look exactly what it does with it. Same as any Linux system, really.

        • ThirdConsul@lemmy.ml
          link
          fedilink
          arrow-up
          2
          ·
          1 day ago

          Printer isn’t responsible for timestamps on your document. If that would be regarding tracking dots, then block it anyway, right? And if it’s a 3d printer then it still doesn’t need to have correct synchronized time, it only needs to be able to count how the time passes.

    • mlfh@lemmy.sdf.org
      link
      fedilink
      arrow-up
      17
      ·
      edit-2
      2 days ago

      Good opsec, really.

      Edit: also I just realized this is the Privacy community lol

        • N.E.P.T.R@lemmy.blahaj.zone
          link
          fedilink
          English
          arrow-up
          16
          ·
          1 day ago

          I was taught in my IT Sec classes to avoid sharing any unnecessary information. Information on private IPs can be used to better understand your network, allowing a threat actor to better navigate your network without needing to do ip scans (which are very obvious and should trigger even basic detection). While it is most likely pointless (since OP probably isnt at risk of targeted attacks), it is still good opsec.

          • 7toed@midwest.socialOP
            link
            fedilink
            English
            arrow-up
            4
            ·
            24 hours ago

            since OP probably isnt at risk of targeted attacks

            While right, what fun is it using enterprise grade hardware if you’re not at least going to pretend to be serious with it 😁

          • mic_check_one_two@lemmy.dbzer0.com
            link
            fedilink
            English
            arrow-up
            1
            ·
            22 hours ago

            allowing a threat actor to better navigate your network without needing to do ip scans (which are very obvious and should trigger even basic detection)

            I mean, basically any device will send a DHCPDISCOVER broadcast on 255 when it connects, to see if there is a DHCP server on the network. Unless you’re running your entire network on pre-configured static addresses and have your router set up to intercept all broadcast messages (and treat the broadcasting device as hostile), any device plugging into the network would automatically broadcast a message anyways.

            And honestly, if you’re being that paranoid about your network, you’d probably be better off just using port security and a MAC whitelist instead. It would save you a lot of time with manually configuring IP addresses. That way any threat actor would only be able to connect if they already knew a whitelisted MAC. And gentle device discovery can also be automated without obvious brute force “ping every IP in the subnet at the same time, and blatantly scan common ports on responding IPs” network scans. They’ll take longer, (and passive scans may miss some devices) but they wouldn’t trip the rudimentary “watch for any device firing ping requests out to every single IP” scan detection. Passive scans can be particularly difficult to detect.

            • N.E.P.T.R@lemmy.blahaj.zone
              link
              fedilink
              English
              arrow-up
              1
              ·
              edit-2
              21 hours ago

              The point of my comment wasn’t that OP was in “real danger” if they showed local IPs, just that it doesn’t hurt to censor them. Never give more information than necessary. I censor usernames and filepaths on any screenshots of the terminal, even though if an actor has the kind of access to utilize that information I am probably already fucked. I think it is good practice to always scrutinize the information you give out willingly.

        • 7toed@midwest.socialOP
          link
          fedilink
          English
          arrow-up
          1
          ·
          24 hours ago

          How much metadata do you need until its PII? What subnets exist and which devices are potentially leverageable are valid points in a threat model… maybe not entirely suited for everyone but I’m sure as hell my employer is unknowingly greatful for

  • floquant@lemmy.dbzer0.com
    link
    fedilink
    arrow-up
    7
    ·
    1 day ago

    Yep this is just NTP, nothing nefarious. If you have a “good” router that has an NTP server and can set the related DHCP option, try setting that. The servers it uses might be hardcoded, but I believe it will honor the DHCP lease.

    • 7toed@midwest.socialOP
      link
      fedilink
      English
      arrow-up
      3
      ·
      1 day ago

      Well shucks you inadvertantly helped me with a couple other backburner issues, thanks!