Book initial consultation

Home › Solution › Classification

Classifying documents

Every document shows how sensitive it is.

Four levels from “Public” to “Strictly confidential”, detected automatically, correctable by hand, logged without gaps and monitored when shared.

Silent clip, 11 seconds, looping: in a file list of the fictitious organisation Haselgrund, “Angebot_Dachsanierung.docx” is initially shown with “No marking”. The document’s header carries the marking “Confidential”. After clicking “Save”, the content is checked, “No marking” disappears and the level “2 · Vertraulich / Confidential” appears. The log names where the marking was found.
Saving is enough: the document gets its level and “No marking” disappears. Animation with fictitious data from the demo organisation Haselgrund, no sound.
Sequence as text
  1. The document “Angebot_Dachsanierung.docx” carries the marking “Confidential” in its header. The file list still shows “No marking”.
  2. The person clicks “Save”.
  3. The system checks the content.
  4. “No marking” disappears and the level “2 · Vertraulich / Confidential” appears. The log records: automatic, found in the header.

Four levels

Every document carries exactly one level, in the file list, in the log and as a marking in the document. The labels are bilingual.

  • 0 · Öffentlich / Public

    Website, flyers, published pricesNo watermark

  • 1 · Intern / Internal

    Templates, notes, internal proceduresNo watermark

  • 2 · Vertraulich / Confidential

    Customer data, contracts, quotes, personal dataWatermark as a reminder

  • 3 · Streng vertraulich / Strictly Confidential

    Payroll and personnel data, health data, credentials, trade secretsWatermark as a reminder

From level 2 upwards, the system overlays the view with a watermark showing the signed-in person’s name and the date. It’s a reminder, not a lock.

Three ways to a level

  • Choosing the level in the editor

    When a document without a level is opened, the editor asks for one. The choice can be changed at any time. The marking appears in the header and footer and in the file’s properties.

  • Content detection

    The system reads the text and detects markings such as “Confidential”, “Classification: secret” or “TLP:AMBER”, even if nobody has chosen a level.

  • Document type

    The system recognises AHV numbers, IBANs, ID documents, salary statements, employment contracts and more by their format. For AHV numbers and IBANs, a check digit prevents false matches.

The strictest level wins. A manual decision takes precedence over automation, as long as the content doesn’t point to a stricter level and doesn’t change. Every change is logged: who, when, automatically or by hand.

All details on classificationEditor, content detection, false alarms, log, sharing, rule maintenance

By hand in the editor

When someone opens a document without a level, the editor asks: “This document has no classification yet”. The dialogue can be closed with “Later”. Choosing a level sets the marking in the header and footer of all sections and in the file properties. On saving, the file store classifies the file immediately, and the decision is logged with the person’s name.

Silent clip, 14 seconds, looping: “Offerte_Gartenpflege.docx” of the fictitious organisation Haselgrund is opened in the editor. A dialogue reports “This document has no classification yet” and offers the four levels from “0 · Public” to “3 · Strictly confidential” as well as “Later”. The person chooses “2 · Confidential” and sets the marking. “VERTRAULICH · CONFIDENTIAL – Stufe 2” appears in the header and footer. After saving, the file list shows “2 · Vertraulich / Confidential” and the log says “manually in the editor”.
The editor asks for the level, the marking goes into the document, and saving classifies the file. Animation with fictitious data from the demo organisation Haselgrund, no sound.
Sequence as text
  1. The document “Offerte_Gartenpflege.docx” is opened in the editor. The file list shows “No marking”.
  2. A dialogue reports: “This document has no classification yet”. The options are “0 · Public”, “1 · Internal”, “2 · Confidential”, “3 · Strictly confidential”, each with a short description, and “Later”.
  3. The person chooses “2 · Confidential” and clicks “Set marking”.
  4. “VERTRAULICH · CONFIDENTIAL – Stufe 2” appears in the header and footer.
  5. After “Save”, the file list immediately shows “2 · Vertraulich / Confidential”. The log records: manually in the editor.

