
Rustで記述された高性能なTAXII(Trusted Automated eXchange of Indicator Information)サーバー。
Rust で書かれた高性能な TAXII(Trusted Automated eXchange of Indicator Information)サーバー。
EclecticIQ OpenTAXII の Rust 移植版で、完全なデータベース互換性を備えています。
# ビルド
cargo build --release
# 設定ファイルのコピーと編集
cp taxii.example.toml taxii.toml
cp examples/data-config/full.yaml data-config.yaml # TAXII 2.x のみの場合は accounts.yaml
# 環境に合わせて taxii.toml と data-config.yaml を編集
# サーバー起動(起動時にマイグレーションを自動実行)
./target/release/taxii-server
# データ設定の同期(サービス、コレクション、アカウント)
./target/release/taxii-cli sync data-config.yaml
サーバーは http://localhost:9000 で起動します。
Docker イメージ: cysecurity/darwis-taxii
cd examples/docker
# config ディレクトリを作成し、サンプル設定をコピー
mkdir config
cp ../../taxii.example.toml config/taxii.toml
cp ../data-config/full.yaml config/data-config.yaml # TAXII 2.x のみの場合は accounts.yaml
# 必要に応じて設定ファイルを編集
# サーバーと PostgreSQL を起動
docker compose up -d
# データ設定の同期(サービス、コレクション、アカウント)
docker compose exec taxii-server ./taxii-cli sync /app/config/data-config.yaml
# アカウント一覧の表示
docker compose exec taxii-server ./taxii-cli account list
Docker Hub からプルする代わりにローカルでビルドする場合は、docker-compose.yml を編集して build セクションのコメントを解除してください。
DARWIS TAXII は OpenTAXII の慣例に従い、2 つの設定ファイルを使用します。
| ファイル | 目的 |
|---|---|
taxii.toml | サーバー設定: データベース、認証、ドメイン、TAXII 1.x/2.x オプション |
data-config/ | データ設定: サービス、コレクション、アカウントと権限 |
taxii.example.toml を taxii.toml にコピーし、環境に合わせて編集してください。
すべてのオプション(環境変数による上書きを含む)については、ドキュメントを参照してください。
# YAML からサービス、コレクション、アカウントを同期
taxii-cli sync data-config.yaml
# アカウント管理
taxii-cli account list # アカウント一覧を権限付きで表示
taxii-cli account delete -u user # アカウントを削除
# データベースマイグレーション(サーバー起動時に自動実行)
taxii-cli migrate run # 保留中のマイグレーションを適用
taxii-cli migrate status # マイグレーション状況を表示
# TAXII 2.x 管理
taxii-cli api-root add --title "My Root" --default
taxii-cli collection add --api-root-id <uuid> --title "Intel"
すべてのコマンドは taxii-cli --help で確認できます。
taxii.example.toml # サーバー設定のサンプル
examples/
data-config/ # データ設定のサンプル
full.yaml # 完全な設定(TAXII 1.x + アカウント)
accounts.yaml # アカウントのみ(TAXII 2.x 用)
docker/ # Docker デプロイメント用ファイル
migrations/ # SQLx データベースマイグレーション
taxii-core/ # コアタイプとシグナルフック
taxii-db/ # データベース永続化(SQLx)
taxii-auth/ # JWT およびパスワード認証
taxii-1x/ # TAXII 1.x プロトコル(XML)
taxii-2x/ # TAXII 2.x プロトコル(JSON)
stix2/ # STIX 2.x パース
taxii-server/ # HTTP サーバー(Axum)
taxii-cli/ # CLI ツール
https://cspf-founder.github.io/darwis-taxii/
BSD-3-Clause