security: remove register_security hook