Disable weak cipher suite in SSH

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Please sign in to see details of an important advisory in our Customer Advisories area.

Disable weak cipher suite in SSH

L4 Transporter

I would like to disable weak cipher suite in SSH for over 100+ Firewalls with the following commands.  The firewalls are running in High-Availability (H/A) mode, version 9.1.10:

 

configure
set deviceconfig system ssh ciphers mgmt aes256-ctr
set deviceconfig system ssh ciphers mgmt aes256-gcm
set deviceconfig system ssh default-hostkey mgmt key-type ECDSA 256
set deviceconfig system ssh regenerate-hostkeys mgmt key-type ECDSA key-length 256
set deviceconfig system ssh mac mgmt hmac-sha2-256
set deviceconfig system ssh mac mgmt hmac-sha2-512
set deviceconfig system ssh kex mgmt ecdh-sha2-nistp521

commit

exit

set ssh service-restart mgmt
exit

 

I would like to do this via script.  However, when I look at PAN knowledgeable base, I see this: 

https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA10g000000PN5bCAG&lang=en_US

https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA14u000000HAsiCAG

 

The solution provided is not scalable in my environment.  Is there a better way?  How do Managed Service Providers (MSP) handle this with lot of PAN firewalls.

 

Thoughts?

7 REPLIES 7

Cyber Elite
Cyber Elite

Hello,

I'm sure there are several ways to perform this task. Perhaps say a loop and feed it the list of firewalls?

Regards,

Cyber Elite
Cyber Elite

Hi @dtran ,

 

It is disappointing that these changes cannot be pushed from Panorama.  However, you can push an SSH Service Profile and apply it to the management interface that effectively blocks those protocols.

 

With regard to the CLI, here is a similar (solved) thread -> https://live.paloaltonetworks.com/t5/general-topics/disable-weak-cipher-suites-for-ssl-tls-and-ssh/t....

 

Thanks,

 

Tom

Help the community: Like helpful comments and mark solutions.

@TomYoung:  The thread you mentioned can not be done via scripting.  If you read closely, it stated "require console".  Unfortunately, console is NOT available in AWS.

Cyber Elite
Cyber Elite

Hi @dtran ,

 

Correct.  I added it for your reference, not as a solution.  Theoretically, the commands can be done via SSH, but I would not close the current SSH session without testing with a new SSH session.

 

Thanks,

 

Tom

Help the community: Like helpful comments and mark solutions.

@TomYoung:  Thank you.  Can you also elaborate on the SSH service profile?  How do I go about doing this?

Cyber Elite
Cyber Elite

Hi @dtran ,

 

Sure!  This feature was introduced in 10.0.  Create the profile under Device > Certificate Management > SSH Service Profile, and apply it under Device > Setup > Management > SSH Management Profile Setting.  You configure what algorithms are allowed.

 

https://docs.paloaltonetworks.com/pan-os/10-1/pan-os-admin/certificate-management/configure-an-ssh-s...

 

Thanks,

 

Tom

Help the community: Like helpful comments and mark solutions.

@TomYoung:  Unfortunately, that will not help me.  I am currently running 9.1.10, and we're not going to 10.x anytime soon ☹️

  • 3758 Views
  • 7 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!