Hacker News new | ask | show | jobs
by ghm2180 12 days ago
I recall that Musk got fired from paypal for proposing the use if Windows NT instead of linux/unix kernels for paypal way back. I recall that the reasoning of the engineers was security risk that this might have posed. My engineering brain tells me that the kind of risk wasn't likely poor engineering of NT vs unix/linux kernels, but possibly to do with the proprietary nature of the kernel, i.e. systems engineers in paypal can't really tinker and explore the kernel itself or debug issues in it easily. Was that the security angle paypal engineers were thinking of?
2 comments

NT used to be notoriously bad at security, before UAC (which everyone hated, and came out in Vista) everything ran as admin. Hell, I remember exploits where just visiting a web page would load an EXE into your system.
It didn’t even requiring visiting anything. At one of my first jobs I reformatted my machine to base windows 2000 and it was compromised before I could download the service packs.

IIRC the issue was that our ISP gave everyone a public IP and allowed NetBIOS traffic from the outside world and there were so many attackers port scanning IIRC port 139 you were found and compromised within a couple minutes of booting up.

IIRC the work around was to boot into safe mode and disable SMB and NetBIOS then reboot and download the service packs (or get an image with the service packs already baked in).

I vividly remember those days. To be fair to Windows NT, the very same could happen if you set up Solaris or Linux or really anything running an NFS server out of the box, even if no mounts are exported. All it takes is a bug in the NFS or (Sun)RPC server code before it even gets to the point where it's trying to actually serve something. Such bugs have existed.

And why limit ourselves to file sharing? Bugs in the TCP/IP stack itself have led to things like the "ping of death" (Windows 95) or more recently demonstrable RCE against the Linux kernel by using TCP options in an unexpected way.

The main distinction is that Windows NT, even the earliest 3.1, enables the SMB (file and print sharing) service by default. In 1990 when it was being designed, and even by July 1993 when it was finally released, I'm sure this didn't seem like a big deal. All of this was meant to be running in the safety of a LAN. The direct predecessor product (co-developed with OS/2) is even named "LAN Manager".

Yes, if you open up your SMB server or NFS server to the broader Internet, you're gonna have a bad time. As I recall, this could be avoided by doing advanced network setup and just making sure you did not bind "file and print sharing" to any interface that had a public IP without an external firewall. Once you got all the service packs applied, you could go back and turn it on if you needed it.

I know this was 25+ years ago, but that's just your ISP being a good ISP. You should get a public IP address and you should be getting all traffic that comes to that address. The real solution would have been a hardware firewall or NAT like a Cisco PIX on your side.

(Definitely not blaming you or your team. I worked in a small, understaffed place with a similar network in the late 90s and had similar problems.)

> should be getting all traffic that comes to that address.

I feel like some ports have earned their retirement from public service.

My (residential ISP) blocks these for inbound and I can't really argue that it shouldn't:

19 (chargen), 67 (dhcp), 135-139 + 445 (microsoft smb/rpc), 161 (snmp), 1900 (ssdp), 10001 (ubiquiti discovery... this one seems the leaat justifyable)

It's maybe a bit heavy handed, but these things don't need to be on the internet and a little bit of blocking helps stop a ton of abuse. If you really want to run chargen, you can do it on another port. :p

Sounds to me that the real issue was putting Windows machines directly onto the Internet with a public IP, and no firewall between them and the outside world.
That is saying the same thing. Windows at that time could not handle being connected directly to the Internet, which made a lot of us less likely to use it as a server for Internet services.
With a basic firewall on a network, this makes no sense. If this is a job or business, that means something locally was infected.
Windows computers of that period were under attack from so many different vectors that an infected machine on the network wasn't unlikely. We kinda take for granted how secure modern computers are by comparison.

That said the guy did say that he had an exposed IP. Early internet providers used to provide just a modem, and you would have to buy your own router.

man, this is making me think of old DOCSIS cable modems, the AOL days, and Windows 95/Windows 98.

Still. For a Windows enthusiast like me, this project is something I've been looking for/hoping works this will for a long time. Very exciting, because instead of using janky WSL2 on Windows, can just have native Linux whenever I need or want it, and then run the Linux version of Firefox with all my standard Windows blobs. Awesome.

