Facebook Twitter Instagram
    TecAdmin
    • Home
    • Ubuntu 20.04
      • Upgrade Ubuntu
      • Install Java
      • Install Node.js
      • Install Docker
      • Install LAMP Stack
    • Tutorials
      • AWS
      • Shell Scripting
      • Docker
      • Git
      • MongoDB
    • FeedBack
    • Submit Article
    • About Us
    Facebook Twitter Instagram
    TecAdmin
    Home»Security»How to Check for Vulnerabilities on Linux with Lynis

    How to Check for Vulnerabilities on Linux with Lynis

    jason.sotoBy jason.sotoMarch 14, 20142 Mins ReadUpdated:October 23, 2019

    If we are working as a System Administrator, Security or System auditor, our responsibilities include tasks like: Security patch installation for OS or Applications, malware scanning, File integrity checks, Security audit, configuration error checks and more. If there is a tool capable of looking for these vulnerabilities automatically it could help us a lot and we can assure we are doing our best to keep the system secure.

    One of this tools is Lynis. This tool is supported by multiple platforms including Linux CentOS, Debian, Fedora, FreeBSD, MacOS, Ubuntu and much more.

    This tool will audit the system in multiple categories like:

      • System Tools
      • Boot and Services
      • Kernel
      • Memory and process
      • User, Groups and Authentication methods
      • Shells
      • FileSystems
      • Storage
      • Network FileSystems
      • Applications
      • Name Services: Dns, Bind
      • Ports
      • Packages
      • Network Services: Nginx, Apache
      • Print Services
      • Mailing and messaging
      • SSH
      • SNMP
      • Databases: MySQL, Oracle, MariaDB
      • LDAP
      • PHP
      • Squid
      • Logs
      • Insecure Services: inetd
      • CronJobs
      • Criptography
      • Virtualization
      • File Integrity
      • Malware
      • Directories
      • And more…

    Step 1 – Install Lynis

    To install this valuable security tool, all we have to do is run these commands in the terminal as the root user. With these commands, we will create a Dir for Lynis and download the package.

    cd /opt
    git clone https://github.com/CISOfy/lynis
    

    Step 2 – Scan System with Lynis

    To run this tool simply run the below command.

    cd /opt/lynis
    ./lynis audit system --quick
    

    Once the tool has finished scanning, it will save its audit report in /var/log/lynis.log. The report will alert us with the found vulnerabilities in our Linux server. It will also give us suggestions to hardened the security.

    install lynis on Linux

    Check all results and fix vulnerabilities. For example, the result showing expose_php is on in PHP.

    Running Vulenrability scanner on Linux with Lynis

    linux security scanner lynis lynis security scanner security scanner
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email WhatsApp
    Previous ArticleRPM vs DPKG Equivalent Commands
    Next Article How to Install PHP 5.4, Apache 2.2 and MySQL on Ubuntu 14.10, 14.04, 12.04 LTS

    Related Posts

    How to Install and Configure Fail2ban on Debian 11

    3 Mins Read

    How To Secure SSH Server

    Updated:July 24, 20215 Mins Read

    How to Secure GitLab Server with Let’s Encrypt SSL

    2 Mins Read

    X-XSS-Protection – Secure Apache from Cross-Site Scripting

    Updated:August 31, 20202 Mins Read

    How to Open Specific Port in FirewallD

    Updated:February 12, 20212 Mins Read

    How to Setup Let’s Encrypt SSL with Apache on CentOS 8

    Updated:March 14, 20203 Mins Read

    2 Comments

    1. srikanth on September 13, 2017 7:19 am

      how to store the Lynis log report details into mysql database can u pls how should i get it please
      thanks advance

      Reply
    2. Young man on October 22, 2014 7:50 am

      How to update lynis because update is available hope to help

      Reply

    Leave A Reply Cancel Reply

    Recent Posts
    • How to Import GPG Keys on Ubuntu & Debian (without apt-key)
    • How To Install Google Chrome On macOS
    • How to Install Minecraft on Ubuntu 22.04 & 20.04
    • Running a Cron job every Sunday (Weekly)
    • Running Multiple Commands At Once in Linux
    Facebook Twitter Instagram Pinterest
    © 2022 Tecadmin.net. All Rights Reserved | Terms  | Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.