Background: 15 years of experience in software and apparently spoiled because it was already set up correctly.

Been practicing doing my own servers, published a test site and 24 hours later, root was compromised.

Rolled back to the backup before I made it public and now I have a security checklist.

  • feddylemmy@lemmy.world
    link
    fedilink
    arrow-up
    70
    ·
    1 day ago
    • The default ssh port moved if ssh has to be exposed to the Internet. No, this doesn’t make it “more secure” but damn, it reduces the script denials in my system logs, fight me.

    Gosh I get unreasonably frustrated when someone says yeah but that’s just security through obscurity. Like yeah, we all know what nmap is, a persistent threat will just look at all 65535 and figure out where ssh is listening… But if you change your threat model and talk about bots? Logs are much cleaner and moving ports gets rid of a lot of traffic. Obviously so does enabling keys only.

    Also does anyone still port knock these days?

    • josefo@leminal.space
      link
      fedilink
      arrow-up
      4
      ·
      18 hours ago

      Literally the only time I got somewhat hacked was when I left the default port of the service. Obscurity is reasonable, combined with other things like the ones mentioned here make you pretty much invulnerable to casuals. Somebody needs to target you to get anything.

    • kernelle@0d.gs
      link
      fedilink
      arrow-up
      19
      ·
      1 day ago

      Also does anyone still port knock these days?

      Enter Masscan, probably a net negative for the internet, so use with care.

      • davidgro@lemmy.world
        link
        fedilink
        arrow-up
        7
        ·
        24 hours ago

        I didn’t see anything about port knocking there, it rather looks like it has the opposite focus - a quote from that page is “features that support widespread scanning of many machines are supported, while in-depth scanning of single machines aren’t.”

        • kernelle@0d.gs
          link
          fedilink
          arrow-up
          4
          ·
          23 hours ago

          Sure yeah it’s a discovery tool OOTB, but I’ve used it to perform specific packet sequences as well.