1. A computer-implemented method of providing security for an application running on a messaging based operating system, the method comprising: obtaining a first message from a message queue for the application; determining whether the first message is of a type registered by the application as being a potential security threat; processing the first message based upon the determination of whether the first message is of a type registered by the application as being a potential security threat.