Expand description
Discord desktop (Electron/Chromium) artifact reader.
Discord is an Electron app: its account/session state lives in Chromium
Local Storage (a per-profile LevelDB at Local Storage/leveldb/), not in a
chat database — Discord keeps no local message DB (messages are fetched
from the server and only cached). This crate sits on top of the Wave-2
chromium_storage_localstorage reader and interprets the Discord-specific
records inside it:
- the auth
tokenrecord — a session credential, surfaced as atoken::TokenRecordwhose value is atoken::SensitiveTokenthat redacts by default (presence + length + location, never the secret inDebug/Display/serde output); - account identity — the
MultiAccountStore/user_id_cache/email_cacherecords, parsed intoaccount::Account; - recent channels / guilds — the
SelectedGuildStore/RecentVoiceChannelStorerecords, parsed intochannel::RecentChannel.
The Discord store paths and the Chromium Local Storage key/encoding constants
come from the fleet KNOWLEDGE leaf forensicnomicon_core::messenger_desktop
/ forensicnomicon_core::chromium_local_storage — this crate re-uses them
and never re-hardcodes a path or a marker byte.
§Sources
- AhnLab ASEC, Distribution of Infostealer Made with Electron — the Discord
Local Storage\leveldbtoken store and thediscordptb/discordcanaryvariants: https://asec.ahnlab.com/en/24512/ - forensafe, Investigating Discord: https://www.forensafe.com/blogs/discord.html
- Discord snowflake ID epoch (2015-01-01): https://discord.com/developers/docs/reference#snowflakes
Re-exports§
pub use account::Account;pub use channel::RecentChannel;pub use error::Error;pub use token::TokenRecord;
Modules§
- account
- Discord account identity from Local Storage.
- channel
- Discord recent channels / guilds from Local Storage.
- error
- Error type for the Discord desktop reader.
- timeline
- Timeline reconstruction from decoded Discord artifacts.
- token
- The Discord auth
tokenLocal Storage record — a session credential.
Structs§
- Discord
Artifacts - Everything the reader recovered from a Discord Local Storage store.
- Origin
Meta - A per-origin Local Storage metadata record (
META:) — the store’s declared size and its last-modified time.
Functions§
- decode_
local_ storage - Interpret already-decoded Local Storage records into typed Discord artifacts.
- extract_
origin_ meta - Extract per-origin
META:metadata for Discord origins. - is_
discord_ origin - Does this Local Storage origin belong to Discord?
- read_
profile - Read and interpret a Discord desktop profile directory (the Electron
userDatadir, e.g.~/Library/Application Support/discord).