kics

command module
v0.7.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 9, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

README

KICS

KICS is a scanner application that uses Checkmarx KICS (Keeping Infrastructure as Code Secure) to scan your Infrastructure as Code (IaC) files for misconfigurations. It's designed to be used as a plugin for the VMClarity platform.

Usage

Make a POST request with config below to the VMClarity API /assetScans endpoint to initiate a KICS scan. The body of the POST request should include a JSON object with the configuration for the scan.

NOTE: Below is a minimal example. Your actual configuration should have additional properties.

{
    "name": "scan-name",
    "scanTemplate": {
        "scope": "contains(assetInfo.labels, '{\"key\":\"scanconfig\",\"value\":\"test\"}')",
        "assetScanTemplate": {
            "scanFamiliesConfig": {
                "plugins": {
                      // TODO(ramizpolic): Update with request data once decided in plugin integrations work
                }
            }
        }
    }
}
Usage notes
  • The KICS scanner is designed to be started by VMClarity, therefore running it as a standalone tool is not recommended.

  • The value of the scannerConfig property in the POST request should contain the parameters that the KICS client will use.

  • Please note that not all scan parameters are currently supported by the scanner.

When the scan is done, the output can be found at the <specified output JSON file>. KICS scan findings are exported via Result model defined in Scanner Plugin OpenAPI specs. They are saved to the specified output file in JSON format.

KICS outputs all its findings as Misconfiguration models under Result.vmclarity.misconfigurations property. See Scanner Plugin OpenAPI specs.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL