Power grids, photovoltaic (PV) systems, electric vehicles (EVs), EV charging stations, and lithium-ion storage solutions rely heavily on embedded systems, making them vulnerable to hardware and cyberattacks. As these systems become increasingly connected through digital control and data networks, their exposure to cyber threats also increases. For management, control, and communication, these systems depend on microprocessors and integrated circuits (ICs), which makes them susceptible to adversarial attacks. This survey provides a detailed discussion of hardware-based attacks, such as tampering, cyberattacks, man-in-the-middle attacks, data integrity attacks, denial-of-service attacks, side-channel attacks, and hardware Trojans (HT). It also examines how attackers might take advantage of weaknesses in the design, firmware, or supply chain of embedded hardware. The paper assesses the potential impact of these security threats on embedded systems across power grids, PV systems, EV infrastructure, and lithium-ion storage systems. Further, it highlights countermeasure techniques to secure these systems and mitigate the threats. Preventive and responsive methods, such as encryption, anomaly monitoring, secure hardware features, and trusted startup processes, are outlined. This paper aims to raise awareness of the importance of strong security strategies to develop robust EVs, renewable energy sources, and power grid infrastructure. The goal is to support engineers, researchers, and policymakers in building safer and more reliable energy systems for the future.