security hook AI