# 使用 Homebrew 安装 kubehound

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

## 安装

```sh
sudo av install brew:kubehound
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install kubehound
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:kubehound
- **软件包管理器:** Homebrew
- **版本:** 1.6.7
- **来源摘要:** Tool for building Kubernetes attack paths
- **主页:** <https://kubehound.io>
- **仓库:** <https://github.com/DataDog/KubeHound>
- **最后更新:** 2026-07-27T21:58:45+02:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- kubehound (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

KubeHound is Datadog's open source Kubernetes attack-graph tool. It collects cluster data, computes attack paths, and stores them in a graph database so defenders and red teams can reason about multi-hop compromise paths instead of isolated findings.

### 项目历史

The public GitHub repository was created on May 15, 2023. Datadog Security Labs announced KubeHound on October 2, 2023, describing it as a new open source project for visualizing attack paths in Kubernetes deployments.

Datadog's 2023 Security Labs review says KubeHound was an internal project used by the adversary emulation team before it was open sourced. The documentation presents KubeHound as a graph of pods, nodes, identities, permissions, and attack techniques.

### 采用历史

KubeHound is narrower than general Kubernetes admin tools, but it entered package-manager culture quickly enough to appear in Homebrew. That packaging matters for security teams because the tool is meant to run from an analyst workstation against a selected kubeconfig context.

The project's adoption signal is strongest in Kubernetes security circles: official docs, Datadog Security Labs posts, and conference material frame it as a way to prioritize security work by graph reachability rather than scanner output volume.

### 使用方式

KubeHound can select a target cluster through kubectx or through a KUBECONFIG environment variable. It ingests data from the Kubernetes API server, computes attack paths, stores results in JanusGraph, and supports graph queries through Gremlin or the KubeHound DSL.

The documentation says KubeHound can identify more than 25 attacks, including container escape and lateral movement techniques, and can answer questions such as whether a path exists from a specific container to a node or cluster-admin role.

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

KubeHound is package-nerd interesting because it brings graph-security analysis into a CLI that can be installed from Homebrew beside kubectl and kubectx. It represents the Kubernetes security tooling trend from static lists toward attack-path modeling.

### 时间线

- 2023-05-15: Public GitHub repository created
- 2023-10-02: Datadog Security Labs announced KubeHound as an open source project
- 2024-01-04: Datadog's Security Labs review described KubeHound as open sourced from an internal adversary-emulation project
- 2025-11-14: v1.6.7 release published

### Related projects

- kubectx is documented as one way to select the target Kubernetes cluster.
- JanusGraph and Gremlin are the graph database and query ecosystem used for attack-path storage and analysis.
- The KubeHound documentation includes an attack reference for Kubernetes attack techniques.

### 来源

- <https://api.github.com/repos/DataDog/KubeHound>
- <https://formulae.brew.sh/formula/kubehound>
- <https://github.com/DataDog/KubeHound>
- <https://kubehound.io/>
- <https://securitylabs.datadoghq.com/articles/kubehound-identify-kubernetes-attack-paths/>
- <https://securitylabs.datadoghq.com/articles/security-labs-in-review-2023/>


## 安全说明

infrastructure mutation or orchestration signal.

- **Geiger 风险:** orange / 中
- infrastructure mutation or orchestration signal


## Combined YAML source

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


## 来源

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- cross-ecosystem install command graph
