{"id":3314,"date":"2022-08-17T21:30:29","date_gmt":"2023-06-15T13:37:42","guid":{"rendered":""},"modified":"2025-02-02T00:46:20","modified_gmt":"2025-02-01T23:46:20","slug":"how-to-install-and-use-vuls-vulnerability-scanner-on-ubuntu-24-04","status":"publish","type":"post","link":"https:\/\/netcloud24.com\/knowledgebase\/how-to-install-and-use-vuls-vulnerability-scanner-on-ubuntu-24-04\/","title":{"rendered":"Linux VPS &#038; VPS Windows Setup Guide | NetCloud24 and Use Vuls Vulnerability Scanner on Ubuntu 24.04"},"content":{"rendered":"<p>\u00a0<\/p>\n<\/p>\n<h1>\u00a0<\/h1>\n<h2>Introduction<\/h2>\n<p>Vuls is an open-source vulnerability scanner for Linux systems. It helps identify vulnerabilities by checking installed packages against various databases. In this guide, we will walk you through the installation and usage of Vuls on Ubuntu 24.04.<\/p>\n<h2>Prerequisites<\/h2>\n<ul>\n<li>A server running Ubuntu 24.04.<\/li>\n<li>Root access or a user with <code>sudo<\/code> privileges.<\/li>\n<li>Basic knowledge of the command line.<\/li>\n<\/ul>\n<h2>Step 1: Update the System<\/h2>\n<p>Before you begin, ensure that your system is up to date by running the following command:<\/p>\n<pre><code>sudo apt update &amp;&amp; sudo apt upgrade -y<\/code><\/pre>\n<h2>Step 2: Install Required Dependencies<\/h2>\n<p>Install the required dependencies for Vuls:<\/p>\n<pre><code>sudo apt install -y git make gcc<\/code><\/pre>\n<h2>Step 3: Install Go Programming Language<\/h2>\n<p>Vuls is written in Go, so you will need to install it:<\/p>\n<pre><code>sudo apt install -y golang<\/code><\/pre>\n<p>Set up your Go workspace by adding it to your environment variables. Open your profile file:<\/p>\n<pre><code>nano ~\/.profile<\/code><\/pre>\n<p>Add the following lines at the end of the file:<\/p>\n<pre><code>export GOPATH=$HOME\/go\r\nexport PATH=$PATH:$GOPATH\/bin<\/code><\/pre>\n<p>Save and exit the editor, then load the new environment variables:<\/p>\n<pre><code>source ~\/.profile<\/code><\/pre>\n<h2>Step 4: Install Vuls<\/h2>\n<p>Clone the Vuls repository from GitHub:<\/p>\n<pre><code>git clone https:\/\/github.com\/future-architect\/vuls.git<\/code><\/pre>\n<p>Navigate into the Vuls directory:<\/p>\n<pre><code>cd vuls<\/code><\/pre>\n<p>Build the Vuls binary:<\/p>\n<pre><code>make build<\/code><\/pre>\n<p>After the build is complete, you can install it to your system:<\/p>\n<pre><code>sudo cp .\/vuls \/usr\/local\/bin\/<\/code><\/pre>\n<h2>Step 5: Configure Vuls<\/h2>\n<p>Before running Vuls, you need to configure it. Create a sample configuration file:<\/p>\n<pre><code>sudo nano \/etc\/vuls.toml<\/code><\/pre>\n<p>Add the following configuration, adjusting values as necessary:<\/p>\n<pre><code>[[target]]\r\n    host = \"localhost\"\r\n    \r\n    [db]\r\n    dbtype = \"sqlite3\"\r\n    <\/code><\/pre>\n<p>Save and exit the editor.<\/p>\n<h2>Step 6: Run Vuls<\/h2>\n<p>You can run Vuls to check for vulnerabilities with the following command:<\/p>\n<pre><code>sudo vuls scan<\/code><\/pre>\n<p>After the scan is complete, you can view the results in the console. For detailed reports, you may want to output the results to a file:<\/p>\n<pre><code>sudo vuls scan --output \/path\/to\/output.json<\/code><\/pre>\n<h2>Step 7: Use Vuls with Report Formats<\/h2>\n<p>The output can be customized to various formats, such as HTML or JSON. For example, to generate an HTML report:<\/p>\n<pre><code>sudo vuls report -format html --output \/path\/to\/report.html<\/code><\/pre>\n<h2>Step 8: Schedule Regular Scans (Optional)<\/h2>\n<p>You can schedule Vuls to run automatically using <code>cron<\/code>. Open the crontab for editing:<\/p>\n<pre><code>sudo crontab -e<\/code><\/pre>\n<p>Add a line to run Vuls daily at midnight:<\/p>\n<pre><code>0 0 * * * \/usr\/local\/bin\/vuls scan --output \/path\/to\/output.json<\/code><\/pre>\n<h2>Conclusion<\/h2>\n<p>You have successfully installed and configured the Vuls Vulnerability Scanner on your Ubuntu 24.04 system. Keep running regular scans to ensure that your system remains secure and up to date.<\/p>\n<h2>Resources<\/h2>\n<ul>\n<li><a href=\"https:\/\/github.com\/future-architect\/vuls\" target=\"_blank\" rel=\"follow\">Vuls GitHub Repository<\/a><\/li>\n<li><a href=\"https:\/\/vuls.io\/docs\/\" target=\"_blank\" rel=\"follow\">Vuls Documentation<\/a><\/li>\n<li><a href=\"https:\/\/golang.org\/doc\/install\/source\" target=\"_blank\" rel=\"follow\">Go Programming Language Installation<\/a><\/li>\n<\/ul>\n<div class=\"post-author-box\" style=\"border-top:1px solid #ddd;margin-top:20px;padding-top:15px;\">\n<p><strong>Author:<\/strong> \u0141ukasz Bodziony<\/p>\n<p><strong>Website:<\/strong> <a href=\"https:\/\/ca.netcloud24.com\" target=\"_blank\" rel=\"dofollow\">Windows VPS<\/a><\/p>\n<p><em>\u0141ukasz Bodziony is the CEO and founder of <a href=\"https:\/\/netcloud24.com\" target=\"_blank\" rel=\"dofollow\">NETCLOUD24<\/a>, a global VPS hosting brand proudly originating from Poland. With extensive experience in cloud computing, virtualization, and server management, he delivers high-performance <strong>Windows VPS<\/strong> and <strong>Remote Desktop Services (RDS)<\/strong> solutions to clients across Europe, North America, and beyond.<\/em><\/p>\n<p><em>His expertise covers a wide range of technologies, including <strong>Microsoft Azure<\/strong>, <strong>Proxmox VE<\/strong>, <strong>Amazon Web Services (AWS)<\/strong>, and numerous other virtualization and cloud platforms.<\/em><\/p>\n<p><em>Beyond running his hosting business, \u0141ukasz also provides <strong>professional paid server configuration and optimization services<\/strong> for companies and individuals. Outside of work, he is dedicated to caring for his children and building a secure future for them.<\/em><\/p>\n<p><em>If you are interested in working with him or need expert assistance with your hosting, cloud environment, or server setup, feel free to reach out via <a href=\"https:\/\/ca.netcloud24.com\" target=\"_blank\" rel=\"dofollow\">Windows VPS<\/a>.<\/em><\/p>\n<\/p><\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u00a0 \u00a0 Introduction Vuls is an open-source vulnerability scanner for Linux systems. It helps identify vulnerabilities by checking installed packages against various databases. In this guide, we will\u2026<\/p>\n","protected":false},"author":1,"featured_media":3421,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_seopress_robots_primary_cat":"","_seopress_titles_title":"","_seopress_titles_desc":"","_seopress_robots_index":"","footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[],"tags":[14,12,11,23,20,21,22,17,7,8,6,10,18,19,15,24,16,5,13,9],"class_list":["post-3314","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","tag-cheapvps","tag-cloudvps","tag-hostingvps","tag-rds","tag-rdscal","tag-remotedesktop","tag-remotedesktopvps","tag-servervps","tag-ukvps","tag-virtualserver","tag-vpshosting","tag-vpsserver","tag-vpssolutions","tag-vpswindows","tag-vpswithwindows","tag-windowsrds","tag-windowsserver","tag-windowsvps","tag-windowsvpshosting","tag-windowsvpsuk"],"jetpack_publicize_connections":[],"_links":{"self":[{"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/3314","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/comments?post=3314"}],"version-history":[{"count":0,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/3314\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/media\/3421"}],"wp:attachment":[{"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/media?parent=3314"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/categories?post=3314"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/tags?post=3314"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}