A proactive implementation of a Threat Analysis and Risk Assessment (TARA) based on ISO/SAE 21434 Clause 15 could have addressed the vulnerabilities in TeslaLogger.
Although we commonly think of the ISA/IEC 62443 series of standards as our leading guidance for industrial cybersecurity, it is actually a very horizontal standard which is technology-independent and can be applied across a number of applications. We are seeing references to the series of standards in regulations and directives like the EU Machinery Directive, Radio Equipment Directive (RED) and the EU Cyber Resilience Act.