Command-line reference

arcsentry sessions

Read the logon and remote-access sessions the parsers reconstructed, and rule on them.

Subcommands

Read the logon and remote-access sessions the parsers reconstructed, and rule on them.

A session is a derived record: the parsers reconstruct it from the logon and remote-access events of the evidence when that evidence is analyzed, and it is addressed by the id printed in the list. Reads cover all the evidence in the case unless you narrow them to one evidence item. A field the source events did not carry, such as a logon status or a termination type, comes back null and never as a stand-in value. A verdict recorded here is stored as an annotation and is visible on the very next read. A session's peer is resolved only by an exact match of its source address or source host against the interface addresses, computer names, fully qualified names and NetBIOS names each evidence item recorded about itself, a DHCP address matching only within a lease its evidence item recorded, and an unresolved peer reads no_peer, self_only, no_match or fields_disagree.

arcsentry sessions <subcommand>

Examples

List the first page of sessions in a case

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

List the inbound remote sessions in one evidence item

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

Read one session in full

arcsentry sessions show --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 --session-id 6e0c48b3-2d91-4f77-a5c6-91b3d0e47f28

Rule one session malicious

arcsentry sessions flag --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 --session-id 6e0c48b3-2d91-4f77-a5c6-91b3d0e47f28 --verdict malicious

Subcommand reference

arcsentry sessions list

List reconstructed sessions page by page, sorted by any listed column and optionally narrowed by evidence, account, source address, logon type, direction, status, duration, time window, or relation group.

A listing returns one page of the whole selection sorted by the column --sort names, session start unless it names another, ascending unless --order says descending, with a session that lacks the sorted value last in either direction, equal values in session start order, text compared without regard to letter case before it is compared exactly and verdicts ranked legitimate, suspicious, malicious; its first page carries total, the number of sessions the other flags select, and a page with has_more true carries a next_cursor that, passed back with --cursor and the same flags, continues after its last session under the sort and order that printed it and no other; --facets adds to a first page printed as JSON how many of the selected sessions carry each account, source address, logon type, direction and logon status. --user, --source-ip, --logon-type, --direction and --logon-status match the session's own recorded value exactly, never as a substring or case-insensitively, and each may be given more than once to keep a session whose value is any one given, --duration-min-ms and --duration-max-ms bound its recorded duration, --time-start and --time-end keep the sessions that overlap a UTC window, either side optional and the whole end second included, a session with no recorded start or end never matching a bound on that side, --relation-group-id keeps the sessions of the relation groups it names by the group_id sessions relations printed for them, every other flag still applying, and omitting --evidence-id or passing * reads all the evidence in the case. Source host, source address and logon type come back null when the source events did not carry them; logon status is the parser's verdict and reads the literal unknown when the events did not determine it. Termination type, account, direction and event count come back as recorded, and null when the session's record holds none; a sort by account, direction or events lists a session without one last. Each session carries peer, the evidence item of the case its source address or source host names, resolved naming that item by host_id and name, ambiguous listing every item it could name and unresolved giving the reason, with each match's field, the fact it matched and the ids of the events that recorded that fact, and peer_index names every evidence item the peers were not yet matched against, which stderr also lists; the table and csv formats print the peer as the columns peer, peer_evidence, peer_host_id and peer_matched_by.

arcsentry sessions list --case <case> [options]
OptionDescription
-c, --case <case>required Case UUID.
-H, --evidence-id <evidence-id> Limit to the evidence with this UUID. Pass * for all the evidence.
-u, --user <user> Limit to sessions for this account name; given again, sessions for any of the names. Can be repeated.
-D, --direction <direction> Limit to inbound or outbound sessions; given again, sessions in any of the directions. Can be repeated.
-i, --source-ip <source-ip> Limit to sessions from this source address; given again, sessions from any of the addresses. Can be repeated.
-t, --logon-type <logon-type> Limit to sessions of this logon type, such as network or rdp; given again, sessions of any of the types. Can be repeated.
-S, --logon-status <logon-status> Limit to sessions with this logon status, such as success or failed; given again, sessions with any of the statuses. Can be repeated.
-l, --limit <limit> Sessions per page. The page says whether more remain and how to continue.
-C, --cursor <cursor> Continue after the last session of a page: pass the next_cursor that page printed, with the same other flags.
-k, --sort <sort> Column to sort by: start, the default, verdict, duration, account, logon-type, direction, logon-status, source-ip or events.
-o, --order <order> Direction of the sort: ascending, the default, or descending.
-F, --facets Add to a first page printed as JSON how many selected sessions carry each account, address, logon type, direction and status.
-m, --duration-min-ms <duration-min-ms> Only sessions whose recorded duration is at least this many milliseconds.
-M, --duration-max-ms <duration-max-ms> Only sessions whose recorded duration is at most this many milliseconds.
-g, --relation-group-id <relation-group-id> Keep only the sessions of this relation group, by the group_id sessions relations printed. Can be repeated.
-s, --time-start <time> Keep the sessions that end at or after this time, as an ISO 8601 timestamp with an offset or Z.
-E, --time-end <time> Keep the sessions that start at or before this time, as an ISO 8601 timestamp with an offset or Z.
-f, --format <format> Output format: json (default), jsonl, csv, or table. Default: "json".

Examples

List the sessions of two relation groups that sessions relations printed, as a table with the evidence each session's peer resolves to

arcsentry sessions list --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 --relation-group-id 0f6d2b8e-5a41-5c3e-9b7d-2e8f4a1c6d90 --relation-group-id 7c2e9a14-3b6f-5d80-8e1a-4f9b2c7d3e05 --format table

List the longest sessions in one evidence item first, with the count behind each value

arcsentry sessions list --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 --evidence-id 8c3d1e77-9f42-4a6b-b810-2e5d47c9a013 --sort duration --order descending --limit 500 --facets

List the longer network and remote desktop sessions, newest first

arcsentry sessions list --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 --logon-type network --logon-type rdp --duration-min-ms 60000 --order descending

List the sessions that overlap a closed time window

arcsentry sessions list --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 --time-start 2026-04-25T00:00:00Z --time-end 2026-04-27T23:59:59Z

arcsentry sessions relations

List who logged on to which host from where, grouped from the sessions page by page, optionally narrowed by evidence, account, source address, logon type, direction, status, duration, or time window.

A relation group gathers the sessions of one evidence item that share an account, a source host, a source address, a direction, a logon type and a peer, and carries how many sessions it holds with the earliest start and the latest end among them. Groups come a page at a time, taking the sessions of each evidence item in start order; a page with has_more true carries a next_cursor that, passed back with --cursor and the same flags, continues after the last session it grouped, and a later page can carry a group an earlier page carried, whose count then adds to the earlier one. Each group carries a group_id that sessions list --relation-group-id takes to list the sessions it holds. The flags select the sessions to group exactly as sessions list selects them: --user, --source-ip, --logon-type, --direction and --logon-status match the session's own recorded value exactly, each given more than once keeping a session whose value is any one given, --duration-min-ms and --duration-max-ms bound its recorded duration, --time-start and --time-end keep the sessions whose recorded start and end overlap that window, and omitting --evidence-id or passing * reads all the evidence in the case, and a value the source events did not carry comes back null. Each group carries peer, the evidence item of the case its source address or source host names, resolved naming that item by host_id and name, ambiguous listing every item it could name and unresolved giving the reason, with each match's field, the fact it matched and the ids of the events that recorded that fact, and peer_index names every evidence item the peers were not yet matched against, which stderr also states; the table and csv formats print the peer as the columns peer, peer_evidence, peer_host_id and peer_matched_by.

arcsentry sessions relations --case <case> [options]
OptionDescription
-c, --case <case>required Case UUID.
-H, --evidence-id <evidence-id> Limit to the evidence with this UUID. Pass * for all the evidence.
-u, --user <user> Limit to sessions for this account name; given again, sessions for any of the names. Can be repeated.
-D, --direction <direction> Limit to inbound or outbound sessions; given again, sessions in any of the directions. Can be repeated.
-i, --source-ip <source-ip> Limit to sessions from this source address; given again, sessions from any of the addresses. Can be repeated.
-t, --logon-type <logon-type> Limit to sessions of this logon type, such as network or rdp; given again, sessions of any of the types. Can be repeated.
-S, --logon-status <logon-status> Limit to sessions with this logon status, such as success or failed; given again, sessions with any of the statuses. Can be repeated.
-s, --time-start <time> Keep the sessions that end at or after this time, as an ISO 8601 timestamp with an offset or Z.
-E, --time-end <time> Keep the sessions that start at or before this time, as an ISO 8601 timestamp with an offset or Z.
-m, --duration-min-ms <duration-min-ms> Only sessions whose recorded duration is at least this many milliseconds.
-M, --duration-max-ms <duration-max-ms> Only sessions whose recorded duration is at most this many milliseconds.
-l, --limit <limit> Relation groups per page. The page says whether more remain and how to continue.
-C, --cursor <cursor> Continue after the last session a page grouped: 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

List the first page of relation groups in a case

arcsentry sessions relations --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2

List the relation groups of one evidence item as a table, with the evidence each group's peer resolves to

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

Group the long sessions of two accounts within one day

arcsentry sessions relations --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 --user administrator --user backup-svc --duration-min-ms 3600000 --time-start 2026-01-01T00:00:00Z --time-end 2026-01-02T00:00:00Z

Continue after the last session the page before grouped

