The 18-year-old was included in the starting XI by manager Mondher Kebaier, as he made his 10th appearance for the North Africans.
In a quiet opening half, the 2004 champions were largely on the back foot against an attacking Mali side featuring Southampton winger Moussa Djenepo, with Yves Bissouma of Brighton eventually introduced from the bench.
Hannibal played on the right of Tunisia's front three but was withdrawn at the break for Saif-Eddine Khaoui, as coach Kebaier looked to bring more experience into the midfield.
Mali forward Ibrahima Kone scored the only goal of the game on 48 minutes, successfully converting a penalty after Ellyes Skhiri was harshly adjudged to have handled the ball.