MID Server SSH cryptographic algorithms
Summarize
Summary of MID Server SSH cryptographic algorithms
The MID Server uses SSH clients for discovery actions, negotiating cryptographic algorithms during the SSH handshake. Both client and server determine supported algorithms, with the client selecting the highest priority algorithm that both support, especially matching the Host Key Algorithm to the key type. Understanding and managing these algorithms is essential for securing SSH communications between MID Server and remote systems.
Show less
Default Supported SSH Algorithms
- Key Exchange Algorithms: Includes ecdh-sha2 variants (nistp256, nistp384, nistp521), diffie-hellman group exchanges (group-exchange-sha256, group14-sha256, group16-sha512), and legacy groups (group14-sha1, group1-sha1, group-exchange-sha1).
- Host Key Algorithms: Used for public key signatures during authentication, including ssh-ed25519-cert, rsa-sha2-cert, ecdsa-sha2 variants, ssh-rsa, and ssh-dss.
- Cipher Algorithms: AES variants in CTR and CBC modes (aes128, aes192, aes256).
- MAC Algorithms: Includes hmac-sha2-256, hmac-sha1, hmac-sha2-512, and legacy hmac-md5 variants.
Customizing SSH Algorithm Priorities
ServiceNow customers can tailor MID Server SSH algorithm priorities to meet specific security requirements by modifying MID Server properties. These properties accept comma-separated lists where the order defines priority:
- Key Exchange algorithms:
mid.ssh.algorithms.kex - Host Key algorithms:
mid.ssh.algorithms.hostkey - Cipher algorithms:
mid.ssh.algorithms.cipher - MAC algorithms:
mid.ssh.algorithms.mac
Operators based on OpenSSH syntax enable flexible adjustments:
- + appends algorithms to the default list
- - removes algorithms from the default list
- ^ places algorithms at the front of the default list
Note: The Glide Import feature on the instance uses default SSH algorithms and is not affected by these MID Server properties, as it uses SNCSSH for SFTP and SCP directly on the instance.
Practical Implications for ServiceNow Customers
By customizing SSH algorithms, customers can enforce stronger security standards, comply with organizational policies, and manage compatibility with target systems. Understanding and managing these settings helps ensure secure and reliable discovery actions performed by the MID Server over SSH.
The MID Server utilizes SSH clients to perform many discovery actions. During the SSH handshake, both the client and server first determine which algorithms both parties support, then client picks the highest priority algorithm. For the Host Key Algorithm, the client picks highest priority algorithm which both parties support that matches the key type.
Default supported SSH algorithms by priority
- ecdh-sha2-nistp256
- ecdh-sha2-nistp384
- ecdh-sha2-nistp521
- diffie-hellman-group-exchange-sha256
- diffie-hellman-group14-sha256
- diffie-hellman-group16-sha512
- diffie-hellman-group14-sha1
- diffie-hellman-group1-sha1
- diffie-hellman-group-exchange-sha1
- ssh-ed25519-cert-v01@openssh.com
- rsa-sha2-512-cert-v01@openssh.com
- rsa-sha2-256-cert-v01@openssh.com
- ssh-ed25519
- ecdsa-sha2-nistp256
- ecdsa-sha2-nistp384
- ecdsa-sha2-nistp521
- rsa-sha2-512
- rsa-sha2-256
- ssh-rsa-cert-v01@openssh.com
- ssh-rsa
- ssh-dss
- aes128-ctr
- aes192-ctr
- aes256-ctr
- aes128-cbc
- aes192-cbc
- aes256-cbc
- hmac-sha2-256
- hmac-sha1
- hmac-sha2-512
- hmac-sha1-96
- hmac-md5-96
- hmac-md5
Customize the SSH algorithms priority list
The MID Server SSH algorithm priorities can be customized based on security needs. Each algorithm is controlled by one of the following MID Server properties.
Key Exchange algorithms: mid.ssh.algorithms.kex
Host Key algorithms: mid.ssh.algorithms.host_key
Cipher algorithms: mid.ssh.algorithms.cipher
MAC algorithms: mid.ssh.algorithms.mac
- The + operator appends the comma separated list of algorithms to the default algorithm list.
- The - operator removes the comma separated list of algorithms from the default algorithm list.
- The ^ operator places the comma separated list of algorithms at the front of the default algorithm list.