A malware dev has committed a magnificent self-own after an AI-coded malicious package leaked its own GitHub private token
🖥 PCNews
🎮 A malware dev#Security#Software

A malware dev has committed a magnificent self-own after an AI-coded malicious package leaked its own GitHub private token

PC Gamer RSS FeedAndy Edser2 min read(3 months ago)

We're continually warned about the prospect of AI-generated malware these days, but there is one important factor working in our favour: sometimes, it's kinda rubbish.

Ox Security researchers have discovered an info-stealing malicious npm package called mouse5212-super-formatter, designed to target Claude users. The nasty little blighter reached 676 downloads before being unmasked, after the apparently AI-coded malware leaked its own GitHub private token (via The Registry).

The researchers say the infostealer posed as an internal "archive deployment sync utility", but in reality, it "authenticates to GitHub (using an environment token or a hard-coded fallback), checks whether a target repository exists, creates it if needed, then recursively walks a local directory and uploads every file through the GitHub Contents API."

Latest Videos From

The malware then stores stolen files under a random per-run folder name, while also writing a fake network connections log to make "execution look like diagnostics rather than theft."

The GitHub private token allowed the researchers to trace the stolen files and analyse the malware, raising suspicions of AI coding involvement. The threat actor's GitHub account linked to the package has since been deleted.

(Image credit: skaman306 via Getty Images)

My favourite part? OX Security has put together a handy chart to show how it all works, labelling its type as "Infostealer/Malware-Slop." Damn.

"While threat actors have been leveraging their techniques in recent years, this is a good example showing how some... are using AI to generate malware without understanding basic opsec concepts and best practices," says the company.

Keep up to date with the most important stories and the best deals, as picked by the PC Gamer team.

"Now that the bar to create malicious code [has been] reduced significantly, we’re going to see more threat actors getting into the game–uploading more sloppy malwares, mostly mimicking APT groups to get a slice of the cake until npm starts automatically blocking malware completely."

Well, this particularly insecure, err, security risk appears to have been neutralised, and we can all rest easy in our beds tonight. Hey, just be glad we're still in the early days of the AI self-owning age. If things keep developing at the current rate, these stories are going to become a lot less fun as the years go on.

Best gaming rigs 2026

Share:

More in PC

PSA: Swap the radial ability menu in Star Wars Zero Company for more of a trad XCOM-style experience🖥 PC

PSA: Swap the radial ability menu in Star Wars Zero Company for more of a trad XCOM-style experience

It's the Runa-approved way to play.

PCNewsabout 4 hours ago
NYT Connections hint (Sun, 30 Aug)🖥 PC

NYT Connections hint (Sun, 30 Aug)

!(https://assetsio.gnwcdn.com/rps-connections-header-image-2.jpg?width=690&quality=85&format=jpg&auto=webp) Connections giving you the blues? Those hints slip away like sand between your fingers. But keep a tight grip on that streak! We've got all the hints and answers you need to complete Connections for another day. So, pick up that puzzle and let's get solving! Read more(https://www.rockpapershotgun.com/connections-hint-answers-30-08-26)

RockGuides / Walkthroughsabout 4 hours ago
Wordle hint and answer today #1898 (August 30 2026)🖥 Mobile, PC

Wordle hint and answer today #1898 (August 30 2026)

!(https://assetsio.gnwcdn.com/wordle-cat.jpg?width=690&quality=85&format=jpg&auto=webp) Need a hint for today's Wordle answer? There's a lot of five-letter words out there, after all. Let us narrow it down for you with a few handy hints. Every day, Wordle presents its legions of players with a deviously simple quandary: can you guess the right five-letter word within just six guesses? All you have to help you in finding the Wordle answer are the contextual clues you gain from each guess - but often, that's not enough. Wordle can be tricky, you see, and it's not unusual to look for a little bit of help if you want to preserve your year-long winstreak. In this guide we'll offer up a selection of Wordle hints to help you figure out today's solution for Sunday August 30. Scroll down a bit further and we'll also reveal today's Wordle answer for 30/8, and a definition of the word if you need it. Read more(https://www.rockpapershotgun.com/wordle-hint-and-answer-today-30-08-26)

RockGuides / Walkthroughsabout 4 hours ago