Aadhil Ameez, a 24-year-old Sri Lankan software engineer, who was monitored by Indian intelligence agencies three years ago for links with Islamic State suspects, is believed to have provided technical and logistical support to the groups that carried out the attacks on churches and hotels.

Four sources in Sri Lankan investigating agencies said they believed Ameez was a key link between the National Tawheed Jamaath (NTJ) led by radical preacher Zahran Hashim and the Jamathei Millathu Ibrahim (JMI), the two groups that Sri Lankan authorities have said carried out the attacks.

A Reuters investigation has pieced together a network of characters directly involved in the attacks or targeted in the police raids that followed, who largely managed to stay under the radar as they plotted the deadliest attack in Sri Lanka since the end of a civil war 10 years ago.