Lesson 1.9

Send collections off the host

Have Arcsentry Collector upload each finished archive to a local copy target, S3-compatible storage or SFTP, with resume and verification.

10 minEveryone
At a glance for experienced analysts
  • Destinations: a local copy target, S3-compatible object storage, or SFTP. Uploads resume or restart after interruptions and verify by SHA-256 or size.
  • Write the destination once with upload-config wizard --output upload.toml, then add --upload-config upload.toml to collections. The app has the same form, plus Export config.
  • The TOML can hold plaintext secrets; protect it like a password. SFTP records the server's host-key fingerprint in the log.
Command line
arcsentry-collect upload-config wizard --output upload.toml

When collecting from remote sites or many hosts, you want archives to arrive in one place without anyone carrying drives around. The Collector can upload each finished archive itself.

Destinations

Destination Settings
Local copy A folder path, such as a mounted share
S3-compatible Endpoint, region, bucket, object key, access key ID and secret, part size, path-style addressing
SFTP Host, port, username, remote path, and a password, private key path or inline private key (with passphrase)

For every destination you also choose:

  • recovery: Resume, Restart or None;
  • verification: SHA-256, Size or None;
  • a maximum number of attempts.

Set it up once

# Answer the questions and save the destination to a file
arcsentry-collect upload-config wizard --output /secrets/upload.toml

# Use it for every collection
sudo ./arcsentry-collect collect --local -t linux::profile::triage::priority \
  -o /var/tmp/ir -f web01.arcx --password-file /secrets/case.pw \
  --upload-config /secrets/upload.toml --status-file /var/tmp/ir/status.json

You can also give the destination directly with the --upload-* options. collect --help lists them.

Collector app Remote upload section set to SFTP
Remote upload set to SFTP. Export config saves these settings to a TOML file for later runs.

Choose Mode (None, Config file, S3 or SFTP) under Remote upload, fill in the destination, and the archive is uploaded when collection finishes. Export config saves the settings with the same wizard the command line uses.

Security notes

  • Exported TOML files can contain plaintext secrets. Store them with the same care as the archive password.
  • SFTP accepts the host key the server presents and records its SHA-256 fingerprint in the Collector log. Use it on networks you trust, or through a pinned tunnel, and check the fingerprint afterwards.
  • Give the upload account write access only to a drop location, so a compromised host cannot read or delete other collections.
  • Interrupted S3 multipart uploads are restarted before verification, so a flaky link does not leave a corrupt object behind.

Check yourself

1. Why upload rather than leave the archive on the USB drive?
Progress is saved in this browser only.