UK Marking - SECRET / TOP SECRET

Detects the UK Government Security Classifications Policy (GSCP) SECRET and TOP SECRET national-security classifications: the verified UK Prefix form (UK SECRET / UK TOP SECRET, applied to assets shared with foreign governments or international organisations), the classification followed by a verified National Caveat handling instruction (SECRET/TOP SECRET - UK EYES ONLY, - UK/US EYES ONLY, - FIVE EYES ONLY, per the GSCP's "CLASSIFICATION - HANDLING INSTRUCTION" additional-marking format — National Caveats apply only to SECRET and TOP SECRET, never OFFICIAL), the distinctive TOP SECRET banner-words phrase, and a UK-government-context-gated bare SECRET banner. Intended to surface content that should not reside on this platform. Regex logic verified directly against the current Government Security Classifications Policy (gov.uk, version 2.0, August 2024); matched case-sensitively.

Type
regex
Engine
boost_regex
Confidence
high
Confidence justification
High confidence on the UK Prefix form and the National Caveat form: both are verified directly against the current GSCP primary source, structurally distinctive, case-sensitive tokens with low natural-English collision risk. The TOP SECRET banner-words phrase is likewise high confidence (case-sensitive two-word phrase). Bare SECRET alone (75) is a common English word used constantly outside government context (TRADE SECRET, CLIENT SECRET, API SECRET, SECRET MANAGER, SECRET SANTA, etc), so it is the widest tier and is gated by UK central-government/GSCP corroborative evidence plus a dedicated NOT-exclusion for the most common non-government collocations.
Jurisdictions
uk
Regulations
Official Secrets Act 1989
Frameworks
GSCP
Data categories
government, security-classification
Scope
narrow
Risk rating
10
Platform compatibility
Purview: Compatible, GCP DLP: Compatible, Macie: Compatible, Zscaler: Compatible, Palo Alto: Compatible, Netskope: Unsupported

Pattern

\bUK[\s-]+(?:TOP[\s-]+)?SECRET\b|\b(?:TOP[\s-]+)?SECRET\b[\s-]+-[\s-]+(?:UK(?:/US)?|FIVE)[\s-]+EYES[\s-]+ONLY\b|\bTOP[\s-]+SECRET\b

Corroborative evidence keywords

HM Government, Cabinet Office, GSCP, national security

Proximity: 300 characters

Should match

Should not match

Known false positives

References