<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Disable weak Kex and Macs on R81.20 in General Topics</title>
    <link>https://community.checkpoint.com/t5/General-Topics/Disable-weak-Kex-and-Macs-on-R81-20/m-p/219947#M36641</link>
    <description>&lt;P&gt;&lt;SPAN&gt;sshd_config is generated from /etc/ssh/templates/sshd_config.templ&lt;BR /&gt;You can make the necessary changes there, regenerate the sshd_config, and restart sshd:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;/bin/sshd_template_xlate &amp;lt; /config/active&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;service sshd restart&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 08 Jul 2024 14:27:22 GMT</pubDate>
    <dc:creator>PhoneBoy</dc:creator>
    <dc:date>2024-07-08T14:27:22Z</dc:date>
    <item>
      <title>Disable weak Kex and Macs on R81.20</title>
      <link>https://community.checkpoint.com/t5/General-Topics/Disable-weak-Kex-and-Macs-on-R81-20/m-p/218106#M36365</link>
      <description>&lt;P&gt;few vulnerabilites have been reported in my R81.20 cluster on AWS.. prominently i am looking to resolve weak kex and MaCs.&lt;/P&gt;
&lt;P&gt;from GAIA i ran -&amp;gt; set ssh server kex ___ off &amp;amp; set ssh server mac ___ off for the reported ones however they were still getting detected.&lt;/P&gt;
&lt;P&gt;Just to check I then ran&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;sshd -T -C addr=localhost | grep -i mac &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;and the output says i have hmac-1 enabled although i have disabled it via GAIA commands.( same goes for disabled weak kex)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;I then tried to edit /etc/ssh/sshd_config file but it seems like in R81.20 it is read only.. i am not sure how to proceed on this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any help is appreciated.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jun 2024 14:58:49 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/Disable-weak-Kex-and-Macs-on-R81-20/m-p/218106#M36365</guid>
      <dc:creator>LostBoY</dc:creator>
      <dc:date>2024-06-19T14:58:49Z</dc:date>
    </item>
    <item>
      <title>Re: Disable weak Kex and Macs on R81.20</title>
      <link>https://community.checkpoint.com/t5/General-Topics/Disable-weak-Kex-and-Macs-on-R81-20/m-p/218274#M36389</link>
      <description>&lt;P&gt;There are clish commands you can execute to affect these settings.&lt;BR /&gt;&lt;A href="https://sc1.checkpoint.com/documents/R81.20/WebAdminGuides/EN/CP_R81.20_Gaia_AdminGuide/Content/Topics-GAG/Advanced-Gaia-Configuration.htm" target="_blank"&gt;https://sc1.checkpoint.com/documents/R81.20/WebAdminGuides/EN/CP_R81.20_Gaia_AdminGuide/Content/Topics-GAG/Advanced-Gaia-Configuration.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;See also:&amp;nbsp;&lt;A href="https://support.checkpoint.com/results/sk/sk172189" target="_blank"&gt;https://support.checkpoint.com/results/sk/sk172189&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jun 2024 18:07:22 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/Disable-weak-Kex-and-Macs-on-R81-20/m-p/218274#M36389</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2024-06-20T18:07:22Z</dc:date>
    </item>
    <item>
      <title>Re: Disable weak Kex and Macs on R81.20</title>
      <link>https://community.checkpoint.com/t5/General-Topics/Disable-weak-Kex-and-Macs-on-R81-20/m-p/219699#M36606</link>
      <description>&lt;P&gt;i had followed these acutally and i can see only the enabled ciphers when i run show ssh server mac/kex&lt;/P&gt;
&lt;P&gt;However, hmac-sha1 is getting detected in the scan reports.. i then checked the sshd_config file in /etc/ssh where i used to do these changes during R80.10 but in R81.20 this file is un editable.. i am kind of stuck here and dont know how to resolve this.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jul 2024 12:08:57 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/Disable-weak-Kex-and-Macs-on-R81-20/m-p/219699#M36606</guid>
      <dc:creator>LostBoY</dc:creator>
      <dc:date>2024-07-04T12:08:57Z</dc:date>
    </item>
    <item>
      <title>Re: Disable weak Kex and Macs on R81.20</title>
      <link>https://community.checkpoint.com/t5/General-Topics/Disable-weak-Kex-and-Macs-on-R81-20/m-p/219947#M36641</link>
      <description>&lt;P&gt;&lt;SPAN&gt;sshd_config is generated from /etc/ssh/templates/sshd_config.templ&lt;BR /&gt;You can make the necessary changes there, regenerate the sshd_config, and restart sshd:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;/bin/sshd_template_xlate &amp;lt; /config/active&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;service sshd restart&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2024 14:27:22 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/Disable-weak-Kex-and-Macs-on-R81-20/m-p/219947#M36641</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2024-07-08T14:27:22Z</dc:date>
    </item>
    <item>
      <title>Re: Disable weak Kex and Macs on R81.20</title>
      <link>https://community.checkpoint.com/t5/General-Topics/Disable-weak-Kex-and-Macs-on-R81-20/m-p/219950#M36642</link>
      <description>&lt;P&gt;I edited that file in R81.20 many times, it definitely works. If you try to vi it, what does it show you?&lt;/P&gt;
