A code-aware data generation technique is introduced to efficiently detect emerging malware in embedded systems, even with limited exposure to malware samples.