When you spin up a fresh public Linux instance, automated scanners start knocking on your doors within milliseconds.

It doesn’t take much to get locked down properly, but missing a few basics can leave you exposed.

I’ve put together a straightforward guide covering the essential hardening steps from UFW and SSH key-only auth to secure Docker bindings and automated maintenance.


Original content by The Unknown Universe, written by a human and not AI generated!

  • MangoCat
    link
    fedilink
    arrow-up
    1
    ·
    39 分钟前

    It’s easier and more effective to perform complete key rotation periodically.

    Rotation is a necessary part of proper key handling (fixed keys are only suitable for short-life devices). Unfortunately, key rotation constitutes a serious attack surface.

    If I was using a knocking scheme it would get changed as well.

    Which brings an interoperability point to mind: if you’ve got a many-to-many system using the port knocking scheme, then you have to update them all if you’re going to modify the scheme, or its keys. This interoperability issue is driving our current “hub” system to remain relatively open/vulnerable because the cost of updating the devices on the spokes is too high.

    it’s gonna be worth it to do social engineering

    I was just saying elsewhere: Artex isn’t the scary side of LLM agent hacking, social engineering tools are.

    If you’re not already playing cops and robbers, it’s worth your time.

    Yeah, I wasn’t even red-teaming anything when an IT bot shut the power to all the phones (and other PoE devices, as well as cut their data connectivity) in our department because I put a device 1 hop behind a proxy…