Content counts more than the choice

Someone chooses “Public”, but the document contains an IBAN. After saving, the system raises it to “Confidential” and records where the IBAN was found.

Silent clip, 15 seconds, looping: in the editor, a person chooses the level “0 · Öffentlich / Public” for “Zahlungsliste_Q3.docx”. The document contains the line “IBAN CH44 3199 9123 0008 8901 2”. After saving, the line is marked as an IBAN with a valid check digit and the level jumps to “2 · Vertraulich / Confidential”. The log names where it was found.
Choose “Public” and write an IBAN into the document, and you still get “Confidential”. Animation with the official sample IBAN, no sound.
Sequence as text
  1. In the editor, a person chooses “0 · Öffentlich / Public”. The log records the marking.
  2. The document contains the line “IBAN CH44 3199 9123 0008 8901 2” (official sample IBAN).
  3. After saving, the system detects the IBAN with a valid check digit.
  4. The level automatically changes to “2 · Vertraulich / Confidential”. The log names where it was found.

Avoiding false alarms

The word “Geheimtipp” (German for “insider tip”) in a sentence is not a marking. Only a line of its own such as “Klassifizierung: geheim” (“Classification: secret”) sets level 3. That keeps the list credible.

Silent clip, 15 seconds, looping: two documents are checked. “Tipps_Wanderwoche.docx” contains a sentence calling something an insider tip (“Geheimtipp”) for anyone who likes hiking; the word is recognised as part of a sentence, and the document stays without a level. “Protokoll_Gemeinderat.docx” contains “Klassifizierung: geheim” (“Classification: secret”) on a line of its own; the document gets the level “3 · Streng vertraulich / Strictly Confidential”.
An insider tip is not a secret: only a marking on a line of its own counts. Animation with fictitious documents, no sound.
Sequence as text
  1. “Tipps_Wanderwoche.docx” contains a sentence calling something an insider tip (“Geheimtipp”) for anyone who likes hiking. The system recognises: part of a sentence, not a marking. The document stays without a level.
  2. “Protokoll_Gemeinderat.docx” contains a line “Klassifizierung: geheim” (“Classification: secret”). The marking stands alone on the line.
  3. The system sets “3 · Streng vertraulich / Strictly Confidential” and logs where it was found.

A complete log

Every classification and every change is recorded: when, which file, which level, whether automatic or by hand, and who it was. That way you can prove at any time how a document got its level, for example to auditors, data protection advisers or after an incident.

  1. automaticset1 · InternalSitzungsnotiz_Vorstand.docx
  2. Marta Brunner · by hand1 →3 · Strictly confidentialSitzungsnotiz_Vorstand.docx
  3. automatic0 →2 · ConfidentialZahlungsliste_Q3.docxFound: IBAN
  4. Jonas Imhof · in the editorset2 · ConfidentialOfferte_Gartenpflege.docx
Example from the log, fictitious data.

New

Shares at a glance

When a confidential or strictly confidential document is shared, you find out. That also applies to folders containing such documents, and to files that only receive a higher level after being shared. Nothing is blocked: work carries on, and you decide.

  • ImmediatelyPublic link, sharing by email or with an external server: a notification in the file store and by email, including whether there is a password and an expiry date.
  • DailyA report lists all shares with confidential and strictly confidential content, riskiest first, and shows what is new since yesterday.
  • ProvableEvery notification goes into the log, and so do internal shares. That documents who shared what with whom, and when.

Classified document shared3 · Strictly confidential

Marta Brunner shared Sitzungsnotiz_Vorstand.docx via a public link.

Today, 11:58 · with password · expires on 19 December

Example of a notification, fictitious data.

Maintain the rules yourself

