Kenyan legislation
Official Secrets Act
Browse sections
- 1. Short title
- 2. Interpretation
- 3. Acts prejudicial to Republic
- 4. Unauthorized use of uniforms, passes, etc.
- 5. Interference with police officers or armed forces
- 6. Production of data
- 7. Harbouring
- 8. Attempts, incitements, etc.
- 9. Acts committed outside Kenya
- 10. Consent to prosecution
- 11. Place of offence
- 12. Exclusion of public from trial
- 13. Presumption concerning communication with agent of foreign power
- 14. Presumption as to purpose prejudicial to safety of Republic
- 15. Presumption as to communication of information concerning prohibited place
- 16. Proof of lawful authority or excuse
- 17. Arrest without warrant
- 18. Search warrant
- 19. Duty to give information as to commission of certain offences
- 20. General penalty
- 21. [Spent]
Part I – PRELIMINARY
1. Short title
This Act may be cited as the Official Secrets Act.2. Interpretation
Part II – PROTECTION OF THE SAFETY AND INTERESTS OF THE REPUBLIC
3. Acts prejudicial to Republic
4. Unauthorized use of uniforms, passes, etc.
Any person who, for the purpose of gaining admission, or of assisting any other person to gain admission, to a prohibited place, or for any other purpose or in any manner prejudicial to the safety or interests of the Republic—5. Interference with police officers or armed forces
Any person who in the vicinity of any prohibited place obstructs, knowingly misleads or otherwise interferes with or impedes any police officer, or any member of the armed forces who is engaged on guard, sentry patrol or other similar duty in relation to the prohibited place, shall be guilty of an offence.6. Production of data
7. Harbouring
Any person who—8. Attempts, incitements, etc.
Any person who attempts to commit an offence under this Act, or solicits or incites or endeavours to persuade another person to commit any such offence, or aids or abets or does any act preparatory to the commission of such an offence under this Act, shall be guilty of an offence, whether or not the solicitation, incitement or endeavour succeeds in its purpose, and is liable to the same punishment as if he had committed that offence.9. Acts committed outside Kenya
An act, omission or thing that would, by reason of this Act, be punishable as an offence if committed in Kenya shall, if committed outside Kenya, be an offence under this Act, triable and punishable in Kenya, in the following cases, namely—Part III – PROCEEDINGS FOR OFFENCES
10. Consent to prosecution
11. Place of offence
For the purposes of the trial of a person for an offence under this Act, the offence shall be deemed to have been committed either at the place in which it was actually committed or at any place in Kenya in which the offender may be found.12. Exclusion of public from trial
In addition and without prejudice to any powers that a court may possess to order the exclusion of the public from any proceedings, if in the course of proceedings before the court against any person for an offence under this Act or of the proceedings on appeal, application is made by the prosecution, on the grounds that the publication of any evidence to be given or of any statement to be made in the course of the proceedings would be prejudicial to the interests of the Republic, that all or any portion of the public shall be excluded during the whole or any part of the hearing, the court may make an order to that effect, but the passing sentence shall in any case take place in public.13. Presumption concerning communication with agent of foreign power
14. Presumption as to purpose prejudicial to safety of Republic
Where, on a prosecution of a person for an offence under this Act, it is alleged that he did some act for a purpose prejudicial to the safety or interests of the Republic, it shall not be necessary to show that he committed the act for that purpose if, from the circumstances of the case, or from his conduct or his known character as proved, it appears that his purpose was a purpose prejudicial to the safety or interests of the Republic.15. Presumption as to communication of information concerning prohibited place
Where any code word, plan, article, document or information relating to or used in any prohibited place, or anything in such a place, is made, obtained, collected, recorded, published or communicated by any person other than a person acting under lawful authority, it shall be deemed to have been made, obtained, collected, recorded, published or communicated for a purpose prejudicial to the safety or interests of the Republic, unless the contrary is proved.16. Proof of lawful authority or excuse
For the avoidance of doubt, it is hereby declared that the burden of proving lawful authority or excuse shall be upon the person alleging it, and accordingly in any proceedings for prosecution for an offence under this Act it shall not be incumbent on the prosecution to prove the lack of any such authority or excuse.Part IV – SUPPLEMENTAL
17. Arrest without warrant
18. Search warrant
19. Duty to give information as to commission of certain offences
20. General penalty
Any person who is guilty of an offence under this Act for which no penalty is specifically provided shall be liable to imprisonment for a term not exceeding fourteen years.21. [Spent]
Case law citing this Act
- Hassan v Simidi & another (Civil Appeal 195 of 2016) [2019] KECA 107 (KLR) (6 December 2019) (Judgment)
- Nubian Rights Forum & 2 others v Attorney General & 6 others; Child Welfare Society & 8 others (Interested Parties) (Petition 56, 58 & 59 of 2019 (Consolidated)) [2020] KEHC 8772 (KLR) (Constitutional and Judicial Review) (30 January 2020) (Judgment)
Source: Kenya Law · Imported 4 October 2026