bab29/PSMPAssistant

PSM for SSH Assistant Tool

★ 0Forks 0GitHub ↗Compare

README

PSMPAssistant

Description

A Python-based tool designed to verify the installation and compatibility of Privileged Session Manager Proxy (PSMP) on Linux systems. This tool evaluates PSMP and SSHD service statuses, supported Linux distributions, configuration compliance, and generates necessary system logs for diagnostic purposes.

Cloning

git clone https://github.com/TalMaIka/PSMPAssistant.git
cd PSMPAssistant
Requirements are Python3.6 +

Usage

To use the tool, run the PSMPAssistant.py script with optional arguments.

Checking PSMP Compatibility and Configuration

Run the script without any arguments to check the PSMP compatibility with the current system:

python3 PSMPAssistant.py

Tool landing page

Collecting Logs

To collect logs from specified locations and create a zip file, use the logs argument:

python3 PSMPAssistant.py logs

Tool landing page

RPM Repair Automation

To execute the PSMP RPM repair process repair argument:

python3 PSMPAssistant.py repair

Generating PSMP Connection String

To generate a PSMP connection string, use the string argument:

python3 PSMPAssistant.py string

Tool landing page

Features

Compatibility Validation

  • Ensures that the installed PSMP version is compatible with the detected Linux distribution and version based on official CyberArk documentation.

Service Monitoring

  • Checks and verifies the status of PSMP and SSHD services.

OpenSSH Version Check

  • Verifies if the installed OpenSSH version meets the required version.

Hostname Validation

  • Checks if the system hostname is set to a unique value to avoid future issues.

System Resource Check

  • Monitors CPU and memory usage to ensure they are within acceptable limits and verifies if there is sufficient disk space.

NSswitch Configuration Check

  • Validates the NSswitch configuration based on the PSMP version.

SSHD Configuration Check

  • Ensures proper configuration of the SSHD service to allow proper PSMP flow.

Logs Collection

  • Collect logs from specified locations and create a zip file for analysis.

RPM Repair

  • Automates the pre-installation steps by locating the RPM folder matching the PSMP installed version and executing the repair.

PSMP Connection String Generation

  • Generates a PSMP connection string based on user input.

Secure and PSMPTrace Logs Pattern Detection

  • Searches the PSMPTrace.log and secure files for specific error patterns and alerts to diagnose potential issues.

Contributors

TalMaIka

Issues