PantelisSecure Automation · Get support
User guide · version 1.0

Secure Automation [PERSON_1]

Find names, IDs, dates, addresses and other identifiers in Word, Excel and plain text, swap them for placeholders before you share the content with an AI model, and put the originals back afterwards. Everything runs on your own computer.

Nothing is uploaded Encrypted local vault Word · Excel · CSV · TXT · Markdown

01Start the app and add it to Word and Excel

Open Secure Automation from the Start menu. It starts its local engine in the background and opens on the Mask tab. The other tabs are Rehydrate, for putting original values back, and Policy & audit, for settings.

Word and Excel documents are masked inside Word and Excel themselves, with the Secure Automation sidebar. The first time you open the app, an orange card offers to add it:

First run. Click Enable in Word & Excel, then close and reopen Word and Excel. If you choose Not now, an Add to Word & Excel button stays in the title bar until you change your mind.

Once it is on, Word and Excel show a Mask document button in a Secure Automation group at the right of the Home tab. It opens the sidebar.

02Mask a Word document

  1. Open the document in Word and save it. The scan reads the saved file, so the sidebar offers to save unsaved changes first.
  2. Click Home → Mask document, then Scan this document.
  3. Review the highlights. Yellow will be masked, grey is kept. Each row in the list is one kind of value: its type, its format or the value itself, how many there are, and the words or column header around it. Untick a row to keep that kind of value; click a row to jump to its next match.
  4. Click Create masked copy. A copy named <name>.masked.docx is written next to the original and opened.
After the scan. 62 values in 38 rows. The sponsor name, addresses, phone numbers, emails and people in the summary table are highlighted where they stand.
The masked copy. Each value becomes a numbered placeholder such as [ORG_1] or [LOCATION_1]. The same value gets the same placeholder everywhere, and the layout, tables and formatting stay as they were.

The original file is never changed. Highlights are removed when you close the sidebar or create the copy, and your row choices are remembered for the next document like this one.

03Mask an Excel workbook

The steps are the same as in Word: Home → Mask document, Scan this document, review, then Create masked copy for <name>.masked.xlsx.

In a workbook the sidebar groups rows by column header, so a sheet with a Date of Birth column shows one row for it, however many patients there are. A title banner above the header row is recognised as such, and header cells are never masked; they name the placeholders instead, as in [DATE_OF_BIRTH_1].

A seven-sheet data transfer workbook. 4,637 cells flagged across every sheet, grouped into 75 rows by column. Columns such as Race and Ethnicity are left alone.

04Edit masks: mask more, or less

Click Edit masks, select something in the document, then choose what to do with it. You can select as much as you like.

ButtonWhat it does
Mask itMasks the selection. A single value (a word, name, ID or short phrase) is masked everywhere it appears. Paragraphs, a whole table, rows, columns or a range of cells are masked just there, each line or cell as its own item.
Don't mask itKeeps everything the selection touches. A single value is kept everywhere it appears.
Mask all like it…Previews in blue every value written the same way, for example every ID shaped like INCA1234. Click Add to mask to keep the preview. Leave close formats too ticked to also catch values one or two characters longer or shorter.
Word. A whole table column selected, ready for Mask it or Don't mask it.
Excel. Clicking the Last Name column header and choosing Don't mask it turns its 48 cells grey. The header cell is left as it is.

In Excel, click a column's letter to select it. Pressing Ctrl+Space in a column under a merged title banner makes Excel select every column the banner spans.

05Mask pasted text

  1. On the Mask tab, paste into Or paste text (or click Paste from clipboard) and click Review pasted text. Text, CSV and Markdown files open the same way.
  2. Click a highlight to switch it between masked and kept, click a line number to mask or keep the whole line, or select any text to mask it everywhere. Under Choose what to mask, add a rule for a keyword or a re: pattern.
  3. Pick the placeholder style under Output: tokens such as [PERSON_1], or realistic fake values. Then copy the masked text into your model.
A synthetic visit note under review. Nine values were found and labelled. The record number 4471-2093, circled, was not: it has no familiar label or format. This is the moment to mask it yourself.

Mask what the scan missed

