Command-line reference

arcsentry evidence

Add evidence to a case, and read or change what a case knows about it.

Subcommands

Add evidence to a case, and read or change what a case knows about it.

Every evidence item is addressed by its own UUID, printed when it is added and listed by evidence list. The evidence import-* commands differ in the source format they read, and each records that format on the evidence. Adding evidence parses nothing; analyze is the one-step path that adds and parses together.

arcsentry evidence <subcommand>

Examples

Add a Velociraptor ZIP to a case as new evidence

arcsentry evidence import-velociraptor --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 --archive /evidence/ws203.zip

List the evidence in a case with its UUIDs and status

arcsentry evidence list --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 --format table

Read the record of one evidence item

arcsentry evidence info --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 --evidence-id 8c3d1e77-9f42-4a6b-b810-2e5d47c9a013

Give evidence a meaningful name in place of the one it was added with

arcsentry evidence rename --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 --evidence-id 8c3d1e77-9f42-4a6b-b810-2e5d47c9a013 --name "Reception laptop"

Subcommand reference

arcsentry evidence add

Add evidence from an already-extracted directory.

For an archive that has not been extracted, use the matching evidence import-* command instead: it reads the archive directly. Nothing under --source-path is read here. The directory is recorded on the evidence as its source path, and its format is recorded as Folder. Omit --name and the evidence is named after the last segment of --source-path; its identity is the UUID this command prints either way.

arcsentry evidence add --case <case> --source-path <source-path> [options]
OptionDescription
-c, --case <case>required Case UUID the evidence is added to.
-T, --source-path <source-path>required Directory holding the extracted tree.
-n, --name <name> Name for the evidence. Named after the last segment of --source-path when omitted.
-O, --os <os> Platform to record on the evidence: windows or linux.
-f, --format <format> Output format: json (default), jsonl, csv, or table. Default: "json".

Examples

Add evidence from a tree that was extracted by hand

arcsentry evidence add --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 --source-path /evidence/extracted/ws203

Add evidence and name it explicitly rather than taking the name from the tree

arcsentry evidence add --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 --source-path /evidence/extracted/ws203 --name WS203

Add evidence and record its platform explicitly

arcsentry evidence add --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 --source-path /evidence/extracted/phxdsim001 --os linux

Add evidence and read the resulting record as a table

arcsentry evidence add --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 --source-path /evidence/extracted/ws203 --format table

arcsentry evidence import-collector

Add an Arcsentry Collector .arcx archive to a case as new evidence.

An .arcx written by arcsentry-collect is AES-256 encrypted unless it was made with --no-encryption; pass its password with --password. Only a path ending in .arcx is accepted, and the file's ARCX header is checked before the evidence is added, so a renamed or truncated archive is refused up front. Every other source format has its own evidence import-* command; this one never falls back to them.

arcsentry evidence import-collector --case <case> --archive <archive> [options]
OptionDescription
-c, --case <case>required Case UUID the evidence is added to.
-A, --archive <archive>required Path to the .arcx archive.
-f, --format <format> Output format: json (default), jsonl, csv, or table. Default: "json".
-w, --password <password> Password for an encrypted .arcx.

Examples

Add an encrypted archive written by the collector

arcsentry evidence import-collector --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 --archive /evidence/ws203.arcx --password "$COLLECTION_PW"

Add an archive that was written unencrypted

arcsentry evidence import-collector --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 --archive /evidence/ws203.arcx

Add an archive and read the new evidence item's record as a table

arcsentry evidence import-collector --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 --archive /evidence/ws203.arcx --format table

Add evidence using the short forms of every flag

arcsentry evidence import-collector -c 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 -A /evidence/ws203.arcx -f json

arcsentry evidence import-velociraptor

Add one Velociraptor ZIP to a case as new evidence.

The record of the new evidence is built from what the ZIP itself carries: client_info.json supplies the name and platform of the system it describes, collection_context.json the file and byte counts. A ZIP without client_info.json is still added, and so is an encrypted one. This command takes no password, so an encrypted ZIP yields no metadata and its evidence is created with no platform, named from the archive file name; analyze --password adds and parses an encrypted ZIP instead, and evidence rename corrects a name. The ZIP is registered, not parsed and not copied: its path becomes the original source of the evidence, which analysis reanalyze --evidence <uuid> reads when the parsers are run over it. A path that is not there and a path that cannot be read are refused as different errors, and neither adds evidence.

