mirror of
				https://github.com/jtesta/ssh-audit.git
				synced 2025-11-04 03:02:15 +01:00 
			
		
		
		
	Suppress recommendation of token host key types.
This commit is contained in:
		@@ -70,6 +70,7 @@ $ snap install ssh-audit
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
## ChangeLog
 | 
					## ChangeLog
 | 
				
			||||||
### v2.2.1-dev (???)
 | 
					### v2.2.1-dev (???)
 | 
				
			||||||
 | 
					 - Suppress recommendation of token host key types.
 | 
				
			||||||
 - Added 1 new host key types: `ssh-rsa1`.
 | 
					 - Added 1 new host key types: `ssh-rsa1`.
 | 
				
			||||||
 - Added 1 new ciphers: `blowfish`, `AEAD_AES_128_GCM`, `AEAD_AES_256_GCM`.
 | 
					 - Added 1 new ciphers: `blowfish`, `AEAD_AES_128_GCM`, `AEAD_AES_256_GCM`.
 | 
				
			||||||
 - Added 2 new MACs: `chacha20-poly1305@openssh.com`, `hmac-sha3-224`.
 | 
					 - Added 2 new MACs: `chacha20-poly1305@openssh.com`, `hmac-sha3-224`.
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1837,7 +1837,8 @@ class SSH(object):  # pylint: disable=too-few-public-methods
 | 
				
			|||||||
							if fc > 0:
 | 
												if fc > 0:
 | 
				
			||||||
								faults += pow(10, 2 - i) * fc
 | 
													faults += pow(10, 2 - i) * fc
 | 
				
			||||||
						if n not in alg_list:
 | 
											if n not in alg_list:
 | 
				
			||||||
							if faults > 0 or (alg_type == 'key' and '-cert-' in n) or empty_version:
 | 
												# Don't recommend certificate or token types; these will only appear in the server's list if they are fully configured & functional on the server.
 | 
				
			||||||
 | 
												if faults > 0 or (alg_type == 'key' and (('-cert-' in n) or (n.startswith('sk-')))) or empty_version:
 | 
				
			||||||
								continue
 | 
													continue
 | 
				
			||||||
							rec[sshv][alg_type]['add'][n] = 0
 | 
												rec[sshv][alg_type]['add'][n] = 0
 | 
				
			||||||
						else:
 | 
											else:
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user