AI makes security systems more flexible