§ 95 Disclosure of state secrets — StGB

Germany: German Criminal Code

(1) Whoever allows an unauthorized person to obtain a state secret that is kept secret by an official agency or at its instigation, or makes it publicly known, and thereby creates the danger of a serious disadvantage for the external security of the Federal Republic of Germany, shall be punished with imprisonment from six months to five years, unless the act is punishable under § 94.

(2) The attempt is punishable.

(3) In particularly serious cases, the punishment shall be imprisonment from one year to ten years. § 94 Abs. 2 Satz 2 shall apply.

1871-05-15 
RGBl 1871, 127
Neugefasst durch Bek. v. 13.11.1998 I 3322;; zuletzt geändert durch Art. 1 G v. 20.3.2026 I Nr. 95

§ 96 Treasonable espionage; reconnaissance of state secrets — StGB

Germany: German Criminal Code

(1) Whoever obtains a state secret in order to betray it (§ 94) shall be punished with imprisonment from one year to ten years.

(2) Whoever obtains a state secret that is kept secret by an official agency or at its instigation in order to disclose it (§ 95) shall be punished with imprisonment from six months to five years. The attempt is punishable.

1871-05-15 
RGBl 1871, 127
Neugefasst durch Bek. v. 13.11.1998 I 3322;; zuletzt geändert durch Art. 1 G v. 20.3.2026 I Nr. 95

§ 97 Revelation of state secrets — StGB

Germany: German Criminal Code

(1) Whoever allows an unauthorized person to obtain a state secret that is kept secret by an official agency or at its instigation, or makes it publicly known, and thereby negligently causes the danger of a serious disadvantage for the external security of the Federal Republic of Germany, shall be punished with imprisonment of up to five years or with a fine.

(2) Whoever, due to his office, his official position, or an assignment issued by an official agency, had access to a state secret that is kept secret by an official agency or at its instigation, and recklessly allows an unauthorized person to obtain it, and thereby negligently causes the danger of a serious disadvantage for the external security of the Federal Republic of Germany, shall be punished with imprisonment of up to three years or with a fine.

(3) The act shall be prosecuted only with the authorization of the Federal Government.

1871-05-15 
RGBl 1871, 127
Neugefasst durch Bek. v. 13.11.1998 I 3322;; zuletzt geändert durch Art. 1 G v. 20.3.2026 I Nr. 95

§ 97a Betrayal of illegal secrets — StGB

Germany: German Criminal Code

Whoever communicates a secret that is not a state secret because of one of the violations designated in § 93 Abs. 2 to a foreign power or one of its intermediaries and thereby creates the danger of a serious disadvantage for the external security of the Federal Republic of Germany shall be punished as a traitor to the country (§ 94). § 96 Abs. 1 in conjunction with § 94 Abs. 1 Nr. 1 shall apply accordingly to secrets of the kind designated in sentence 1.

1871-05-15 
RGBl 1871, 127
Neugefasst durch Bek. v. 13.11.1998 I 3322;; zuletzt geändert durch Art. 1 G v. 20.3.2026 I Nr. 95

§ 97b Betrayal under erroneous assumption of an illegal secret — StGB

Germany: German Criminal Code

(1) If in the cases of §§ 94 to 97 the perpetrator acts in the erroneous assumption that the state secret is a secret of the kind designated in § 97a, he shall be punished under the designated provisions if
1. this error is attributable to him,
2. he does not act with the intention of counteracting the alleged violation, or
3. the act is not, under the circumstances, an appropriate means to this end.
The act is generally not an appropriate means if the perpetrator has not previously called upon a member of the Bundestag for remedy.

(2) If the state secret was entrusted or made accessible to the perpetrator in his capacity as a public official or as a soldier of the Federal Armed Forces in the course of duty, he shall also be punished if the public official has not previously called upon a superior, or the soldier a disciplinary superior, for remedy. This shall apply accordingly to persons specially obligated for the public service and to persons who have been obligated within the meaning of § 353b Abs. 2.

1871-05-15 
RGBl 1871, 127
Neugefasst durch Bek. v. 13.11.1998 I 3322;; zuletzt geändert durch Art. 1 G v. 20.3.2026 I Nr. 95

§ 98 Treasonable agent activity — StGB

Germany: German Criminal Code

(1) Whoever
1. engages in an activity for a foreign power that is directed at obtaining or communicating state secrets, or
2. declares to a foreign power or one of its intermediaries his willingness to engage in such an activity,
shall be punished with imprisonment of up to five years or with a fine, unless the act is punishable under § 94 or § 96 Abs. 1. In particularly serious cases, the punishment shall be imprisonment from one year to ten years; § 94 Abs. 2 Satz 2 Nr. 1 shall apply accordingly.

