Okay, so I did a quick dive into sudo in Windows and here are my initial findings. https://www.tiraniddo.dev/2024/02/sudo-on-windows-quick-rundown.html

The main take away is, writing Rust won't save you from logical bugs :)

Sudo On Windows a Quick Rundown

Background The Windows Insider Preview build 26052 just shipped with a sudo command, I thought I'd just take a quick peek to see what it doe...

@tiraniddo Nice work, as always! MS should just run all their new features past you before they release :P
@tiraniddo nice. i meant to look at it myself, especially since it was teased in 26047, but forgot to after bindiffing bootmgr lol
@tiraniddo this is a remarkably poor implementation
@tiraniddo insecure DACLs are the gift that keeps on giving
@tiraniddo A point also made in https://spectrum.ieee.org/lean-software-development - we've not made a lot of progress in preventing or detecting logic bugs.
Why Bloat Is Still Software’s Biggest Vulnerability

A 2024 plea for lean software

IEEE Spectrum
@tiraniddo thank you.
So sudo in Windows compares to sudo on Linux like curl in PowerShell compares to curl in cmd.exe or Unix or systemd/Linux or ...
@tiraniddo so sudo on Windows is to sudo on Linux what rsh is to ssh

@tiraniddo
Nice article! Thanks!

Would you recommend buying your book ("Windows Security Internals") even if the "Windows Internals" knowledge is limited?

@kapsiR well I'd like to believe I've tried to make the book not require a deep level of Windows internals knowledge. There's a few chapters at the start to get you up to speed on Windows internals things. Perhaps take a look at the index and the sample chapter on the No Starch page (https://nostarch.com/windows-security-internals) and see what you think.
Windows Security Internals

Power up your Windows security skills with expert guidance, in-depth technical insights, and lots of real-world vulnerability examples.

@tiraniddo I did it! Looking forward to get a fresh copy 😊
@kapsiR nice, I hope it meets your expectations :)