PSMP - Encryption Protocols, when connecting PSMP to the end Target.
Question
What methods and encryption protocols does the PSMP, PSM for SSH, Privileged Session Management for SSH use when connecting from the PSMP to the end target?
Environment
10.9
Answer
The PSMP uses modified clients to perform the connection from the PSMP to the end Target.
On the PVWA the connection strings for the platforms are (ClientApp variable):
PSMP-SCP:
{PSPComponentsFolder}/ssh [-{PSMProtocol}] {Address}
ie: /opt/CARKpsmp/components/ssh
PSMP-SSH:
{PSPComponentsFolder}/plink [-{PSMProtocol}] [-P {Port}] [-L {PSMTunnelRandomPort}:127.0.0.1:{PSMTunnelTargetPort}] {Username}@{Address}
ie: /opt/CARKpsmp/components/plink
Idira does not modify the default configured encryption protocols from the version that is modified for PSMP use.
However, the default encryption protocols used by default are changed every few versions:
For version v10.9
PSMP's OpenSSH incorporates version is 7.7p1
PSMP's plink incorporates version is 0.70
PSMP-SCP:
The SSH client for SCP, reads the supported protocols from ssh_config (not sshd_config, since this is the client; ie the connection to target)
If no protocols are configured in the ssh_config, it will use the defaults; the defaults can be found in the man page for ssh_config, under each specific protocol ie ciphers, macs, kexalgorithms, hostkeyalgorithms
# man ssh_config
Note: There is a difference between default (used when not configured) and available/supported ciphers (those which can be configured)
PSMP-SSH:
The protocols in use are based on the putty generated profile session config:
plink will try and search for a putty configured sessions on /home/PSMShadowUser/.config/putty/sessions/Default%20Settings when connecting through PSMP
If not configured the default session configuration will be used:
The default putty cipher groups values are:
Cipher=aes,chacha20,3des,WARN,des,blowfish,arcfour
For reference:
Ciphers:
- plink 0.70 ciphers: 3des-cbc, 3des-ctr, aes128-ctr, aes192-ctr, aes256-ctr, aes128-cbc, aes192-cbc, aes256-cbc, rijndael-cbc@lysator.liu.se, arcfour128, arcfour256, blowfish-cbc, blowfish-ctr, chacha20-poly1305@openssh.com
- ssh client 7.7 ciphers: chacha20-poly1305@openssh.com, aes128-ctr, aes192-ctr, aes256-ctr, aes128-gcm@openssh.com, aes256-gcm@openssh.com, aes128-cbc, aes192-cbc, aes256-cbc
- sshd 7.7 ciphers: chacha20-poly1305@openssh.com, aes128-ctr,aes192-ctr,aes256-ctr, aes128-gcm@openssh.com,aes256-gcm@openssh.com
Macs:
- plink 0.70 macs: hmac-md5, hmac-sha1, hmac-sha1-96, hmac-sha2-256, hmac-sha2-256-etm@openssh.com, hmac-sha1-etm@openssh.com, hmac-sha1-96-etm@openssh.com, hmac-md5-etm@openssh.com
- ssh 7.7 macs: umac-64-etm@openssh.com, umac-128-etm@openssh.com, hmac-sha2-256-etm@openssh.com, hmac-sha2-512-etm@openssh.com, hmac-sha1-etm@openssh.com, umac-64@openssh.com, umac-128@openssh.com, hmac-sha2-256, hmac-sha2-512, hmac-sha1
- sshd 7.7 macs: umac-64-etm@openssh.com, umac-128-etm@openssh.com, hmac-sha2-256-etm@openssh.com, hmac-sha2-512-etm@openssh.com, hmac-sha1-etm@openssh.com, umac-64@openssh.com, umac-128@openssh.com, hmac-sha2-256, hmac-sha2-512, hmac-sha1
Asymmetrical Key Algos:
- plink 0.70 asymmetrical key algos: diffie-hellman-group1-sha1, diffie-hellman-group14-sha1, diffie-hellman-group-exchange-sha256, diffie-hellman-group-exchange-sha1, ecdh-sha2-nistp256, ecdh-sha2-nistp384, ecdh-sha2-nistp521, rsa1024-sha1, rsa2048-sha256, sha256@libssh.org
- ssh 7.7 asymmetrical key algos: curve25519-sha256, curve25519-sha256@libssh.org, ecdh-sha2-nistp256, ecdh-sha2-nistp384, ecdh-sha2-nistp521, diffie-hellman-group-exchange-sha256, diffie-hellman-group16-sha512, diffie-hellman-group18-sha512, diffie-hellman-group-exchange-sha1, diffie-hellman-group14-sha256, diffie-hellman-group14-sha1
- sshd 7.7 asymmetrical key algos: curve25519-sha256, curve25519-sha256@libssh.org, ecdh-sha2-nistp256, ecdh-sha2-nistp384, ecdh-sha2-nistp521, diffie-hellman-group-exchange-sha256, diffie-hellman-group16-sha512, diffie-hellman-group18-sha512, diffie-hellman-group14-sha256, diffie-hellman-group14-sha1