Privileged session recording: make administrator activity investigable
Privileged session recording captures interactive work and results from administrators or operators on servers and cloud resources. It can help reconstruct commands and outputs, but it does not guarantee visibility into every change path or action. Verify who started each session, whether logs were generated and delivered, and who can change or delete the stored records.
What evidence to collect
A useful investigation usually links several evidence types rather than relying on one transcript.
| Evidence | Question answered | Examples |
|---|---|---|
| Authentication and approval events | Who accessed, and under what conditions? | User/role, MFA, approver, source identity, time |
| Session metadata | Where and how was the connection made? | Target, session ID, start/end, client address, tool |
| Session content | What commands and outputs appeared interactively? | Terminal input/output, remote-shell recording |
| System audit events | What changed as a result? | API calls, file/permission changes, process events |
| Integrity evidence | Were records altered or deleted? | Storage-access logs, retention lock, hashes/signatures |
Some connection methods do not record terminal content. AWS Systems Manager Session Manager can send configured command and output logs to S3 or CloudWatch Logs, but its documentation says session data logging is unavailable for sessions using port forwarding or SSH. Record every privileged access path and check visibility gaps by path and protocol.
Set up and operate recording
Inventory privileged paths: web consoles, SSH, remote-management tools, database clients, APIs, and emergency accounts.
For each path, test which evidence is actually available: authentication, session metadata, input/output, and system audit events. Add compensating controls or document accepted risk for unrecorded paths.
Identify operators and approvers. Prefer individual identities and role assumption over shared accounts. Use a separate approval, registration, and review process where emergency accounts limit individual attribution.
Store logs in a separately protected area. Separate the people performing sessions from those who can delete logs or change retention. Set encryption, retention, access auditing, and tamper protection to match risk and legal requirements.
Link session IDs, accounts, targets, times, change tickets, and approvals with common identifiers so an investigator can trace an action to its request.
Detect logging failures: check destination permissions, storage availability, agents, capacity, and delivery delay. Decide by risk whether sessions stop or proceed with an alert when recording is unavailable.
Periodically test playback and retrieval. Confirm authorized auditors can find sample sessions and interpret timestamps, time zones, and character encoding; check retention and search time against investigation needs.
Sensitive data and limits
Recordings may include command arguments, personal information, tokens, secrets, or customer data shown on screen. Restrict access, encrypt and define retention/deletion, and avoid displaying secrets in shells or tools when possible. Notice and consent duties depend on jurisdiction and organizational policy; this is not legal advice.
A recording does not make controls complete. The same change may occur through another protocol, local console, automation, or API. If the target system or logging path is compromised, records may be missing or altered. NIST SP 800-53 treats audit generation, protection, and retention as distinct controls. Combine recording with restricted access paths, central API auditing, separated log storage, and detection of unusual sessions.
For example, a team using AWS Session Manager for server shells could configure session data delivery to S3 or CloudWatch Logs. In a non-production environment, verify that commands and output arrive on the permitted path, that bucket or log-group access and retention are appropriate, and that missing logs trigger an alert. This is a design example, not a configuration or test performed in an AWS account.
References
[NIST SP 800-53 Rev. 5](https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r5.pdf) — AU-9 audit-record protection and AU-11 retention
[AWS Systems Manager Session Manager](https://docs.aws.amazon.com/systems-manager/latest/userguide/session-manager.html) — session features and logging limits
[AWS Session Manager logging](https://docs.aws.amazon.com/systems-manager/latest/userguide/session-manager-logging.html) — configuration and limitations
[AWS Session Manager auditing](https://docs.aws.amazon.com/systems-manager/latest/userguide/session-manager-auditing.html) — CloudTrail and EventBridge coverage