Running Alpine? You sure? Are your containers running Alpine? If so, pretty good chance anyone can log in via SSH.

accounts that should never take a password at all (root, your key-only deploy user, ldap users, the default user on alpine’s aws and azure images) take any password longer than 256 characters.

  • Venia Silente@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    5
    ·
    38 minutes ago

    If I’m running containers on Alpine, doesn’t that mean that they already don’t offer SSH (sshd)? The entire point of Alpine as a base is to not add stuff you don’t need.

  • tal@lemmy.today
    link
    fedilink
    English
    arrow-up
    3
    ·
    24 minutes ago

    did you get hacked? check.

    $ grep “Accepted password” /var/log/messages

    That’s a really bad check unless you have an external box receiving logs and you’re looking there, because the first thing that a sophisticated attacker is going to do if they get in as root is remove the signs of their presence.

  • FiredFloridaCop@lemmy.world
    link
    fedilink
    English
    arrow-up
    6
    ·
    50 minutes ago

    I’m no cybersecurity expert, but from what I’ve heard from those who are, this is the new normal as anyone who formerly had no chance due to being a “script kiddie” can now just prompt an AI to “hack this system” and eventually find a vulnerability.

  • [object Object]@lemmy.ca
    link
    fedilink
    English
    arrow-up
    29
    arrow-down
    1
    ·
    2 hours ago

    Jesus Christ. Why?! How?

    Edit: I can’t figure out how to upload gifs to Lemmy… please imagine castle-nathan.gif

  • tenchiken@anarchist.nexus
    link
    fedilink
    English
    arrow-up
    4
    ·
    42 minutes ago

    Everything behind a good firewall and proxy.

    No public facing url should ever not be proxied.

    Only ports you explicitly forward. Ever.

  • Orygin@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    2
    ·
    23 minutes ago

    OP I know you’re trying to do good, but please try to understand the vulnerability before spreading FUD

  • ComradeMiao@lemmy.world
    link
    fedilink
    English
    arrow-up
    3
    arrow-down
    1
    ·
    24 minutes ago

    Why would a local server even have open internet access though?

    This alerts feel more relevant for public facing servers.

  • tofu@lemmy.nocturnal.garden
    link
    fedilink
    English
    arrow-up
    17
    ·
    2 hours ago

    I mean, not that it’s not severe, but which container images have ssh baked in? If you’re using good stripped down images, you’re fine here.

    Not sure where the overlap is between"ssh is enabled" and “one of those OSes”. LXCs maybe?

  • InnerScientist@lemmy.world
    link
    fedilink
    English
    arrow-up
    1
    ·
    12 minutes ago

    The only container i have that has a reachable SSH port is forgejo, and even then it’s only local traffic and i’d have to check if it even uses alpine. All others also don’t have SSH enabled.

    The vulnerability doesn’t seem too bad tbh.

  • tapdattl@lemmy.world
    link
    fedilink
    English
    arrow-up
    11
    ·
    2 hours ago

    I’m assuming this is only if you allow password authentication? If you’re only allowing certificate based auth you should be safe, right?

      • smiletolerantly@awful.systemsOP
        link
        fedilink
        English
        arrow-up
        2
        arrow-down
        9
        ·
        1 hour ago

        NO! Exactly the opposite, that is the problem. Key-only is a prerequisite for this.

        Edit: see also, the first thing that pops up under the link.

    • smiletolerantly@awful.systemsOP
      link
      fedilink
      English
      arrow-up
      2
      arrow-down
      7
      ·
      1 hour ago

      NO! Exactly the opposite, that is the problem. Key-only is a prerequisite for this.

      Edit: see also, the first thing that pops up under the link.

      • cecilkorik@piefed.ca
        link
        fedilink
        English
        arrow-up
        5
        ·
        31 minutes ago

        I think there is some confusion and potential for misinformation here. SSH in key-only mode (common configuration) protects you from this problem, because it never accepts or even attempts any passwords at all, regardless of length. SSH in password-allowed mode with at least one user who might be a key-only USER by merit of having a password hash of “*” (not a valid password hash) is a prerequisite for this. That is a very different and very common thing, as most systems come with at least one key-only user by default. But gaining access to that user with an incorrect, invalid password still requires having passwords enabled at all.

        To be clear: Password access enabled is a prerequisite, and by extension, password access disabled (key-only) prevents this.

        The website you linked clearly defines that all of these conditions must be true for you to be vulnerable, and as far as I can tell, it is exactly correct:

        is your sshd running on musl? (alpine, openwrt, buildroot, yocto)
        is it not using pam? alpine’s openssh-server doesn’t by default, or maybe you set UsePAM no
        are password logins still on? they are by default
        is there an account with just * as its password? key-only users, ldap users, root on alpine
        and some other account with a real password?

        then that * account takes any password between 257 and 1024 characters

        The * account which they suggest potentially being “key only” is the prerequisite you are talking about, but having SSH itself key-only (which is best practice anyway) prevents the attack entirely.

      • DrakiaXYZ@lemmy.ca
        link
        fedilink
        English
        arrow-up
        3
        ·
        26 minutes ago

        The linked article literally says you need password login enabled at the ssh level. The account however needs to not have a password set

  • Err(()).unwrap()@lemmy.world
    link
    fedilink
    English
    arrow-up
    10
    arrow-down
    3
    ·
    1 hour ago

    That website is atrocious. It’s the web design equivalent of shoving five kilograms of sugar and whipped cream in a cup of coffee.

      • Err(()).unwrap()@lemmy.world
        link
        fedilink
        English
        arrow-up
        1
        arrow-down
        1
        ·
        17 minutes ago

        Yes, it was a stroke of genius to label their mediocre confectionery as “coffee”, although it can lead to near fatalities when someone who’s only ever had Starbucks encounters real coffee for the first time.

        Still, my point stands. That website is like 20% useful content, 40% flair, and 40% wasted space.

  • Decronym@lemmy.decronym.xyzB
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    5 minutes ago

    Acronyms, initialisms, abbreviations, contractions, and other phrases which expand to something larger, that I’ve seen in this thread:

    Fewer Letters More Letters
    Git Popular version control system, primarily for code
    LXC Linux Containers
    SSH Secure Shell for remote terminal access

    3 acronyms in this thread; the most compressed thread commented on today has 8 acronyms.

    [Thread #159 for this comm, first seen 5th Nov 2026, 15:30] [FAQ] [Full list] [Contact] [Source code]

  • one_old_coder@piefed.social
    link
    fedilink
    English
    arrow-up
    3
    ·
    2 hours ago

    Are your containers running Alpine?

    Most containers (99%) I have ever used were using Alpine because it’s small and fun. lol.

    • Orygin@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      1
      ·
      26 minutes ago

      And 99.9% won’t have either ssh at all, or the port open, or password auth enabled.

      This is a nothing burger

        • BuckFutter@timeyak.com
          link
          fedilink
          English
          arrow-up
          5
          ·
          2 hours ago

          Yah I was trying to figure out why you would have ssh installed in a container that likely gives you console access through a hypervisor (i.e docker) and then have that ssh server exposed to the internet…hummm

        • terabyterex@lemmy.world
          link
          fedilink
          English
          arrow-up
          3
          ·
          2 hours ago

          i was about to tell you why but then i realized i only ssh into proxmox and then pct enter ### to a container. so yeah

          (P.S. I am not the original commenter)

        • drkt@scribe.disroot.org
          cake
          link
          fedilink
          English
          arrow-up
          3
          arrow-down
          12
          ·
          1 hour ago

          Oh, forgive me; I did not see that this was the selfhosted community. I almost made the mistake of assuming anyone here might know how computers work! I will strive to do better moving forward, thank you for your patience.