Snyk - Ubuntu 20.04 (Linux)

In this article, we are going to learn about Snyk, features, and hands-on demo on how to install, usage and uninstall on Ubuntu 20.04(Linux).  

Disclaimer: The articles provided on HackWithV is purely for informational and educational purpose only, and for those who are willing and curious to know & learn about Cyber Security, Ethical Hacking, Software Development and IT Operations. Anytime the word "Hacking" that is used on this site shall be regarded as Ethical Hacking.

Table of Content


What is Snyk ? 

  • Snyk is a developer security platform for securing code, dependencies, containers, and infrastructure as code
  • Integrating directly into development tools, workflows, and automation pipelines. 
  • Snyk makes it easy for teams to find, prioritize, and fix security vulnerabilities in code, dependencies, containers, and infrastructure as code. 
  • It has both CLI and Web GUI

Features 

  • Secure while we code in IDE 
  • Integrate source code repositories to secure applications 
  • Secure containers as we build, throughout the SDLC 
  • Secure build and deployment pipelines

Hands-on 

    Requirements 

    • Operating System: Ubuntu 20.04.3 LTS
    • Tools: Terminal, wget, Snyk. 
    • Permission: super user

    Download

    • Click here to download the snyk CLI binary file from the official website. 
    • Update the repositories. Type sudo apt update

    • Install wget, type sudo apt install wget -y  

    • Download the snyk CLI binary, type wget https://static.snyk.io/cli/latest/snyk-linux 

    Install 

    • Open the terminal and type the following commands. 
    • Rename the file, make it executable and move the file into /usr/local/bin, type
      • mv snyk-linux snyk
      • chmod +x snyk 
      • mv snyk /usr/local/bin/ 

    Usage 

    • Check the version, type snyk –version 

    Authenticate & Authorization 


    • Authorize the local machine with a snyk account, type
      • snyk auth

    • Browser tab will be opened automatically or copy the link manually, paste it in the browser and click on Authenticate

    • If authentication is successful, we get a response as Your account has been authenticated. Snyk is now ready to be used

    • Scan the project, type snyk test 
    • Monitor the project, type snyk monitor 

    Uninstall  

    • Remove snyk binary. Type sudo rm -f /usr/local/bin/snyk 

    Cheat Sheet 



    Requirements 
    sudo apt update
    sudo apt install wget -y

    Install
    wget https://static.snyk.io/cli/latest/snyk-linux
    mv snyk-linux snyk
    chmod +x snyk
    sudo mv snyk /usr/local/bin/

    Usage 
    snyk --version
    snyk auth
    snyk test
    snyk monitor

    Uninstall
    sudo rm -f /usr/local/bin/snyk


    Conclusion 

    • Snyk is installed from the official repository and tested on Ubuntu 20.04.3 LTS. 

    If you face any problem, Let me know in the comments or you can directly reach me at help.hackwithv@gmail.com

     

    Be Aware, Be Secure.

    Thank You 🙏

     

    Comments

    Popular posts from this blog

    Demo 1- How to Track Location by a Link

    Cracking VNC Password Using Hydra