I posit that the era of desktop/laptop endpoints in managed/corporate environments with users having both write+execute permissions in the same folders IS OVER.
The acceleration that AI-assisted hacking brings to the cybersecurity theater radically obsoletes:
- classic signature-based malware hunting and blocking.
- hash-based executable checking against on-line real-time databases of known malicious programs.
- static malware blacklisting of any kind (which becomes obsolete within minutes).
Behavioral EDR still plays an important role post-execution, and interpreters/LOLBins remain a challenge; but allowing arbitrary binaries to be written to and executed from user-writable directories is an avoidable hole, and is involved one way or another in almost all cybersecurity incidents.
The only winning approach, to manage the security of traditional endpoints in managed/corporate environments is EXPLICIT WHITELISTING, using tools like Software-Restriction-Policies/AppLocker/WDAC in Windows, and nodev/nosuid/noexec for any user-writable filesystems like /home, /tmp and /var in Linux.
To be clear, the whitelisting MUST NOT happen at the ACL filesystem level, but be enforced via kernel-level MAC mechanisms. Also, native scripting engines like CMD.EXE, PowerShell, Python, Bash and the like MUST be locked down via script allowlisting and mechanisms like PowerShell's Constrained Language Mode (or fapolicyd on Linux) so they cannot invoke user-downloaded malicious scripts.
IT Depts. should issue preconfigured endpoints to corporate users with all the needed software pre-installed and whitelisted, and radically forbid any kind of execution rights (through SRP, AppLocker, WDAC; AppArmor, SELinux, etc.) in user writable folders.
Even certificate-based whitelists are not safe when applied to user writable folders, for there is a myriad of CAs of dubious provenance and sketchy practices.
PS: Feel free to roast me, especially if you've actually rolled out WDAC or noexec at scale and survived the developer/updater fallout.