Best Electron security is not using it in first place.
Or maybe let's use some research language made by Wirth, and get access to all 10 of packages and 5 devs worldwide using it :-)
https://securelist.com/zero-day-vulnerability-in-telegram/83...
and others...
https://www.notebookcheck.net/Researchers-at-Symantec-discov...
I didn't mention any programming language.