feat: Samsung Secure Folder HistoryLog artifact#920
Merged
Conversation
c3d88d4 to
96001a1
Compare
Ports the forensic core of 4n6Wizard's Samsung Secure Folder History Log Parser (https://github.com/4n6Wizard/Samsung-HistoryLog-Parser) into a LAVA artifact. Parses the HistoryLog DB (com.samsung.knox.securefolder, user 150) and reconstructs folder move-in/move-out events between the personal profile and the Secure Folder: direction, source app, requested vs. moved counts, and source/destination paths (derived from the transferred path when absent). Request/result pairing and path-derivation logic verified to reproduce the upstream Example_Report.csv byte-for-byte against the project's fixture DB. Timestamps are device-local and reported as recorded (no UTC conversion). Co-Authored-By: 4n6Wizard <296955452+4n6Wizard@users.noreply.github.com>
96001a1 to
7f93bd6
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a new LAVA artifact, Samsung Secure Folder - History Log (category Knox Secure Folder), that parses the Samsung Secure Folder
HistoryLogdatabase (com.samsung.knox.securefolder, Android user 150) and reconstructs folder move-in/move-out activity between the personal profile (user 0) and the Secure Folder.This is a port of the forensic core of 4n6Wizard's Samsung Secure Folder History Log Parser. Full credit to 4n6Wizard for the original tool and parsing research.
For each event the artifact decodes:
[0 -> 150](move-in) /[150 -> 0](move-out)Request and result records are paired into events using the upstream scoring logic; unpaired requests/results and non-conforming rows are reported with warnings rather than dropped.
What was ported vs. dropped
Ported: the message-decoding regexes, the request↔result pairing scorer, and source-path derivation.
Dropped (ALEAPP provides these): the standalone PyQt GUI, CSV/HTML writers, WAL/SHM consolidation, and the heuristic table/column auto-detection — the schema (
HistoryLog(id, timestamp, tag, message)) is known, so the artifact queries it directly and gates on theHistoryLogtable existing in each candidate DB.Notes for review
*/com.samsung.knox.securefolder/databases/*, gated on theHistoryLogtable actually existing (won't false-fire). Worth confirming the on-disk DB filename against a real Secure Folder extraction.Testing
pylint scripts/artifacts/samsungSecureFolderHistoryLog.py --disable=C,R→ 10.00/10.build_fixture_db.pyfixture → output reproduces the shippedExample_Report.csvbyte-for-byte (all 8 events: paired, no-Total result, multi-path, both unpaired types, and the blank-timestamp sequence-paired case).