TRAILTREE v1.4.2 - SECURITY AND DATA SHEET (for IT review) ========================================================== Written from the program's code. Questions go to whoever supplied TrailTree to your organisation; the developer answers them. PURPOSE Builds a per-user view of email "trails": an original email plus every reply, forward and renamed subject line that grew out of it, across the mailbox and archive (.pst) files. PRIVILEGES Runs as the signed-in user. Needs no administrator rights, installs no services, drivers, browser extensions or scheduled tasks. One file, TrailTree.exe (self-contained .NET 8). Microsoft Store (1.3): the usual way to get it. Windows installs the MSIX package for the user, without administrator rights, and the Store keeps it up to date; Settings > Apps removes it. The program inside is the same TrailTree.exe. Install (1.2, only when the user presses Install): copies TrailTree.exe and its notes to %LOCALAPPDATA%\Programs\TrailTree, writes Start menu and desktop shortcuts (through the Windows shell's IShellLink - no script host), and one per-user registry key, HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall\ TrailTree, so it appears in Settings > Apps and can be removed there (TrailTree.exe --uninstall: removes the shortcuts, that key and the program folder; the data folder stays). Nothing outside the user's own profile is written. Its window (1.2): Microsoft Edge started in app mode (--app=) with a separate Edge profile in %LOCALAPPDATA%\AgendaTree\window, so it has no tabs or address bar and none of the user's browser data; if Edge is missing it falls back to the default browser. The user can choose a normal browser tab. WHAT IT READS * Classic Outlook, through Outlook's object model, as the signed-in user: mail folders of the stores in the user's own profile. Reading never changes items, folders or the profile (changes happen only in Make space, below). * Archive .pst files found under the user's profile and on fixed drives, opened read-only and parsed directly (open-source XstReader library, Ms-PL). * Fields used: subject, sender, recipients' display names, sent/received time, Message-ID / In-Reply-To / References, conversation index, sensitivity (and, only when a policy uses labels, the Purview label name), attachment names and sizes, the plain-text body, and the text inside PDF, Word, Excel, PowerPoint and text attachments (for search and the optional AI features). Attachment contents are read in memory, through Outlook's SaveAsFile into a private temp folder that is deleted at once, or straight from the archive file. * Text in attached pictures and scanned PDF pages (1.3.1, Microsoft Store version): read on this PC with Windows' own text reader (Windows.Media.Ocr), in the languages Windows has installed. Nothing is sent for this. IT can turn it off with disableOcr. * The calendar (1.3, for meeting briefs; can be turned off by IT with disableCalendar): the next few days of the user's own calendar - subject, start and end, place, organiser, attendees and the first 2,000 characters of the meeting text - through Outlook or webmail, only when Home or a brief is shown. Kept in memory to suggest related trails; not stored, not sent. WHAT IT STORES (only in the user's own profile: %LOCALAPPDATA%\AgendaTree. The Microsoft Store version on a PC that never had TrailTree before uses the folder Windows gives the app, which Windows removes on uninstall: %LOCALAPPDATA%\Packages\RaihanulIslamRahul.TrailTree_eh6k31wwxrwe4\LocalState\AgendaTree Settings > Privacy shows the folder in use.) From 1.4 every file below is encrypted (AES-256-GCM) except three: log.txt, window.txt and instance.json, which hold no email content, no subjects, no addresses and no server names. A plain file of an older version is encrypted at the first start of 1.4: it is sealed, read back, and only then replaced. A sealed file that cannot be opened (Windows' key protection did not answer) is never overwritten. From 1.3.2 each mailbox is kept on its own (a work mailbox, a personal account in Outlook, a shared mailbox, webmail, an old address's archive files): its files are in a folder of its own, mailboxes\m1, mailboxes\m2 ..., encrypted with a key of its own. Nothing of one mailbox is shown, searched or sent to the AI with another's. The files listed below up to ai-log.jsonl and forgotten.tsv are in each mailbox's folder; the rest are in the data folder itself. * mailboxes.json (1.3.2) - the list of mailboxes (name, own address) and which source (Outlook store, webmail, archive file) belongs to which. Encrypted with the app's key (key.bin in the data folder, protected by Windows DPAPI). * mailbox-settings.json (1.3.2, in each mailbox's folder) - that mailbox's own settings: its webmail connection (password protected by Windows DPAPI), where Make space archives, the user's other addresses for it. Encrypted with the mailbox's key from 1.4. * stores.json, keys.tsv - the sources of the mailbox (names of mailboxes and archive files, their paths, when each was last read) and, per email, its id and when it was first and last seen. Encrypted with the mailbox's key from 1.4 (keys.tsv line by line). * index.jsonl - per email: the fields above, the first 500 characters of the new text, quoted header lines, short sentence hashes, attachment names and sizes. From 1.3.2 every line is encrypted with AES-256-GCM and the same key as bodies.dat (below); an index from an older version is encrypted at the first start of 1.3.2. * bodies.dat, docs.dat - the new text of each email, the text of attached documents, and saved AI summaries. Encrypted with AES-256-GCM; the key (key.bin) is protected by Windows DPAPI for the signed-in user, so these files cannot be read from another account or another PC. * settings.json - choices made in the app that are the same for every mailbox (look, AI, licence, where to search for archive files). Encrypted with the app's key from 1.4. Secrets in it (TrailTree licence code, an own Anthropic API key if one is used, the webmail password) are in addition protected by Windows DPAPI for the signed-in user and are never shown in full. * corrections.json - the user's own corrections and choices: links between emails, series (names, colours, member trails), subject-line display choices, and from 1.4 the status the user gives a trail (Closed, On hold with an optional date, Not my concern, Handed over with an optional name) and the user's own folders (names, member trails, emails and series, and rules: a person, words of a subject line or a sender's domain). Encrypted with the mailbox's key from 1.4. * actions.jsonl - the Make space journal (see ACTIONS ON MAIL): Outlook entry ids, folder ids, and for each email its subject line, sent time and folder name, so the user can see what was moved and undo it. No email text. Encrypted line by line from 1.3.2, like the index. * ews-state.json - webmail sync positions (folder ids, no content). Encrypted from 1.4. * picture-looks.json (1.3) - how each picture looks (a small grey and colour grid and a hash, to fold near-copies together); no picture itself. Encrypted from 1.4. * packs.jsonl (1.3.2) - which PDF packs were made, when and of which trail. Encrypted line by line. * ai-log.jsonl (1.3) - one line per AI request: time, feature, host, model, number of characters, the subject/sender/date of each email and the name of each document it carried, and how many were withheld by policy. No email text. Shown to the user in Settings > Privacy; kept 365 days (aiLogDays). Encrypted line by line from 1.3.2, like the index. * forgotten.tsv (1.3.2) - the ids of emails the user asked TrailTree to forget, so a later read skips them. Ids only (mailbox key and Outlook entry id), no text. Encrypted from 1.4. An email deleted from the mailbox is forgotten after 30 days by default (Settings > Privacy: 7, 30, 90 days, a year, or keep): it leaves the trails, search and the AI, and its text, documents' text and summaries are removed from bodies.dat and docs.dat. * window.txt, and window\ (1.2) - whether TrailTree opens in its own window or a browser tab, and the separate Edge profile its own window uses (Edge's normal cache and settings for the 127.0.0.1 page; no email is stored there by TrailTree). * log.txt - start and finish times, archive file paths, counts, AI call timings and token counts, error messages. No email text, no subjects, and from 1.3.2 no email addresses or mail server names (written as [address] and [server]). The user can view and copy it from the app. One of the three files kept in plain text, so the user can read it and send it when asking for help; the other two are window.txt and instance.json (the port and process id of the running app, and its page key protected by Windows DPAPI, so a second start opens the same window; deleted when the app quits). * No attachment files are kept. * Webmail "Archive" (Make space, only after the user confirms): complete emails as standard .eml files in a folder the user chooses (default Documents\TrailTree Archive). These are ordinary files, not encrypted - like a .pst archive. NETWORK * No telemetry, no advertising. (The update check and feedback are described below.) * The user interface is a page the app serves to the user's own browser from 127.0.0.1 (loopback - not reachable from the network), on a random port. - Every request must carry a random 128-bit key made at each start. - The browser is opened with a one-time code (valid 2 minutes, usable once), which the app swaps for an HttpOnly, SameSite=Strict cookie; the key never stays in the address bar or the browser history. - The Host header must be 127.0.0.1/localhost on that port (blocks DNS rebinding); no CORS headers are sent, so other web pages cannot read it. - The page is served with a Content-Security-Policy that lets it talk only to the app itself (connect-src 'self', no framing, no form posts elsewhere), so email text shown on it cannot be sent to another site by script. * Licence check (only on a PC with a TrailTree licence code or a trial): every few days the app asks https://api.trailtreemail.com for this PC's licence. Sent: the licence code and the 16-character PC hash (below); when a beta code is entered, also the user's display name from Outlook (it names the tester's licence). Received: the plan (Pro or trial), the name the licence was issued to, how many of its PCs are in use and how much of the monthly AI allowance is used, and a licence signed by the service (ECDSA P-256), which the app checks against the public key built into it. It holds for 30 days without a connection. Starting a trial sends only the PC hash. Without a licence (Free) nothing is sent but the update check (and feedback, when the user sends it). * Update check (1.1): at start and twice a day the app asks the service which TrailTree version is newest (GET /v1/version, with the PC hash). The answer includes the SHA-256 of the published release zip (1.2). One-click update (1.2, only when the user presses Update and confirms): the app downloads the zip from the service's /download address (HTTPS), checks its SHA-256 against the published one - a file that differs is deleted and nothing is changed - takes TrailTree.exe out of it, renames the running exe aside (TrailTree.old.exe, deleted at the next start), puts the new one in its place and restarts. Nothing is downloaded or installed without the user's click. Microsoft Store version (1.3.1): no call to the service; the app asks the Store, through Windows' own Store API, whether an update is waiting (at start, every hour and when the internet comes back, 1.4.2), and shows a window with Update now and Later. "Update now" opens TrailTree's Store page. The Store downloads and installs updates; the app never replaces itself there. * Feedback (1.1.1): only when the user writes a note and presses Send in the feedback window, the app sends to the same service the note, what it is about (bug / idea / observation), the TrailTree version, "Windows 10/11" and whether Outlook or webmail is used, the licence code (if any), the PC hash and the user's display name from Outlook - and the screenshots the user added (each one shown in the window first and removable; the window reminds the user to crop out anything private). The service keeps them for the TrailTree team to read on its admin page until deleted there. Nothing is sent without pressing Send. * AI features (Pro; off until the user enters a TrailTree licence code or starts a trial; can be turned off by IT, see COMPANY POLICY). Since 1.2 the assistant's answers are streamed (server-sent events) so they appear as they are written; the same text is sent and received as before, and Stop ends the request: Only when the user opens a summary, asks the assistant a question or asks for a document report, the app sends the text of the emails and documents involved, over HTTPS, using the system proxy settings, to one of: - TrailTree licence (the normal way): the TrailTree AI service, https://api.trailtreemail.com (Cloudflare Workers), which passes the request on to Anthropic's Messages API (api.anthropic.com) and returns the answer. The service does not store email text, prompts or answers, and keeps no record of each request. When something fails it keeps where it happened and the error message, without addresses, licence codes or email text, for 30 days (from 1.4.2, in its own database), plus daily totals. It stores per licence: a hash of the licence code (not the code), the name it was issued to, monthly call/token/cost counts, and per PC a 16-character hash of Windows' machine id (MachineGuid; 1.0 used the PC and user name, and sends that hash once more so the PC keeps its place) with first/last seen times and monthly AI use. Headers sent: the licence code and that PC hash. - Own API key (only where policy allows "allowOwnAiKey"): straight to api.anthropic.com - or, with "aiApiBaseUrl", only to the organisation's own Claude endpoint (e.g. Microsoft Foundry in its Azure tenant). Series suggestions (off until the user switches them on): only the subject lines, sender names and dates of groups of look-alike conversations are sent, never email text, to the smallest Claude model. Anthropic's handling of API data is set out in its commercial terms: API data is not used to train models, and inputs and outputs are deleted within 30 days (content flagged for misuse can be kept up to two years). The assistant can only read (search, open an email or document); it has no way to send, move, change or delete mail. When asked, it can show things inside TrailTree at once (a trail, a list of trails, the Documents page, a page of the app). Anything else is a button: opening a file or an email, saving attachments, a catch-up pack (which opens as an Outlook email for the user to check and send), an export, a series, an AI document report, or a clean-up. Nothing of these happens until the user presses the button, and a clean-up still asks for confirmation. Evidence packs (1.3) - a trail, or the trail as it stood on a day, as a PDF with who joined when, a SHA-256 fingerprint of each attached file computed on the PC, a manifest (CSV) and optional copies of the files - are saved only to a folder the user chooses. Nothing is sent. Handover packs (1.3) - for a colleague taking trails over: a PDF of where each trail stands, who is on it, the decisions and open items from its AI summary (only if the user ticks that, and the AI may be used), the latest files and the last emails, with a CSV register - saved only to a folder the user chooses. Nothing is sent. Emails the assistant drafts are kept on the PC, encrypted for the user (drafts.bin), until the user deletes them. A draft goes into Outlook only when the user presses a button, as a reply (or a new email) shown for the user to read; TrailTree never sends it. A document report on a picture or a scanned PDF sends the file itself (up to 3.7 / 5.5 MB) instead of its text. Email text is given to the model as data, with instructions not to follow anything written inside it; answers link to the emails they are based on. * Webmail connection (off until the user connects it): Exchange Web Services (SOAP over HTTPS) to the EWS address of the user's own Exchange server, the one behind webmail (https:///EWS/Exchange.asmx). Signs in with the user's own webmail username and password (NTLM/Negotiate/Basic, as the server offers), or the Windows sign-in. Reads only the user's own mailbox. Plain http is refused. ACTIONS ON MAIL * "Open in Outlook" shows an email in Outlook when the user clicks it. * Make space (only after the user ticks emails and confirms; can be turned off by IT): moves emails from the user's own Exchange mailbox either into a .pst archive file chosen by the user (Outlook's AddStoreEx + MailItem.Move, same folder names) or into the mailbox's Deleted Items (MailItem.Move). Nothing is deleted permanently; emptying Deleted Items is left to the user in Outlook. Emails already in .pst files are never touched. - Before each move the journal records what is about to be moved; afterwards whether it was moved. An email interrupted halfway (power cut, crash) is listed as "not sure" in the history, so it can be checked, instead of being lost from the record. - "Duplicates" (emails that also exist in an archive file) are re-checked against that archive file just before the move; any not found there are left in the mailbox. - An archive .pst on a OneDrive-synced folder or a network drive is refused unless the user explicitly confirms (Microsoft does not support .pst files there; they get damaged). - If the organisation's Outlook settings do not allow .pst files, Outlook refuses and the clean-up stops with that message. - Mail reading pauses while a clean-up runs; if the mailbox is still being read after 10 minutes, nothing is moved (1.4). Undo moves emails back, and stays available for any email that could not come back. - Mail in Deleted Items is never offered and never moved by a clean-up (1.4). - The same clean-ups can be started from Series and from the user's own folders (1.4): the same review, confirmation, journal and Undo. A TrailTree folder only groups trails and emails in TrailTree; it is not a folder in the mailbox. * Put back (1.4; only after the user confirms; can be turned off by IT with Make space; on every plan, like Undo, so mail is never stuck after a trial or a licence ends - new clean-ups need Pro, and on Free Outlook is not asked for the mailbox size): moves emails of the user's own mailbox back into it - mail a clean-up moved goes back where it came from (as Undo); mail in Deleted Items that the user deleted in Outlook or webmail goes back to the folder it was last read in when that folder still exists (never created), otherwise to the Inbox (MailItem.Move, or EWS MoveItem). Never in a shared mailbox, another account or the Online Archive. Each email put back is written to the journal at once. * Through webmail (a PC without classic Outlook): "Move to Deleted Items" uses EWS MoveItem. "Archive" first saves the complete email (EWS MIME content) as an .eml file (for an email above the server's export size limit: its headers, text and each attachment fetched separately, and the copy must hold every attachment), re-reads it and checks its Message-ID matches, and only then removes the email with EWS DeleteItem (SoftDelete: it goes to the server's Recoverable Items, recoverable for the server's retention period). Undo moves it back, or uploads the saved .eml if it is no longer in Recoverable Items. OPENING ATTACHMENTS "Save a copy..." hands the file to the browser as a download (to the browser's download folder, or where the user chooses); blocked types are refused. Open: only when the user clicks Open. A copy is written to %TEMP%\TrailTree\open\\, marked read-only and with Mark-of-the-Web (Zone.Identifier ZoneId=3, so Office uses Protected View), and opened with the program Windows associates with the type. Outlook's Level-1 blocked types (.exe, .js, .vbs, .bat, .ps1, .lnk, .mdb, ...) are refused. Copies older than a day are deleted at the next start. COMPANY POLICY (optional, for IT) Group Policy / Intune (registry values under HKLM\SOFTWARE\Policies\TrailTree, set with the TrailTree.admx template in the IT folder) or a file, %ProgramData%\TrailTree\policy.json. Users cannot change either; a registry value wins over the file. TrailTree reads them at start and writes what it found to log.txt. From 1.3.2, rules that are there but cannot be read, or a wrong value, mean the strictest setting and a warning on the Home page, never fewer limits. The settings, explained in IT\IT-ADMIN-GUIDE.txt: disableAI no AI at all; nothing sent to any AI service disableAiSummaries, disableAiAsk, disableAiDocuments, disableAiDrafts, disableAiCatchUp, disableAiSeries one AI feature off each aiBlockKeywords emails and documents containing these words are never sent to the AI (nor a question that has one) aiBlockSensitivity personal | private | confidential: emails with this Outlook sensitivity or stricter are never sent (from 1.3.2, Private and Confidential are held back by default; the user can turn that off in Settings > AI unless this rule is set) aiBlockLabels Microsoft Purview label names: emails carrying one (or a sub-label of one) are never sent aiApiBaseUrl, aiModel the organisation's own Claude endpoint (e.g. Microsoft Foundry) and model/deployment name aiServiceUrl the organisation's own relay (https only) allowOwnAiKey users may use the organisation's own API key aiLogDays how long the record of AI requests is kept (365) disableCalendar the calendar is not read (no meeting briefs) disableMakeSpace TrailTree never moves or deletes mail disableDriveSearch archive files only under the user's profile disableOcr no OCR on pictures and scans webmailWindowsSignInOnly webmail only with the Windows sign-in; no password is ever saved Settings turned off are refused by the app itself, not only hidden on the page. Withheld emails and documents are left out before a request is built, and every request is checked once more for blocked words just before it leaves the PC. REMOVAL Microsoft Store version: Settings > Apps > TrailTree > Uninstall. On a PC that never had an earlier TrailTree, Windows removes the data folder with it. Otherwise, and for the older download: quit the app (menu > Quit), then delete TrailTree.exe (if any), %LOCALAPPDATA%\AgendaTree and %TEMP%\TrailTree.