(2) The court may mitigate the punishment at its discretion (§ 49 Abs. 2) or refrain from punishment under these provisions if the perpetrator voluntarily abandons his conduct and discloses his knowledge to an agency. If in the cases of Absatz 1 Satz 1 the perpetrator has been pressured into his conduct by the foreign power or one of its intermediaries, he shall not be punished under this provision if he voluntarily abandons his conduct and promptly discloses his knowledge to an agency.

1871-05-15 
RGBl 1871, 127
Neugefasst durch Bek. v. 13.11.1998 I 3322;; zuletzt geändert durch Art. 1 G v. 20.3.2026 I Nr. 95

§ 99 Intelligence agent activity — StGB

Germany: German Criminal Code

(1) Whosoever
1. engages in an intelligence activity against the Federal Republic of Germany on behalf of the intelligence service of a foreign power, which is directed at the communication or delivery of facts, objects or insights, or
2. declares to the intelligence service of a foreign power or to one of its agents his readiness to engage in such an activity,
shall be liable to imprisonment of from six months to ten years, unless the offence is subject to a penalty under § 94 or § 96 (1), § 97a or § 97b in conjunction with § 94 or § 96 (1).

(2) In less serious cases the penalty shall be imprisonment of up to five years or a fine.

(3) § 98 (2) shall apply mutatis mutandis.

1871-05-15 
RGBl 1871, 127
Neugefasst durch Bek. v. 13.11.1998 I 3322;; zuletzt geändert durch Art. 1 G v. 20.3.2026 I Nr. 95

§ 100 Endangering Peaceful Relations — StGB

Germany: German Criminal Code

(1) Whosoever, being a German who has his basis of existence within the territorial scope of this Act, with the intention of bringing about a war or an armed undertaking against the Federal Republic of Germany, establishes or maintains relations with a government, association or institution outside the territorial scope of this Act or with one of its agents shall be liable to imprisonment of not less than one year.

(2) In especially serious cases the penalty shall be imprisonment for life or imprisonment of not less than five years. An especially serious case shall as a rule be deemed to exist if the offender by the offence brings about a grave danger to the existence of the Federal Republic of Germany.

(3) In less serious cases the penalty shall be imprisonment of from one year to five years.

1871-05-15 
RGBl 1871, 127
Neugefasst durch Bek. v. 13.11.1998 I 3322;; zuletzt geändert durch Art. 1 G v. 20.3.2026 I Nr. 95

§ 100a Treasonous Forgery — StGB

Germany: German Criminal Code

(1) Whosoever, against his better knowledge, passes on to another or publicly discloses forged or falsified objects, news thereof or untrue statements of a factual nature which, if they were genuine or true, would be of significance for the external security or the relations of the Federal Republic of Germany to a foreign power, in order to deceive a foreign power that they are genuine objects or facts, and thereby brings about the risk of a serious detriment to the external security or the relations of the Federal Republic of Germany to a foreign power, shall be liable to imprisonment of from six months to five years.

(2) The same penalty shall be incurred by whosoever produces such objects by forging or falsifying them or procures them in order to pass them on to another in the manner designated in subsection (1) to deceive a foreign power or to publicly disclose them and thereby bring about the risk of a serious detriment to the external security or the relations of the Federal Republic of Germany to a foreign power.

(3) The attempt shall be punishable.

(4) In especially serious cases the penalty shall be imprisonment of not less than one year. An especially serious case shall as a rule be deemed to exist if the offender by the offence brings about an especially serious detriment to the external security or the relations of the Federal Republic of Germany to a foreign power.

1871-05-15 
RGBl 1871, 127
Neugefasst durch Bek. v. 13.11.1998 I 3322;; zuletzt geändert durch Art. 1 G v. 20.3.2026 I Nr. 95

§ 101 Ancillary consequences — StGB

Germany: German Criminal Code

In addition to an imprisonment of at least six months for an intentional offence under this Section, the court may deprive the offender of the capacity to hold public office, the capacity to acquire rights from public elections and the right to vote or to vote in public affairs (§ 45 (2) and (5)).

1871-05-15 
RGBl 1871, 127
Neugefasst durch Bek. v. 13.11.1998 I 3322;; zuletzt geändert durch Art. 1 G v. 20.3.2026 I Nr. 95