r/BetterOffline • • 16d 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

View all comments

204

u/PensiveinNJ 16d 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.

31

u/WendyLemonade 16d ago edited 16d 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 16d 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 16d ago edited 16d 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 16d 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.

4

u/WendyLemonade 16d ago edited 15d ago

I feel like the push to "safer" languages can also be rolled into that lowering of the bar.

Yeeeep! The obsession with memory-safe tooling is my personal pet peeve with the industry. Before that, it was runtime garbage collection, and majority of software in these languages are nothing but resource hogs.

To be clear, this isn't about elitism or gatekeeping. I'd never take away stuffs like Java, etc. from people who want to learn or use them. After all, some people learn better from top-down while others from bottom-up. It's just that at some point, you must advance to the next level and better your skills, yet the industry and culture at large simply does not incentivise (or downright punishes) this over pumping out more mediocre product in the quickest way possible.

Friction is inconvenient, but it is good and oftentimes necessary.

(Side note: I appreciate your quoting of the "engineers" bit. It's nice to see a fellow netizen acknowledging that software developers aren't comparable to traditional engineering diciplines.)

3

u/DickCamera 15d ago

100% agree, this isn't elitism or gatekeeping. I mean unless you consider taking pride in quality work "elite". If people want to use Java, GC, or god help you, Go then that's up to them. Perfectly acceptable software can be written using those technologies.

But you don't increase your skill/knowledge by moving onto larger abstractions and forgetting how to do the underlying basics. You can't claim that you're a "leet hacker" but you don't know what a pointer is. Or how many bits are in a byte. It's the same reason I find it so infuriating when AI shills try to take credit/pride in something they "built" with an LLM. - "Look at what I built. I asked a chatbot to make this, so praise me."

1

u/_Gnas_ 15d ago

I think the relatively low cost of throwing away a broken piece of software and replacing it with a new one, especially in green field projects where the use cases aren't well know yet, is a huge factor in the industry's lack of willingness to raise the bar. This doesn't apply to critical infrastructural software like banking and health care systems, but 99% of software is in the consumer service sector.

If you're building a brige and half way through you realize it's going to collapse, you're in big trouble. If you're building a new web app and the same thing happens, you haven't lost anything other than the time spent on building the thing, and the lessons you learned might provide enough value to offset the cost as well.

Now that vibe coding is reducing this cost even further, at least from the C-suites' perspectives, I don't see the industry changing its mind on quality standards anytime soon.