# 使用 Homebrew, Nix 安装 kics

查看 kics 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:kics
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install kics
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#kics
```

  证据: nixpkgs package indexes: pkgs/by-name/ki/kics/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## 软件包事实

- **软件包键:** brew:kics
- **软件包管理器:** Homebrew
- **版本:** 2.1.21
- **来源摘要:** Detect vulnerabilities, compliance issues, and misconfigurations
- **主页:** <https://kics.io/>
- **仓库:** <https://github.com/Checkmarx/kics>
- **最后更新:** 2026-07-30T10:16:03Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- kics (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 2.1.21
## 项目历史与用法

KICS, short for Keeping Infrastructure as Code Secure, is Checkmarx's open-source scanner for infrastructure-as-code vulnerabilities, compliance problems, and misconfigurations.

### 项目历史

Checkmarx created the public KICS repository in 2020 and published v1.0.0 on 2020-11-30. The project arrived during the wider shift from manually provisioned infrastructure toward Terraform, Kubernetes, Helm, CloudFormation, Docker Compose, and other declarative infrastructure formats, where configuration mistakes can become security defects.

### 采用历史

KICS adoption is tied to CI and DevSecOps workflows. Official materials document a GitHub Action, a Docker image, a standalone CLI, and broad platform coverage across Terraform, Kubernetes, Docker, CloudFormation, Ansible, Helm, OpenAPI, gRPC, Azure Resource Manager, Pulumi, Serverless Framework, OpenTofu, Bicep, and more.

### 使用方式

Users run `kics scan` or CI integrations against infrastructure repositories to catch risky cloud and orchestration settings before deployment. Query packs and documentation make it useful both for one-off audits and for policy-style checks in build pipelines.

### 为什么软件包爱好者会关心

KICS is significant because it packages a large IaC security rule corpus as a Go CLI that can be installed by package managers, run in containers, or embedded in GitHub workflows. It sits in the same package-nerd mental shelf as Terraform linters, policy engines, and static analyzers, but focuses on concrete misconfiguration checks across many IaC syntaxes.

### 时间线

- 2020: Checkmarx/kics repository created on GitHub.
- 2020: v1.0.0 release published on 2020-11-30.
- 2021: The 1.1 and 1.2 release series expanded after the initial 1.0 release.
- 2025: The 2.1 release series was active through repeated published releases.
- 2026: v2.1.20 release published on 2026-03-03.

### Related projects

- Official KICS materials include a companion Checkmarx/kics-github-action repository for GitHub Actions integration and documentation for scanning common IaC ecosystems such as Terraform, Kubernetes, Helm, CloudFormation, and Docker Compose.

### 来源

- <https://checkmarx.com/product/kics/>
- <https://docs.kics.io/>
- <https://docs.kics.io/latest/integrations_ghactions/>
- <https://github.com/Checkmarx/kics>
- <https://github.com/Checkmarx/kics-github-action>
- <https://github.com/Checkmarx/kics/releases>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: kics.config
## 其他软件包管理器记录

- Nix - kics: normalized package name match | nixpkgs package indexes: pkgs/by-name/ki/kics/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## Combined YAML source

View the package source record on GitHub. [combined/kics.yml](https://github.com/mxcl/pkgdb/blob/main/combined/kics.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
