# semgrep をインストール

semgrep のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

## インストール

```sh
sudo av install brew:semgrep
```

追加のインストールコマンド:

### macOS

- Homebrew (100%):

```sh
brew install semgrep
```

  証拠: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install semgrep
```

  証拠: MacPorts ports tree: devel/semgrep/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#semgrep
```

  証拠: nixpkgs package indexes: semgrep from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix

## パッケージ情報

- **パッケージキー:** brew:semgrep
- **パッケージマネージャ:** Homebrew
- **パッケージマネージャページ:** <https://formulae.brew.sh/formula/semgrep>
- **バージョン:** 1.157.0
- **ソース概要:** Easily detect and prevent bugs and anti-patterns in your codebase
- **ホームページ:** <https://semgrep.dev>
- **リポジトリ:** <https://github.com/semgrep/semgrep>
- **上流ドキュメント:** <https://semgrep.dev>
- **ライセンス:** LGPL-2.1-only
- **ソースアーカイブ:** <https://github.com/semgrep/semgrep.git>
- **更新:** 2026-04-14T12:17:01+09:00
- **生成ソース:** 2026-05-26T22:45:13+00:00

## 実行可能ファイル

- pysemgrep (cli)
- semgrep (cli)
- pysemgrep (エイリアス)
- semgrep (エイリアス)

## 依存関係

- certifi
- cryptography
- dwarfutils
- gmp
- libev
- pcre2
- pydantic
- python@3.14
- rpds-py
- sqlite
- tree-sitter
- zstd

## ビルド依存関係

- ocaml
- opam
- pkgconf

## macOS 提供ライブラリ

- curl

## インストール挙動

- post-install フック: 未定義
- Bottle: 利用可能 対象 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 鮮度

- ページ生成日: 2026-05-26
- マネージャ版: 1.157.0
- マネージャ更新日: 2026-04-14
- ローカルデータ: ok
- 上流リポジトリ: https://github.com/semgrep/semgrep
- info: No cached GitHub release or tag data was available.

## セキュリティノート

narrow executable package without higher-risk signals.

- **Geiger リスク:** green / low
- narrow executable package without higher-risk signals

## 関連リンク

- [sqlite](https://www.automicvault.com/pkg/brew/sqlite/) - Runtime dependency declared by Homebrew.
- [zstd](https://www.automicvault.com/pkg/brew/zstd/) - Runtime dependency declared by Homebrew.
- [pcre2](https://www.automicvault.com/pkg/brew/pcre2/) - Runtime dependency declared by Homebrew.
- [python@3.14](https://www.automicvault.com/pkg/brew/python-3-14/) - Runtime dependency declared by Homebrew.
- [gmp](https://www.automicvault.com/pkg/brew/gmp/) - Runtime dependency declared by Homebrew.
- [certifi](https://www.automicvault.com/pkg/brew/certifi/) - Runtime dependency declared by Homebrew.
- [cryptography](https://www.automicvault.com/pkg/brew/cryptography/) - Runtime dependency declared by Homebrew.
- [tree-sitter](https://www.automicvault.com/pkg/brew/tree-sitter/) - Runtime dependency declared by Homebrew.
- [pkgconf](https://www.automicvault.com/pkg/brew/pkgconf/) - Build dependency declared by Homebrew.
- [opam](https://www.automicvault.com/pkg/brew/opam/) - Build dependency declared by Homebrew.
- [ocaml](https://www.automicvault.com/pkg/brew/ocaml/) - Build dependency declared by Homebrew.

## ソース

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- package version freshness
- package relationship graph
- cross-ecosystem install command graph
