Penal Code of Kenya, Chapter 7
40. (1) Any person who, owing allegiance to the Republic, in Kenya or elsewhere -
..(a) compasses, imagines, invents, devises or intends -
______(i) the death, maiming or wounding, or the imprisonment or restraint, of the President; or
______(ii) the deposing by unlawful means of the President from his position as President or from the style, honour and name of Head of State and Commander-in-Chief of the Armed Forces of the Republic of Kenya; or
______(iii) the overthrow by unlawful means of the Government; and
..(b) expresses, utters or declares any such compassings, imaginations, inventions, devices or intentions by publishing any printing or writing or by any overt act or deed,
is guilty of the offence of treason.
(2) Any person who, owing allegiance to the Republic -
..(a) levies war in Kenya against the Republic; or
..(b) is adherent to the enemies of the Republic, or gives them aid or comfort, in Kenya or elsewhere; or
..(c) instigates whether in Kenya or elsewhere any person to invade Kenya with an armed force,
is guilty of the offence of treason.