agentflocks/flocks/implementing-privileged-session-monitoring
Claude Code and agent skill by agentflocks/flocks
- community
Checking that the SKILL.md file is still in the repository.
'Implements privileged session monitoring and recording using Privileged Access Management (PAM) solutions, focusing
Install
npx vskill@latest install agentflocks/flocks/implementing-privileged-session-monitoringSKILL.md
The same SKILL.md was published earlier as agentflocks/flocks/implementing-privileged-session-monitoring.
Implementing Privileged Session Monitoring
When to Use
- Deploying or configuring session recording for all privileged access to critical servers and databases
- Meeting compliance requirements (PCI-DSS 10.2, SOX, HIPAA, ISO 27001) that mandate privileged activity monitoring
- Investigating an incident where an administrator or third-party vendor may have performed unauthorized actions
- Implementing real-time alerting for high-risk commands executed during privileged sessions
- Establishing a forensic audit trail of all administrative actions on production infrastructure
Do not use for monitoring standard user sessions or endpoint activity; use EDR/UBA solutions for general user behavior monitoring. Privileged session monitoring focuses specifically on elevated-access sessions.
Prerequisites
- CyberArk PAM Self-Hosted or Privilege Cloud deployment with Digital Vault configured
- CyberArk Privileged Session Manager (PSM) or PSM for SSH (PSMP) installed on a hardened Windows/Linux jump server
- Network architecture where all privileged access is routed through the PSM proxy (no direct RDP/SSH to targets)
- PVWA (Password Vault Web Access) deployed and accessible for session review
- Active Directory integration for authenticating PAM users
- Sufficient storage for session recordings (estimate: 50-250 KB per minute for RDP, 5-20 KB per minute for SSH)
- Alternatively for open-source: Teleport, Apache Guacamole with session recording, or
script/ttyrecfor Linux
Workflow
Step 1: Architecture — Route All Privileged Access Through PSM
Ensure no direct privileged access bypasses the recording proxy:
Step 2: Configure PSM Connection Components
Define how PSM connects to target systems. In the PVWA administration console:
Step 3: Configure Session Recording Policies
Define recording rules based on risk level and compliance requirements:
For granular control, configure per-safe recording policies:
Step 4: Enable Real-Time Session Monitoring
Configure live session monitoring for SOC analysts:
Step 5: Configure Session Review Workflow
Set up the post-session review process for auditors:
Step 6: Open-Source Alternative — Teleport for Session Recording
For environments without CyberArk, Teleport provides session recording for SSH, RDP, and Kubernetes:
Query recorded sessions with tsh:
Step 7: Forward Session Metadata to SIEM
Send session events and alerts to the SIEM for correlation with other security data:
Key Concepts
| Term | Definition | |
|---|---|---|
| PSM (Privileged Session Manager) | CyberArk component that acts as a proxy/jump server, recording all privileged sessions in video and text format | |
| PSMP (PSM for SSH Proxy) | Linux-based PSM proxy specifically for SSH, SCP, and SFTP sessions | |
| Connection Component | CyberArk configuration that defines how PSM launches client applications (RDP, SSH, SSMS) to connect to target systems | |
| Privileged Threat Analytics (PTA) | CyberArk module that applies behavioral analytics and risk scoring to recorded sessions to detect anomalous activity | |
| Dual Authorization | Security control requiring two authorized users to approve a privileged session before it is established | |
| Session Isolation | Architecture principle where administrators never directly connect to targets; all access is proxied through the PAM system | |
| Keystroke Transcript | Text log of all keystrokes typed during a recorded session, searchable for audit and forensic purposes | |
| Vaulting | Storing privileged credentials in an encrypted digital vault so they are never exposed to the end user |
Verification
- [ ] All privileged access to production targets routes through PSM (direct RDP/SSH is blocked by firewall)
- [ ] Session recordings are being stored in the Vault with encryption and tamper protection
- [ ] Keystroke transcripts are captured and searchable for SSH and RDP sessions
- [ ] PTA rules trigger alerts for high-risk commands (test with a benign trigger pattern)
- [ ] Real-time monitoring dashboard shows active sessions with correct metadata
- [ ] Session recordings play back correctly in PVWA HTML5 player with timeline and transcript
- [ ] Storage estimates are validated and retention policies match compliance requirements
- [ ] Dual authorization is enforced for vendor and high-risk target access
- [ ] Session metadata and alerts are forwarding to SIEM and correlating correctly
- [ ] Auditors can search, review, and annotate sessions through the PVWA interface
- [ ] Terminated sessions leave a complete recording up to the point of termination
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryChecking.flocks/flockshub/plugins/skills/Anthropic-Cybersecurity-Skills/implementing-privileged-session-monitoring/SKILL.md
Popularity
- Repository stars
- 480
- Repository forks
- 90
- 7-day trend score
- 31
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/agentflocks/flocks/implementing-privileged-session-monitoring)