Skip to content
  • Categories
  • Recent
  • Tags
  • All Topics
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Caint logo. It's just text.
  1. Home
  2. Uncategorized
  3. Malicious javascript compromise on npmjs
Welcome to Caint!

Issues? Post in Comments & Feedback
You can now view, reply, and favourite posts from the Fediverse. You can click here or click on the on the navigation bar on the left.

Malicious javascript compromise on npmjs

Scheduled Pinned Locked Moved Uncategorized
16 Posts 4 Posters 15 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Kevin BeaumontG Kevin Beaumont

    Example copy of one of the inserted JS: https://pastebin.com/bwLZrq02

    Kevin BeaumontG This user is from outside of this forum
    Kevin BeaumontG This user is from outside of this forum
    Kevin Beaumont
    wrote last edited by
    #4

    Just reported to NPM, they work on it.

    Kevin BeaumontG 1 Reply Last reply
    0
    • Kevin BeaumontG Kevin Beaumont

      Just reported to NPM, they work on it.

      Kevin BeaumontG This user is from outside of this forum
      Kevin BeaumontG This user is from outside of this forum
      Kevin Beaumont
      wrote last edited by
      #5

      Derek's caught it too https://infosec.exchange/@derekheld/115169311485030806

      Kevin BeaumontG 1 Reply Last reply
      0
      • Kevin BeaumontG Kevin Beaumont

        Derek's caught it too https://infosec.exchange/@derekheld/115169311485030806

        Kevin BeaumontG This user is from outside of this forum
        Kevin BeaumontG This user is from outside of this forum
        Kevin Beaumont
        wrote last edited by
        #6

        It's a cryptocurrency wallet drainer, RIP a load of devops dudes crypto.

        Kevin BeaumontG 1 Reply Last reply
        0
        • Kevin BeaumontG Kevin Beaumont

          It's a cryptocurrency wallet drainer, RIP a load of devops dudes crypto.

          Kevin BeaumontG This user is from outside of this forum
          Kevin BeaumontG This user is from outside of this forum
          Kevin Beaumont
          wrote last edited by
          #7

          NPM on it, some packages nuked, more being nuked

          Kevin BeaumontG 1 Reply Last reply
          0
          • Kevin BeaumontG Kevin Beaumont

            NPM on it, some packages nuked, more being nuked

            Kevin BeaumontG This user is from outside of this forum
            Kevin BeaumontG This user is from outside of this forum
            Kevin Beaumont
            wrote last edited by
            #8

            If you want an idea of scale of trojan attempt - 'color' alone had 32m downloads in a week, the combined attempt was pushing a billion due to upstream dependencies.

            Hunt tip: look for registry.npmjs.org in proxy logs, package names are in the URLs.

            Kevin BeaumontG 1 Reply Last reply
            0
            • Kevin BeaumontG Kevin Beaumont

              If you want an idea of scale of trojan attempt - 'color' alone had 32m downloads in a week, the combined attempt was pushing a billion due to upstream dependencies.

              Hunt tip: look for registry.npmjs.org in proxy logs, package names are in the URLs.

              Kevin BeaumontG This user is from outside of this forum
              Kevin BeaumontG This user is from outside of this forum
              Kevin Beaumont
              wrote last edited by
              #9

              additional backdoored packages

              ansi-styles
              debug
              chalk
              supports-color
              strip-ansi
              ansi-regex
              has-ansi

              Kevin BeaumontG 1 Reply Last reply
              0
              • R ActivityRelay shared this topic
              • Kevin BeaumontG Kevin Beaumont

                additional backdoored packages

                ansi-styles
                debug
                chalk
                supports-color
                strip-ansi
                ansi-regex
                has-ansi

                Kevin BeaumontG This user is from outside of this forum
                Kevin BeaumontG This user is from outside of this forum
                Kevin Beaumont
                wrote last edited by
                #10

                Weekly download stats for impacted packages prior to incident

                ansi-styles (371.41m)
                debug (357.6m)
                backslash (0.26m)
                chalk-template (3.9m)
                supports-hyperlinks (19.2m)
                has-ansi (12.1m)
                simple-swizzle (26.26m)
                color-string (27.48m)
                error-ex (47.17m)
                color-name (191.71m)
                is-arrayish (73.8m)
                slice-ansi (59.8m)
                color-convert (193.5m)
                wrap-ansi (197.99m)
                ansi-regex (243.64m)
                supports-color (287.1m)
                strip-ansi (261.17m)
                chalk (299.99m)

                Total 2674m

                Kevin BeaumontG 1 Reply Last reply
                0
                • Kevin BeaumontG Kevin Beaumont

                  Malicious javascript compromise on npmjs.com

                  These packages, about a billion downloads prior

                  supports-hyperlinks
                  chalk-template
                  simple-swizzle
                  slice-ansi
                  error-ex
                  is-arrayish
                  wrap-ansi
                  backslash
                  color-string
                  color-convert
                  color
                  color-name

                  Thread follows.

                  Tom WalkerT This user is from outside of this forum
                  Tom WalkerT This user is from outside of this forum
                  Tom Walker
                  wrote last edited by
                  #11

                  @GossiTheDog Whoever could have predicted that downloading 10GB of third party code from 1,000 different people to do simple tasks would end up this way

                  1 Reply Last reply
                  1
                  0
                  • Kevin BeaumontG Kevin Beaumont

                    Weekly download stats for impacted packages prior to incident

                    ansi-styles (371.41m)
                    debug (357.6m)
                    backslash (0.26m)
                    chalk-template (3.9m)
                    supports-hyperlinks (19.2m)
                    has-ansi (12.1m)
                    simple-swizzle (26.26m)
                    color-string (27.48m)
                    error-ex (47.17m)
                    color-name (191.71m)
                    is-arrayish (73.8m)
                    slice-ansi (59.8m)
                    color-convert (193.5m)
                    wrap-ansi (197.99m)
                    ansi-regex (243.64m)
                    supports-color (287.1m)
                    strip-ansi (261.17m)
                    chalk (299.99m)

                    Total 2674m

                    Kevin BeaumontG This user is from outside of this forum
                    Kevin BeaumontG This user is from outside of this forum
                    Kevin Beaumont
                    wrote last edited by
                    #12

                    Phishing email sent to maintainers, they basically targeted people with 2FA by getting them to.. reset their 2FA.

                    mkjM Kevin BeaumontG 2 Replies Last reply
                    1
                    0
                    • Kevin BeaumontG Kevin Beaumont

                      Phishing email sent to maintainers, they basically targeted people with 2FA by getting them to.. reset their 2FA.

                      mkjM This user is from outside of this forum
                      mkjM This user is from outside of this forum
                      mkj
                      wrote last edited by
                      #13

                      @GossiTheDog That's a new one. (Too bad no alt text so no boost.)

                      Maybe less people would fall for that sort of scam if regular forced password resets weren't so common?

                      1 Reply Last reply
                      1
                      0
                      • Kevin BeaumontG Kevin Beaumont

                        Phishing email sent to maintainers, they basically targeted people with 2FA by getting them to.. reset their 2FA.

                        Kevin BeaumontG This user is from outside of this forum
                        Kevin BeaumontG This user is from outside of this forum
                        Kevin Beaumont
                        wrote last edited by
                        #14

                        Developer confirms they fell for phishing email

                        It looks like others have too, found one other compromised repo from a different user, will have a dig tomorrow as bored of cyber tonight.

                        https://bsky.app/profile/bad-at-computer.bsky.social/post/3lydioq5swk2y

                        Kevin BeaumontG 1 Reply Last reply
                        0
                        • Kevin BeaumontG Kevin Beaumont

                          Developer confirms they fell for phishing email

                          It looks like others have too, found one other compromised repo from a different user, will have a dig tomorrow as bored of cyber tonight.

                          https://bsky.app/profile/bad-at-computer.bsky.social/post/3lydioq5swk2y

                          Kevin BeaumontG This user is from outside of this forum
                          Kevin BeaumontG This user is from outside of this forum
                          Kevin Beaumont
                          wrote last edited by
                          #15

                          For anybody confused about how this happens, basically:

                          - For about the past 15 years every business has been developing apps by pulling in 178 interconnected libraries written by 24 people in a shed in Skegness

                          - For about the past 2 years orgs have been buying AI vibe coding tools, where some exec screams "make online shop" into a computer and 389 libraries are added and an app is farted out

                          The output = if you want to own the world's companies, just phish one guy in Skegness

                          The Penguin of EvilE 1 Reply Last reply
                          2
                          0
                          • Kevin BeaumontG Kevin Beaumont

                            For anybody confused about how this happens, basically:

                            - For about the past 15 years every business has been developing apps by pulling in 178 interconnected libraries written by 24 people in a shed in Skegness

                            - For about the past 2 years orgs have been buying AI vibe coding tools, where some exec screams "make online shop" into a computer and 389 libraries are added and an app is farted out

                            The output = if you want to own the world's companies, just phish one guy in Skegness

                            The Penguin of EvilE This user is from outside of this forum
                            The Penguin of EvilE This user is from outside of this forum
                            The Penguin of Evil
                            wrote last edited by
                            #16

                            @GossiTheDog There's not a lot else to do in Skegness

                            1 Reply Last reply
                            1
                            0
                            • R AodeRelay shared this topic
                              R AodeRelay shared this topic
                            Reply
                            • Reply as topic
                            Log in to reply
                            • Oldest to Newest
                            • Newest to Oldest
                            • Most Votes


                            • Login

                            • Don't have an account? Register

                            • Login or register to search.
                            • First post
                              Last post
                            0
                            • Categories
                            • Recent
                            • Tags
                            • All Topics
                            • Popular
                            • World
                            • Users
                            • Groups