There is what looks like well-funded and intensive work on developing security-critical chips, such as CPUs, to make them immune to the kinds of attacks exemplified by Spectre/Meltdown, WanaCry and their like, that exploit vulnerabilities built-in, at present, in the chips themselves. The chips so far developed to this end are both expensive and slow, but there is also work in progress to develop commercial versions both faster and more affordable, with varying degrees of built-in security, for use as part of the hardware of devices ranging from cell phones to multi-processor low-end supercomputers, as well for embedded systems used in electric, nuclear, water purification and other highly critical facilities, and in the (supposedly) forthcoming “internet of things.” Maybe we all can breath a little easier now, or may be able to, some day.
http://seapowermagazine.org/stories/20180104-Darpa.html
Of course, no hardware, firmware or software fix can make everybody safe for ever, or even near-term: social engineering and carelessness are not going to go away for as long as there are humans using computers connected to other computers, be them in LANs, WANs or WLANs. Or to WWW servers over the Internet. Or whatever takes their place, eventually, in the more distant future.
Ex-Windows user (Win. 98, XP, 7); since mid-2017 using also macOS. Presently on Monterey 12.15 & sometimes running also Linux (Mint).
MacBook Pro circa mid-2015, 15" display, with 16GB 1600 GHz DDR3 RAM, 1 TB SSD, a Haswell architecture Intel CPU with 4 Cores and 8 Threads model i7-4870HQ @ 2.50GHz.
Intel Iris Pro GPU with Built-in Bus, VRAM 1.5 GB, Display 2880 x 1800 Retina, 24-Bit color.
macOS Monterey; browsers: Waterfox "Current", Vivaldi and (now and then) Chrome; security apps. Intego AV