The artifact info block is defined as a dictionary named __artifacts_v2__ at the top of the artifact script. It contains key information about the artifact. Here's the structure:
__artifacts_v2__ = {
"function_name": { # This should match exactly the function name in the script
"name": "Human-readable Artifact Name",
"description": "Brief description of what the artifact does",
"author": "@AuthorUsername",
"creation_date": "2023-05-24",
"last_update_date": "2024-12-17",
"requirements": "none",
"category": "Artifact Category",
"notes": "",
"paths": ('Path/to/artifact/files',),
"output_types": "all" # or "standard" or ["html", "tsv", "timeline", "kml", "lava"],
"artifact_icon": "Tabler-icon-name",
"sample_data": {
"sample_name": "Short note about where this artifact has been tested"
}
}
}Example:
"sample_data": {
"josh_ios_15": "23 rows; ZPEERINFO contains peer OS/model/name values",
"mvs_2026": "6 rows; ZPEERINFO is empty"
}The paths tuple uses glob-like wildcards, but matching is performed by Python's fnmatch module in scripts/search_files.py — not by glob or pathlib. Keep the following in mind when writing patterns:
-
Not strict glob semantics. In true glob (
pathlib),*matches a single path segment and**matches zero or more directories recursively. Infnmatch(Python 3.11+),*and**are largely interchangeable — both can span/characters. Patterns like*/mobile/...and**/mobile/...therefore behave the same in practice. -
Patterns are permissive. A single
*in a path pattern may match more than one directory level. Do not assume*is limited to one path component. -
Case sensitivity depends on platform. For filesystem, tar, zip and raw image inputs, paths are normalized with
os.path.normcasebefore matching. On Windows this makes matching case-insensitive; on macOS and Linux it is case-sensitive. iTunes backups follow the same rule:FileSeekerItunesmatches withfnmatch.filter, which appliesos.path.normcaseto the pattern and, wheneveros.pathis notposixpath(that is, on Windows), to every path as well. -
Leading
**/is common. Patterns such as**/Safari/History.dbmatch the suffix of a full extraction path. This works because the seeker prepends a syntheticroot/prefix to absolute paths before matching. iTunes backups are the exception:FileSeekerItunesadds no prefix, and the paths it rebuilds from its domain table all start atprivate/, so a pattern that starts*/private/does not match the same file in a backup. -
Never write two patterns that differ only in case. Use one bracket class instead:
"paths": ('*/Library/Preferences/com.apple.[Mm]obileSMS.plist',) # correct "paths": ('.../com.apple.MobileSMS.plist', '.../com.apple.mobileSMS.plist') # wrong
Because
normcasefolds case on Windows, two case-variant patterns are one pattern there. The entry point extendsfiles_foundonce per declared pattern with no dedup, and an artifact that callsseeker.search()once per spelling gets the same first match back from both calls, so one file is reported twice. Worse, the second file the duplicate pattern was added for is never read, so a value present on the device is reported as absent. That shipped inmessageRetentionuntil PR #1946: both spellings ofcom.apple.MobileSMS.plistexist as different files on 6 of 20 tested images, and on Windows the artifact read the wrong one twice and reported "No value" for a device that had a retention setting. A bracket class matches every spelling under bothnormcaseregimes and matches each file exactly once.admin/scripts/check_artifact_paths.pyenforces this in CI. It also fails on the same pattern repeated verbatim in one tuple, which double-counts on every platform.
The output_types field accepts a list of strings or specific keywords:
["html", "tsv", "lava", ...]: A list containing any combination of supported output types."all": Generates all available output types."standard": GeneratesHTML,TSV,LAVA, andtimelineoutput.
"html": Generates HTML output. A table above 50,000 rows (the--html_row_limitdefault) is left off its page, which instead gives the row count and says where the complete rows are: the LAVA database and the TSV export."tsv": Generates TSV (Tab-Separated Values) output."timeline": Generates timeline output."lava": Generates output for LAVA (a specific data processing format)."kml": Generates KML (Keyhole Markup Language) output for Google Earth."none": No report output generated (useful for modules only collecting device info).
This section defines additional view types that artifacts can declare configurations for. Every artifact gets a basic table view. At this time, the table view does not have any configuration but that may be added in the future. These are alternate views that examiners can use to evaluate the data in a different format.
The chat view is designed for artifacts containing conversation-like data, such as messages or chat logs. It presents data in a format similar to messaging applications.
NOTE: Previous version of this confifuration used "chat" and "thread" in these configs but they have been deprecated. These will still work for now, but those keywords will be removed from LAVA in a few versions once modules have been updated.
__artifacts_v2__ = {
"get_artifactname": {
# Other parameters as shown above,
"data_views": {
"table": {}, # optional
"conversation": {
"conversationDiscriminatorColumn": "Chat ID",
"conversationLabelColumn": "Chat Contact ID",
"textColumn": "Message",
"senderColumn": "Chat Contact ID",
"directionColumn": "From Me",
"directionSentValue": 1,
"timeColumn": "Message Timestamp",
"sentMessageLabelColumn": "Account"
}
}
}conversationDiscriminatorColumn: Identifies the column containing the unique identifier for each conversation.conversationLabelColumn: (Optional) Specifies the column used to label or name each conversation (e.g., contact name, group chat name). If omitted the conversation will be named by theconversationDiscriminatorColumntextColumn: Indicates the column containing the main message text.senderColumn: Identifies the column containing the sender's information.directionColumn: Specifies the column indicating whether a message was sent or received.directionSentValue: Defines the value in thedirectionColumnthat indicates a sent message.timeColumn: Indicates the column containing the timestamp for each message.sentMessageLabelColumn: (Optional) Specifies the column used to label sent messages (e.g., the account used to send the message). This will overridesenderColumnfor any messages determined to be sent.sentMessageStaticLabel: (Optional) Specificies a static sender label for sent messages if there is no column containing a local sender id. This will overridesentMessageLabelColumnorsenderColumnfor any messages determined to be sent.
This info block provides essential metadata about the artifact and is used by the artifact processor to handle the artifact correctly. The plugin loader will attach this information to the corresponding function, making it accessible via the function's globals.
Note: The key in the __artifacts_v2__ dictionary must exactly match the name of the function that processes the artifact. This ensures that the artifact processor can correctly associate the artifact information with the processing function.
The artifact info block is defined as a dictionary named __artifacts_v3__ at the top of the artifact script. It contains key information about the artifact. Here's the updated structure:
__artifacts_v3__ = {
"name": "Human-readable name of the module",
"description": "Brief description of what the module does",
"author": "@AuthorUsername",
"creation_date": "YYYY-MM-DD",
"last_updated_date": "YYYY-MM-DD",
"requirements": "Any specific requirements, or 'none'",
"performance_profile": "normal", # Options: "fast", "normal", "slow"
"app_name": "Name of the app this module parses data from",
"app_id": "Bundle ID or domain associated with the app",
"category": "Category of the artifact",
"category_icon": "Tabler-icon-name",
"notes": "Additional notes, if any",
"module_paths": ('Path/to/source/files',),
"artifacts": {
"artifact_function_name": {
"name": "Specific Artifact Display Name",
"paths": ('Path/to/source/files',),
"artifact_icon": "Tabler-icon-name",
"artifact_notes": "Notes to be displayed at the top of the report",
"artifact_warning": "Warning message to be displayed prominently"
},
# Additional artifacts can be added here
}
}Key changes and additions:
name: The overall display name of the moduleapp_name: The name of the application this module parses data fromapp_id: The bundle ID or domain developers have used when creating the app and submitting to app storescategory_icon: An icon (using Tabler icons names) for the categorymodule_paths: A tuple containing one or more file paths (with wildcards if needed) where the artifact data can be found. This serves as a default for all artifacts within the module.performance_profile: Hint about the module's processing time. Options:"fast","normal","slow". Defaults to"normal"if omitted. Used for UI feedback.artifacts: A dictionary of artifacts, where each key is the artifact name and the value is a dictionary containing details about that specific artifact:paths: (Optional) A tuple of paths specific to this artifact. If provided, it overrides themodule_pathsfor this artifact.artifact_icon: An icon specific to this artifact (using Tabler icons names)artifact_notes: Notes to be displayed at the top of the artifact's reportartifact_warning: A warning message to be displayed prominently for this artifact
Note on paths:
At least one of module_paths or paths must be provided. The module_paths serves as a default search path for all artifacts within the module. Individual artifacts can override this by specifying their own paths. This allows for flexibility in defining search paths at both the module and artifact levels.
The plugin loader and artifact processing code will need to be updated to handle this new structure, particularly in how it determines the search paths for each artifact and generates reports.
