Alamsyah and his wife, who injured a member of Mr Wiranto's entourage, were wrestled to the ground by security personnel.
Mr Wiranto sustained knife wounds to his abdomen but survived the attack, in which several others were also injured. Days before the assassination attempt, the pair pledged allegiance to late ISIS leader Abu Bakr al-Baghdadi, the court said. Alamsyah was a member of Jamaah Ansharut Daulah, an ISIS-linked extremist group responsible for a string of attacks, including suicide bombings at churches in Surabaya in 2018 that killed a dozen people.
The couple were radicalised through rhetoric on social media and watching videos of Muslims fighting in Syria. They also listened to speeches by jailed firebrand cleric Abu Bakar Bashir, believed to be behind the 2002 Bali bombings, and Aman Abdurrahman, who was sentenced to death for masterminding gun and suicide attacks in Jakarta in 2016.