Wireless Sensor Networks (WSN), the Internet of Things (IoT) etc. are built using resource constraint devices. The hardware is compiled of different types of micro-controllers and radio frontends on which a plethora of operating systems and protocols is deployed. This poses a huge challenge when developing an intrusion detection system (IDS) that shall be applicable for IoT and WSNs. In order to facilitate such an IDS that is independent of the target platform we propose a security interpreter. In this paper we introduce its concept and architecture and discuss performance parameters such as memory footprint and execution times of different virtualization techniques. Our measurement results indicate clearly that virtualization is feasible. Executing a single instruction takes only 4.2 micro seconds and 1.0 micro seconds in the worst case and the best case, respectively.