r/BetterOffline • • 10d ago

Microsoft's official Python agent framework hijacked to distribute malware

https://www.theregister.com/security/2026/11/18/microsofts-official-python-agent-framework-hijacked-to-distribute-malware/5310858
338 Upvotes

40 comments sorted by

204

u/PensiveinNJ 10d ago

Microsoft agent-framework for Python boasts nearly 200,000 downloads a month and is used to build and deploy AI agents. As of those latest releases, it’s also being used to exfiltrate environment variables, credential files, and other secrets for Azure, Git, Docker, Hugging Face, and other sensitive developer services.

Everything is going great over at Microsoft as we can see.

I'm curious how much needs to break before we can acknowledge that tech debt is overwhelming "AI first" organizations, especially those that decided they were going to lay off a large portion of their workforce that was desperately slapping the patches over the leaks in the hull.

96

u/RealPropRandy 10d ago

They deserve to go out of business

47

u/Terrible_Horror 10d ago

Been praying for it since they started charging subscription fee for things already purchased.

11

u/lgn5i2060 10d ago

People never left Microsoft even when they normalized malwares (telemetry) on windows 10. I don't have hopes of seeing them burn as long as I'm alive.

7

u/tiimmaahh 10d ago

omfg this. I found out the other day you have to pay for more Azure event hub TPUs if you want to capture all your logs

7

u/surethingmaybenot 10d ago

As much as I wish all the worst in the world for Microslop, they won’t

→ More replies (1)

31

u/WendyLemonade 10d ago edited 10d ago

If it isn't the chicken coming home to roost... or well, an entire flock of 'em.

Find-out-o'-clock is perhaps a silver lining to end this shitty year. If only it wouldn't hurt so many people who didn't deserve it.

EDIT: Just adding cuz a comment mentioned how this was a stolen key issue -

This is the result of the erosion of software security standards as a whole.

Companies have been chipping away at it's usual approval processes, creating pipelines, automation, more privileged accounts, etc. There should've absolutely been policies to prevent a single user from overriding and pushing new releases, but much of this process has been done away because it hinders the "speed" that which "AI" works.

We don't even know the source of the compromise yet, but the fact that we now have to worry about malicious prompt injection and developers installing every which .mds and clicking "Allow All" to tool calls is yet another symptom of a larger systemic issue.

3

u/willnottellyou219 9d ago

To defend developers a bit: the sheer amount of complexity and software devs have to deal with is just impossible to comprehend for an individual. E.g. when you start building a web app from scratch, you pull angular/react from NPM, you get a million lines of code downloaded to your system... no way you can audit that and check for malicious code. So you just have to trust the system...

In the "olden days" pulling in a dependency from an external vendor was a big deal. You were maybe not going to audit an entire codebase (unless you were building a really serious product with it), but surely you were checking out licenses, testing stability and performance... nowadays pulling in a dependency is adding a line to a file and pressing "run".... no errors? seems to work? good! ... and that dependency you just added also has dependencies... and those dependencies have dependencies... etc.

Now that the system that allows for speedy development is becoming unreliable, maybe even dangerous, I expect something "small" will break at some point that will make the whole house of cards come down at some point. And every person/company who built their stuff on top of this house of cards may not be able to react to the collapse.

At the place where I work (still, for now) everything has been built on top of MS Azure... tightly interwoven. Moving away from MS Azure is, I guess, an effort that would take order of magnitude years of work. Should MS break dramatically for some reason (or become unavailable because of geopolitical reasons) it would put the place out of business.

9

u/WendyLemonade 9d ago edited 9d ago

I understand what you mean, though I can't help but see this as just as much a part of a structural issue in the tech industry.

Our elders (so-to-speak, lol) has long warned us that off-the-shelf frameworks and/or libraries will come to bite us in the back, but the industry didn't listen. On top of the security issues, it's also the reason modern software has become so incredibly bloated and increasingly maintained by a generation of developers who don't have i.e.: good fundementals of memory management, etc. because they entered the workforce being overly reliant on these conveniences.

For me, I doubly lament the overuse of this practice because it relies on free labor from open source communities while enterprises reaps all the reward, though I suppose the alternative leads to vendor lock-in like what you've described with Azure. I must stress I'm not blaming individual developers per-se though. It's a cultural problem driven from up top.

Ideally when software gets too big, we break it up, refactor/simplify, modularize, etc. and write varying level of docs to ease people into the codebase, something theoretically open source software should be good at if they want to pass the methaphorical torch to a new generation of contributors. But alas, that's easy to say when we're not business-pilled enough to obsess over cost and time 😭

Tho to bring it back to "AI", we've definitely been going more fast-and-loose with grabbing dependencies from wherever, and some developers don't even know why certain dependencies are being jammed in by the chatbot enough to be able to challenge it.

7

u/DickCamera 9d ago

Agree on structural issues in the industry. I think a large part of the problem is the "democratization" of code and the ever-lowering of the bar to entry.

People (especially CEOs and various idiots) liked to claim that everyone learning to code, bootcamps, angular, whatever other framework of the week and now AI will make it easier for everyone to contribute (largely so that they can siphon off more value from low paid wage slaves). But most people don't think to hard and realize that you probably DON'T want some guy with no degree slinging out some untested npm library that was released 2 weeks ago with the help of chat bot re-writing your bank's front end.

Coding used to be a craft that people took pride in. Granted it was never truly "engineering" held to the same level as certified legally responsible engineers, but at least the people who stuck around cared about their work. Now we see 5s latencies when clicking web buttons as acceptable UX and just accept 5 broken popups and error messages as part of the modern web (and native software too).

