The widespread proliferation of computing devices embedded into everyday products has ushered in an era of ubiquitous production and dissemination of malware, computer software that has the intent to cause damage. Traditional antivirus systems to protect against malware are ineffective due to their low accuracy in identifying modern, sophisticated malware. Additionally, antivirus software incurs high overhead on resource-constrained embedded platforms. This has propelled the development of hardware-assisted malware detectors, which use the trusted underlying hardware to help detect malware. However, detection based on hardware performance counters faces several inherent pitfalls, such as high false positives in malware detection. This research proposes an end-to-end framework for developing, analyzing, and securing fine-grained design-for-security primitives, which can be incorporated into the embedded hardware. This research enhances the effectiveness of hardware-assisted security solutions, leading to lightweight and robust design-for-security primitives for resource-constrained embedded devices utilized in applications such as automotive, medical, and military. The educational plan will enhance courses at both undergraduate and graduate levels by introducing hands-on experiences in hardware security. An educational game will be designed to improve K-12 students’ understanding of malware. The project develops security-aware design principles for next-generation embedde