checkov | Prevent cloud misconfigurations and find vulnerabilities | Security library

 by   bridgecrewio Python Version: 3.2.144 License: Apache-2.0

kandi X-RAY | checkov Summary

kandi X-RAY | checkov Summary

checkov is a Python library typically used in Security, Terraform applications. checkov has no bugs, it has no vulnerabilities, it has build file available, it has a Permissive License and it has medium support. You can install using 'pip install checkov' or download it from GitHub, GitLab, PyPI.

Checkov is a static code analysis tool for infrastructure-as-code. It scans cloud infrastructure provisioned using Terraform, Terraform plan, Cloudformation, AWS SAM, Kubernetes, Helm charts,Kustomize, Dockerfile, Serverless or ARM Templates and detects security and compliance misconfigurations using graph-based scanning. Checkov also powers Bridgecrew, the developer-first platform that codifies and streamlines cloud security throughout the development lifecycle. Bridgecrew identifies, fixes, and prevents misconfigurations in cloud resources and infrastructure-as-code files.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              checkov has a medium active ecosystem.
              It has 5668 star(s) with 913 fork(s). There are 62 watchers for this library.
              There were 10 major release(s) in the last 6 months.
              There are 113 open issues and 1241 have been closed. On average issues are closed in 121 days. There are 23 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of checkov is 3.2.144

            kandi-Quality Quality

              checkov has 0 bugs and 0 code smells.

            kandi-Security Security

              checkov has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              checkov code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              checkov is licensed under the Apache-2.0 License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              checkov releases are available to install and integrate.
              Deployable package is available in PyPI.
              Build file is available. You can build the component from source.
              Installation instructions, examples and code snippets are available.
              It has 136048 lines of code, 5919 functions and 3296 files.
              It has medium code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed checkov and discovered the below as its top functions. This is intended to give you an instant insight into checkov implemented functionality, and help decide if they suit your requirements.
            • Run checkov analysis
            • Check if a check is in baseline
            • Add failed checks from a report
            • Compares a list of baseline reports to reduce coverage
            • Parse a JSON object
            • Compute the start and end of a string
            • Count the number of occurrences of the key in arr
            • Scans a string and returns a list of unicode characters
            • Create a BOM object
            • Scans the spec from the given conf
            • Scans the given conf file and returns the results
            • Scans a resource configuration file and returns a check result
            • Creates a report with the given checks results
            • Writes a configuration file to disk
            • Scans a config block and returns a sanity check
            • Scans a YAML file and returns the result
            • Determines if the given graph connects to the given graph
            • Runs checks against the given file
            • Scans the given configuration block and returns a boolean indicating whether the rules are valid
            • Parse a template file
            • Get a mapping of module names to module dependencies
            • Evaluate vertex attribute from edge list
            • Start startup
            • Validate the webhook
            • Scans the resource configuration
            • Extract images from the workflow
            Get all kandi verified functions for this library.

            checkov Key Features

            No Key Features are available at this moment for checkov.

            checkov Examples and Code Snippets

            Checkov GitHub action,Example usage
            Shelldot img1Lines of Code : 21dot img1License : Permissive (Apache-2.0)
            copy iconCopy
            jobs:
              checkov-job:
                runs-on: ubuntu-latest
                name: checkov-action
                steps:
                  - name: Checkout repo
                    uses: actions/checkout@master
            
                  - name: Run Checkov action
                    id: checkov
                    uses: bridgecrewio/checkov-action@mast  
            terraform-provider-bridgecrew,Checkov/Bridgecrew
            Godot img2Lines of Code : 18dot img2no licencesLicense : No License
            copy iconCopy
            checkov -d .
            
                   _               _
               ___| |__   ___  ___| | _______   __
              / __| '_ \ / _ \/ __| |/ / _ \ \ / /
             | (__| | | |  __/ (__|   < (_) \ V /
              \___|_| |_|\___|\___|_|\_\___/ \_/
            
            By bridgecrew.io | version: 2.0.413
            
            terraform scan re  

            Community Discussions

            QUESTION

            How to run checkov scan on terraform plan
            Asked 2022-Feb-18 at 12:17

            I would like to have checkov scan terraform plan output but I am not getting any success with that.Below is my code in terragrunt.hcl,GitHub Actions workflow and the message I got when my workflow completed.I have tried few methods to have it work but I am still unable to configure it correctly so that checkov can analyse the Json output of terraform plan.I would appreciate any help that I can get on this.Thank you for your assistance inadvance

            ...

            ANSWER

            Answered 2022-Feb-18 at 12:17

            I guess it doesn't support however you can try this

            Source https://stackoverflow.com/questions/70601192

            QUESTION

            Receiving a parsing error while using Checkov
            Asked 2021-Nov-23 at 20:29

            Below is an attempt to run a checkov scan on a plan file

            ...

            ANSWER

            Answered 2021-Nov-23 at 20:29

            If you're scanning a plan file, I think it makes sense to specify the framework flag like so:

            Source https://stackoverflow.com/questions/70037670

            QUESTION

            Why the production plan job in to-be-continuous/terraform is launched on a merge request pipeline?
            Asked 2021-Oct-22 at 06:45

            I'm wondering why the job "tf-plan-production" in the to-be-continuous/terraform template is the only one running on a merge request pipeline?
            Does anybody know the reason behind this?
            Because I find it disturbing to have 2 pipelines, 1 detached pipeline containing only a single job while the other pipeline contains all the other jobs (tf-plan-review, tf-tflint, tf-checkov ...). I hesitate to override this rule as I may miss something important.

            To be more precise, in this to-be-continuous template, all the defined jobs are never run on a merge request pipeline by using the rule :

            ...

            ANSWER

            Answered 2021-Oct-20 at 19:44

            terraform plan is a nondestructive operation that compares what terraform would create to what exists in output, and creates a diff between existing state and state that has been coded but not created.

            Typically it is run when a PR is created so that a dry run is available and visible to the developers, while terraform apply is run on merge. If there isn't another environment developers can test their changes in, it is a necessary step.

            Source https://stackoverflow.com/questions/69650004

            QUESTION

            Checkov error: AttributeError: type object 'Lark' has no attribute '_load_from_dict
            Asked 2021-Jul-07 at 11:17

            I'm having some issues running checkov, I'm not familiar with python libraries, anyone can give me some hints?

            This is working fine in some machines but not in this one in particular...

            Running in CentOS:

            ...

            ANSWER

            Answered 2021-Jul-05 at 14:17

            After upgrading python from 3.6 to 3.8 and reinstalling checkov it worked just fine.

            Source https://stackoverflow.com/questions/68255597

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install checkov

            Installation on Ubuntu 18.04 LTS:. Ubuntu 18.04 ships with Python 3.6. Install python 3.7 (from ppa repository). or using homebrew (MacOS only).
            if you installed checkov with pip3.

            Support

            Start by reviewing the contribution guidelines. After that, take a look at a good first issue.
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            Install
          • PyPI

            pip install checkov

          • CLONE
          • HTTPS

            https://github.com/bridgecrewio/checkov.git

          • CLI

            gh repo clone bridgecrewio/checkov

          • sshUrl

            git@github.com:bridgecrewio/checkov.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Explore Related Topics

            Consider Popular Security Libraries

            Try Top Libraries by bridgecrewio

            AirIAM

            by bridgecrewioPython

            yor

            by bridgecrewioGo

            checkov-vscode

            by bridgecrewioTypeScript

            checkov-action

            by bridgecrewioShell

            bridgecrew-action

            by bridgecrewioShell