Where Cybersecurity Meets Career Success – SecApps Learning

CyberArk PSM Session Management: Complete Guide (Workflow, Internal Users & Troubleshooting)

  • Home
  • Blog
  • CyberArk PSM Session Management: Complete Guide (Workflow, Internal Users & Troubleshooting)
Image
  • April 14 2026

CyberArk PSM Session Management: Complete Guide (Workflow, Internal Users & Troubleshooting)

Learn CyberArk PSM Session Management in detail, including PVWA & PSM internal users, login workflow, session recording, and troubleshooting. Beginner to advanced guide.


πŸš€ Introduction to PSM in CyberArk

CyberArk Privileged Session Manager (PSM) is a critical component used to secure, monitor, and record privileged sessions.

πŸ‘‰ It ensures that users never directly access target systems and all activities are:

  • Monitored

  • Recorded

  • Audited


🧱 1. PVWA Internal Users (Backend Authentication Flow)

CyberArk PVWA uses internal users to authenticate and authorize access.


πŸ”‘ PVWAApp User

  • Used to load PVWA URL

  • Password stored in:
    πŸ‘‰ appuser.ini (encrypted)

πŸ”„ How it works:

  1. User opens PVWA URL

  2. PVWAApp connects to Vault

  3. Loads portal interface


πŸ” PVWAGW User (Gateway User)

  • Used for user authentication & impersonation

  • Verifies user identity in Vault


πŸ”„ Login Flow (CyberArk Authentication)

  1. User opens PVWA

  2. Enters local Vault credentials

  3. PVWAGW connects to Vault

  4. Validates user

  5. Access granted


🌐 Login Flow (LDAP Authentication)

  1. User selects LDAP login

  2. PVWAGW informs Vault (external user)

  3. Vault uses Bind User

  4. Connects to AD via Port 636 (LDAP Secure)

  5. AD validates user

  6. Access granted


βš™οΈ 2. PSM Internal Users (Core of Session Management)


πŸ”Ή PSMApp User

  • Uploads session recordings to Vault

  • Default Safe: PSMRecordings


πŸ”Ή PSMGW User

  • Retrieves target account credentials from Vault

  • Used during session initiation


πŸ”Ή PSMConnect User

  • Local user on PSM server

  • Used to establish session locally


πŸ”Ή PSMAdminConnect

  • Used for live session monitoring (shadowing)

  • Auditor role required

πŸ‘‰ Required group:
CyberArk_Auditors


πŸ”Ή PSMShadow User (VERY IMPORTANT)

  • Created for non-Windows connections

  • Example: Unix, DB, Network devices

πŸ”„ How it works:

  • Each user gets dedicated shadow user profile

  • Created automatically during connection

⚠️ Real-Time Issue:

If user cannot connect:

πŸ‘‰ Possible cause: Corrupted shadow profile

βœ… Fix:

  • Go to: lusrmgr.msc (PSM Server)

  • Delete shadow user

  • Reconnect → new profile created


πŸ”„ 3. PSM Login Workflow (Backend Flow Explained)


πŸ–₯️ Example:

  • Account: admin60

  • Target: secappslearning.com

  • Safe: Windows-Domain-Safe


πŸ” Windows Session Workflow

  1. PVWA redirects session to PSM

  2. PVWAApp retrieves PSMConnect credentials

  3. PSMConnect logs into PSM server

  4. PSMGW retrieves target account password

  5. Session established using admin60

  6. User sees: “You’re being recorded”

  7. After session ends → recording uploaded via PSMApp


🌐 Non-Windows (Unix/DB/Network)

Same flow with one change:

πŸ‘‰ Step 4:

  • Session established using PSMShadow user


πŸ“ Recording Storage

  • Temporary:
    C:\Program Files (x86)\CyberArk\PSM

  • Permanent:
    πŸ‘‰ Vault Safe: PSMRecordings


🌐 Ports Used by PSM

System Port
Windows (RDP) 3389
Unix/Linux 22
Oracle DB 1521
MySQL 3306
SQL Server 1433 / 1434

⚠️ Troubleshooting PSM Issues


πŸ”΄ Scenario 1: Error Before Recording Pop-up

πŸ‘‰ Issue is with PSM Server

Possible causes:

  • PSM service down

  • Configuration issue

  • Network issue


πŸ”΄ Scenario 2: Error After Recording Pop-up

πŸ‘‰ 99% cases → Target server issue


πŸ”§ Connectivity Test

Run from PSM server:

TNC TargetServerIP -Port <PortNumber>


🧠 Key Takeaways

βœ” PSM ensures secure session access
βœ” No direct login to target systems
βœ” Sessions are always recorded
βœ” Shadow users handle non-Windows connections
βœ” Most issues are either PSM config or target system


🎯 Final Thoughts

Understanding PSM Session Management is critical for:

  • CyberArk Engineers

  • Security Administrators

  • Certification preparation (Defender/Sentry)

πŸ‘‰ Mastering PSM gives you strong control over session security, monitoring, and compliance.

Comments ()

Leave a reply

Your email address will not be published. Required fields are marked*

Recent Post

Copyright 2022 SecApps Learning. All Right Reserved