SSH Rc

~/.ssh/rc, which sshd runs on login. Its presence alone is a strong sign of persistence.

LinuxNetwork and remote accessParser: ssh_rc4 fieldsCollected by priority triage

What SSH Rc is

~/.ssh/rc, which sshd runs on login. Its presence alone is a strong sign of persistence. It is one of 23 network and remote access artifacts Arcsentry reads. Network and remote-access artifacts record connections, remote sessions and remote-access tools: RDP, SSH, VPN clients and remote-administration software.

Forensic value

Network and remote access artifacts help answer questions like these:

  • Which hosts did this machine connect to?
  • Was remote-access software installed or used?
  • How did the attacker move between hosts?

Where it is stored

Arcsentry looks for SSH Rc at this location inside a collection, disk image or mounted volume:

%user_home%/.ssh/rc

What Arcsentry records

Each SSH Rc record is written to Arcsentry's common schema with these fields, alongside the host, timestamp and provenance every record carries:

FieldTypeMeaning
file_pathFull path to ~/.ssh/rc
sizeFile size in bytes
mtimeLast modification time
sha256SHA256 hash for content identification

Time

File last modification time, which places this file on the timeline. Arcsentry keeps each record's own time and labels its time zone when the source does not state one. A record with no time of its own stays untimed; Arcsentry never substitutes the collection time.

Collecting SSH Rc with Arcsentry Collector

Arcsentry Collector gathers SSH Rc in these triage profiles: linux::profile::triage::priority, linux::profile::triage::offline, linux::profile::triage::full. It is read straight from the file system, on a live host or inside a disk image, without mounting.

The collection targets that pick it up: linux::execution::config, linux::execution::docker_ondisk, linux::filesystem::bodyfile, linux::remote_access::rc, linux::security::hidden_directories, linux::security::hidden_files.

sudo ./arcsentry-collect collect --local -t linux::profile::triage::priority \
  -o /mnt/ir -f host.arcx --password-file /mnt/ir/pw.txt

Every file lands in one AES-256 archive with a SHA-256 recorded for it, and the collection log notes which target collected it. See everything each profile collects.

Already collected with something else? Arcsentry also reads KAPE, Velociraptor and UAC collections, so SSH Rc can come from the tools you already use.

Analysing SSH Rc in Arcsentry

Ask in plain English, for example "show SSH Rc records from the incident window, newest first", and Arcsentry shows the query before it runs.

Mark a record malicious or suspicious and it joins the timeline in its kill-chain lane. Add its values as indicators and Arcsentry matches them across every host. When the AI investigator works the case, it reads SSH Rc records with the same tools and cites them by event ID.

Frequently asked

Does Arcsentry parse SSH Rc?

Yes. Arcsentry's SSH Rc parser (ssh_rc) reads it from Linux evidence and records 4 fields per record, with provenance back to the source file.

How do I collect SSH Rc?

Arcsentry Collector gathers it with the priority triage profile (linux::profile::triage::priority), live or from a disk image, sealed in an AES-256 archive with a SHA-256 for every file.

Parse SSH Rc on your own evidence.

Tell us what you want to investigate. A person replies within one business day with the download and a trial licence.

Request a trial