The Register Home Page

back to article Putin on the code: DoD reportedly relies on utility written by Russia-based Yandex dev

A Node.js utility used by thousands of public projects - and more than 30 Department of Defense ones - appears to have a sole maintainer whose online profiles identify him as a Yandex employee living in Russia. US cybersecurity firm Hunted Labs reported the revelations on Wednesday. The utility in question is fast-glob, which …

  1. Ken Hagan Gold badge

    Doesn't matter who wrote it

    Surely the vulnerability here is not that the code was written by someone you don't control, but rather that the general practice in the JS world (just pulling everything from "source" rather than taking a trusted, local copy) allows them to change it without you knowing.

    1. ChoHag Silver badge

      Re: Doesn't matter who wrote it

      The idea of reading the code you download before deploying it to production, or indeed ever, is anathema to your average modern dev.

      If you can't trust random strangers on the internet who can you trust?

      1. m4r35n357 Silver badge

        Re: Doesn't matter who wrote it

        We download and run megabytes of js in our browsers every day without reading it first.

        1. Jou (Mxyzptlk) Silver badge

          Re: Doesn't matter who wrote it

          The commitstrip to your comment :D.

        2. anothercynic Silver badge

          Re: Doesn't matter who wrote it

          It blows my mind really to see how much rubbish is pulled in, not just from a site's own resources, but other websites! NoScript really shows how many other hosts are involved when you visit a website.

          1. midgepad Bronze badge

            Re: Doesn't matter who wrote it

            None if you visit mine.

            But

            None of you visit mine.

      2. steviebuk Silver badge

        Re: Doesn't matter who wrote it

        Agile. That's what they call it. We'd argued for testing in our inhouse apps and it was "No, we run agile". Oh fuck off.

      3. Anonymous Coward
        Anonymous Coward

        Re: Doesn't matter who wrote it

        Who really does it? The fact tha billion of eyes peruse open source code every day is a myth. You would need people just doing that as their full-time job - and nobody likes to do that.

        The real problem is what you get for free comes with no warrant, from somone, somewhere. And since noone can compete with free stuff, it's hard to find now a more trustworthy supply chain.

        1. steviebuk Silver badge

          Re: Doesn't matter who wrote it

          If you're working in a company and using opensource code such as this, then surely it should be your job to take that code and read that code and understand what it does first otherwise you get caught out and have no one to blame but yourself.

    2. Doctor Syntax Silver badge

      Re: Doesn't matter who wrote it

      AFAICS the vulnerability is exacerbated by the registry not being curated. I'd expect rather better maintenance of a typical Linux distro's repositry

      1. anothercynic Silver badge

        Re: Doesn't matter who wrote it

        It's not a Linux repository. They are better curated than NPM...

        1. midgepad Bronze badge

          Re: Doesn't matter who wrote it

          As one, and the writer above, would expect.

  2. doublelayer Silver badge

    This is not special

    This library is no more an injection risk than any other. While the dev would theoretically be more easily coerced to poison it by the Russian government, the change would also be more obvious from a small library (therefore large code changes to add something malicious are more noticeable) and single developer. The problem is not that this little piece of open source code is written by someone in Russia; there's far more code written by people in Russia. The problem is loading code into anywhere sensitive without having some reason to think that it's secure or that there are precautions in place if it turns out not to be.

    If Russia wants to do a supply chain attack, they have a lot of NPM modules they can choose. Many of them are much larger and not well-maintained, so if they can trick the one developer into accepting their updates, they could do similar things. They could easily decide that fast-glob looks like a nice one to do it to, unless articles like this one result in more scrutiny on that package or its removal. There's a lot more important aspects than a dev living in Russia to determining the risk or damage of that happening.

    1. Anonymous Coward
      Anonymous Coward

      Re: This is not special

      And don't forget that the USA can do the same (if they didn't do it already)

    2. Anonymous Coward
      Anonymous Coward

      @doublelayer - Re: This is not special - reason to think that it's secure ?

      The survival rule in information security is "trust but verify". You may think whatever you like but you have a duty to validate it is secure. It is times and again that developers are bypassing security.

  3. a_foley
    Boffin

    It's not that hard, really.

    While I can't say anything about this particular package, I'd expect, as a developer who's worked in the Node.js ecosystem, that any sensible dev check installed npm packages (and yes, this doesn't only apply to npm) and which dependencies those packages have in turn, and so on. It's not rocket science, just basic code hygiene... Oh, you don't got time? Well, maybe don't use that sketchy package in your code, because it will cost you and your business more time when it gets pwned.

    Of course, different developers have different security requirements on a project basis, but from my personal experience the projects I work on has very stringent security needs.

  4. that one in the corner Silver badge

    Did left-pad die in vain for us?

    > Simplest solution for the thousands of projects using fast-glob would be for Malinochkin to add additional maintainers and enhance project oversight, as the only other alternative would be for anyone using it to find a suitable replacement.

    The *only* other alternative?

    Not, keeping a known copy in your own system? Along with the rest of the code you are relying on?

    Not, gathering a group of Trustworthy True Red, White and Blue Pure Hearted US Patriots who can make a simple fork (and offer Malinochkin tech leadership rights, but take on anything more onerous or tedious wrt managing a popular package, to make life easier for him as well?)

    Not, offering to help the sole developer who has the misfortune to write something useful for you ungrateful bastards? Oh no, Malinochkin has to take all the initiative.

    Not only has nobody learnt anything from things like the left-pad incident?* but anyone who actually does something good as a sole dev is now to be a suspected security hole and it is all their fault!

    * Oh, but Azer Koçulu - that doesn't sound like a white US male's name, he was suspect all along.

  5. EricM Silver badge
    FAIL

    As a whole, the open source community should be paying more attention to this risk

    ... and mitigating it.

    Not your personal army.

    Code developed by someone claiming to live in a different country than Russia is not more trustworthy simply due to this claim (or fact). This is simple fear mongering and headline-grabbing from Hunting Labs.

    If you copy stuff from the Internet that someone else took the effort to code and use it for free, you _can_ at least be bothered to read it to make sure it does what you expect. Or to pay someone to read it. Or to pay a company to repackage it, make sure it works and interoperates as expected.

    The Open Source community as a whole will never agree to the nation-based and US-centric threat model of the US DoD and Hunting Labs.

    If anything, the npm dependency mechanism is a security problem. But not a single developer from Russia.

  6. Gene Cash Silver badge

    "Open source software doesn't need a CVE to be dangerous"

    WTF is this crap? That's a Steve Ballmer level of FUD.

    1. Strahd Ivarius Silver badge
      Flame

      Re: "Open source software doesn't need a CVE to be dangerous"

      The proper answer being:

      Closed-source software is dangerous by design.

      And this is even before adding Automated Idiots in the mix...

  7. Bill Gray Silver badge

    My colleague Mr. Malinochkin and I, and a lot of other people, write open-source software. We're trying to provide something useful to the world.

    I am doing so from the US. I've never been told by my government to insert particular code. Then again,

    - my code isn't that widely used outside some specialized areas and

    - I can hear every one of you thinking "he would say that, wouldn't he?" [0]

    Both Mr. Malinochkin and I live in regimes where we might be told to mangle our code. Anybody using our code has to take that into account.

    Beyond that, plenty of people working at Google, Apple, Microsoft, etc. have relatives in China and Russia. I'm sure the spy agencies of those countries have thought about saying "nice bunch of relatives you have back here; it'd be a shame if something happened to them." And the companies involved produce closed source, providing greater opportunity for skulduggery.

    Bottom line : you can't trust anybody these days. Including me. Or Mr. Malinochkin. And you already had plenty of reasons not to trust Google et. al. anyway.

    [0] Were I served an NSL... well, I might "say that". I have a family to think of. But I'd also consider it my obligation, to users of my code and to my country, to resist it as far as possible.

    1. EricM Silver badge

      Re: Beyond that, plenty of people [...] have relatives in China and Russia.

      An American Developer being confronted with a "nice bunch of relatives you have here; it'd be a shame if some ICE raid happened to them." is also not a completely unrealistic scenario in the 2025-version of a U.S. where the government ignores or even outright breaks the law, soldiers patrol cities and masked militias snatch people off the street and make them disappear.

      From an external, European perspective, the U.S. have become the evil they proclaimed to fight since WW2.

      So I agree:

      You cannot trust or distrust anyone based on nationality or on past performance, because blackmail may be applied by many governments nowadays.

      At least with Open Source you can conduct code reviews.

  8. mtnrbq78
    FAIL

    The post below has good arguments and data that expose the self serving rhetoric of Hunted, and the large companies that depends on stuff maintained by a single dev, from whatever country.

    https://infosec.exchange/@joshbressers/115103833284272857

  9. Alan J. Wylie

    Obligatory xkcd

    Dependency, s/Nebraska/Moscow/

  10. T. F. M. Reader Silver badge

    Curiosity killed the cat's paranoia

    Out of curiosity, I cloned the git repo and counted the lines in all files, comments, warts, and all. A bit less than 23K total, a bit less then 7.5K in the src directory. It doesn't look beyond the capabilities of the DoD, or any of its 30 individual projects mentioned in the article, to validate that, if the package is genuinely useful. Once. When updates are pulled in one would need to look at the diffs. Mirror the repo (all the needed open source repos?) in a controlled location and forbid pulling directly from anywhere else. DoD people can follow orders, right?

    Then, again assuming the package is genuinely useful and noticeably better than the alternatives, maybe discreetly suggest to the author to take a personal trip to, say, Turkey or Finland to be interviewed and vetted for a job? On, no, forget I said that...

    1. m4r35n357 Silver badge

      Re: Curiosity killed the cat's paranoia

      If you _don't_ do this, you are an overly trusting fuckwit. Seriously.

  11. Jou (Mxyzptlk) Silver badge

    Is forking so difficult?

    Fork it, check your forked code, and then go on. There is no issue, and only idiots would make it one.

  12. Anonymous Coward
    Anonymous Coward

    Always a shame when one first starts losing faith in something or somebody. With news organisations it's normally ill-considered, prejudiced reporting, parroting someone with an agenda that does it for me.

    Assuming that this is somehow newsworthy (unconvinced), then maybe let one of the grown-ups write a balanced and insightful account next time. Or read the many such comments above and do that now.

    1. Anonymous Coward
      Anonymous Coward

      The most striking thing is that the DoD use node.js

      If I found out the avionics in my flight was running node, I would not get on the plane.

  13. cw84

    This is the most xenophobic article I’ve read for a long time.

    There is a valuable lesson somewhere in here about trust, peer review, or reliance on auto-loading code from third party repositories — but please let’s not descend into unbridled xenophobia just because the sole maintainer of a widely used project happens to be Russian.

  14. KalF

    Uncritically reporting FUD

    Hunting Labs wanted a headline and some kind of relevance so they found an isolated dev to pick on. The message here is that if you happen to donate your time to an open source project and you're the main dev or god forbid only dev, you'd better live in the US. Otherwise irrelevant security companies and credulous reporters will point their finger at you and yell "UR a DANGER!!".

    There's lots of one person OS projects. Many start that way and plenty stay that way forever.

    This is really cynical, lazy work.

    1. midgepad Bronze badge

      extreme value of "lots"

      Most open source projects have one developer maintainer.

      By downloads, half the downloads have 1

      A lot of the others might be Linux.

  15. Irongut Silver badge
    Mushroom

    Fuck Hunted Labs

    Their cofounder Haden Smith and their anti-open source rhetoric.

    I haven't heard crap that bad since the days of Balmer and "GPL is a virus".

  16. zZz33

    Excellent report on this topic :

    https://opensourcesecurity.io/2025/08-oss-one-person/

  17. midgepad Bronze badge

    a plethora of small prizes

    Might be useful.

POST COMMENT House rules

Not a member of The Register? Create a new account here.

  • Enter your comment

  • Add an icon

Anonymous cowards cannot choose their icon

Other stories you might like