r/Python • • 17d ago

News microsoft agent-framework on PyPI was compromised twice in 33 minutes last night

1.26.1 and 1.26.2 both ship a credential stealer. It runs from a .pth file, so it executes at interpreter startup. Nothing has to import the package, a pip install in CI is enough. 1.26.1 got pulled, then 1.26.2 went up 33 minutes later with the same payload under different file names. Last clean release is 1.26.0.
complete details- https://safedep.io/blog/microsoft-agent-framework-pypi-compromise

464 Upvotes

57 comments sorted by

View all comments

Show parent comment

0

u/kyngston 17d ago edited 17d ago

you as in smallpaul. if you did google it, you would learn about refresh token replay detection

look at you downvoting someone explaining something you know nothing about…

1

u/Smallpaul 16d ago

You are quite an unpleasant person aren’t you.

How can you guarantee who will use the token first and who will be considered the replayer?

1

u/kyngston 16d ago

again if you googled, you would learn that both get revoked.

1

u/Smallpaul 16d ago

So you are saying that my service stops working and that’s a good thing from your point of view?

1

u/kyngston 16d ago

yes that a good thing if your refresh token is stolen. if your refresh token is stolen often, you’ve got much bigger problems than having to log in again…

1

u/Smallpaul 16d ago

My service serving hundreds of thousands of people is down. That’s a bad thing.

Are you aware of what API tokens are used for? It’s not unusual that core application functions depend on services associated with tokens.

1

u/kyngston 16d ago

hundreds of thousands of people use your app and you think a stolen api token is better than a stolen access token?

make that make sense

1

u/Smallpaul 16d ago

Most often, a stolen API token is just a cost issue. Yes I’d rather pay for extra third party usage instead of having downtime. People depend on my service.

1

u/kyngston 16d ago

api token is a auth credential…. is a supply chain attack a “simple cost issue?”

glad you’re not my infosec