Security for keeping peace on conviction
41.—(1)  When a person is charged with and convicted of —
(a)rioting, assault or any other breach of the peace or abetting any such offence;
(b)an offence under section 143, 144, 145, 153 or 504 of the Penal Code (Cap. 224), under section 13A, 13B, 13C or 13D of the Miscellaneous Offences (Public Order and Nuisance) Act (Cap. 184) in force before the date of commencement of the Protection from Harassment Act 2014 or under section 3, 4, 5 or 6 of the Protection from Harassment Act 2014;
[Act 17 of 2014 wef 15/11/2014]
[Act 5 of 2015 wef 01/04/2015]
(c)assembling armed men or taking other unlawful measures for such purpose; or
(d)committing criminal intimidation by threatening injury to any person or property,
and the court before which he is convicted believes that that person must execute a bond for keeping the peace, then the court may, at the time of passing sentence on that person, or instead of any sentence, order him to execute a bond for a sum proportionate to his means, with or without sureties, for keeping the peace for a period not exceeding 2 years.
(2)  If the conviction is set aside on appeal or otherwise, the bond so executed becomes void.