Record elevated sessions
A workflow for EPM for Linux
A workflow for EPM for LinuxElevated sessions carry the most risk on your Linux hosts. If you cannot see what a user did with root access, you cannot prove a change was safe or trace a problem back to its source. Session recordings and keystroke logs give you a full, replayable record of elevated activity for review and accountability.
Scope of this guide
This workflow shows you how to record elevated sessions in Endpoint Privilege Management for Linux (EPM-L), confirm the recordings appear in Search and Replay, replay them, and set up a regular review process. It is part of the hardening phase of [LINK: parent guide or previous workflow] and takes about 2 hours and 30 minutes.
Prerequisites
- You can sign in to app.beyondtrust.io, and you have the policyadmin role in EPM-L to edit policy.
- Your reviewers have the auditor role in EPM-L, so they can open Search and Replay.
- You have a pilot host with the EPM-L client installed and activated.
- You have a pilot user who is assigned to a role and can run elevated commands through
pbrun. - You have told users that their elevated sessions are recorded, in line with your organization's privacy and legal requirements.
Steps
Step 1: Turn on session replay for a role
Session replay saves an I/O log for each elevated session. An I/O log records everything the user types (keystrokes), plus the output and errors the session shows. You turn on session replay for each role whose sessions you want to record.
-
Sign in to app.beyondtrust.io.
-
From the menu, select Endpoint Privilege Management for Linux > Policy. The Role Based Policy page displays.
-
Select the Roles tile.
-
Select Start Policy Edits.
-
Enter a reason for the changes, such as
Turn on session replay, and then select Continue Editing. -
Find the role that controls elevated sessions. Select its menu icon, and then select Edit Role.
-
Select Session Replay.

-
Turn on Session Replay. The Preview section shows where EPM-L saves the I/O logs.

-
Select Save.
-
Repeat these actions for each role with elevated privileges.
Step 2: Commit the policy change
Your change is not live until you commit it.
- Select Review Policy Edits. The Transaction Summary page lists the roles you changed.
- Confirm that the list includes every role you changed in Step 1.
- Select Commit Policy Edits. Session replay is now active for those roles.
Step 3: Confirm recordings appear
- On the pilot host, sign in as the pilot user and run a short elevated session through
pbrun. - From the menu, select Endpoint Privilege Management for Linux > Search and Replay.
- Use the Date Range, Submit User, and Run Host filters to find the session you just ran.
- Confirm that the session appears in the list.
- Note how long the session takes to appear, so reviewers know when new sessions become available.
Step 4: Replay a session
- In Search and Replay, select the Play icon for the session you found in Step 3. The Sessions page displays.
- Select the Playback icon. The Session Replay page displays.
- Select Interactive Playback, and step through the session.
- To find sessions that ran a specific command, use the Run Command filter in Search and Replay.
- To keep a copy for an audit or investigation, select Download, and then select JSON File or CSV File.
Step 5: Set a review schedule
This step turns session review into a repeatable control rather than a one-time check.
- Decide which session types need routine review, such as root-level sessions or production changes.
- Set how often reviews take place, based on your compliance requirements.
- Assign a named owner to each review.
- Define how reviewers record findings and exceptions, and who they escalate them to.
- Decide how long you keep downloaded session records, based on your compliance requirements.
- Document the review process so anyone can repeat it.
Verify the results
- Confirm that new elevated sessions on your pilot host appear in Search and Replay.
- Confirm that a reviewer can replay a session, find sessions by command, and rebuild exactly what happened.
- Confirm that each scheduled review has a named owner and a documented process.
Next steps
- Connect EPM-L to your SIEM – Send event and I/O log data to Elasticsearch, Logstash, or Splunk.
- Set up least privilege – Build and commit the roles that control elevated access.
Related resources
Updated 6 days ago