# jwt-hack を Homebrew, Nix でインストール

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

## インストール

```sh
sudo av install brew:jwt-hack
```

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

### macOS

- Homebrew (100%):

```sh
brew install jwt-hack
```

  証拠: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#jwt-hack
```

  証拠: nixpkgs package indexes: pkgs/by-name/jw/jwt-hack/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## パッケージ情報

- **パッケージキー:** brew:jwt-hack
- **パッケージマネージャ:** Homebrew
- **バージョン:** 2.6.0
- **ソース概要:** JSON Web Token Hack Toolkit
- **ホームページ:** <https://github.com/hahwul/jwt-hack>
- **リポジトリ:** <https://github.com/hahwul/jwt-hack>
- **最終更新:** 2026-06-05T20:50:17Z
- **生成日時:** 2026-08-03T19:37:03+00:00

## 実行可能ファイル

- jwt-hack (エイリアス)

## インストール挙動

- Bottle: 利用不可

## バージョンと鮮度

- ページ生成日: 2026-08-03
- マネージャ版: 2.6.0
## プロジェクトの歴史と使われ方

jwt-hack is a JSON Web Token security-testing toolkit for encoding, decoding, verifying, cracking weak secrets, generating attack payloads, and scanning tokens for common JWT mistakes.

### プロジェクトの歴史

The maintainer, Hahwul, described creating jwt-hack in October 2020 as a Go tool born from a personal need to make JWT security testing more convenient, initially centered on cracking JWT signing secrets with wordlists or brute force. GitHub release metadata records v1.0.0 on August 31, 2020, which lines up with that early public project period.

On June 6, 2025, the maintainer announced jwt-hack v2 as a complete Rust rewrite. The stated motivations were better stability through Rust's ownership model and improved performance; later README material shows the Rust-era tool expanding into JWE support, DEFLATE-compressed JWT handling, scan mode, API server mode, Docker images, Snapcraft, and MCP server mode.

### 採用の歴史

jwt-hack's adoption is mainly within offensive-security, bug-bounty, and application-security workflows rather than general JWT debugging. Its README documents installation through Cargo, Homebrew, Snapcraft, source builds, GHCR, and Docker Hub, which makes it portable across local labs, CI jobs, and containerized testing environments.

### 使われ方

Typical use cases include decoding suspicious tokens, generating algorithm-confusion or header-based payloads, testing weak HMAC secrets with dictionaries or brute force, validating signatures, and running a scan that checks for weak secrets, missing claims, `none` algorithm acceptance, algorithm confusion, and header injection vectors.

### パッケージ好きにとっての重要性

For package nerds, jwt-hack is the security-tool counterpart to simpler JWT viewers: it packages practical JWT attack primitives into a single installable CLI and shows the 2020s shift from Go security utilities toward Rust rewrites where maintainers care about memory safety and distributable binaries.

### タイムライン

- 2020-08-31: v1.0.0 GitHub release published.
- 2020-10: Maintainer describes the original Go tool as created for convenient JWT security testing.
- 2025-06-06: v2.0.0 released and announced as a complete Rust rewrite.
- 2025-08-29: v2.2.0 release line adds JWE and EdDSA-oriented functionality in the Rust era.
- 2026-06-05: v2.6.0 GitHub release published.

### Related projects

- jwt-hack relates to JWT.io and jwt-cli for inspection and encoding, but it is closer in spirit to web-application security tools because it includes cracking, payload generation, and vulnerability scanning.

### ソース

- <https://crates.io/crates/jwt-hack>
- <https://github.com/hahwul/jwt-hack>
- <https://github.com/hahwul/jwt-hack/releases>
- <https://www.hahwul.com/blog/2025/jwt-hack-v2/>
- <https://www.rfc-editor.org/rfc/rfc7519>


## セキュリティノート

narrow executable package without higher-risk signals.

- **Geiger リスク:** グリーン / 低
- narrow executable package without higher-risk signals

## 他のパッケージマネージャ記録

- Nix - jwt-hack: normalized package name match | nixpkgs package indexes: pkgs/by-name/jw/jwt-hack/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/jwt-hack.yml](https://github.com/mxcl/pkgdb/blob/main/combined/jwt-hack.yml)


## ソース

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