Five former Internal Security Act detainees were in 2001 detained unlawfully and in bad faith, the High Court in Kuala Lumpur ruled today.