Technology giants were told last night “enough is enough” after the massacre of 50 people at two mosques in New Zealand was live-streamed around the world in the first “terror attack designed for social media”.

Sajid Javid, the Home Secretary, condemned tech firms’ failure to stop the 17-minute video being shared for more than 10 hours after the self-professed white supremacist killer Brenton Tarrant opened fire on Muslims at prayer.

Reacting to a tweet in which YouTube claimed it was working to remove the footage, Mr Javid said YouTube, Google, Facebook and Twitter “really need to do more to stop violent extremism being promoted on your platforms”. He added: “Take some ownership. Enough is enough.”

Damian Collins, the chairman of the Commons culture committee, said it appeared to be a “terror attack designed for social media” and demonstrated why there had to be “statutory regulation of the distribution of content online through social networks”.

He said: “It’s a viral contagion spread through social media, helped by their algorithms. The firms need to carry out a major audit into who was sharing this film and how it was shared. Groups have deliberately spread it and those accounts should be closed down.”