<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Anitatyagi on Medium]]></title>
        <description><![CDATA[Stories by Anitatyagi on Medium]]></description>
        <link>https://medium.com/@anitatyagi1995?source=rss-640c5e36c7d8------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*Ag4SmM_abK7shqFb</url>
            <title>Stories by Anitatyagi on Medium</title>
            <link>https://medium.com/@anitatyagi1995?source=rss-640c5e36c7d8------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 11:27:50 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@anitatyagi1995/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Basic overview of Vulnerability Scanner]]></title>
            <link>https://medium.com/@anitatyagi1995/basic-overview-of-vulnerability-scanner-d930bfb68d63?source=rss-640c5e36c7d8------2</link>
            <guid isPermaLink="false">https://medium.com/p/d930bfb68d63</guid>
            <category><![CDATA[trivy]]></category>
            <category><![CDATA[scanning]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[kubernetes-security]]></category>
            <category><![CDATA[vulnerability]]></category>
            <dc:creator><![CDATA[Anitatyagi]]></dc:creator>
            <pubDate>Tue, 14 May 2024 09:26:14 GMT</pubDate>
            <atom:updated>2024-05-14T09:28:21.508Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*nWTXlj0UNVtygMSy" /></figure><p>Trivy is an open source vulnerability scanner tool. It scans container images and identifies security vulnerabilities within the packages installed in those images, as well as insecure file permissions and outdated dependencies. Trivy supports various container image formats, including Docker, OCI, and more. <br>Trivy has three scan types: container, Git repository, and filesystem directory. We are going to discuss docker image scanner in this article.</p><p><strong>Use Case:</strong></p><p>In our project, we aim to check our application’s Docker images for vulnerabilities before storing them in the Artifactory. We needed a tool for this task and found out about Trivy, which is an open-source tool specifically designed for scanning images.</p><p>Trivy offers two installation options: you can install it as a package or use it as a Docker image.</p><p><strong>Trivy Setup:</strong></p><p><strong>Option 1: </strong>Install Trivy using Docker</p><p>If you prefer to use Docker, you can simply pull the Trivy Docker image from Docker Hub:</p><pre>docker pull aquasec/trivy</pre><h4>Option 2: Install Trivy as a standalone binary</h4><p>If you want to install Trivy as a standalone binary, you can download the latest release from the Trivy GitHub releases page:</p><pre>wget https://github.com/aquasecurity/trivy/releases/download/vX.Y.Z/trivy_X.Y.Z_Linux-64bit.tar.gz<br>tar zxvf trivy_X.Y.Z_Linux-64bit.tar.gz<br>sudo mv trivy /usr/local/bin/</pre><p>Replace X.Y.Z with the version number you want to install.</p><h3>Scan Docker images with Trivy</h3><p>Once you have Trivy installed, you can use it to scan Docker images for vulnerabilities. In below example, I will be using the redis image.</p><pre>docker run - rm -v /var/run/docker.sock:/var/run/docker.sock -v $(pwd):/root/.cache/ aquasec/trivy image redis:tag</pre><p><strong>Note:</strong> Trivy will download its vulnerability database on the first run. The database will be cached and reused for future scans.</p><p><strong>Downloading database:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*G7zLPogJlCy4hmr7" /></figure><p>Scan results are emitted straight to your terminal. The summary at the top shows the detected container operating system and a breakdown of found vulnerabilities by severity. The table provides a full list of issues, including the library each one was found in, a description, and a CVE ID when available.</p><p><strong>Filtering Vulnerabilities:</strong></p><p>Trivy supports several flags to let you customize its output. It will default to showing all detected vulnerabilities if no flags are present.<br>If you want to include or exclude severity level from the output, you can use the severity tag with trivy command:</p><p><strong>Severity option would be:</strong> Unknown, Low, Medium, High &amp; Critical</p><p>Below results with Critical option:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*REAzFR8RvNHoHwRc" /></figure><p>Once you have the trivy setup, You can easily scan the application image with trivy &amp; integrated with CI/CD pipeline.</p><h4><strong>Conclusion:</strong></h4><p>Adding trivy to your Docker container scanning routine helps you find and fix vulnerabilities before they cause problems in your production system.By utilising trivy, you can detect and address potential security threats early in the development process. Moreover, leveraging Trivy’s ability to categorize vulnerabilities by severity allows you to prioritize and take immediate action on critical issues, preventing them from progressing further down the pipeline.</p><p>Ultimately, Trivy empowers you to strengthen the security posture of your applications and enhance overall risk management practices.</p><p>Thanks for reading!!!</p><p>Authored by <a href="https://medium.com/u/640c5e36c7d8">Anitatyagi</a> &amp; <a href="https://medium.com/u/1be6a927808f">Trivikram V</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d930bfb68d63" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>