Skip to content

Add Synchronoss / Verizon Cloud legal return parser (9 artifacts) - #358

Merged
abrignoni merged 1 commit into
mainfrom
synchronoss-lava
Jul 9, 2026
Merged

abrignoni merged 1 commit into
mainfrom
synchronoss-lava

Conversation

@abrignoni

Copy link
Copy Markdown
Owner

Summary

Lands the Synchronoss / Verizon Cloud legal return parser from PR #284 — original parser, artifact design, and all parsing logic by @OneSixForensics — rebased onto current main and updated to the house @artifact_processor conventions. All 9 artifacts are preserved: Messages (SMS/MMS), Calls, MMS Media Received, MMS Media Sent, MMS Folder Media (Unlinked), Contacts, DV Access Log Uploads, DV Access Log Sync Events, and VZMOBILE Device Backup.

The original was already close to modern (decorated with @artifact_processor, check_in_media for media, '' for empty media cells) but used the legacy 4-arg function signature and legacy metadata keys.

Per-convention changes

  • Metadata: mirrored to the current reference key set — creation_date keeps the author's original 2026-06-24, last_update_date set to 2026-07-09; removed legacy "function" and "version" keys (loader resolves by dict key = function name).
  • Context form: every function now takes a single context argument; files come from context.get_files_found(); per-row Source File columns and the returned source path go through context.get_relative_path() so no examiner-local paths leak into reports.
  • Dedupe: os.path.realpath dedupe on files_found in every artifact (previously only the DV log parser deduped).
  • Timestamps: datetime-typed columns now hold aware-UTC datetime objects via a tolerant _ts_utc helper (ISO-8601 with/without T, trailing Z or UTC, explicit offsets, bare epoch seconds/ms). Unparseable values pass through unchanged as text — never guessed.
  • Upload Date columns (MMS Unlinked, VZMOBILE): these are bare YYYY-MM-DD folder names with no time component, so they were changed from 'datetime' to plain text — typing them datetime would fabricate a midnight timestamp that shifts under LAVA timezone offsets.
  • Contacts created/deleted: now converted to aware UTC (handles ISO and epoch-ms forms) and typed 'datetime'. Note: if a return stores deleted as a boolean string it stays as plain text in that column (same pass-through behavior as other converted artifacts).
  • Phone numbers: bare single-number columns typed 'phonenumber' (Sender in messages/calls/MMS, Contacts Phone Number); Recipients lists left untyped per convention.
  • Lint: broad except Exception handlers narrowed to specific exception types (OSError, csv.Error, UnicodeError, ValueError); all open() calls specify encoding= (binary reads excepted).
  • report_icons.py edit dropped: artifact_icon in __artifacts_v2__ already takes precedence over the icon_mappings table in report.py, and all 9 icon names are valid feather icons — the +12-line mapping entry was redundant on current main.

Faithfulness notes

  • All parsing logic, field extraction, column meanings, SMIL-placeholder handling, media-linking rules, and the author's forensic annotations (quarantined-file link status, no fabricated message↔file attribution) are preserved verbatim.
  • No code writes to source/evidence files — all opens are read-only.
  • Path globs checked against main: no collisions (*/messages/2*.csv cannot match the Discord returns layouts at their depth, and the in-code YYYYMMDD.csv basename filter guards against pattern overreach).
  • Artifact display names are globally unique and contain no &.

Validation

  • ast.parse compiles; zero legacy references (ArtifactHtmlReport, media_to_html, timezone_offset, files_found[0], fromtimestamp).
  • Reserved-word audit: all 8 header sets (covering the 9 artifacts) pass sanitize_sql_name → CREATE TABLE in an in-memory sqlite3 db.
  • pylint --disable=C,R → 10.00/10.
  • PluginLoader: 325 plugins (316 baseline on main + 9); all 9 synchronoss artifacts load with __wrapped__ present.
  • Functional smoke test on synthetic fixtures for all 9 artifacts (daily message CSVs with BOM + UTC dates, MMS media incl. extensionless magic-byte file, contacts JSON with epoch-ms and ISO dates, DV access log with multi-IP field and checksum querystring, VZMOBILE tree): header/row alignment correct, all datetime cells aware-UTC, dedupe verified, media registered via raw seeker paths.

Supersedes #284 — original parser by @OneSixForensics.

🤖 Generated with Claude Code

Original parser, artifact design, and all parsing logic by
@OneSixForensics (PR #284). This commit lands that work updated to the
current @artifact_processor conventions on main:

- __artifacts_v2__ metadata mirrored to the current reference pattern:
  creation_date (author's original 2026-06-24) + last_update_date,
  removed legacy "function" and "version" keys
- Functions take a single `context` argument; files_found, relative
  paths, and report folder come from the Context API
- Per-row Source File columns and returned source paths use
  context.get_relative_path()
- os.path.realpath dedupe on files_found in every artifact
- Datetime columns converted to aware-UTC datetime objects (_ts_utc:
  ISO-8601 / ' UTC' suffix / epoch s+ms; unparseable values pass
  through as text, never guessed)
- Upload Date columns (bare YYYY-MM-DD folder names, no time component)
  kept as plain text instead of 'datetime' to avoid fabricating a
  midnight timestamp
- Contacts created/deleted now converted to aware UTC and typed
  'datetime'; bare phone-number columns typed 'phonenumber'
- Broad exception handlers narrowed to specific exception types
- Dropped the scripts/report_icons.py edit: artifact_icon metadata
  already takes precedence in report.py and all icon names are valid
  feather icons, so the mapping table entry is redundant

Co-Authored-By: OneSixForensics <[email protected]>
@abrignoni
abrignoni merged commit 3811c85 into main Jul 9, 2026
@abrignoni
abrignoni deleted the synchronoss-lava branch July 9, 2026 20:31
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.

1 participant