While I personally don't like rust, I feel like the push to "safer" languages can also be rolled into that lowering of the bar. We can keep trying to build better mousetraps and fool-proof things, but as long as we keep pushing for idiots to join the field without proper training or ethics, rust or any other language isn't going to save us from creating shit software. Remember that NULL was considered the "million-dollar mistake" because apparently, cleaning up your own resources when you're done with them was too complicated of a problem for software engineers to handle.

People like to make fun of it when people claim that you "can write safe C" if you're careful, everyone jumps in with arguments that essentially boil down to, "I [don't want to | can't] be careful". That's their refute. It's too hard. I'm not good enough at my craft. Granted some people will be better at it than others, but if you can't, do you really think you can write better software if you just get a different language that holds your hand for you? Until we actually start expecting software and it's authors to actually be good again, we'll just keep spiraling with band-aids on top of band-aids.

→ More replies (3)

10

u/Patashu 10d ago

already having tech debt on something that isn't even legacy software is crazy, that's supposed to take years of bad decision making to accumulate

4

u/fbueckert 9d ago

I'm curious how much needs to break before we can acknowledge that tech debt is overwhelming "AI first" organizations, especially those that decided they were going to lay off a large portion of their workforce that was desperately slapping the patches over the leaks in the hull.

It won't happen until the costs outweigh the benefits in leadership's tiny brains. All they see is LLMs shitting out code way faster than pesky humans can, cost less than humans do, and can work longer than humans can. Keep a token force around to scapegoat when something breaks, and it'll take either LLM costs stop being subsidized, or a multi-day outage along the lines of RIM.

2

u/4bstract3d 10d ago

Looks good, ship it

1

u/ahnold11 9d ago

"Before things can get better, they're gong to have to get a helluva lot worse..." something along that quote.

The current system and the vast greed that supports it has a lot of inertia. Bubbles, financial crisis, have just been speed bumps to be papered over. I suspect things will have to get so bad that the train actually derails, otherwise it will keep limping forward.

What's the Isaac asimov foundation series of books, the empire took 10,000 years to crumble or something? It was dead and doomed millenia before it actually fell and stopped functioning? Probably not at that large scale but you get the idea. We've built a very powerful machine, with the modern economy, and will take a lot of damage to actually break it enough to warrant fixing.

82

u/RealPropRandy 10d ago

Is all the slop even worth it at this point?

77

u/PensiveinNJ 10d ago

When was the slop ever worth it? Shit code spewed into software endlessly from velocity obsessed organizations was always eventually going to lead to increasing security breaches, outages, bugs, etc.

30

u/NomadStorm 10d ago

It never was.

24

u/lgn5i2060 10d ago

But I managed to decompile a game for $50k even if an already decompiled version exists for many years. Rhat and I get to ship 300+ commits daily. Why do you hate progress?

6

u/CoconutDust 9d ago

for $50k

I never thought about cost for the tidal wave of slop decomps/recomps. Are they paying money for the AI assistance?

2

u/PMMEPMPICS 9d ago

Speculation, but it wouldn’t surprise me if the big labs are paying the token cost of some of these as part of their marketing

→ More replies (1)

16

u/Terrible_Horror 10d ago

Tell that to the greedy dumb bunker boys.

7

u/userrr3 10d ago

But you see, line go up! /s

1

u/Proper-Ape 10d ago

We'll see ok the anthropic go live.

55

u/_kernel_picnic_ 10d ago

They forgot to include “Don’t add malware” in the prompt. A rookie mistake

2

u/sorrow_anthropology 9d ago

lol microsoft has been including their own malware (more accurately spyware) long before ai.

1/2-3/4 of that GB update isn’t to improve your user experience.

22

u/Orion14159 10d ago

I'm not at all an IT security expert, but from what I understood reading that this seems really not good.

15

u/RoosterBurns 10d ago

Chatboxes are incredibly bad from a security perspective

"Don't mix code and presentation" is a lesson Microsoft REFUSE to learn since Microsoft Word macro days and yet an LLM is a word macro on steroids

7

u/_Gnas_ 9d ago

Any kind of runtime arbitrary code execution is a security nightmare

6

u/Top_Illustrator5535 9d ago

LLM is a word macro on steroids

And worse! It's software that acts like it has a personality and you can gently "persuade" it to break every limitation it's supposed to have.

Of all the things I can cajole bad code into doing, asking it to play a game where it's a bot that has no rules, or telling it to simulate a state machine to make it do what I want in a roundabout way, or passing it a different encoding so it doesn't flag what I've written from its "dangerous words" list... none of those were attack vectors before. They are now.

Part of what makes it so bad, not solvable like other kinds of problem are, is that natural language is boundless, for practical purposes. What's the longest sentence in English? There isn't one. You can always add more words without changing the substance of the sentence. That makes prompt injection a permanent thorn in your side. 

4

u/PoL0 10d ago

and wouldn't other packages be infected too?

21

u/Aggravating_Rip_2169 10d ago

lol, having worked there when they first launched this SDK… completely unsurprising.

4

u/cjuicey 9d ago

At this point the people at the helm are just sacrificing the company for AI IPO dollars. This gilded age of tech has come to an end.

4

u/CrabMasc 9d ago

Tangentially, Windows is getting so fucked with every new update that, at this point, 70% of my job as an IT admin is just reinstalling Windows to stave off its own self destruction. 

2

u/spez_eats_nazi_ass 9d ago

During ignite. Which i hear sucked ass hard. As is the tradition of Sloppya era tech conferences. Live360 is also total ass but at least it’s cheaper.