Skip to content
This repository has been archived by the owner on Oct 27, 2024. It is now read-only.

Checkov is a static code analysis tool for infrastructure as code.The Checkov Plugin for Intellij enables developers to get real-time scan results, as well as inline fix suggestions as they develop cloud infrastructure.

License

Notifications You must be signed in to change notification settings

bridgecrewio/checkov-jetbrains-ide

Repository files navigation

checkov

Build Version Downloads slack-community

Deprecation Notice

This plugin has been deprecated. Upgrade to the latest and improved Prisma Cloud plugin for enhanced capabilities and security. Explore the new plugin here. Thank you for your continued support!

Checkov Plugin for Jetbrains IDEA

Checkov is a static code analysis tool for infrastructure-as-code.

The Checkov Plugin for Intellij enables developers to get real-time scan results, as well as inline fix suggestions as they develop cloud infrastructure.

The plugin is currently available for download directly from the IntelliJ Plugin Marketplace and its source code is available in an Apache 2.0 licensed repository.

Activating the plugin requires submission of a Prisma Cloud Access Key. It uses open Prisma Cloud to evaluate code and offer automated inline fixes. For more information about data shared with Prisma Cloud see the Disclaimer section below).

Plugin features include:

  • 1000+ built-in policies covering security and compliance best practices for AWS, Azure and Google Cloud.
  • Terraform, Terraform Plan, CloudFormation, Kubernetes, Helm, Serverless and ARM template scanning.
  • Detects AWS credentials in EC2 Userdata, Lambda environment variables and Terraform providers.
  • In Terraform and CloudFormation checks support evaluation of arguments expressed in variables and remote modules to their actual values.
  • Supports inline suppression via comments.
  • Links to policy descriptions, rationales as well as step by step instructions for fixing known misconfigurations.
  • Fix suggestions for commonly misconfigured Terraform and CloudFormation attributes.

Getting started

Install

  • Using IDE built-in plugin system:

    Settings/Preferences > Plugins > Marketplace > Search for "checkov" > Install Plugin

  • Manually:

    Download the latest release and install it manually using Settings/Preferences > Plugins > ⚙️ > Install plugin from disk...

Dependencies

The Checkov plugin will invoke the latest version of Checkov.

Configuration

  • In Prisma Cloud, go to Settings > Access Control > Add > Access Key and copy the keys.
  • In Jetbrains, enter your API endpoint and keys in the Checkov plugin settings page under tools.
  • Using a custom CA certificate is possible. If needed, set the path to the certificate file in the Checkov plugin settings page.

Usage

  • Open a file you wish to scan with checkov in IntelliJ.
  • Checkov will run automatically everytime an IaC is opened or saved.
  • Scan results should now appear in the checkov tool window in the bottom of your IDE.
  • Scan results will appear on the left side as a tree of File Names -> Resources -> Violated checks.
  • Click a check to see its details. Details including violating policy and a link to step-by-step fix guidelines.
  • In most cases, the Details will include a fix option. This will either add, remove or replace an unwanted configuration, based on the Checkov fix dictionaries.
  • You can skip checks by adding an inline skip annotation checkov:skip=<check_id>:<suppression_comment>. For more details see the docs.
  • To get Checkov results updated as you code you can configure the IDE to autosave modified files at regular time intervals.

Troubleshooting logs

To access checkov-intellij logs directory, go to Help and select Show Log in Finder (for macOS) or Show Log in Explorer (for Windows).

Contributing

Contribution is welcomed!

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

Looking to contribute new checks? Learn how to write a new check (AKA policy) here.

Disclaimer

To use this plugin, you will need a Prisma Cloud account. The plugin uses Prisma Cloud's fixes API to analyse and produce code fixes, and enrich the results provided into the IDE. Please notice the Prisma Cloud privacy policy for more details. To generate fixes, files found to have triggered checkov violations are made available to the fixes API for the sole purpose of generating inline fixes code recommendations.


The plugin is based on the Jetbrains Platform Plugin Template.

About

Checkov is a static code analysis tool for infrastructure as code.The Checkov Plugin for Intellij enables developers to get real-time scan results, as well as inline fix suggestions as they develop cloud infrastructure.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages