Let me start off by saying I applaud this request. My response is not meant to downplay its usefulness.
While there certainly are a lot of security related risks involved with Home Assistant that could do with mitigation, I think that it is not realistic to assume that the improvements done with systems like Linux and Android can be of the same benefit to HA. The nature of the problem is vastly different.
Most of OS security is based on restricting access. Apps are basically sandboxed, allowing as little interaction between each other and the OS as possible. Also an attempt is made to only allow vetted apps to stores.
For Assistent is however trying to do the opposite. Its whole purpose is to allow the integrations to interact. Many integrations sole purpose is to use information from other integration and apply it to whatever else. Furthermore, the integrations are but a thin layer between systems from a myriad of vendors who will still do whatever they wish.
So indeed a lot can be done to protect Home Assistant because it is a doorway to anything connected. But at the same time I feel the dangers are also very high in the things being connected. HA can do little about that. Having devices connect using Google, Alexa or Siri is way more scary because they are company owned, closed source cloud systems.
Sandboxing is the opposite of what Home Assistant is for and vetting the thing that links them to HA (the integrations) is of less use because it is not where the risks are. They are but adapters.
Home Assistant is like a router in your home. Yes, it must be secured, but doing so will not make the computers in your network secure. And vetting integrations feels a bit like checking the ethernet cables. They are but the messenger.
If anything, Home Assistant also mitigates risks by allowing hardware to be used outside the manufacturers ecosystem, or by even taking over the firmware in devices using ESPHome.
Having said all that, it does not take away anything of the usefulness of making HA and ESPHome more secure.
Misconfigured integrations can only be a problem if the thing integrated with is publicly accessible and allowing this kind of misconfiguration. Apart from maybe door locks, HAâs weakest point is leaking information and the associated privacy risks. Iâm not that scared of people messing with my light switch. HA is advocating and enabling local access, as opposed to cloud services offered by manufacturers.
Where Europe is at the forefront of trying to legislate digital services to try to protect privacy, The US government is pressuring (if not extorting) the EU to drop these laws. So even if HA security might be lax, I tend to see it as les of a problem than companies forcing is to use their cloud services and legislation letting them get away with it. Our phones are leaking way more information to the likes of Google, Meta, etc. than HA is despite the purported improved security.
To give an example, I just got a mail from Bosch, enforcing new privacy terms so they can share my data with subsidiary brands. If I do not want that, I would be forced to shut of their cloud, and in doing so lose HA control of it. They are forcing me to accepts worse terms, again after sale. If the device were to have local access, I would have kept it off cloud. Bosch does not need HA to leak my data.
Same for Bambu 3D printers. They were trying to limit local access in favour of their cloud. Turning it off means to lose access to, among others, their phone app. Limiting use after the sale. Luckily HA allowed me to in fact turn off cloud access and mimic their app, enabling me to send prints directly to the printer without Bambu cloud servers as a man in the middle.
Companies shutting down their cloud, essentially bricking devices happens more and more. Connected devices phome home more often than not. It is not HA doing it, it is HA trying to protect us from it.
Instead of sharing my detailed energy use with energy companies for the. to give me substandard information back about my own power use, I give only monthly data to them while I use high resolution energy information to control charging my car, operating the dshwasher (from Bosch, above) etc.
So maybe you should focus on trying to get the US to be on the forefront of privacy instead of its enemy. We need governments to protect us from companies, not goverments owned by companies. Home Assistant is doing its best, but it is powerless against the big companies. What we need is secure IOT devices, requirements to have local access that can provide the same level of functionality as cloud offerings.
Matter/Thread devices being able to reach the WAN is not a good thing. Zigbee/Z-wave are more secure in that sense.
TL;DR: We do not need IOT for our home, we need LOT (Lan of things.)