The ever-changing course of the protests, including the adoption of social media tools to lobby and organise tactics, has troubled the police and other security agencies, who have often been caught flat-footed.