You maintain keywords, document types, path rules and exceptions on a dedicated admin page in the file store, without any programming. You assemble your own rules from building blocks, for example “title ‘medical certificate’ and AHV number”, and test them immediately on a sample text.

  • Preview firstEvery change first runs as a trial over the entire collection. You see how many documents would receive which level.
  • Four eyesA change only takes effect once a second authorised person approves it. Whoever wrote it cannot approve it themselves.
  • Roll back any timeEvery version is kept and can be restored with one click. Who changed and approved what is in the log.
  • Fixed coreCheck digits, machine-readable ID lines and IBAN validation are built into the program. They can be switched on and off, but not accidentally bent out of shape.

This is how a change works: add a keyword, check the preview across the whole collection, and the second person approves.

Silent clip, 33 seconds, looping: in the rule maintenance of the fictitious organisation Haselgrund, Jonas Imhof creates a new version and gives a reason. He adds the keyword “Personalakte” (personnel file) at level 3 and saves. The “Changes” view labels the change as “stricter”. The preview starts as a full scan across the whole collection (about 60 minutes) and reports 37 upgrades to level 3 and no downgrades; Jonas Imhof cannot approve the version himself. After switching to Marta Brunner, she confirms the upgrades and approves. Version 1.3.0 is active.
Add a keyword, preview across the collection, approval by a second person: that’s how a new version comes about. Recording of the demo interface with made-up data from the organisation Haselgrund, no sound.
Sequence as text
  1. Jonas Imhof creates a new version and enters the reason: “Personnel files contain health data.”
  2. He adds the keyword “Personalakte” (personnel file) at level 3 (strictly confidential) and saves the version with a reason for the change.
  3. The “Changes” view compares the new version with the active one: 1 added, rated “stricter”.
  4. He starts the preview. The dialogue announces a full scan across the whole collection, taking about 60 minutes; the preview changes nothing.
  5. The report shows 37 upgrades to level 3, 0 downgrades and 2 skipped locks. Jonas Imhof sees a notice that he cannot approve his own version.
  6. Marta Brunner opens the version, confirms the upgrades (mandatory checkbox) and approves. Version 1.3.0 is then active, and the overview shows it as the active version.
Detail of the rule maintenance: cards for levels 1, 2 and 3 with keyword chips. Under “3 · Streng vertraulich” the new keyword “Personalakte” now appears next to “streng vertraulich”, “geheim” and “verschlusssache”.
Keywords appear as chips per level. New in this version: “Personalakte” (personnel file) at level 3. Fictitious data from the demo organisation Haselgrund.
View “Changes compared with the active version”: badge “stricter”, 1 added, 0 removed, 0 changed. The row “Keyword Personalakte, added, level 3” is also marked “stricter”.
The comparison with the active version names the change and rates it as “stricter”.
Preview report for version 1.3.0 by Jonas Imhof: 37 upgrades (all to level 3), 0 downgrades, 37 matches in total, 2 skipped locks, 0 errors, duration 58 minutes.
The preview report: 37 upgrades to level 3, no downgrades, 2 skipped locks.
Dialogue “Approve version 1.3.0” for the second person. The mandatory checkbox “Apply upgrades (37 files)” is ticked, below it “Cancel” and “Approve”.
The second person confirms the upgrades and approves the version.

Try the demo (in German) →In the browser, without signing in, with sample data.

Product dossier (PDF, 1.1 MB) (in German)Benefits, features, security concept and quality on 10 pages. Open source under AGPL-3.0-or-later.

Traceable right down to the folder

