The High Court has declared seven sections of Security Laws (Amendment) Act 2014 unconstitutional.
Justices Isaac Lenaola, Mumbi Ngugi, Hedwig Ong’udi, Hillary Chemitei and Louis Onguto annulled sections 12, 16, 20, 26, 34, 48 and 95 of the law.
The judges made their ruling on Monday.
Sections violating the freedom of the media and the freedom of expression are among those that were nullified.
The judges also upheld an accused person’s right to be informed of evidence against him, and the right to be released on bond or bail given reasonable conditions.
The ruling was on a case filed by Cord challenging the anti-terror laws.
Cord complained that Jubilee broke all the rules of procedure in the National Assembly to pass the bill.
President Uhuru Kenyatta signed the bill into law on December 19, 2014 after Parliament passed it during a chaotic session the previous day.
Cord filed a petition in the High Court a few days later, accusing the state of trying to claw back on the freedoms granted by the new constitution.
The coalition saw the new law as misuse by the ruling coalition of its majority in the House.