New Zealand Marking - SECRET / TOP SECRET

Detects the New Zealand Government SECRET and TOP SECRET national-security classifications under the Protective Security Requirements (PSR) classification system: the verified control/dissemination marking separator ((TOP )SECRET//..., e.g. SECRET//NZEO, TOP SECRET//REL TO NZL, FVEY), the TOP SECRET banner-words phrase (tolerant of a hyphen or PDF-line-wrap-inserted whitespace between TOP and SECRET), and a New Zealand government/PSR-context-gated bare SECRET banner. Deliberately omits a SEEMail square-bracket trigger-word tier: the complete SEEMail bracket trigger-word set is [SEEMAIL]/[TRUSTED]/[RESTRICTED]/[SENSITIVE]/[IN-CONFIDENCE], all at or below SEEMail's own RESTRICTED-tier service ceiling, so [SECRET]/[TOP SECRET] bracket forms are structurally implausible and unattested. Regex logic verified directly against official PSR marking-format guidance (protectivesecurity.govt.nz); matched case-sensitively.

Type
regex
Engine
boost_regex
Confidence
high
Confidence justification
High confidence on the `//` national-security-marking form and the TOP SECRET banner-words phrase: both are structurally distinctive, case-sensitive tokens with low natural-English collision risk, and the `//` separator convention is directly verified against the official PSR marking-format guidance (not inferred). The bare SECRET banner (75) is a common English word used constantly outside government context (TRADE SECRET, API SECRET, SECRET MANAGER, etc.), so it is the widest tier and is gated by New Zealand government/PSR corroborative evidence plus a dedicated NOT-exclusion for the most common non-government collocations.
Jurisdictions
nz
Regulations
Privacy Act 2020 (NZ)
Frameworks
PSR
Data categories
government, security
Scope
narrow
Risk rating
10
Platform compatibility
Purview: Compatible, GCP DLP: Compatible, Macie: Compatible, Zscaler: Compatible, Palo Alto: Compatible, Netskope: Unsupported

Pattern

\b(?:TOP[\s-]+)?SECRET//[A-Z]|\bTOP[\s-]+SECRET\b

Corroborative evidence keywords

New Zealand, PSR, Protective Security Requirements, Cabinet

Proximity: 300 characters

Should match

Should not match

Known false positives

Collections