Stephen Lacy Profile picture
Aug 3 14 tweets 5 min read
I am uncovering what seems to be a massive widespread malware attack on @github.

- Currently over 35k repositories are infected
- So far found in projects including: crypto, golang, python, js, bash, docker, k8s
- It is added to npm scripts, docker images and install docs
Most of these commits seem to be innocuous, with messages such as "bump version to 0.3.11"
github.com/operatino/roni…
Some of these repo histories include commits from the original author, but the commit is not GPG verified:
- github.com/redhat-operato…
And others, the user does not exist:
- github.com/h4v0kr/bitcoin…
Some of these repos were "archived", such as this one in 2019
- github.com/promonlogicali…
- github.com/promonlogicali…
This attack will send the ENTIRE ENV of the script, application, laptop (electron apps), to the attacker's server!

ENVs include:
- Security keys
- AWS access keys
- Crypto keys
... much more
Some of these are obfuscated as legit looking pull requests:
- github.com/pagodabox/nano…
But the repo has not received any PRs
Every single go file in that repo was infected
The attacker creates FAKE orgs/repos and pushes clones of LEGIT projects to github.
For example, this legit crypto miner project:
- github.com/scala-network/…
and the clone:
- github.com/stellitecoin/g…
The original authors then get the blame!
I discovered the exploit as I was reviewing a project I found off a google search.

This is why we don't install random packages off the internet!
I did report this to github, the search phrase for reference is:
- github.com/search?l=YAML&…

Search your code for that URL!
Best mitigation strategy for identifying falsified commits: GPG sign your commits!
Update: The attacker runs arbitrary code on your server once it uploads your env: github.com/promonlogicali…
Thanks @raggi for pointing it out
@raggi I tried curling the endpoint, got zero response
Correction, 35k+ "code hits" on github, not infected repositories.
@github seems to have cleaned up most if not all quite quickly.
Excellent response from them!

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with Stephen Lacy

Stephen Lacy Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Don't want to be a Premium member but still want to support us?

Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us on Twitter!

:(