More than a decade after Indonesia vowed to dismantle terrorist networks to stem a series of attacks, neglect of jails has allowed top detainees to promote their views behind bars, and even beyond thanks to smartphones and laptops.
About 200 convicted militants are due for release in the next two years, and experts say inadequate deradicalisation efforts mean many will leave jail with their ideology intact.
The alarming trend in the world's most populous Muslim-majority country comes despite authorities' growing concern about Islamic militancy and in particular Islamic State (IS), which has declared an "Islamic caliphate" across swathes of Syria and Iraq.
Authorities say about 60 Indonesians are believed to have joined IS, although most analysts believe the true figure is up to 200, and concerns are mounting that they could return and revive sophisticated militant networks.
Indonesia began a long clampdown on extremists following the 2002 Bali bombings that killed 202 people on the resort island, mostly foreigners. That attack and others were blamed on the Al-Qaeda-linked Jemaah Islamiyah (JI), which has since been severely weakened.