Brainstorm: Reducing Security Threats In Embedded Systems