New in November: the file store tells you why a file has its level, keeps a history per file and marks folders with the highest level of their content. Plus detection patterns for credentials, a minimum level and a ready-made rule pack for Switzerland.

  • Why this level?Sharing notifications state the reason: source, rule or keyword and the applicable rule version. The matched content itself never appears in the notification.
  • History per fileEvery level change is appended, never overwritten: from which level to which, when and why. Only people allowed to open the file can see it.
  • Folders show their levelA folder carries the highest level of its content, in colour in the file list. It’s a reminder, not access protection, and can be switched on.
  • Detecting credentialsPrivate keys, access keys for cloud and code services and passwords in connection strings are detected. All that’s shown is that something was found, never the value.
  • Minimum levelFiles without a level of their own get a baseline, such as “Internal”. It only raises, never lowers.
  • Swiss rule pack40 ready-made rules in German, French, Italian and English, for example for personnel files, debt enforcement orders or non-disclosure agreements. Importing creates a draft; it only takes effect after preview and approval.
  1. Personalhighest level inside: Lohnausweis_2026.pdf3 · Strictly confidential
  2. Kundenhighest level inside: Offerte_Gartenpflege.docx2 · Confidential
  3. Vorlageninternal documents only1 · Internal
  4. Flyerpublic documents only0 · Public
  5. Neuempty, so no levelno level
Example: every folder shows the highest level of its content. Fictitious data from the demo organisation Haselgrund.

It informs; it doesn’t decide on access.The level says: there’s something sensitive in here. Who may see or edit a document is still determined by groups and shares. Access rules per level can be added later if you want them.

Technical details

Process

  • On saving, Nextcloud reports the change. The files_confidential extension reads the content and document properties and immediately sets the level tag. A listener removes “No marking” at the same moment.
  • Within about a minute, our own detection engine cross-checks (line rule, document types, OCR text for scans). If the results differ, the strictest level applies. Every change goes into the log.
  • Office files (DOCX, XLSX, PPTX, ODF) are parsed directly so that paragraph boundaries are preserved. PDFs are read via the text layer, scans via OCR (German, English, French).

Editor extension

  • The extension runs in the online editor (Euro-Office, compatible with OnlyOffice) for Word, Excel and PowerPoint. It writes the marking into the header and footer and the classification properties into the file. In Excel this is done via the print header, in PowerPoint via text boxes on the slide master.
  • Limitation: the editor doesn’t report an event on saving. Classification therefore runs via the file store: it reads the properties of the saved file and sets the level tag immediately.

False alarm protection

  • Line rule: a marking only counts if it stands alone on the line or as a prefix. Running text containing “geheim” (secret) triggers nothing.
  • Context: types such as the IBAN need a context word nearby, others a title plus further features. A single signal is never enough.
  • Exclusions: templates, samples, information sheets, forms and applications switch off the document type rules.

Check digits

  • AHV number: check digit according to EAN-13.
  • IBAN (CH, LI): mod 97, plus a context word from payment transactions.
  • ID with a machine-readable zone: check digits according to ICAO 9303, tolerant of typical OCR errors.
  • Further types with title and signal words: salary statement, payslip, employment contract, medical certificate, debt enforcement register extract and others.

Log (audit log)

  • A dedicated Nextcloud extension records every setting and removal of a level tag: time, account, automatic or manual, level set or removed, file. This applies to all routes: file list, editor, detection and API.
  • The detection uses the log itself: a manual decision is recognised there and respected in later cross-checks.
  • In addition, an evidence table records the current level and where it was found for each file, and the highest contained level for folders.
  • You decide the retention period and who can access the log. For tamper-proof evidence, it can also be forwarded to a separate log system.

Share monitoring

  • The extension reacts to new shares and new level tags. For folders, the highest contained level counts.
  • Classification is risk-based: links, email shares and shares with other servers trigger a warning; internal shares only a log entry.
  • A failure of the monitoring doesn’t prevent sharing. It’s a detective control, not a lock.

Limitations

  • Delay in the online editor: the editor doesn’t report its own event on saving. The cross-check catches up on the change, which takes up to about a minute.
  • Short sentences such as “That stays secret.” (in German: “Das bleibt geheim.”) can upgrade to level 3. A manual decision helps here.
  • Manual decisions apply until the document’s content changes. Then the automation checks again.
  • Photo and card scans sometimes yield no text with OCR; encrypted PDFs cannot be analysed.
  • Rules for German and Austrian ID documents and the Swiss driving licence are under review.
  • Detection can miss matches and in individual cases be wrong. It is not access protection and not legal advice, and we don’t promise compliance.

Context and sources