Session recording
Also called privileged session recording, session audit, session monitoring, privileged session management
Session recording is the capture of everything that happens during a privileged session, such as keystrokes, commands, queries, screen activity and API calls, in a tamper-evident form that can be searched, replayed and used as audit evidence.
Session recording answers the question an access log cannot: what did the administrator actually do once connected? Instead of a single “connected at 14:02” line, the recording keeps each command, query, window and API call in order, so a reviewer can replay the session, search across many sessions, or hand an auditor a verifiable record. Live monitoring adds the option to step in while the session is still running.
How it works
- Broker. The session passes through a proxy or gateway that sits between the user and the target, so it can be recorded without software on the target.
- Capture. The proxy records the protocol stream: SSH keystrokes and output, RDP screens and actions, SQL statements, or cloud console and API activity.
- Index. Commands and events are extracted so sessions can be searched by user, target, command or time.
- Protect. Each recording is hashed or chained and stored where it cannot be overwritten. The OWASP Logging Cheat Sheet advises building in tamper detection, copying logs to read-only media quickly, and keeping secrets such as passwords, access tokens and session IDs out of logs.
- Review. Security teams replay, export or watch sessions live, and can end a risky one.
Why it matters
Privileged sessions are where configuration changes, data exports and mistakes happen. NIST SP 800-53 Rev. 5 control AU-14, Session Audit, calls for the capability to record, view or log the content of a user session, and enhancement AU-14(3) adds remote viewing and listening in real time. Recordings also make just-in-time access easier to approve, because the approver knows the session will be on record. Cloud identity services take a similar line for role activation: Microsoft Privileged Identity Management lets administrators download audit history for internal or external audit.
Session recording vs activity logging
| Session recording | Activity or audit logging | |
|---|---|---|
| Granularity | Every command, screen or call in a session | Discrete events such as sign-ins or changes |
| Replay | Yes | No |
| Typical source | PAM proxy or gateway | Operating system, database or cloud audit trail |
| Related term | PAM | DAM |
Examples
- A reviewer replays a contractor’s RDP session to confirm which registry keys were changed.
- An incident team searches all SSH sessions last week for a specific
curlcommand. - An auditor verifies the hash chain of a quarter’s database sessions before sampling them.
How SWOT supports it
SWOT PAM records SSH, RDP and database sessions at the proxy; each recording carries its own SHA-256 hash, audit events are hash-chained, and recordings can be stored in S3 or MinIO with Object Lock. PAMGuard can freeze or end a risky session while it is live. SWOT Cloud PAM puts console screens and API calls on one scrubber, verifies the chain on load and keeps secrets redacted. See session monitoring.
Questions
- Is session recording a legal or privacy concern?
- It can be. Recording captures what administrators type and see, which may include personal data. NIST SP 800-53 control AU-14 asks organisations to develop session auditing in consultation with legal counsel and in line with applicable laws and policies. Tell users that privileged sessions are recorded, limit who can replay them, and redact secrets.
- How do you prove a recording has not been edited?
- Use tamper evidence. Common methods are hashing each recording, chaining event hashes so that changing one breaks every later hash, signing checkpoints with a key the user never holds, and storing recordings on write-once storage such as object lock. An auditor can then verify the chain instead of trusting the system's word.
In SWOT
Sources
Related terms
- Privileged access management (PAM)Privileged access management (PAM) is the set of controls and tools that decide who may use administrative access to critical systems, for how long and under what conditions, while keeping the credentials protected and every privileged session on record.
- Database activity monitoring (DAM)Database activity monitoring (DAM) is the practice of capturing, analysing and alerting on who does what inside a database, including queries, schema changes, privilege grants and sign-ins, so that misuse is detected and every action is attributable.
- Credential vaultingCredential vaulting is the practice of storing privileged passwords, SSH keys, API tokens and other secrets in an encrypted, access-controlled vault that releases or injects them only under policy, rotates them, and logs every use.
- Just-in-time (JIT) accessJust-in-time (JIT) access is an access model in which elevated permissions are granted only when a user or workload requests them for a specific task, usually after approval, and are removed automatically when a set time window ends.

