Skip to content

Add TeleGuard Windows messages, contacts and media artifacts - #676

Merged
abrignoni merged 4 commits into
abrignoni:mainfrom
Forensik-IT-GmbH:feat/teleguard-windows
Oct 28, 2026
Merged

abrignoni merged 4 commits into
abrignoni:mainfrom
Forensik-IT-GmbH:feat/teleguard-windows

Conversation

@ForensikITGmbH

Copy link
Copy Markdown
Contributor

What this changes

Adds TeleGuard Windows messages, chat summaries, contacts, attachment references and local media inventory. Conversations and media resolution remain separate per source database, with original content, metadata and stored identifiers preserved.

For a new or changed artifact

  • Ran the revised tool against a real extraction and confirmed the row counts.
  • Ran check_artifact_output.py on the synthetic reports and fixed or documented every finding.
  • Checked single- and dual-profile synthetic stores; every artifact produced exactly twice the rows.
  • notes, description and sample_data reflect the supported layout and verified behavior.

Anything reviewers should know

Includes synthetic fixtures, full-row baselines and 33 focused tests covering parser behavior and HTML, TSV, LAVA and timeline output. Undocumented state values are reported as stored. Decryption, deleted-record recovery and parsing of the separate draft database are outside this implementation.

@abrignoni

Copy link
Copy Markdown
Owner

Thanks for this, @ForensikITGmbH. The code is clean, the tests pass and the two-profile handling is done right. Three things before we can merge:

  1. Real data. Everything in the PR is synthetic, and the Chat Overview notes say the code still needs confirmation against a real source. Can you run it on a real TeleGuard Windows install and tell us the real path to the data folder and the row counts you got? A public image or a test account you set up is perfect. If you can't share the data, the path, the app version and the counts are enough to fill in sample_data.
  2. Remove teleguard.dlprofile from the repo root. It's a handy local profile, but it shouldn't ship.
  3. Shorten the notes. Examiners read them in the report. Please take out the process lines, like "supplied from local examination" and "needs local confirmation before evidential use", and the long lists of columns that may be blank. Keep what someone needs to read the data correctly: units, how direction is decided, and what the code doesn't parse.

Hope this helps. Happy to look again once it's updated.

@ForensikITGmbH

Copy link
Copy Markdown
Contributor Author

@abrignoni Updated with real data validation for TeleGuard Windows 4.0.6.2 (%APPDATA%\TeleGuard); the verified row counts are now in sample_data.
The root profile is removed, the notes are shortened, and check_artifact_output.py --strict passes for all five artifacts on the real extraction. Thanks for taking another look!

@abrignoni

Copy link
Copy Markdown
Owner

Thanks for the update, @ForensikITGmbH. The real-data run helps a lot, and the profile and notes changes look good.

One question before we merge. On your 4.0.6.2 install every media reference came back Missing, and Media Files found one file. That suggests the app keeps received attachments outside the folder that holds teleguard_database.db. Can you check where it stores them (another AppData folder, Documents, a cache folder)? If you can tell us the path, the media artifacts can look there too.

On our side we'll empty sample_data, because teleguard_windows_private_01 isn't in our corpus registry. The notes will say the counts come from a private sample. No need for you to change that.

Hope this helps.

@abrignoni

Copy link
Copy Markdown
Owner

Thanks, @ForensikITGmbH. This is much better. The notes read well now, and real counts from 4.0.6.2 are exactly what was missing.

Two things left:

  1. Media never matched on the real install. Your notes say every one of the 1,394 references came back Missing, and Media Files found 1 file. So on real data no message shows its picture, and in DLEAPP a message row should carry its media. The resolver only looks for the stored name in the database's folder. Each reference also stores cacheName and thumbnailCacheName. Where does 4.0.6.2 keep downloaded attachments, and do those cache names match the files there? If the files sit outside %APPDATA%\TeleGuard\, the path list needs that folder too. If they were never downloaded on that install, just say so and we'll note it.

  2. The sample_data key. Keys there name test images we hold, and teleguard_windows_private_01 isn't one of ours, so our registry check flags it. Please set sample_data to {} and put the counts in the notes instead, as a sentence like "Checked on a TeleGuard Windows 4.0.6.2 install: 64,822 messages, 198 chats, 200 contacts, 1,394 media references."

Once media links on your install, this is ready to go. Hope this helps.

@ForensikITGmbH

Copy link
Copy Markdown
Contributor Author

@abrignoni Thanks for the follow-up. I checked the private TeleGuard Windows 4.0.6.2 case and confirmed two media locations outside the database folder, both belonging to the same Windows user profile:

  • %LOCALAPPDATA%\Temp\TeleGuard\images\ — 96 files, including the thumb and avatars subfolders.
  • %USERPROFILE%\Downloads\TeleGuard\ — 27 files.

The previous lookup covered the database directory only, which explains why it found just one local media file.

An independent filename comparison of all 1,394 media references found:

  • 13 references with a single matching file: 7 in Downloads and 6 in the Temp images tree.
  • 24 ambiguous references, each matching same-named files in both images and images\thumb.
  • 1,357 references without a matching file in these locations.

I have extended the module to search these locations within the owning Windows profile and to check the stored name, cacheName and thumbnailCacheName fields. Ambiguous candidates remain explicitly ambiguous. The updated module is working on my offline case.

I also investigated the missing media. The containing messages have isContentExpired=true for 407 media references across 347 messages. Of those references, 405 have no matching file, while two still have a matching file. For the other 987 references, the key is absent.

The module now reports this stored message-level flag and whether the key is present, separately from file availability. These findings do not establish that the sender withdrew the attachments, and the reason for the remaining missing files cannot be determined from this flag alone.

The filename comparison included name, cacheName and thumbnailCacheName. In this sample, the cache fields did not produce additional matches beyond the names already covered. Uniquely resolved files are linked directly from the message rows.

I have also set sample_data to {} for all five artifacts and moved the verified private-sample counts into the Chat Overview notes.

@abrignoni
abrignoni merged commit 8644742 into abrignoni:main Oct 28, 2026
26 checks passed
@abrignoni

Copy link
Copy Markdown
Owner

Thanks @ForensikITGmbH, merged.

Finding the two media folders and checking the cache names was exactly what this needed. Keeping ambiguous matches ambiguous and reporting the expiry flag as stored, without reading more into it, is the right call. Great work on this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants