arcsentry memory
Read, search and change the memories the agent keeps for a case.
Subcommands
- readPrint the memories of a case's agent memory, each with its id and revision.
- searchFind the memories of the agent memory that contain a text.
- addAdd a memory to the agent memory.
- editReplace the text of one memory, keeping its id.
- removeRemove one or more memories from the agent memory.
- clearClear the agent memory of a case.
Read, search and change the memories the agent keeps for a case.
The agent memory holds the memories the agent keeps for one case. These commands read and change the same memory the agent and the Memory pane of the agent panel use. Every change is recorded in the case log with you as the actor. Changing the memory needs the case to be free: close the desktop application on the case first.
arcsentry memory <subcommand> Examples
Print the memories of a case
arcsentry memory read --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 Find the memories about lateral movement
arcsentry memory search --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 --term "lateral movement" Add a memory
arcsentry memory add --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 --text "Check the second host" Clear the memory without a prompt
arcsentry memory clear --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 --yes Subcommand reference
arcsentry memory read
Print the memories of a case's agent memory, each with its id and revision.
A case with no memory prints an empty page. Each memory prints whole with its id and its revision, however many lines it has; memory edit needs both. When more memories follow, the page ends with a cursor to pass to the next call; if the memory changed in between, run the command again without --cursor.
arcsentry memory read --case <case> [options] | Option | Description |
|---|---|
| -c, --case <case>required | Case UUID whose agent memory is used. |
| -C, --cursor <cursor> | Continue after the previous page, using the cursor it printed. |
| -f, --format <format> | Output format: json or table. Default: "json". |
Examples
Print the memories of a case
arcsentry memory read --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 Print each memory under its id and revision, its lines indented
arcsentry memory read --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 --format table Print them as JSON using the short forms of the flags
arcsentry memory read -c 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 -f json Print the memories using the short form of the flag
arcsentry memory read -c 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 arcsentry memory search
Find the memories of the agent memory that contain a text.
The text is matched literally and with its case. Each match prints as the whole memory with its id and revision. Continue a long list with the cursor the page prints.
arcsentry memory search --case <case> --term <term> [options] | Option | Description |
|---|---|
| -c, --case <case>required | Case UUID whose agent memory is used. |
| -C, --cursor <cursor> | Continue after the previous page, using the cursor it printed. |
| -f, --format <format> | Output format: json or table. Default: "json". |
| -t, --term <term>required | Text to look for in the memory. |
Examples
Find the memories about lateral movement
arcsentry memory search --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 --term "lateral movement" Find the memories about a tool and read them under their ids and revisions
arcsentry memory search --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 --term psexec --format table Find the memories naming an account using the short forms
arcsentry memory search -c 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 -t svc_backup Find the memories about a tool and read them as JSON
arcsentry memory search --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 --term psexec --format json arcsentry memory add
Add a memory to the agent memory.
The text is added as one memory however many lines it has, and the answer names its new id. The change is recorded in the case log before the memory is touched.
arcsentry memory add --case <case> --text <text> [options] | Option | Description |
|---|---|
| -c, --case <case>required | Case UUID whose agent memory is used. |
| -f, --format <format> | Output format: json or table. Default: "json". |
| -T, --text <text>required | Text of the memory. It may span several lines and stays one memory. |
Examples
Add a memory
arcsentry memory add --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 --text "Check the second host" Add one memory of two lines
arcsentry memory add --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 --text "$(printf 'Sean_Liu-PC was only partially collected.\nAccount for the gaps in its coverage.')" Add a memory using the short forms of the flags
arcsentry memory add -c 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 -T "Review the scheduled tasks" Add a memory and read the result as a table
arcsentry memory add --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 --text "Check the second host" --format table arcsentry memory edit
Replace the text of one memory, keeping its id.
Name the memory by the id and the revision memory read prints. The text replaces the whole memory, however many lines either has. When the memory changed since that read, nothing is changed: read it again and edit its new text.
arcsentry memory edit --case <case> --id <id> --revision <revision> --text <text> [options] | Option | Description |
|---|---|
| -c, --case <case>required | Case UUID whose agent memory is used. |
| -f, --format <format> | Output format: json or table. Default: "json". |
| -i, --id <id>required | Id of the memory to edit, as memory read prints it. |
| -r, --revision <revision>required | Revision of the memory, as memory read or memory search printed it beside its id. |
| -T, --text <text>required | The new text of the memory. It may span several lines. |
Examples
Replace the text of a memory
arcsentry memory edit --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 --id c1d2e3f4-a5b6-4c7d-8e9f-0a1b2c3d4e5f --revision bbfb79e82216bd2d --text "Corrected finding" Replace it with a memory of two lines
arcsentry memory edit --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 --id c1d2e3f4-a5b6-4c7d-8e9f-0a1b2c3d4e5f --revision bbfb79e82216bd2d --text "$(printf 'Corrected finding\nConfirmed on the second host.')" Replace the text using the short forms of the flags
arcsentry memory edit -c 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 -i c1d2e3f4-a5b6-4c7d-8e9f-0a1b2c3d4e5f -r bbfb79e82216bd2d -T "Corrected finding" Replace the text and read the result as a table
arcsentry memory edit --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 --id c1d2e3f4-a5b6-4c7d-8e9f-0a1b2c3d4e5f --revision bbfb79e82216bd2d --text "Corrected finding" --format table arcsentry memory remove
Remove one or more memories from the agent memory.
Name each memory by the id memory read prints; nothing is removed when any id is not in the memory. Asks for confirmation on a terminal and refuses when no affirmative answer is available. Use --yes in scripts.
arcsentry memory remove --case <case> --id <id> [options] | Option | Description |
|---|---|
| -c, --case <case>required | Case UUID whose agent memory is used. |
| -f, --format <format> | Output format: json or table. Default: "json". |
| -i, --id <id>required | Id of a memory to remove, as memory read prints it. Can be repeated. |
| -y, --yes | Remove without asking for confirmation. |
Examples
Remove a memory
arcsentry memory remove --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 --id c1d2e3f4-a5b6-4c7d-8e9f-0a1b2c3d4e5f --yes Remove two memories
arcsentry memory remove --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 --id c1d2e3f4-a5b6-4c7d-8e9f-0a1b2c3d4e5f --id d2e3f4a5-b6c7-4d8e-9f0a-1b2c3d4e5f60 --yes Remove a memory using the short forms of the flags
arcsentry memory remove -c 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 -i c1d2e3f4-a5b6-4c7d-8e9f-0a1b2c3d4e5f -y Remove a memory and read the result as a table
arcsentry memory remove --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 --id c1d2e3f4-a5b6-4c7d-8e9f-0a1b2c3d4e5f --yes --format table arcsentry memory clear
Clear the agent memory of a case.
Asks for confirmation on a terminal; use --yes in scripts. Every memory is removed and the case log records who cleared it.
arcsentry memory clear --case <case> [options] | Option | Description |
|---|---|
| -c, --case <case>required | Case UUID whose agent memory is used. |
| -f, --format <format> | Output format: json or table. Default: "json". |
| -y, --yes | Clear without asking for confirmation. |
Examples
Clear the memory without a prompt
arcsentry memory clear --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 --yes Clear the memory using the short forms of the flags
arcsentry memory clear -c 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 -y Clear the memory and read the result as a table
arcsentry memory clear --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 --yes --format table Clear the memory after answering the confirmation prompt by hand
arcsentry memory clear --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2