The scan is a fast first pass, and you are the second one. You know your documents: which numbers are record IDs, which code names point to a study, which phrases only make sense inside your organisation. Masking these yourself before you share is the step that turns a good result into a safe one.

One value is enoughA single record number or ID can be looked up and tied back to a patient, even when every name is masked.
Sharing can't be undoneOnce text reaches a model or a colleague's inbox, you cannot take it back. A minute of review costs far less.
It teaches the sidebarIn Word and Excel your choices are remembered when you create the masked copy, so the next document like this one starts closer to right.

Three ways to mask something yourself, from quickest to broadest:

  1. Select it. Highlight 4471-2093 in the review and it is masked everywhere it appears. In Word and Excel, use Edit masks → Mask it.
  2. Add a rule. Under Choose what to mask, type the keyword or number and click Add rule. Every occurrence is matched, ignoring case.
  3. Catch the whole pattern. Start the rule with re: to mask everything shaped the same way, for example re:\d{4}-\d{4} for every record number in this format. In Word and Excel, Mask all like it… does the same from one example.

Read the whole document once before you share it, looking for anything not highlighted that could identify a person, a site or a study: record and account numbers, internal codes, rare conditions, free-text comments.

06Restore the original values

The model's answer, or a document it edited, contains the placeholders. Secure Automation swaps them back for your eyes only, on this computer.

Pasted text

Open the Rehydrate tab, paste the answer and click Restore original values. Leave the session on Find automatically: the app works out which masking session the placeholders came from. Pick a session from the list only if it chooses the wrong one.

The Rehydrate tab. The restored text appears on the right and stays on this computer.

Word and Excel files

  • On the Rehydrate tab, click Restore Word / Excel file, or drop a .docx or .xlsx on the tab.
  • Or open the masked file in Word or Excel and click Restore original values (masked copy) at the bottom of the sidebar.

The file can be the masked copy itself or a version that a model or a colleague edited. A restored copy named <name>.restored.docx or .xlsx is written next to it and opened. Placeholders are replaced where they stand, so tables, cells and formatting are kept. Placeholders that no masking session on this computer knows are left as they are and counted.

The restored copy of the masked plan above: all 62 values are back, in the same table layout.

A restored file contains the original values. Keep it on your computer and do not paste it back into a remote model.

07Settings and privacy

The Policy & audit tab shows the active policy and rule packs, whether name recognition is on, how long the vault keeps mappings, and the audit log. It is also where you choose the theme, turn the Word and Excel sidebar on or off, and add Review with Secure Automation to the File Explorer right-click menu.

Policy & audit. Changes to the sidebar take effect the next time Word and Excel start.
  • The vault. Mappings from placeholders to originals are kept in an encrypted SQLite vault under %LOCALAPPDATA%\SecureAutomation, with its key protected by Windows for your account.
  • Remembered choices. Your row decisions are stored encrypted in learned-patterns.dat in the same folder. Delete that file to start over.
  • The audit log records what was masked by type and count, never the values.
  • Nothing leaves the computer unless you copy masked text or send a masked file somewhere yourself.

08Reference and limits

Placeholders

PlaceholderStands for
[PERSON_1]A person's name, with titles and credentials kept together (Dr. Eleanor M. Vasquez, MD, PhD).
[ORG_1], [LOCATION_1], [ADDRESS_1]Organisations, places and street addresses.
[DATE_1], [PHONE_1], [EMAIL_1]Dates, phone numbers and email addresses.
[DATE_OF_BIRTH_1]In a spreadsheet, the column header names the placeholder.
[CARD_REDACTED]A payment card number. It is removed for good and cannot be restored.

Keyboard

KeysAction
Ctrl+OOpen a document
Ctrl+SSave, when reviewing text
Ctrl+Shift+SSave as, when reviewing text

Limits

  • Masking reduces re-identification risk but does not remove it. Combinations such as age, postcode and a rare condition can still point to one person.
  • Detection can miss or misread values, especially unusual names, and IDs written without a label or a familiar format. Review every document before you share it, and mask what the scan missed yourself.
  • PDF files, scanned images and handwriting are not covered in this release.
  • If the engine is not running, the sidebar scans with rules only and says so in a yellow banner. Open the app once and scan again for name detection. Copies masked on the fallback cannot be restored.