&lt;P&gt;Andy&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2024 14:40:44 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/Disable-weak-Kex-and-Macs-on-R81-20/m-p/219950#M36642</guid>
      <dc:creator>the_rock</dc:creator>
      <dc:date>2024-07-08T14:40:44Z</dc:date>
    </item>
    <item>
      <title>Re: Disable weak Kex and Macs on R81.20</title>
      <link>https://community.checkpoint.com/t5/General-Topics/Disable-weak-Kex-and-Macs-on-R81-20/m-p/220229#M36702</link>
      <description>&lt;P&gt;i get this error when i ran the following&amp;nbsp;after modifying the templ file&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;/bin/sshd_template_xlate &amp;lt; /config/active&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;sshd_config parsing starting...cp: cannot create regular file '/etc/ssh/sshd_config': Permission denied&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jul 2024 13:00:42 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/Disable-weak-Kex-and-Macs-on-R81-20/m-p/220229#M36702</guid>
      <dc:creator>LostBoY</dc:creator>
      <dc:date>2024-07-10T13:00:42Z</dc:date>
    </item>
    <item>
      <title>Re: Disable weak Kex and Macs on R81.20</title>
      <link>https://community.checkpoint.com/t5/General-Topics/Disable-weak-Kex-and-Macs-on-R81-20/m-p/220242#M36708</link>
      <description>&lt;P&gt;Just a note: hmac-sha1 is plenty secure for the next thousand years, probably longer. hmac-md5 is, too. Anybody who contends otherwise is confusing data integrity hashes with HMACs.&lt;/P&gt;
&lt;P&gt;If you're sure this is something you want to do, you could always edit &lt;A href="https://man.openbsd.org/sshd_config" target="_self"&gt;/etc/ssh/sshd_config&lt;/A&gt; directly and &lt;A href="https://community.checkpoint.com/t5/Security-Gateways/Modify-sshd-config-in-R81/m-p/157744/highlight/true#M27428" target="_self"&gt;set the immutable attribute&lt;/A&gt;. Be sure you have non-SSH-based connectivity to the system, as you can't fix a broken sshd config using an sshd which refuses to start because the config is broken.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jul 2024 13:38:38 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/Disable-weak-Kex-and-Macs-on-R81-20/m-p/220242#M36708</guid>
      <dc:creator>Bob_Zimmerman</dc:creator>
      <dc:date>2024-07-10T13:38:38Z</dc:date>
    </item>
    <item>
      <title>Re: Disable weak Kex and Macs on R81.20</title>
      <link>https://community.checkpoint.com/t5/General-Topics/Disable-weak-Kex-and-Macs-on-R81-20/m-p/220322#M36723</link>
      <description>&lt;P&gt;You may want to check if /etc/ssh/sshd_config is immutable or not.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jul 2024 21:36:08 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/Disable-weak-Kex-and-Macs-on-R81-20/m-p/220322#M36723</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2024-07-10T21:36:08Z</dc:date>
    </item>
    <item>
      <title>Re: Disable weak Kex and Macs on R81.20</title>
      <link>https://community.checkpoint.com/t5/General-Topics/Disable-weak-Kex-and-Macs-on-R81-20/m-p/220402#M36730</link>
      <description>&lt;P&gt;You can use lsattr to check the extended attributes of a file. This includes whether the file is immutable:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;[Expert@DallasSA]# chattr +i /etc/ssh/sshd_config

[Expert@DallasSA]# lsattr /etc/ssh/sshd_config
----i----------- /etc/ssh/sshd_config

[Expert@DallasSA]# echo "" &amp;gt; /etc/ssh/sshd_config
-bash: /etc/ssh/sshd_config: Permission denied

[Expert@DallasSA]# chattr -i /etc/ssh/sshd_config

[Expert@DallasSA]# lsattr /etc/ssh/sshd_config
---------------- /etc/ssh/sshd_config&lt;/LI-CODE&gt;
&lt;P&gt;The 'i' flag here is the immutable attribute. When a file is immutable, even root isn't allowed to change or remove the file. The attribute must be removed first using 'chattr -i'.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2024 13:45:52 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/Disable-weak-Kex-and-Macs-on-R81-20/m-p/220402#M36730</guid>
      <dc:creator>Bob_Zimmerman</dc:creator>
      <dc:date>2024-07-11T13:45:52Z</dc:date>
    </item>
  </channel>
</rss>

