New grammy-tools release reveals npm malware live since 2024
Ellie Jevon
3 Dec 2026
Real World Attacks
New grammy-tools release reveals npm malware live since 2024
Ellie Jevon
3 Dec 2026
No headings found in content selector: .toc-content
Malware usually succeeds through evading detection and staying under the radar, this campaign however, has been reported on three separate occasions over a year ago, and is still alive and kicking.
On 2nd December our threat hunting platform flagged grammy-tools@1.36.3 for malware 90 seconds after being published, upon investigation I saw that it was a fake Telegram bot library that plants an attacker's SSH key onto the victim's machine, opening a back door to their system.
15 of the packages involved are still live on npm today, including 3 from 2 years ago. 31 have been publicly reported on over a year ago. Because they are old they sail right through any tools that use cooldown rules to protect users. Age is not an effective safety signal and we can no longer rely on npm to take them down: as this campaign shows, they either don't, or the operator simply finds a new account and re-publishes.
What has happened?
grammy-tools@1.36.3 which was published at around 7:40 UTC, was a malicious copy of the grammY Telegram bot framework (this legitimate package which allows users to create telegram bots, which is an automated account within the Telegram Chat app). When using this malicious package, the user can create a bot which then plants an attacker's SSH key on Linux hosts and then reports the victim's public IP and username.
43 of the 45 files in this package are exact copies from the legitimate package, this allows the attacker to trick users (AI or human) into thinking this is the real package and not full of malware.
grammy-tools is a small part of a larger financially motivated campaign which its main focus is stealing crypto. This campaign has been running since at least November 2024, with at least 9 npm accounts and around 44 malicious packages involved.
The campaign uses 4 different varieties:
SSH backdoors for Telegram bot developers (this one)
Crypto secret stealers
Fake hardhat plugins
Solana key stealer that exfiltrates to Telegram
What is worrying is that all 5 packages from the author of grammy-tools have been previously reported on by JFrog in October of last year, and when we looked into other packages and authors linked to this malware we found that there were a further 2 incidents that had been reported on in January and April 2025. So clearly reporting malware doesn't seem to be very effective at getting it removed and protecting npm users.
This campaign was initially reported as separate incidents, but through analysing the various packages I believe that there is a strong enough link between them all to say that they are the same operator and campaign.
How we connected the dots
We started from the malicious version of grammy-tools we found yesterday and connected packages and authors spanning over 2 years of malicious activity. This is an active and ongoing campaign that has been reported on numerous times. Users are still being impacted and their data, money, and privacy is still being stolen.
Grammy-tools
It started when our threat hunting platform identified the newly published grammy-tools package, it presents itself as a legitimate Telegram package which even looked super similar, like I mentioned earlier 43 out of the 45 files were the same as the real package. Those 2 files that were different is where the malicious code lived, this is where it was writing SSH keys to disk and sending the victim's data back to the C2.
Investigating the author jamestonytrump I found a total of 5 malicious packages:
These five packages have been reported on before, the JFrog article linked above reported on these packages over a year ago.
Jordankakashi
The same SSH key comment appeared in the node-telegram-utils, node-telegram-bots-api , node-telegram-util packages published by jordankakashi, previously reported by Socket in April 2025.
These packages install SSH backdoors on servers running Telegram bots. Identical function names, backdoor behaviour, C2 request patterns and the shared validator domain family provide compelling evidence connecting the two incidents.
Similarities between jamestonytrump and jordankakashi
Same SSH key label sleeper@DESKTOP-GM46AVB
Same function names addBotId(), same first action (looking up the victim's public IP address at ipinfo.io), both have the same action when on a linux machine (add the attacker's key to ~/.ssh/authorized_keys), then they also use the same path and parameters when phoning home.
Same family of C2
solana.validator[.]blog
Jordansmith and friendforever115
When I searched npm for similar packages I came across three more publishers pretending to be crypto validation tools:
Publisher
Packages
Connection
Published
jordansmith
crypto-validater, node-validater
Exact same malicious files as in jamestonytrump's packages
December 2024
friendforever115
sol-validater
Same malware template and one of jamestonytrump's packages has a 'report bugs here' link which points at sol-validater
December 2024
torres_dev
solana-crypto-validater
Matching build tool versions and publication window. Weak, unconfirmed link.
May 2025
These packages are designed to steal cryptocurrency wallet keys and secrets.
Checking the domain's history can also be a good source of clues, for validator[.]icu I listed every subdomain and the date, each one appeared the same day as its matching package was published: node. on the day of crypto-validater, sol. on the day of sol-validater, solana.crypto on the day of node-validater. validator[.]blog was also registered 14 hours before the new version of grammy-tools .
So the evidence here also suggests that these accounts and packages are part of the same grammy-tools campaign.
Allanjoya and node90555
There was also a fake company mentioned in jamestonytrump's packages called 'nomicfoundations'. Nomic Foundation is the real company behind Hardhat, a popular Ethereum tool. Searching npm for that name found 2 more accounts:
These packages target cryptocurrency developers, stealing wallet keys, deployment credentials and other sensitive information.
We can connect these to the grammy-tools campaign because the malware uses the same template as jamestonytrump's, same functions, the same build setup, the same copied README, and the same fake company.
We can then link these new packages to the incident that Socket reported on in January 2025 through: the same encryption key was used, same recovery habit allanjoya re-published @nomicfoundations/hardhat-config after it got removed from brightstar1001 from the Socket article.
A further connection was found in jamestonytrump's READMEs, which reference crypto-nodes-validator, a package published by brightstar1001.
One connected campaign
What started out as one malicious Telegram package turned out to be the key to connecting three incidents as one, through shared code and infrastructure.
What is concerning is that 3 of these packages that were published 2 years ago are still live, and many from last year are also still active. Trusting packages because they have been up for months or years cannot be the way we decide which packages are safe and which are not. Being able to scan the code and analyse what it is actually doing before you install is the only way you can be sure what you install won't compromise your systems and steal your data, secrets, or money.
What does this mean?
Well this investigation has shed some light on some of the issues we at Ossprey see every day:
Attacks and campaigns can survive reporting
We saw that some of the packages we looked at were already reported on by well known researchers, so clearly this doesn't stop the attack no matter how much you shout about it
They can survive takedowns
Even when they do happen they don't stop the operator changing account and republishing
Package cooldown rules do not stop this
Some of these have been live since 2024, they have been downloaded collectively 741 times and so to certain tools and checks they look safe
These settings rely on the assumption that malicious versions of packages you already trust will be spotted and taken down within days, so only downloading packages that have been published for a week protects the user. But this just isn't the case any more.
Attackers are getting smarter. In this campaign alone the attacker has:
Republished a removed package under the same name from a new account
Registered a new C2 subdomain for each package
Copied the real package exactly simply adding the malicious code
Spread across multiple accounts that only connect once you start analysing the code
What can you do?
You can start by checking for indicators of compromise which are all listed in the appendix, if you detect any of these assume compromise, remove any affected packages and rotate all secrets and credentials that the machine has access to.
2 quick checks:
search lockfiles for package names listed in the IOC list
grep ~/.ssh/authorized_keys for sleeper@DESKTOP-GM46AVB or sshconf
The only safe approach is to review every package you use to ensure it is actually safe, at Ossprey we scan the code and check for what it actually does, not what it appears to do, and we block malware before you install it. We can integrate wherever your developers are including your AI coding agents. Malware is getting more sophisticated and better at what it does, any code you install must be checked thoroughly, and its behaviour analysed before it enters your enterprise. Ossprey blocked grammy-tools@1.36.3 1.5 minutes after it was published.
Try Ossprey for free or reach out to get a better understanding of how we can help protect you and your systems.
GET /v1/check?ip=<IPv4>&name=<username>&type=<linux|darwin|win32>
POST /v1/check {"action":"validator","content":"<base64orrawsecret>"}
POST /api/projects/setData {"project":"hardhat","info":"<AES-256-CBCbase64>","state":"okay"}
POST /api/projects/getAddress {"name":"<string>"}
GET /v1/check?ip=<IPv4>&name=<username>&type=<linux|darwin|win32>
POST /v1/check {"action":"validator","content":"<base64orrawsecret>"}
POST /api/projects/setData {"project":"hardhat","info":"<AES-256-CBCbase64>","state":"okay"}
POST /api/projects/getAddress {"name":"<string>"}
GET /v1/check?ip=<IPv4>&name=<username>&type=<linux|darwin|win32>
POST /v1/check {"action":"validator","content":"<base64orrawsecret>"}
POST /api/projects/setData {"project":"hardhat","info":"<AES-256-CBCbase64>","state":"okay"}
POST /api/projects/getAddress {"name":"<string>"}