Around that time very few owned a router at home. There was no wifi and no other device that could connect to the internets. We all dialed in via modem over landline. (PPP.. w/o OE). You did get infected by just going online.
Same, I was deploying Windows 2000 to a machine, and it got infected by one of those NetBIOS worms during the installation. My ISP at that time have a simple cable modem, which was giving out a single unfirewalled public IP to the PC behind it...
There were many popular software firewalls available at the time for Windows 2000. I guess the word didn't get out enough by then.
The thing is, you can't install a firewall during Windows setup (not sure if you can inject one in the image so it can run early enough to block any infection). You do that afterwards, so when you're already infected. I had to pull the network cable to install, firewall, and then reconnect...
Installing Windows without network on a prepatched image is always the best approach.
WinNT the OS ≠ NT the kernel. It's like e.g. Red Hat the OS vs Linux the kernel.

And yes, the stuff above the NT API is... not nearly as good.

Those problems weren't in the kernel, but in the layers above it, mostly the UI.
Not sure about that... there were definitely issues with Windows NT outside of the "UI" layers? It also came with certain services enabled by default which exposed your system to all sorts of shenanigans. I was but a kid / teenager (depending on which version of Windows), but I remember all sorts of simple exploits like giving yourself admin as a normal user.

https://www.cnet.com/tech/tech-industry/windows-nt-a-hackers...

https://www.cnet.com/tech/tech-industry/ms-posts-getadmin-fi...

https://learn.microsoft.com/en-us/security-updates/securityb...

Those still aren't _kernel_ issues, though; those are configuration issues.
I think you are confusing NT with 95/98/ME/XP ?
XP was NT 5.1.
You are right, I apologize. I thought they didn't switch to NT until Vista but I was mistaken.

XP did have a good user rights system, but because Windows apps came from a place before that, nobody was really ready so the whole thing just gave administrator rights to everyone, if I'm not mistaken.

XP SP2 was about where things really changed.

Gates realised that been not just insecure but publicly seen as insecure at the level they where trending towards was going to be an existential problem.

> So now, when we face a choice between adding features and resolving security issues, we need to choose security. Our products should emphasize security right out of the box, and we must constantly refine and improve that security as threats evolve. A good example of this is the changes we made in Outlook to avoid e-mail-borne viruses. If we discover a risk that a feature could compromise someone's privacy, that problem gets solved first. If there is any way we can better protect important data and minimize downtime, we should focus on this. These principles should apply at every stage of the development cycle of every kind of software we create, from operating systems and desktop applications to global Web services.

Though in hindsight given what Windows 11 has become this :-

> If we discover a risk that a feature could compromise someone's privacy, that problem gets solved first.

Is pretty funny (in a black humour sort of way).

[1] https://www.wired.com/2002/01/bill-gates-trustworthy-computi...

I have no idea why there's suddenly so much NT kernel glazing on the internets. Like Crowdstrike didn't just happen.
Crowdstrike doesn't make the NT kernel, they made a proprietary driver that blew up (on bad data ingest IIRC, not even on a driver update).
They both suck. Microsoft for not addressing this for years before and Crowdstrike for pushing a bad driver. It took world wide headline news to get them to act but this was a problem with the NT kernel for years. It was a regular occurrence that drivers would be pushed and hose an install. It is one of the biggest post Windows Update failure states.
Just to be clear, the problem you want Microsoft to solve is other people writing bad drivers?

I could see driver certification becoming much more restrictive & expensive as a way to raise their quality, but short of that what solutions could exist?

It should not be possible for this to happen. You can load the driver into memory and test all through memory before installing it for next boot. I do this myself. That not being part of install procedures is the typical dropped ball at MS.
There's nothing that would stop it from happening to the Linux kernel either if they shipped a module. Windows actually has a semi automated rollback/safe-mode system that can kick in, Linux does not.
For a desktop machine the fall back is me pressing Advanced Options in grub and selecting my last build. At work the kernel would never make it past the CI. It would immediately fail. You should not even be able to merge into main if your compile hoses the OS.
Musk was just thinking: CGI slow, isapi fast.
This is actually the most likely explanation. Even in the tiny number of cases that he's right, it's for the wrong reasons.