Announcement

Collapse
No announcement yet.

OpenSSH vulnerabilities in PCI scan report

Collapse
X
Collapse
  •  

  • OpenSSH vulnerabilities in PCI scan report

    How to update OpenSSH version to latest openssh-7.4p1

    PCI Scan is very big topic to explain and will require a separate article for an explanation, However, I will explain in an easy way. Basically, PCI compliance is a process where your servers are scanned for any vulnerabilities that can be exploited. The process scans all the services, packages installed their versions and Open ports status on your server. With the help of scan report system, admins can patch up the security loopholes, lock down ports and upgrade the packages to the latest version.

    One service which will always be possible reported for vulnerabilities is OpenSSH, So when you receive a PCI scan report that returns the unsupported version of OpenSSH vulnerabilities then you will have to perform an update.

    The process of OpenSSH upgrade will require root access to the server. Today we are going to show you how to update OpenSSH service to latest OpenSSH-7.4p1 version.

    After the updated version please resubmit your request for PCI scan.

    Click image for larger version  Name:	openssh-pci-scan.jpg Views:	5 Size:	71.0 KB ID:	316

    You can find the current version of OpenSSH on your server using the following command:

    Code:
    -bash-4.1# rpm -qa | grep openssh
    Which shows your OpenSSH package’s version is OpenSSH-5.3p1-123.el6_9:

    You can download the updated version of OpenSSH using the following link: http://www.openssh.com/portable.html

    Code:
    -bash-4.1# cd /usr/src
    -bash-4.1# wget [URL="http://mirrors.evowise.com/pub/OpenBSD/OpenSSH/portable/openssh-7.4p1.tar.gz"][U]http://mirrors.evowise.com/pub/OpenB...h-7.4p1.tar.gz[/U][/URL]
    -bash-4.1# tar -xvzf openssh-7.4p1.tar.gz
    Then, you may need to install a few things for your RPM build to work:

    Code:
    yum install rpm-build gcc make wget OpenSSL-devel krb5-devel pam-devel libX11-devel xmkmf libXt-devel
    Next, run the followig commands:

    Code:
    -bash-4.1# mkdir -p /root/rpmbuild/{SOURCES,SPECS}
    -bash-4.1# cp ./openssh-7.4p1/contrib/redhat/openssh.spec /root/rpmbuild/SPECS/
    -bash-4.1# cp openssh-7.4p1.tar.gz /root/rpmbuild/SOURCES/
    -bash-4.1# cd /root/rpmbuild/SPECS/
    Next, run the following sed commands:

    Code:
    server# sed -i -e "s/%define no_gnome_askpass 0/%define no_gnome_askpass 1/g" openssh.spec
    server# sed -i -e "s/%define no_x11_askpass 0/%define no_x11_askpass 1/g" openssh.spec
    server# sed -i -e "s/BuildPreReq/BuildRequires/g" openssh.spec
    and build your RPM using the command:

    Code:
    -bash-4.1# rpmbuild -bb OpenSSH.spec
    Now, you’ll see four RPMs.

    Example:

    Code:
    -bash-4.1# cd /root/rpmbuild/RPMS/x86_64/
    -bash-4.1# ls -la
    total 1524
    drwxr-xr-x 2 root root 4096 Dec 1 10:11 .
    drwxr-xr-x 3 root root 4096 Dec 1 10:11 ..
    -rw-r--r-- 1 root root 516172 Dec 1 10:11 openssh-7.4p1-1.x86_64.rpm
    -rw-r--r-- 1 root root 609468 Dec 1 10:11 openssh-clients-7.4p1-1.x86_64.rpm
    -rw-r--r-- 1 root root 16964 Dec 1 10:11 openssh-debuginfo-7.4p1-1.x86_64.rpm
    -rw-r--r-- 1 root root 387436 Dec 1 10:11 openssh-server-7.4p1-1.x86_64.rpm
    Next, go with the final install using the command:

    Code:
    -bash-4.1# rpm -Uvh *.rpm
    To verify the newly installed OpenSSH version, use command"

    Code:
    server# rpm -qa | grep openssh
    I hope this article helps you to upgrade OpenSSH version. Please get back to us if you have any issues.
      Posting comments is disabled.

    Categories

    Collapse

    Latest Articles

    Collapse

    • What is Containerization? A Deep Dive into Containerization
      by Lalit_Waghulkar
      Hey there tech enthusiasts!

      Today, we're diving into the tech wonderland of containerization – a game-changer in the world of software development. So, buckle up your coding belts as we explore the ins and outs of this revolutionary technology and how it's turning the tables for developers everywhere.

      Containerization: What's the Buzz About?
      Alright, let's start with the basics. Containerization is like a digital lunchbox for your apps, keeping everything they need...
      01-10-2024, 03:08 PM
    • Enable native brute-force protection
      by Akash Gorane
      Error on Imunify 360 dashboard: Enable native brute-force protection module for Dovecot to protect against IMAP/POP3 services attacks.
      Screenshot: https://prnt.sc/ExqjW1hdfOrR

      Solution: Dovecot native brute force protection module improves stability and resolves issues that standard PAM caused in some cases The following commands can be used to control the Dovecot native module.

      Enable:
      :
      imunify360-agent config update '{"PAM": {"enable":
      ...
      02-03-2023, 06:12 PM
    • Enable native brute-force protection.
      by Akash Gorane
      Error on Imunify 360 dashboard: Enable native brute-force protection module for Dovecot to protect against IMAP/POP3 services attacks.
      Screenshot: https://prnt.sc/ExqjW1hdfOrR

      Solution: Dovecot native brute force protection module improves stability and resolves issues that standard PAM caused in some cases The following commands can be used to control the Dovecot native module.
      Enable:

      :
      imunify360-agent config update '{"PAM": {"enable":
      ...
      02-03-2023, 06:09 PM
    • Top Command
      by Akash Gorane
      [COLOR=rgba(0, 0, 0, 0.9)]'top' command is used to display dynamic real-time information about running processes in the system.[/COLOR]



      - PID: Shows task’s unique process id.
      - PR: Stands for priority of the task.
      - SHR: Represents the amount of shared memory used by a task.
      - VIRT: Total virtual memory used by the task.
      - USER: User name of owner of task.
      - %CPU: Represents the CPU usage.
      - TIME+: CPU Time, the same as ‘TIME’,
      ...
      01-12-2023, 05:12 PM
    • Top Command
      by Akash Gorane
      [COLOR=rgba(0, 0, 0, 0.9)]top command is used to display dynamic real-time information about running processes in the system.[/COLOR]



      - PID: Shows task’s unique process id.
      - PR: Stands for priority of the task.
      - SHR: Represents the amount of shared memory used by a task.
      - VIRT: Total virtual memory used by the task.
      - USER: User name of owner of task.
      - %CPU: Represents the CPU usage.
      - TIME+: CPU Time, the same as ‘TIME’,...
      01-12-2023, 05:05 PM
    • TOP Command
      by Akash Gorane
      #[COLOR=rgba(0, 0, 0, 0.9)] top command is used to display dynamic real-time information about running processes in the system.[/COLOR]

      -
      - PID: Shows task’s unique process id.
      - PR: Stands for priority of the task.
      - SHR: Represents the amount of shared memory used by a task.
      - VIRT: Total virtual memory used by the task.
      - USER: User name of owner of task.
      - %CPU: Represents the CPU usage.
      - TIME+: CPU Time, the same as ‘TIME’,
      ...
      01-12-2023, 05:04 PM
    Working...
    X