arcsentry sessions relations --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 --evidence-id 8c3d1e77-9f42-4a6b-b810-2e5d47c9a013 --limit 500 --cursor WzE3NjcyMjU3MjAwMDAsIjZlMGM0OGIzLTJkOTEtNGY3Ny1hNWM2LTkxYjNkMGU0N2YyOCIsIjhjM2QxZTc3LTlmNDItNGE2Yi1iODEwLTJlNWQ0N2M5YTAxMyIsNDJd

arcsentry sessions show

Print one session in full, with the events it was reconstructed from.

The detail is the session's own summary of account, source, direction, start, end, duration, event count and verdict, together with its linked chain: the one parent session it was linked from and each child session linked to it, resolved by id. A chain member that no longer resolves in the case is left out of the chain rather than reported as an empty entry. Take the session id from sessions list; there is no lookup here by account or evidence. Each session carries peer, the evidence item of the case its source address or source host names, resolved naming that item by host_id and name, ambiguous listing every item it could name and unresolved giving the reason, with each match's field, the fact it matched and the ids of the events that recorded that fact, and peer_index names every evidence item the peers were not yet matched against, which stderr also states; the table and csv formats print the peer as the columns peer, peer_evidence, peer_host_id and peer_matched_by.

arcsentry sessions show --case <case> --session-id <session-id> [options]
OptionDescription
-c, --case <case>required Case UUID.
-s, --session-id <session-id>required Session UUID, as printed by sessions list.
-f, --format <format> Output format: json (default), jsonl, csv, or table. Default: "json".

Examples

Print one session in full

arcsentry sessions show --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 --session-id 6e0c48b3-2d91-4f77-a5c6-91b3d0e47f28

Print it as a table, with the evidence its peer resolves to and the facts it was matched by

arcsentry sessions show --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 --session-id 6e0c48b3-2d91-4f77-a5c6-91b3d0e47f28 --format table

Print it using the short forms of every flag

arcsentry sessions show -c 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 -s 6e0c48b3-2d91-4f77-a5c6-91b3d0e47f28 -f json

Find the session id first

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

arcsentry sessions flag

Record a verdict on one session. The saved verdict is read back before it is reported.

The verdict is one of legitimate, suspicious or malicious; any other word is refused. Flagging a session cascades the verdict onto the session's own record and onto every source event the session was reconstructed from, so a verdict-scoped query agrees with the session. A session whose record cannot be resolved is a typed error, not a partial write. The response carries the persisted verdict, where the verdict came from, and how many events the cascade reached. sessions unflag clears it again from the same rows.

arcsentry sessions flag --case <case> --session-id <session-id> --verdict <verdict>
OptionDescription
-c, --case <case>required Case UUID.
-s, --session-id <session-id>required Session UUID, as printed by sessions list.
-v, --verdict <verdict>required Verdict to record, e.g. suspicious or malicious. suspicious and malicious both count as flagged.

Examples

Rule one session malicious

arcsentry sessions flag --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 --session-id 6e0c48b3-2d91-4f77-a5c6-91b3d0e47f28 --verdict malicious

Mark a session suspicious pending review

arcsentry sessions flag --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 --session-id 6e0c48b3-2d91-4f77-a5c6-91b3d0e47f28 --verdict suspicious

Record the verdict using the short forms of every flag

arcsentry sessions flag -c 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 -s 6e0c48b3-2d91-4f77-a5c6-91b3d0e47f28 -v malicious

Read the session back to confirm the verdict was saved

arcsentry sessions show --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 --session-id 6e0c48b3-2d91-4f77-a5c6-91b3d0e47f28 --format table

arcsentry sessions unflag

Clear the verdict on one session. The session is read back before it is reported.

Clearing a session's verdict removes the recorded verdict from the session itself and from every source event it was reconstructed from, the same events sessions flag cascaded onto, so the session and its events return to unreviewed together. A session that cannot be resolved in the case fails with an error rather than a partial write. The response carries the cleared verdict (null) and how many events the cascade reached.

arcsentry sessions unflag --case <case> --session-id <session-id>
OptionDescription
-c, --case <case>required Case UUID.
-s, --session-id <session-id>required Session UUID, as printed by sessions list.

Examples

Clear the verdict on one session

arcsentry sessions unflag --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 --session-id 6e0c48b3-2d91-4f77-a5c6-91b3d0e47f28

Clear the verdict using the short forms of both flags

arcsentry sessions unflag -c 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 -s 6e0c48b3-2d91-4f77-a5c6-91b3d0e47f28

Read the session back to confirm the verdict was cleared

arcsentry sessions show --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 --session-id 6e0c48b3-2d91-4f77-a5c6-91b3d0e47f28 --format table

Read the audit entries the clears recorded

arcsentry case-log --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 --action session.verdict_cleared