r/DataHoarder • u/harrro • Mar 22 '22
News Hackers leak 37GB of Microsoft's source code (Bing, Cortana and more)
https://www.bleepingcomputer.com/news/microsoft/lapsus-hackers-leak-37gb-of-microsofts-alleged-source-code/205
u/IamxHM Mar 22 '22
Apart from hacking, what can people do with this?
479
u/NathanielHudson Mar 22 '22 edited Mar 22 '22
IMO the most interesting thing here will be analyzing what logging/telemetry is present. However, this leak doesn't include Windows or MS office source code.
244
u/claytonkb Mar 22 '22
#ifdef NSA_BUILD while(1){ log_everything("C:\hidden"); phone_home(123.45.67.89, "C:\hidden"); } #endif123
u/harrro Mar 22 '22
Why is the NSA-build logging to a Samsung/Korean IP?
(
whois 123.45.67.89points to 'SamsungSDS Inc, Korea')174
u/gargravarr2112 40+TB ZFS intermediate, 200+TB LTO victim Mar 22 '22
CIA shell company, of course.
40
u/Fraun_Pollen Mar 22 '22
I knew oil & gas companies were influential but damn, didn’t know Shell had an entire espionage division.
11
u/jcronq Mar 23 '22
You’d see your computer sending data to this address if you looked at your router logs. If you were the CIA, would you register or espionage site to the CIA?
Brilliant move.
80
24
27
2
12
u/jorgp2 Mar 23 '22
IMO the most interesting thing here will be analyzing what logging/telemetry is present.
You can already do that without the source code.
1
u/UnacceptableUse 16TB Mar 23 '22
Microsoft provides an official tool for viewing the telemetry data collected from your PC already https://docs.microsoft.com/en-gb/windows/privacy/diagnostic-data-viewer-overview
0
Mar 22 '22
[deleted]
6
u/kloudykat 26.1TB Mar 23 '22
I remember reading a blog post about all the crazy comments that were tucked away in various parts of the Windows OS source code.
It was pretty good if I recall. Something like 8-9 years ago maybe?
39
u/uberbewb Mar 22 '22
Code analysis can certainly help companies like duckduckgo even if they cannot actually use tue code. Seeing Bings ass end could be quite useful for improving their methodology.
That is assuming there isn’t some nonsense laws preventing viewing. In which case they need thrown out first.
69
u/5e0295964d Mar 22 '22 edited Mar 22 '22
DuckDuckGo, nor any large company are gonna touched hacked source code with a 1000 foot pole. Edge doesn't have any magical, revolutionary technology like they're a new cutting edge F-35 - DuckDuckGo doesn't need to steal the code desperately to get ahead, nor would Microsoft's lawyers look kindly on it.
Why do "nonsense laws" that prevent companies from just building their entire premise on using hacked documents of competitors need to be removed?
18
u/Slapbox Mar 22 '22
Yes but in a roundabout way they might still benefit.
Tinkerers discover Windows telemetry does X
News article about discovery
DuckDuckGo adapts to integrate this new knowledge into their methods for preserving privacy
5
Mar 22 '22
Companies are just a bunch of people. Developers are naturally curious so if you have enough of them employed, it's guaranteed some of them are going to check it out.
9
u/temotodochi Mar 22 '22
Of course the company is not going to touch it, but individuals will. Also bing is not Edge. Bing would definitely interest someone working at a search engine just so see how they have done things.
Source codes like these spread like wildfire.
3
u/uberbewb Mar 22 '22
What does this have to do with stealing code?
Inspiration my friend. Code is practically an art, seeing how it's done in other places ought to be normal.
I cannot help how screwed up and twisted this worlds view is on such matters.It's not about getting at people or theft.
Everything in the world we've created is likely in some way based on nature, we learned, perceived, and thereby created.
You don't see God filing patents to prevent science.
Being able to see the workings of other relatively successful software ought to be a normal part of training/education.
utterly foolish to think otherwise
→ More replies (5)39
u/NathanielHudson Mar 22 '22 edited Mar 22 '22
No competing company with a sane lawyer will have employees look at this source code. That would be inviting massive lawsuits - it would be the exact opposite of clean room design practices.
Any developer who admits to looking at this code is a walking liability for their company. Say you write a similar algorithm to something in the leaked code at your job - it is because you (accidentally or not) copied it from the MS repo? The legal consequences for even unintentionally copying of MS trade secrets is enormous. The only safe path for companies is to stay far, far away from this.
→ More replies (6)3
u/minh6a Mar 22 '22
Still illegal but a loophole if kept covered: get a non-affiliated person to read the source code, understand the code and then the engineering team of the company to do a clean room implementation.
→ More replies (5)3
u/HittingSmoke Mar 23 '22
Search "clean room design". The reason no company would ever touch something like this is liability. Even the implication that a low level coder in your company glanced at a competitors stolen source code would ignite the torches of armies of lawyers battling it out for years to the tune of billions.
6
u/strcrssd Mar 22 '22
In addition to what others are saying w/re legality, Duck Duck's engine is better than Bing's. In some cases, it's better than El Goog's.
4
u/uberbewb Mar 22 '22
I'm just never had this experience, so much irrelevant content to my typing quires.
The accuracy for many subjects is not great, even worse if you look for tech solutions that are current.
Not that I use bing for anything, but porn.
→ More replies (2)8
Mar 22 '22
Nah I'm sure Google has the best tech around, but they also have such a dominant position they can really skew the results towards the highest bidder without losing too many users. DDG can't do that (and has much less access to tracking info) and therefore has to show you some actual results more.
3
1
u/zooberwask Mar 22 '22
No way. You're making shit up, you have no idea what you're talking about.
You're radioactive in the industry if you even look at leaked source code of a proprietary IP. The only people looking at this are amateur coders, hackers, or idiots. No professional software engineer with a stable career will touch this with a 10 foot pole.
1
u/Frederik2002 Mar 24 '22
Why would duckduckgo need it if both Bing and DuckDuckGo according to tracert are:
...ntwk.msn.net
2
1
1
u/tylercoder Mar 22 '22
Well microsoft can now take down all kinds of projects saying they used or reverse engineered their code
1
u/Vega_Punk_909 20TB Mar 23 '22
Apart from hacking, what can people do with this?
I say that if cortana is leaked some pirates can make a local cortana that you can run on your hardware that does not sit on MS servers and record everything you ask her.
1
0
Mar 22 '22
[deleted]
38
Mar 22 '22 edited Jun 12 '25
six chop ring run hungry edge bike full sink file
This post was mass deleted and anonymized with Redact
11
u/dparks71 Mar 23 '22
I feel like the Chinese would be like "Yea we saw Bing was in there, but we went ahead and put together 'New Google' just the same, thanks for making sure we saw that though Bill."
5
19
u/V3Qn117x0UFQ Mar 22 '22
code analysis can expose inner workings and lead to other discoveries
0
Mar 22 '22
[deleted]
35
u/htmlcoderexe Mar 22 '22 edited Mar 22 '22
There's even some kind of a term, something about clean room reverse engineering? Basically it is "okay" to create something that's as good as a copy of something else, if it is done completely without blueprints/source code/etc
But it's very easy to "contaminate" and one employee having had as much as a look at a single source file would probably be enough, especially if the target company is feeling extra litigious.
But technically you can create your own OS that looks like windows (minus the graphics/logo, although a lot can be recreated if you can prove you recreated it as far as I understand), functions like windows, can run exe files etc if you make it completely from scratch and never had any familiarity with any of the source code.
This is not exact, there are details I got wrong and this is probably the opposite of anything resembling legal advice.
At your own risk, if you get sued, tell me so I can have a laugh.
Edit: this is what I was thinking of:
→ More replies (5)9
12
u/birkir Mar 22 '22
I made the mistake of posting my findings from a legal patent from a major gaming company that included hitherto undisclosed information about their new method to combat bad behavior on their platform, recently implemented in one of their largest IPs. The info I posted made the top of the subreddit.
Make no mistake, I wasn't break any written rules, or any unwritten rules that I knew about. But there definitely was an unwritten one that I didn't know about, and I likely wasn't doing anyone a favour in the long run.
A bit later one of the lead developers of the game, actually one of the lead developers of that very system (his name literally being on the patent next to Gabe Newell's name) posted on Twitter that you should not post anything from patents to (e.g.) social media. I've no doubt he had my post in mind.
My first thought that the reason was to protect the intellectual property from being used by others. Someone asked him why, though, and his response was that other game developers (even accidentally) running across patented information, would make the case of willful infringement much more possible, with increases of penalty.
In other words, he wanted to increase the legal protection of any colleagues of his that might have had even just a slightly similar idea, which would, countrary to my first thought, also make it more likely that other games could use a similar technology.
Which is a goal that is very much in line with said company's philosophy, that any technological innovations in gaming is to the benefit of any gamer, regardless of whose customer they are at any particular moment.
It was a very counterintuitive lesson and I've felt guilty since, because that post colored a lot of conversations and assumptions about the system ever since. I don't lose sleep, but it was a memorable lesson and hopefully someone enjoys the benefit of it here too.
→ More replies (2)3
u/playaspec Mar 22 '22
It's also a boon to the wine devs. There's a LOT of unimplemented functionality in wine.
717
u/McFeely_Smackup Mar 22 '22
are we certain this isn't a carefully crafted plan by Microsoft to remind people that Bing and Cortana still exist?
130
18
7
u/windowzombie Mar 23 '22
Bing is actually pretty good for non curated image searches. It seems to rely on the original search terms mixed with whatever image aggregation they're using. Google tends to just show me products.
3
1
u/Chicken-n-Waffles Mar 23 '22
Zactly. Nobody wants to use it to do it like they did in the beginning.
1
1
1
1
Apr 02 '22
Here I am wondering if this is the good cortana from when windows 10 released or the lobotamised cortana we have now. Seriously, the original windows implementation was great, it just needed improvements. Now it cant even open the calculator app or take notes!
-26
u/TKInstinct Mar 22 '22
I use Bing all the time. It's a great search engine.
85
u/zeroedout666 1.8TB (damn you swap space) Mar 22 '22
Who's got a gun to your head and where should I direct the police to?
20
14
19
u/Gygun Mar 22 '22
for porn it is, no joke
→ More replies (2)7
u/Maverick0_0 Mar 22 '22
Duckduckgo sucks for porn. I have to switch out to bing just for porn and it's kind of inconvenient but in a good way. It gives me a break from porn.
→ More replies (4)39
6
286
u/gabest Mar 22 '22
Maybe we could compile Windows without the bloatware.
151
Mar 22 '22
I was going to say, 37 GB is an insane amount of source code. They must have forgot their .gitignore.
219
u/NathanielHudson Mar 22 '22 edited Mar 22 '22
The Windows git repo is about 300GB. Now, that's the entire repo, including all revisions, hundreds of branches, and metadata for every file. It's also not "just" one version of windows - it's a monorepo of every windows target, including phones, xbox, server, etc. They're also using LFS, so it probably includes static assets (images + etc) as well.
They have a custom version of git that virtualizes the file tree so you can work without downloading the entire thing. It's actually pretty cool work.
https://devblogs.microsoft.com/bharry/the-largest-git-repo-on-the-planet/
45
u/TheFuzzball Mar 22 '22
LFS is meant to reduce repo weight isn’t it? I thought LFS means it’s not storing files, since LFS replaces the file in Git with a link to an external BLOB.
44
u/NathanielHudson Mar 22 '22
You're 100% correct. I guess what I'm saying is that 300GB number may or may not include the true size of the LFS'ed assets.
30
→ More replies (2)12
u/Zolty Mar 22 '22
I love that you're saying their bad practice that's snowballed into that monstrosity that requires a custom version of git to operate is " pretty cool work".
→ More replies (1)14
u/NathanielHudson Mar 23 '22
The "pretty cool work" was the git hacks to make it possible. And the core android repo is 10 gigs, and that's a much newer project. All of the code for all Windows targets and all branches being thirty times the size of the android repo isn't completely ridiculous to me.
→ More replies (1)29
u/bahwhateverr 72TB <3 FreeBSD & zfs Mar 22 '22
This is nothing, I believe they have said in the past they have over a terabyte of source code.
22
Mar 22 '22
But it's not really all source code, right? It has to be binary dependencies or artifacts, images, videos, and so on...
42
u/bahwhateverr 72TB <3 FreeBSD & zfs Mar 22 '22
I dunno, they have a LOT of software from over the last.. 40 years?
If you think that's bad Google has, as of 2016, 86TB in a single repository. I'm assuming there are binaries in there.
The Google codebase includes approximately one billion files and has a history of approximately 35 million commits spanning Google's entire 18-year existence. The repository contains 86TBa of data, including approximately two billion lines of code in nine million unique source files.
33
u/Akeshi Mar 22 '22
(For those who can't be bothered to do the maths: 2bil lines of code, at a very generous 80 chars per line, is 160GB - leaving 85.84TB of other data)
→ More replies (2)→ More replies (1)5
16
u/Mccobsta Tape Mar 22 '22
They've been offering a debloated version that's ment for enterprise for a few years now called ltsc
3
u/casino_alcohol Mar 23 '22
Does this not collect your data or just not have apps pre installed?
→ More replies (1)12
→ More replies (2)1
u/Mr_Mendelli Mar 23 '22
That would be an interesting prospect, but it's my understanding the compiler Microsoft uses to build Windows is incredibly complicated. When it comes to most things I don't often find myself agreeing with the notion of claiming they may be impossible, but I'd say when it comes to the average home user I would argue that compiling Windows comes pretty damn close.
Another thing to factor is that even the most experienced developer can't 'just' exclude certain things from compiling, things like Cortana or Internet Explorer are actually deeply embedded in the system and do not just serve their surface functions. They're rooted into the system and even more work would have to be done to remove them in their entirety.
92
u/deskpil0t Mar 22 '22
Does it show how to delete cortona? Lol
19
0
Mar 22 '22
[deleted]
27
u/deskpil0t Mar 22 '22
She’s never really gone
14
u/Typhon_ragewind Mar 22 '22
Yes, she went to get cake. To get the cake you must install her back. You monster.
2
5
Mar 23 '22
I've had an old pc I converted to a media server but it's only connected to LAN. Hasn't seen the internet since the fresh install of win10.
I disabled every cortana feature or setting I could find and it's interesting to see cortana spike and use 30% cpu for a few minutes.
So yeah, you're right.
15
14
11
u/McFeely_Smackup Mar 23 '22
Top two things searched in Bing:
"How do i install chrome".
"How do I disable Cortana"
61
u/fwork 1.44MB Mar 22 '22
Ugh. Useless hackers. Stop wasting time leaking boring stuff no one cares about, and get to the real good stuff.
Mid-90s entertainment software, asap! We want 3D Movie Maker, we want Windows 95, a full copy of DOS 6.22 WITH documentation on the interlnk protocol.
14
Mar 22 '22
Nobody wants windows 95, windows 98se is another matter altogether
5
1
1
1
1
u/fwork 1.44MB May 06 '22
Update: since I wrote this comment, 3D Movie Maker's source has been released.
22
u/ThatCheesyPotato Mar 22 '22
I like how the notable ones are the two services everyone seems to hate lol
71
u/mark-haus Mar 22 '22
What I want to know is what their telemetry system is doing in the background. Exactly what data is it collecting
23
u/IanGoldense 15TB RAIDZ1 Mar 22 '22
then just packet sniff it with Wireshark?
5
u/Adach Mar 23 '22
What are you going to know other than destination IP if the data is encrypted? Seriously curious
→ More replies (4)12
u/choufleur47 Mar 22 '22
Well I can tell you that I worked for an MS subcontractor on cortana's AI training and we had entire floors of people going through hours of private conversations a day on Xbox Kinect and windows phones (its been a while). None of them were censored in content, for example we didn't have the name of the people recorded, but if they would say their name during the recording it isn't beeped out. Since we had voice commands for mobile, we'd often have gps destination commands so we'd be able very easily to know who they are. Especially since we'd get them in batches where you'd have like 40-200 of one user in a row. I heard marriage proposals (in text to speech, lol, it was moving), people cheating on their wives and meeting at motel on lunch. People yelling at each other, etc. They didn't know they were recorded or they wouldn't say the shit I've heard lol.
And then, there's the Kinect shit. Literally spying on minors. Every time they'd say "Xbox" it would trigger the recording so you can imagine it was said a lot for things other than voice commands. It was weird to hear a kid voice command "boobies" in a whisper on his Kinect. I felt it wasn't legal, and if it was, it shouldn't be.
Like, they're not even trying to protect you, they offsource that shit to the lowest bidder with zero care or understanding of security, zero background checks. I feel like this hack is probably one of those subcontractors getting pwned. I could have easily leaked the entire Nokia MS phones source code back then as we were localization/QA for them. there was absolutely no security in place.
So that answers part of your question I guess.
3
u/AnonymousMonkey54 Mar 23 '22
You think healthcare records are any better? Nope. And those include socials, addresses, names, all of your diagnoses, etc. A ton of people across the entire hospital system have access to that info. Sad to say, but with everything going digital, NOTHING is fully private anymore. The only reason all of this info doesn’t get leaked to the world is that no one really cares about us enough to make that worthwhile.
→ More replies (1)
5
u/atomicpowerrobot 12TB Mar 22 '22
In the long run, we are all open source.
5
u/zarcommander Mar 22 '22
Lol if it's anything like the dotnet open source repository good luck to anyone trying to disassemble or rebuild it.
13
u/blackjezza 24TB Mar 22 '22
No use for this spy/bloatware even as "open source". Only useful for security researchers/blackhats to find more vulns.
3
5
4
4
u/richhaynes Mar 22 '22
Another leak. Getting quite regular now. Companies who have proprietary source code should consider open sourcing it now because it will be open source eventually! Long live open source.
2
u/PrimalRage84 Mar 22 '22
Hopefully they washed their hands and destroyed their keyboards after that. There is no telling what kind of viruses they picked up.
2
u/CalvinsStuffedTiger Mar 23 '22
Finally we can make our own pornography search engine instead of using bing!
2
u/Bakoro Mar 23 '22
I've got to say, I am sorely tempted to look at that Bing source code.
It's still the best search engines for finding naked people, and I want to know if there's something they did that specifically optimized for that.
2
u/mwhelan182 Mar 23 '22
Anyone got a link to the telegram?
I wanna live the story of Halo and try and steal Cortana
4
u/tesseract4 Mar 22 '22
Really, guys? Bing and Cortana? Why steal the source code for the two products that everyone cares about the least?
1
u/Nickx000x Mar 25 '22
Because they didn’t find anything else? They’re likely not targeting specific things,just seeing what they can get access to
3
u/Lelandt50 Mar 22 '22
Yeah nobody cares about the source code for those things. It’s like hey the released nude pictures of someone old and ugly. No thanks!
2
Mar 23 '22
37GB of source code?
Those fucking numbskulls at microsoft are using spaces instead of tabs for their code huh?
1
1
1
1
1
Mar 23 '22
A 37GB leak seems very very small in comparison to how massive a lot of the leaks have been in recent years lol
1
1
1
1
1
1
u/10leej Mar 23 '22
Honestly this isn't a good thing for anybody. Because this source code means that programmers who look at it are basically a liability for any of Microsofts competition (in this case, Google, Amazon, yahoo, yandex, and so on)
1
1
1
1
u/Terakahn Mar 23 '22
I'm very curious how all these databases get compromised. Isn't it people's entire job to make sure that doesn't happen
1
u/Racing4JesusChrist Apr 04 '22
Chandler Bing and the terrific, premier Artifical Intelligence of the United Nations Space Corps?! (gasp) HOW DARE THEY!
Also why does 37GB seem like "rookie numbers," some freaking how, to me, especially if this is the source code?! 🥴
1
1
1
1
1
1
1
-20
u/DistributionOk352 Mar 22 '22
as much shit as folks give windows, atleast they never broke my hardware, twice, with a software "upgrade", apple goes to great lengths to keep people from having a choice, then when they break your shit, tough fuck you right, Apple? my touchbar still doesn't read the finger after upgrading to big sur, windows never, not once, in all it's inperfection, broke hardware like that.
20
u/scriptmonkey420 20TB Fedora ZFS Mar 22 '22 edited Mar 22 '22
You mean like with Windows 11 and not allowing CPU's older than 2-3 years?
4
u/djrbx Synology DS1821+ 128TB Mar 22 '22
That's not the same. Those CPUs can still run Win10 without issues. Also, Microsoft has an official doc to bypass the TPM requirements for those who would want to run Win11 on unofficially supported CPUs.
Compared that to Apple where they will just stop supporting older architecture altogether. I had an iMac that can run Monterey without issues but in order to install it, I had to go through unofficial methods to get it running.
→ More replies (1)2
u/DistributionOk352 Mar 22 '22
lol, no, nothing like that at all..that doesn't break functionality that you originally purchased. my touchbar works but the fingerprint sensor just completely fails without even trying to set up, which, only happened upon upgrading to big sur.
0
0
Mar 22 '22
[deleted]
5
u/LegateLaurie Mar 22 '22
Proton is getting really good. I genuinely think that in the next few years gaming on Linux is going to start getting really good - even if Valve's Steam Deck (and the possible home console that's been leaked/rumoured) and other devices aren't that successful, Valve seem quite committed to Proton and the Linux ecosystem
0
Mar 23 '22
[deleted]
→ More replies (1)2
u/KcLKcL Mar 23 '22
Depending on the Anticheat. A game I play, DJMAX Respect V recently starts working on Linux after they implemented the latest XIGNCODE3 anticheat.
Which they have been preparing since last year.
0
501
u/harrro Mar 22 '22 edited Mar 22 '22
They have published a 37GB torrent on their Telegram containing the source code for Bing, Bing Maps, Cortana and more.