arcsentry evidence import-velociraptor --case <case> --archive <archive> [options]
OptionDescription
-c, --case <case>required Case UUID the evidence is added to.
-A, --archive <archive>required Path to the Velociraptor ZIP.
-f, --format <format> Output format: json (default), jsonl, csv, or table. Default: "json".

Examples

Add a Velociraptor ZIP as new evidence

arcsentry evidence import-velociraptor --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 --archive /evidence/ws203.zip

Add a ZIP from an external evidence volume

arcsentry evidence import-velociraptor --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 --archive /media/evidence/velociraptor/laptop-04.zip

Add a ZIP and read the new evidence item's record as a table

arcsentry evidence import-velociraptor --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 --archive /evidence/ws203.zip --format table

Add every ZIP in a directory, one evidence item per archive

for f in /evidence/velociraptor/*.zip; do arcsentry evidence import-velociraptor --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 --archive "$f"; done

arcsentry evidence import-uac

Add a UAC Linux archive to a case as new evidence.

The name and platform are read from the archive's own uac.log, or from its live_response metadata when the log carries neither; the archive is read where it lies and is neither extracted nor copied. An archive that records neither is still added, named from the archive file name, and evidence rename sets the name you want. Adding does not parse: the archive path becomes the original source of the evidence, and analysis reanalyze --evidence <uuid> runs the parsers over it. A path that is not there and a path that cannot be read are refused as different errors, and neither adds evidence.

arcsentry evidence import-uac --case <case> --archive <archive> [options]
OptionDescription
-c, --case <case>required Case UUID the evidence is added to.
-A, --archive <archive>required Path to the UAC .tar or .tar.gz archive.
-f, --format <format> Output format: json (default), jsonl, csv, or table. Default: "json".

Examples

Add a UAC archive as new evidence

arcsentry evidence import-uac --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 --archive /evidence/uac-phxdsim001.tar.gz

Add an uncompressed UAC archive

arcsentry evidence import-uac --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 --archive /evidence/uac-sunlras003.tar

Add a UAC archive and read the new evidence item's record as a table

arcsentry evidence import-uac --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 --archive /evidence/uac-phxdsim001.tar.gz --format table

Add evidence using the short forms of every flag

arcsentry evidence import-uac -c 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 -A /evidence/uac-phxdsim001.tar.gz -f json

arcsentry evidence import-kape

Add a KAPE archive to a case as new evidence.

A KAPE archive carries no system name and no platform, so pass --name: without it the evidence is named from the archive file name, and evidence rename is the correction afterwards. A .zip archive is registered without reading its contents, so it carries no collection time; a directory reads the collection time from the *_ConsoleLog.txt KAPE writes beside it. The ConsoleLog's file count is read but never carried into the provenance record of the evidence. The archive is registered, not parsed: its path becomes the original source of the evidence, which analysis reanalyze --evidence <uuid> reads when the parsers are run. To record the platform when the evidence is added instead, use analyze --source kape --os windows, which adds and parses in one step.

arcsentry evidence import-kape --case <case> --archive <archive> [options]
OptionDescription
-c, --case <case>required Case UUID the evidence is added to.
-A, --archive <archive>required Path to the KAPE archive.
-f, --format <format> Output format: json (default), jsonl, csv, or table. Default: "json".
-n, --name <name> Name for the evidence. Named after the archive file name when omitted.

Examples

Add a KAPE archive as new evidence

arcsentry evidence import-kape --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 --archive /evidence/kape-ws203.zip

Add a KAPE archive whose internal name is not the machine name

arcsentry evidence import-kape --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 --archive /evidence/kape-collection-7.zip --name WS203

Add a KAPE VHDX container written by the KAPE module

arcsentry evidence import-kape --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 --archive /evidence/kape-ws203.vhdx --name WS203

Add a KAPE archive and read the new evidence item's record as a table

arcsentry evidence import-kape --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 --archive /evidence/kape-ws203.zip --format table

arcsentry evidence list

List the evidence in a case with its UUIDs, names, platforms, and status.

This is the whole list, not a page: all the evidence in the case except removed items, each with the UUID that every evidence command takes. The status column is the analysis status of each evidence item, so evidence that has been added but not yet parsed and a run that failed are both visible here, and failed evidence carries the reason it failed alongside. Names are display names and are not identity. Two evidence items may read alike, so route later commands by the id field, and use evidence info to print one of these records on its own. A status of interrupted means Arcsentry stopped while the evidence was being analyzed and no Arcsentry process is running it now; the desktop application resumes it once when the case is opened there, and analysis reanalyze runs it again from here.

arcsentry evidence list --case <case> [options]
OptionDescription
-c, --case <case>required Case UUID.
-f, --format <format> Output format: json (default), jsonl, csv, or table. Default: "json".

Examples

List a case's evidence as JSON

arcsentry evidence list --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2

List them as a table for reading in a terminal

arcsentry evidence list --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 --format table

Pull out the evidence whose analysis stopped with Arcsentry before it finished

arcsentry evidence list --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 --format json | jq -r '.[] | select(.status == "interrupted") | .id'

List them using the short forms of both flags

arcsentry evidence list -c 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 -f table

arcsentry evidence info

Print the record of one evidence item: identity, platform, tags, timestamps, and analysis status.

This is the same record evidence list prints, selected out of the case's evidence by UUID; a UUID that is not one of them is refused rather than answered with an empty record. The status is the analysis status of the evidence, so evidence that was added but never parsed reads pending, evidence whose run stopped with Arcsentry before it finished reads interrupted while no Arcsentry process is running it, and on failed evidence, failure_reason carries the reason and evidence processing-log holds the per-phase detail behind it. The original source is the one the evidence was added from, and analysis reanalyze needs that path to still be readable.

arcsentry evidence info --case <case> --evidence-id <evidence-id> [options]
OptionDescription
-c, --case <case>required Case UUID.
-H, --evidence-id <evidence-id>required Evidence UUID.
-f, --format <format> Output format: json (default), jsonl, csv, or table. Default: "json".

Examples

Print the record of one evidence item as JSON

arcsentry evidence info --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 --evidence-id 8c3d1e77-9f42-4a6b-b810-2e5d47c9a013

Print the same record as a table

arcsentry evidence info --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 --evidence-id 8c3d1e77-9f42-4a6b-b810-2e5d47c9a013 --format table

Print it using the short forms of every flag

arcsentry evidence info -c 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 -H 8c3d1e77-9f42-4a6b-b810-2e5d47c9a013 -f json

Find the evidence UUID first when you only know the name

arcsentry evidence list --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 --format table

arcsentry evidence provenance

Print where evidence came from: its format, the source path, the collecting tool's version, the declared targets, the collection time the source recorded, and the log names it acquired.

This record is written when the evidence is added and describes how it was acquired, not what parsing made of it: its format, the path it was added from, the acquiring tool's version, the targets the source declared, and the collection time the source itself recorded. That collection time is absent when the source carries none. The time the evidence was added is never put in its place; evidence info prints it as created_at. The source path is what was recorded when the evidence was added and is not checked again here, and analysis reanalyze is the command that fails when the original source is no longer on disk.

arcsentry evidence provenance --case <case> --evidence-id <evidence-id> [options]
OptionDescription
-c, --case <case>required Case UUID.
-H, --evidence-id <evidence-id>required Evidence UUID.
-f, --format <format> Output format: json (default), jsonl, csv, or table. Default: "json".

Examples

Print the provenance record of one evidence item as JSON

arcsentry evidence provenance --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 --evidence-id 8c3d1e77-9f42-4a6b-b810-2e5d47c9a013

Print it as a table for a report appendix

arcsentry evidence provenance --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 --evidence-id 8c3d1e77-9f42-4a6b-b810-2e5d47c9a013 --format table

Print it as CSV for a spreadsheet of evidence sources

arcsentry evidence provenance --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 --evidence-id 8c3d1e77-9f42-4a6b-b810-2e5d47c9a013 --format csv

Print it using the short forms of every flag

arcsentry evidence provenance -c 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 -H 8c3d1e77-9f42-4a6b-b810-2e5d47c9a013 -f json

arcsentry evidence processing-log

Print what happened while evidence was analyzed, including the reason a run failed.

Each entry is what the analysis recorded as it ran, with a timestamp, level, phase and message, and together they are the detail behind evidence whose status is failed. Every row names the task_id of the run it belongs to, which is what --task-id takes, and with no --task-id you get every run on record. Paging is stateless: --limit is the page size, --cursor continues after the last entry, and --format json prints an envelope with items, total, has_more and next_cursor. Evidence that has never been analyzed has no entries, which means nothing was recorded rather than that the log could not be read. When the log of the evidence cannot be read at all, the command fails and says so.

arcsentry evidence processing-log --case <case> --evidence-id <evidence-id> [options]
OptionDescription
-c, --case <case>required Case UUID.
-H, --evidence-id <evidence-id>required Evidence UUID.
-k, --task-id <task-id> Show only the entries for one analysis task rather than every run of the evidence.
-l, --limit <limit> Entries per page. Defaults to 50. With --format jsonl or csv every page is printed, this many entries at a time. Default: "50".
-C, --cursor <cursor> Continue after the last entry of a page: pass the next_cursor that page printed, with the same other flags.
-f, --format <format> Output format: json (default), jsonl, csv, or table. Default: "json".

Examples

Read everything recorded while one evidence item was analyzed

arcsentry evidence processing-log --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 --evidence-id 8c3d1e77-9f42-4a6b-b810-2e5d47c9a013

Read the log as a table to see why a run ended early

arcsentry evidence processing-log --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 --evidence-id 8c3d1e77-9f42-4a6b-b810-2e5d47c9a013 --format table

Read only one analysis run's entries

arcsentry evidence processing-log --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 --evidence-id 8c3d1e77-9f42-4a6b-b810-2e5d47c9a013 --task-id 7f2b91c4-08de-4a35-91cb-6d0f4e82a731

Print every entry the evidence has on record, one JSON object per line

arcsentry evidence processing-log --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 --evidence-id 8c3d1e77-9f42-4a6b-b810-2e5d47c9a013 --format jsonl

arcsentry evidence export

Write the records of analyzed evidence back out as parser-shaped JSONL, one file per processor.

Each processor that completed for the evidence becomes one JSONL file named after the processor under --output, and its records carry the same envelope arcsentry parse writes, so an exported file can be added again as evidence. Verdicts, tags, notes and the other annotations are not part of the output, and the file holds no internal bookkeeping values. Rows are ordered by timestamp with undated rows last, and every row the case holds for the evidence is written; there is no row cap. A file that already exists is replaced, unless --no-overwrite makes that a refusal; Ctrl-C stops the export, and a stopped export leaves none of its files behind and an earlier export in the folder as it was.

arcsentry evidence export --case <case> --evidence-id <evidence-id> --output <output> [options]
OptionDescription
-c, --case <case>required Case UUID.
-H, --evidence-id <evidence-id>required Evidence UUID.
-o, --output <output>required Directory the per-processor JSONL files are written into.
-n, --no-overwrite Refuse to replace files that already exist in --output.
-f, --format <format> Output format: json (default), jsonl, csv, or table. Default: "json".

Examples

Write every completed processor's records into one JSONL file each

arcsentry evidence export --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 --evidence-id 8c3d1e77-9f42-4a6b-b810-2e5d47c9a013 --output /evidence/ws203-export

Refuse to replace files a previous run already wrote

arcsentry evidence export --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 --evidence-id 8c3d1e77-9f42-4a6b-b810-2e5d47c9a013 --output /evidence/ws203-export --no-overwrite

Write the files and read the result as a table

arcsentry evidence export -c 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 -H 8c3d1e77-9f42-4a6b-b810-2e5d47c9a013 -o /evidence/ws203-export -f table

Find the evidence UUID first when you only know the name

arcsentry evidence list --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 --format table

arcsentry evidence rename

Change the display name of evidence. Its UUID and records are untouched.

This changes the display name only. The evidence UUID does not change, so the queries, annotations, verdicts and graph layers that reference the evidence are all left alone, and the rename is recorded in the case log with the previous name. Reanalyzing the evidence later will not overwrite it either: the name its records carry lands as a tag on the evidence rather than over the name you set.

arcsentry evidence rename --case <case> --evidence-id <evidence-id> --name <name> [options]
OptionDescription
-c, --case <case>required Case UUID.
-H, --evidence-id <evidence-id>required Evidence UUID.
-n, --name <name>required New display name. Must not be blank.
-f, --format <format> Output format: json (default), jsonl, csv, or table. Default: "json".

Examples

Give evidence a name that means something to the investigation

arcsentry evidence rename --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 --evidence-id 8c3d1e77-9f42-4a6b-b810-2e5d47c9a013 --name "Reception laptop"

Correct a name that was added wrong

arcsentry evidence rename --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 --evidence-id 8c3d1e77-9f42-4a6b-b810-2e5d47c9a013 --name WS203

Rename evidence and read the resulting record as a table

arcsentry evidence rename --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 --evidence-id 8c3d1e77-9f42-4a6b-b810-2e5d47c9a013 --name "Finance workstation" --format table

Rename using the short forms of every flag

arcsentry evidence rename -c 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 -H 8c3d1e77-9f42-4a6b-b810-2e5d47c9a013 -n WS203 -f json

arcsentry evidence tag

Set or extend the tags of evidence.

Tags are given as one comma-separated list. --mode replace (the default) swaps the whole set; --mode add keeps the existing tags and adds these.

arcsentry evidence tag --case <case> --evidence-id <evidence-id> --tags <tags> [options]
OptionDescription
-c, --case <case>required Case UUID.
-H, --evidence-id <evidence-id>required Evidence UUID.
-T, --tags <tags>required Comma-separated tags, e.g. patient-zero,finance.
-M, --mode <mode> replace (default) swaps the whole tag set of the evidence; add keeps what is there and adds these; remove deletes just these tags.
-f, --format <format> Output format: json (default), jsonl, csv, or table. Default: "json".

Examples

Replace the tags of evidence with this set

arcsentry evidence tag --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 --evidence-id 8c3d1e77-9f42-4a6b-b810-2e5d47c9a013 --tags patient-zero,finance

Add one tag without disturbing the tags already there

arcsentry evidence tag --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 --evidence-id 8c3d1e77-9f42-4a6b-b810-2e5d47c9a013 --tags contained --mode add

Clear the tags of evidence by replacing them with a single one

arcsentry evidence tag --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 --evidence-id 8c3d1e77-9f42-4a6b-b810-2e5d47c9a013 --tags reviewed --mode replace

Tag evidence and read the resulting record as a table

arcsentry evidence tag --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 --evidence-id 8c3d1e77-9f42-4a6b-b810-2e5d47c9a013 --tags patient-zero --mode add --format table

arcsentry evidence remove

Remove evidence from a case, with everything analysed from it.

The evidence and everything analysed from it leave the case, and evidence list no longer lists it. The files the evidence was added from are not touched. The removal is recorded in the case log against the evidence. --yes removes without asking; otherwise the command names the evidence on the terminal, asks to confirm, and refuses when no affirmative answer is available. With or without --yes, evidence the case does not hold, or has already removed, is refused before anything is asked, and so is evidence still being analysed, until its analysis finishes or analysis cancel stops it.

arcsentry evidence remove --case <case> --evidence-id <evidence-id> [options]
OptionDescription
-c, --case <case>required Case UUID.
-H, --evidence-id <evidence-id>required UUID of the evidence to remove, as printed by evidence list.
-y, --yes Skip the interactive confirmation prompt. Intended for scripts.
-f, --format <format> Output format: json (default), jsonl, csv, or table. Default: "json".

Examples

Remove evidence from a case, answering the confirmation prompt by hand

arcsentry evidence remove --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 --evidence-id 8c3d1e77-9f42-4a6b-b810-2e5d47c9a013

Remove evidence from a script, with no prompt

arcsentry evidence remove --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 --evidence-id 8c3d1e77-9f42-4a6b-b810-2e5d47c9a013 --yes

Remove evidence and read the removed record as a table

arcsentry evidence remove --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 --evidence-id 8c3d1e77-9f42-4a6b-b810-2e5d47c9a013 --yes --format table

Remove evidence using the short forms of every flag

arcsentry evidence remove -c 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 -H 8c3d1e77-9f42-4a6b-b810-2e5d47c9a013 -y -f json