Skip to content
KitploitKITPLOIT
ツールブログ
提出
ツールブログ
提出

ハッキング、侵入テスト、サイバーセキュリティツールをあなたのセキュリティアーセナルに!

Kitploitはハッキング、サイバーセキュリティ、ペネトレーションテストのツールディレクトリです。最新のプロジェクトアップデートを見つけて、脆弱性の発見、システム分析、テストの自動化、セキュリティの強化を行いましょう。

··フィード·お問い合わせ·プライバシー·© 2026 Kitploit

ツールディレクトリ

カテゴリ

すべてのカテゴリを見る
Loading categories
IfritProxy — IFRITは、AIを搭載したリバースプロキシで、受信リクエストをリアルタイムで傍受し、それぞれを正当なものか悪意のあるものかに分類します。正当なトラフィックはバックエンドに転送され、悪意のあるトラフィックには、要求されたリソースを偽造データで模倣するAI生成のカスタマイズ済みハニーポットレスポンスが返され、攻撃者を欺いて時間を浪費させます。 | Kitploit
ツール/GitHubGitHub/0tsystemspublicrepos/ifritproxy
防御ツール偵察ウェブプロキシと傍受IDS/IPS回避情報収集ウェブセキュリティ脅威インテリジェンスインシデントレスポンスAIセキュリティログ分析
GitHub0tsystemspublicrepos/ifritproxy

IfritProxy

116ヶ月前未レビュー

人気

すべて見る →

コミュニティで最も使われているツールを見つけましょう。

すべてのツールを探索

ツールコレクションを閲覧

すべてのツールを見る →
共有

IFRITは、AIを搭載したリバースプロキシで、受信リクエストをリアルタイムで傍受し、それぞれを正当なものか悪意のあるものかに分類します。正当なトラフィックはバックエンドに転送され、悪意のあるトラフィックには、要求されたリソースを偽造データで模倣するAI生成のカスタマイズ済みハニーポットレスポンスが返され、攻撃者を欺いて時間を浪費させます。

リポジトリを見るウェブサイト
IFRITロゴ

🔥 AIを活用した脅威デセプション & インテリジェンスプラットフォーム

適応型ハニーポット応答で、攻撃者をインテリジェンスソースに変える

License: Apache 2.0 Version Go Multi-LLM Database

📦 クイックスタート • ✨ 特徴 • 🔄 仕組み • 📚 ドキュメント • 🔌 API


コミュニティへの提供

0t.systems

🎯 IFRITとは?

IFRITは、インターネットとアプリケーションの間に位置し、すべてのリクエストをリアルタイムで分析するインテリジェントリバースプロキシです。正当なトラフィックはシームレスに通過します。悪意のあるトラフィックには、AIが生成したハニーポット応答が返され、攻撃者の時間を無駄にしながら、その間にインテリジェンスを収集できます。

🏗️ システムアーキテクチャ

🎨 クリックしてインタラクティブな図を展開```mermaid graph TB subgraph Internet A[👤 Attacker] L[✅ Legitimate User] end
root@kitploit:~
subgraph "IFRIT Proxy Layer"
    B[🛡️ IFRIT Proxy]
    
    subgraph "AI Detection Engine"
        C1[🤖 Claude Sonnet 4]
        C2[🤖 Gemini 2.0 Flash]
    end
    
    subgraph "Threat Intelligence"
        D1[📊 AbuseIPDB]
        D2[🦠 VirusTotal]
        D3[🌍 IPInfo]
    end
end

subgraph Backend
    E[🎯 Your Application]
end

subgraph "Attacker Receives"
    F[🍯 Fake Data<br/>Honeypot Response]
end

subgraph "User Receives"
    G[📦 Real Data<br/>Protected]
end

A -->|Malicious Request| B
L -->|Normal Request| B

B --> C1
B --> C2

B --> D1
B --> D2
B --> D3

B -->|Attack Detected| F
B -->|Legitimate| E
E -->|Response| G

F -.->|Wasted Time| A
G -->|Secure Access| L

style A fill:#ff6b6b,stroke:#c92a2a,stroke-width:2px,color:#fff
style L fill:#51cf66,stroke:#2f9e44,stroke-width:2px,color:#fff
style B fill:#4c6ef5,stroke:#364fc7,stroke-width:3px,color:#fff
style C1 fill:#845ef7,stroke:#5f3dc4,stroke-width:2px,color:#fff
style C2 fill:#845ef7,stroke:#5f3dc4,stroke-width:2px,color:#fff
style D1 fill:#ff922b,stroke:#e8590c,stroke-width:2px,color:#fff
style D2 fill:#ff922b,stroke:#e8590c,stroke-width:2px,color:#fff
style D3 fill:#ff922b,stroke:#e8590c,stroke-width:2px,color:#fff
style E fill:#20c997,stroke:#12b886,stroke-width:2px,color:#fff
style F fill:#fa5252,stroke:#c92a2a,stroke-width:2px,color:#fff
style G fill:#51cf66,stroke:#2f9e44,stroke-width:2px,color:#fff
ツールをダウンロード
root@kitploit:~
</details>

**簡略化されたフロー:**

<div align="center">
  <img src="https://assets.kitploit.com/production/public/readmes/9318/20428ce8d35f40faaa17f7f8c313021a74af35675f384b2db7a60034dbfdcdf2.png" alt="IFRIT 簡易フロー図" width="650">
</div>

</div>



---


## 🚀 クイックスタート

> **2分以内でセットアップ完了**

### 📦 インストール

<table>
<tr>
<td width="50%">

**macOS (Apple Silicon)**```bash
curl -L -o ifrit-v0.3.2-darwin-arm64.tar.gz \
  https://github.com/0tSystemsPublicRepos/IfritProxy/releases/download/v0.3.2/ifrit-v0.3.2-darwin-arm64.tar.gz


tar -xzf ifrit-v0.3.2-darwin-arm64.tar.gz
cd ifrit-v0.3.2-darwin-arm64
./install.sh

Linux (x64)```bash curl -LO https://github.com/0tSystemsPublicRepos/\ IfritProxy/releases/download/v0.3.2/
ifrit-v0.3.2-linux-amd64.tar.gz

tar -xzf ifrit-v0.3.2-linux-amd64.tar.gz cd ifrit-v0.3.2-linux-amd64 ./install.sh

root@kitploit:~
</td>
</tr>
</table>

<div align="center">

![インストールデモ](https://assets.kitploit.com/production/public/readmes/9318/f4e135766f0f7e20b4a176526f104f0b2b7b35ec32f5961529d27fa93e749dd2.gif)

*実際のインストールの様子 - 本当にこんなに簡単です!*

</div>

### ⚙️ 設定 (クイックセットアップ)```bash
# 1. Copy template
cp config/default.json.example config/default.json

# 2. Add your API keys
nano config/default.json  # or use your favorite editor

始めるための最小構成:```json { "llm": { "provider": "claude", // 👈 Choose: "claude" or "gemini" "claude": { "api_key": "sk-ant-..." // 🔑 Get from console.anthropic.com } }, "proxy": { "listen_port": 8080, "backend_url": "http://localhost:3000" // 🎯 Your app } }

root@kitploit:~
### 🎬 起動

ソースコードをビルドするか、利用可能なバイナリからインストールしてください。```bash
# Build the binary
go build -o ifrit ./cmd/ifrit
(optional: build ifrit-cli as well)

# Start IFRIT (runs in background)
./ifrit &

# 🎉 You're protected! Access dashboard:
open http://localhost:8443

これで完了です! IFRIT があなたのアプリケーションを保護しています。


✨ IFRIT が他と違う理由

💎 中核機能

🧠 マルチAIインテリジェンス

AIプロバイダーを選択するか、IFRIT に自動フォールバックを任せてください:

  • 🎯 Claude Sonnet 4 - 業界をリードするセキュリティ分析
  • ⚡ Gemini 2.0 Flash - コスト効率が高く、超高速
  • 🔄 自動フォールバック - シームレスなプロバイダー切り替え
  • 💰 90%のコスト削減 - インテリジェントなキャッシュによる```json { "provider": "claude", // or "gemini" "cache_ttl": 86400 // 24h learning }
root@kitploit:~
</td>
<td width="50%" valign="top">

### 🗄️ **本番グレードのストレージ**

あらゆる規模に対応するデータベースの柔軟性:

- **📦 SQLite** - 設定不要、単一サーバーに最適
- **🐘 PostgreSQL** - エンタープライズ規模、クラスター導入に対応
- **🔌 プロバイダー抽象化** - 設定変更のみで切り替え可能
- **🛠️ 統一CLI** - 同じコマンドで、あらゆるデータベースに対応```bash
# Works with both!
./ifrit-cli attack list
./ifrit-cli pattern add sql_injection

🎭 適応型デセプションエンジン

学習するインテリジェントなハニーポット応答:

  • 🎨 AI生成 - アプリにマッチする現実的な偽データ
  • 📚 パターン学習 - 最初の攻撃 = 3秒、次 = 10ms
  • 🎯 コンテキスト認識 - 要求されたリソースを模倣
  • ⏱️ 時間の浪費 - 偽のターゲットで攻撃者を忙しくさせる

例: SQLインジェクションは偽のユーザーデータベースを取得し、パストラバーサルは偽のファイルリストを取得します。

🔍 脅威インテリジェンスハブ

複数のソースからのリアルタイムエンリッチメント:

  • 🚨 AbuseIPDB - IPレピュテーション (0-100スコア)
  • 🦠 VirusTotal - マルウェア&C2検出
  • 🌍 IPInfo - 位置情報、VPN、Tor、ホスティング
  • ⚖️ リスクスコアリング - 重み付けされた式 → 脅威レベル``` IP: 45.67.89.12 ├─ AbuseIPDB: 87/100 (234 reports) ├─ VirusTotal: 3 malware hits ├─ IPInfo: Russia, Tor exit node └─ Risk: 92 → 🔴 CRITICAL
root@kitploit:~
</td>
</tr>

<tr>
<td width="50%" valign="top">

### 📢 **スマートアラートシステム**

通知疲れゼロのマルチチャネル通知:

- **📧 メール** - SMTP (Gmail, SendGrid, カスタム)
- **💬 Slack** - 重大度を色分けしたWebhook
- **📱 SMS** - 重大な脅威のみTwilio
- **🔗 Webhooks** - 再試行ロジック付きカスタムJSON

**ルールベースのフィルタリング:**```json
"rules": {
  "alert_on_critical": true,   // ✅ Always
  "alert_on_high": false,      // 🔇 Quiet
  "alert_on_medium": false,    // 🔇 Quiet
  "alert_on_low": false        // 🔇 Quiet
}

📊 完全な可視化

リアルタイムインテリジェンスをすぐ手元で:

  • 🎯 ライブダッシュボード - 脅威レベル、上位攻撃者、統計
  • 🔌 REST API - SIEM統合用のJSONエンドポイント
  • ⌨️ CLIツール - 完全なコマンドライン管理
  • 📈 分析 - 攻撃のタイムライン、攻撃者のプロファイル```bash
  • Query your intelligence

    ./ifrit-cli threat top 10 ./ifrit-cli attacker view 45.67.89.1 ./ifrit-cli attack stats --last-24h

    root@kitploit:~
    **APIファースト設計** - あらゆるセキュリティスタックと統合。
    
    </td>
    </tr>
    </table>
    
    
    
    ---
    
    
    ## 🔄 動作の仕組み
    
    <div align="center">
    
    ### 4段階検出パイプライン
    
    </div>
    
    <details> 
    <summary><b>🎨 クリックしてインタラクティブな図を展開</b></summary>```mermaid
    flowchart TD
        Start([🌐 Incoming Request]) --> Stage0{🔓 Stage 0<br/>Whitelist Check}
        
        Stage0 -->|✅ Whitelisted IP/Path| Allow[✅ ALLOW<br/>Pass to Backend]
        Stage0 -->|❌ Not Whitelisted| Stage1{⚡ Stage 1<br/>Local Rules}
        
        Stage1 -->|🎯 Attack Pattern Match| Honeypot[🍯 HONEYPOT<br/>Deceptive Response]
        Stage1 -->|❓ Unknown Pattern| Stage2{💾 Stage 2<br/>Database Patterns}
        
        Stage2 -->|📚 Known Attack| Honeypot
        Stage2 -->|🆕 Novel Attack| Stage3{🤖 Stage 3<br/>LLM Analysis}
        
        Stage3 -->|🚨 Attack Confirmed| Honeypot
        Stage3 -->|✅ Legitimate| Allow
        
        Honeypot --> TI[🔍 Threat Intelligence<br/>Enrichment]
        TI --> Notify[📢 Notifications<br/>If Rules Match]
        Notify --> Learn[📖 Learn & Store<br/>Pattern]
        
        Allow --> Backend[🎯 Your Application]
        Backend --> Response[📦 Real Response]
        
        Learn --> LogAttack[(📊 Attack Database)]
        
        style Start fill:#4c6ef5,stroke:#364fc7,stroke-width:3px,color:#fff
        style Stage0 fill:#7950f2,stroke:#5f3dc4,stroke-width:2px,color:#fff
        style Stage1 fill:#7950f2,stroke:#5f3dc4,stroke-width:2px,color:#fff
        style Stage2 fill:#7950f2,stroke:#5f3dc4,stroke-width:2px,color:#fff
        style Stage3 fill:#7950f2,stroke:#5f3dc4,stroke-width:2px,color:#fff
        style Allow fill:#51cf66,stroke:#2f9e44,stroke-width:3px,color:#fff
        style Honeypot fill:#ff6b6b,stroke:#c92a2a,stroke-width:3px,color:#fff
        style TI fill:#ff922b,stroke:#e8590c,stroke-width:2px,color:#fff
        style Notify fill:#fab005,stroke:#f08c00,stroke-width:2px,color:#fff
        style Learn fill:#20c997,stroke:#12b886,stroke-width:2px,color:#fff
        style Backend fill:#339af0,stroke:#1c7ed6,stroke-width:2px,color:#fff
        style Response fill:#51cf66,stroke:#2f9e44,stroke-width:2px,color:#fff
        style LogAttack fill:#868e96,stroke:#495057,stroke-width:2px,color:#fff
    

    🎯 検出後はどうなるか?


    検出後はどうなるか

    🔬 インテリジェンス強化パイプライン

    検出されたすべての攻撃は、バックグラウンドで並行インテリジェンス収集をトリガーします:

    インテリジェンス強化パイプライン

    パフォーマンス特性:

    シナリオ動作レイテンシコスト
    IPからの最初の攻撃3つのAPIすべてを呼び出し~500ms$0.003
    繰り返し攻撃(< 24時間)キャッシュヒット、API呼び出しなし<10ms$0.00
    24時間後再強化、キャッシュを更新~500ms$0.003

    💡 結果: 90%以上のキャッシュヒット率=APIコスト最小化+高速ルックアップ

    💰 学習経済学:コスト最適化

    IFRITはすべての攻撃から学習し、運用コストを大幅に削減します:

    ⏰ 1時間目:初期学習フェーズ🚀 2時間目:最適化された運用

    最初の曝露``` 📊 Traffic Analysis ├─ 100 requests received ├─ 40 unique attack types │ ├─ 🤖 AI Calls Needed │ ├─ Stage 3 LLM: 40 calls │ └─ Cost: ~$0.12 │ ├─ 🔍 Threat Intel APIs │ ├─ 40 unique IPs │ └─ Cost: ~$0.12 │ └─ 💾 Storage ├─ Learn all 40 patterns ├─ Cache threat intel (24h) └─ Generate honeypots

    📈 Total Cost: $0.24

    root@kitploit:~
    **何が起きたか:**
    - ✅ すべての攻撃を検出
    - ✅ パターンを学習
    - ✅ インテリジェンスをキャッシュ
    - ✅ 攻撃者を欺いた
    
    </td>
    <td valign="top">
    
    **キャッシュされたインテリジェンス**```
    📊 Traffic Analysis
    ├─ 100 requests received
    ├─ Same 40 attack types
    │
    ├─ 💾 Database Hits
    │  ├─ Stage 2: All 40 matched
    │  ├─ Response time: <10ms each
    │  └─ Cost: $0.00
    │
    ├─ 💰 Cache Hits
    │  ├─ Same 40 IPs
    │  ├─ Threat intel from cache
    │  └─ Cost: $0.00
    │
    └─ 🎯 Results
       ├─ Same quality detection
       ├─ Faster responses
       └─ Zero API costs
    
    📉 Total Cost: $0.00
    

    何が起きたか:

    • ✅ 100% キャッシュヒット率
    • ✅ 90ms → 10ms レイテンシ
    • ✅ 100% コスト削減!
    • ✅ 同等の保護レベル

    📊 実際のシナリオ (30日間):``` Day 1: 5,000 attacks, 200 unique → $6.00 in API costs Day 2: 5,000 attacks, 150 new → $4.50 in API costs Day 3: 5,000 attacks, 100 new → $3.00 in API costs ... Day 7: 5,000 attacks, 50 new → $1.50 in API costs Day 14: 5,000 attacks, 20 new → $0.60 in API costs Day 30: 5,000 attacks, 10 new → $0.30 in API costs

    Total: 150,000 attacks handled Cost without caching: ~$450.00 Cost with IFRIT learning: ~$45.00 💰 Savings: $405.00 (90% reduction!)

    root@kitploit:~
    ---
    
    ## 🎛️ 2つの検出モード
    
    <div align="center">
    
    セキュリティ哲学を選択: **信頼するが検証する** vs **ゼロトラスト**
    
    </div>
    
    <table>
    <tr>
    <th width="50%">🔍 検出モード(デフォルト)</th>
    <th width="50%">🛡️ 許可リストモード(厳格なゼロトラスト)</th>
    </tr>
    
    <tr>
    <td valign="top">
    
    ### 哲学
    > **「信頼するが、確認する」** - すべてをインテリジェントに分析
    
    ### 設定```json
    {
      "detection": {
        "mode": "detection",
        "enable_local_rules": true,
        "enable_llm": true,
        "whitelist_ips": [],      // Optional
        "whitelist_paths": []     // Optional
      }
    }
    

    動作の仕組み```

    Incoming Request │ ├─ Whitelisted? ──▶ ✅ ALLOW │ ├─ Stage 1 Match? ──▶ 🍯 HONEYPOT │ ├─ Stage 2 Match? ──▶ 🍯 HONEYPOT │ ├─ Stage 3 LLM? ────▶ 🍯 or ✅ │ └─ Default: Analyze with AI

    root@kitploit:~
    ### 最適な用途
    - ✅ 公開向けWebアプリケーション
    - ✅ クライアントが不明なREST API
    - ✅ Eコマースプラットフォーム
    - ✅ SaaS製品
    - ✅ コンテンツ配信
    - ✅ マーケティングWebサイト
    
    ### 利点
    - 🎯 スマートな脅威検出
    - 📊 すべてのトラフィックから学習
    - 🔄 新しい攻撃への適応
    - 🌐 動的なユーザーに対応
    - 📈 インテリジェンスデータベースを構築
    
    ### 欠点
    - ⚠️ 誤検知を減らすための調整が必要
    - 🤖 AIの精度に依存
    - ⏱️ 初期学習期間
    
    </td>
    
    <td valign="top">
    
    ### 哲学
    > **"デフォルトで拒否"** - 明示的な信頼のみが通過
    
    ### 設定```json
    {
      "detection": {
        "mode": "allowlist",
        "whitelist_ips": [
          "192.168.1.100",
          "10.0.0.0/24"
        ],
        "whitelist_paths": [
          "/health",
          "/metrics"
        ]
      }
    }
    

    動作の仕組み```

    Incoming Request │ ├─ Whitelisted IP? ─▶ ✅ ALLOW │ ├─ Whitelisted Path? ─▶ ✅ ALLOW │ └─ Everything Else ──▶ 🚫 BLOCK

    No AI analysis needed No learning phase Instant block

    root@kitploit:~
    ### Best For
    - ✅ 管理者パネル
    - ✅ 内部ダッシュボード
    - ✅ VPN専用サービス
    - ✅ バックエンドAPI(非公開)
    - ✅ データベース管理ツール
    - ✅ CI/CDウェブフック
    
    ### Advantages
    - 🔒 最大限のセキュリティ
    - ⚡ ゼロレイテンシ(AIなし)
    - 🎯 誤検知ゼロ
    - 💰 APIコストゼロ
    - 🛡️ 高価値ターゲットに最適
    
    ### Disadvantages
    - ❌ 既知のIP/パスが必要
    - 📋 手動の許可リスト管理
    - 🚫 正当な未知のものをブロック
    - 🔧 柔軟性が低い
    
    </td>
    </tr>
    
    <tr>
    <td colspan="2" align="center">
    
    ### 💡 **プロのヒント:** ハイブリッドアプローチ
    
    まず**オンボーディングモード**(7日間)で正当なパターンを自動検出してから、お好みのモードに切り替えてください:
    
    </td>
    </tr>
    <tr>
    <td colspan="2" align="left">
    
    <pre><code>{
      "execution_mode": {
        "mode": "onboarding",              // Auto-learn for 7 days
        "onboarding_duration_days": 7,
        "onboarding_auto_whitelist": true  // Auto-add to whitelist
      }
    }</code></pre>
    
    </td>
    </tr>
    <tr>
    <td colspan="2" align="center">
    
    オンボーディング後 → 必要に応じて**検出モード**または**許可リストモード**に切り替えます
    
    </td>
    </tr>
    
    </table>
    
    **🎬 実行モード:**
    
    | モード | 目的 | ブロック | 学習 | 期間 |
    |------|---------|----------|----------|----------|
    | **🎓 オンボーディング** | 正当なトラフィックを学習 | ❌ なし | ✅ あり | 7日間(デフォルト) |
    | **🛡️ 検出** | 完全な保護 | ✅ あり | ✅ あり | 本番 |
    
    詳細な比較とユースケースについては、[DETECTION_MODES.md](https://github.com/0tsystemspublicrepos/ifritproxy/blob/HEAD/docs/DETECTION_MODES.md) を参照してください。
    
    
    
    ---
    
    
    ## 📊 ダッシュボードと管理
    
    <div align="center">
    
    ### 🎯 リアルタイムインテリジェンスダッシュボード
    
    **`http://localhost:8443/`** にAPIトークン認証でアクセスします
    
    </div>
    
    **ダッシュボード概要:**
    
    IFRITダッシュボードは、セキュリティ態勢をリアルタイムに可視化します:
    
    - **📊 脅威レベル分布** - CRITICAL/HIGH/MEDIUM/LOW脅威の視覚的な内訳
    - **🎯 高リスク攻撃者トップ** - リスクスコア、国、フラグ(Tor、VPN、ホスティング)によるリアルタイムランキング
    - **⚡ 検出パイプラインのパフォーマンス** - キャッシュ効率を示すステージごとのメトリクス
    - **📈 攻撃トレンド** - 24時間の攻撃タイプ別内訳(視覚的なバー表示)
    - **🌍 地理的インサイト** - 攻撃元の場所とフラグ
    
    
    ### ⌨️ CLI管理
    
    セキュリティインテリジェンスを完全にコマンドラインで制御します:
    
    <table>
    <tr>
    <td width="50%" valign="top">
    
    #### 🚨 攻撃インテリジェンス```bash
    # View recent attacks
    ./ifrit-cli attack list
    
    # Detailed analysis
    ./ifrit-cli attack view 42
    
    # Statistics
    ./ifrit-cli attack stats
    
    # Filter by source
    ./ifrit-cli attack by-ip 45.67.89.1
    
    # Filter by target
    ./ifrit-cli attack by-path /api/users
    
    # Export to JSON
    ./ifrit-cli attack export \
      --format json \
      --output attacks.json
    

    🧬 パターン管理```bash

    List learned signatures

    ./ifrit-cli pattern list

    View specific pattern

    ./ifrit-cli pattern view 15

    Add custom pattern

    ./ifrit-cli pattern add
    sql_injection
    "' OR '1'='1"

    Remove pattern

    ./ifrit-cli pattern remove 15

    Export patterns

    ./ifrit-cli pattern export

    root@kitploit:~
    </td>
    <td width="50%" valign="top">
    
    #### 👤 攻撃者プロファイル```bash
    # List all attackers
    ./ifrit-cli attacker list
    
    # Profile details
    ./ifrit-cli attacker view 5
    
    # Search by IP
    ./ifrit-cli attacker search 45.67.89.1
    
    # Top attackers
    ./ifrit-cli attacker top 10
    

    🔓 ホワイトリスト/例外```bash

    List exceptions

    ./ifrit-cli exception list

    Add IP exception

    ./ifrit-cli exception add
    --ip 10.0.0.1
    --reason "Office VPN"

    Add path exception

    ./ifrit-cli exception add
    --path /health
    --reason "Health check"

    Remove exception

    ./ifrit-cli exception remove 3

    root@kitploit:~
    </td>
    </tr>
    <tr>
    <td width="50%" valign="top">
    
    #### 🔍 脅威インテリジェンス```bash
    # Recent threat intel
    ./ifrit-cli threat list
    
    # IP details
    ./ifrit-cli threat view 45.67.89.1
    
    # Top risky IPs
    ./ifrit-cli threat top 10
    
    # Statistics
    ./ifrit-cli threat stats
    
    # Force re-enrich IP
    ./ifrit-cli threat enrich 45.67.89.1
    

    💾 データベース操作```bash

    Database statistics

    ./ifrit-cli db stats

    View schema

    ./ifrit-cli db schema

    Vacuum (SQLite only)

    ./ifrit-cli db vacuum

    Export database

    ./ifrit-cli db export backup.sql

    root@kitploit:~
    **🔄 データベース非依存:** SQLite と PostgreSQL の両方で同じコマンドが動作します!
    
    </td>
    </tr>
    </table>
    
    
    
    ### 🔌 REST API
    
    <div align="center">
    
    **セキュリティスタックとシームレスに統合するための JSON API**
    
    </div>
    
    包括的な REST API を使用して、IFRIT を SIEM、監視ツール、またはカスタムダッシュボードと統合できます。
    
    #### 🔐 認証
    
    すべての API エンドポイントでは、API トークンによる認証が必要です:```bash
    # Include in every request
    curl -H "X-API-Token: YOUR_TOKEN_HERE" \
      http://localhost:8443/api/...
    

    APIトークンの生成: config/default.json の api.tokens で設定します


    📡 利用可能なエンドポイント

    🚨 攻撃インテリジェンス```bash # Get recent attacks curl -H "X-API-Token: YOUR_TOKEN" \ http://localhost:8443/api/attacks

    Get specific attack

    curl -H "X-API-Token: YOUR_TOKEN"
    http://localhost:8443/api/attacks/42

    Filter by IP

    curl -H "X-API-Token: YOUR_TOKEN"
    "http://localhost:8443/api/attacks?ip=45.67.89.1"

    Filter by date range

    curl -H "X-API-Token: YOUR_TOKEN"
    "http://localhost:8443/api/attacks?from=2024-01-01&to=2024-01-31"

    Attack statistics

    curl -H "X-API-Token: YOUR_TOKEN"
    http://localhost:8443/api/attacks/stats

    root@kitploit:~
    **レスポンス例:**```json
    {
      "attacks": [
        {
          "id": 42,
          "timestamp": "2024-01-15T14:23:45Z",
          "source_ip": "45.67.89.1",
          "attack_type": "sql_injection",
          "threat_level": "CRITICAL",
          "risk_score": 92,
          "detection_stage": 3,
          "path": "/api/users",
          "method": "POST"
        }
      ],
      "total": 1865,
      "page": 1
    }
    
    👤 攻撃者プロファイル```bash # List all attackers curl -H "X-API-Token: YOUR_TOKEN" \ http://localhost:8443/api/attackers

    Get specific attacker profile

    curl -H "X-API-Token: YOUR_TOKEN"
    http://localhost:8443/api/attackers/45.67.89.1

    Top attackers

    curl -H "X-API-Token: YOUR_TOKEN"
    "http://localhost:8443/api/attackers/top?limit=10"

    root@kitploit:~
    **応答例:**```json
    {
      "ip": "45.67.89.1",
      "first_seen": "2024-01-10T08:15:30Z",
      "last_seen": "2024-01-15T14:23:45Z",
      "total_attacks": 234,
      "attack_types": ["sql_injection", "path_traversal", "xss"],
      "risk_score": 87,
      "threat_level": "HIGH",
      "country": "CN",
      "is_vpn": false,
      "is_tor": false,
      "is_hosting": true
    }
    
    🧬 学習済みパターン```bash # Get all patterns curl -H "X-API-Token: YOUR_TOKEN" \ http://localhost:8443/api/patterns

    Get pattern by ID

    curl -H "X-API-Token: YOUR_TOKEN"
    http://localhost:8443/api/patterns/15

    Add new pattern

    curl -X POST
    -H "X-API-Token: YOUR_TOKEN"
    -H "Content-Type: application/json"
    -d '{ "attack_type": "sql_injection", "signature": "' OR 1=1--", "confidence": 0.95 }'
    http://localhost:8443/api/patterns

    root@kitploit:~
    </details>
    
    <details>
    <summary><b>🔍 脅威インテリジェンス</b></summary>```bash
    # Threat intel statistics
    curl -H "X-API-Token: YOUR_TOKEN" \
      http://localhost:8443/api/threat-intel/stats
    
    # Top risky IPs
    curl -H "X-API-Token: YOUR_TOKEN" \
      "http://localhost:8443/api/threat-intel/top?limit=10"
    
    # Get IP details
    curl -H "X-API-Token: YOUR_TOKEN" \
      http://localhost:8443/api/threat-intel/45.67.89.1
    
    # Force re-enrich IP
    curl -X POST \
      -H "X-API-Token: YOUR_TOKEN" \
      http://localhost:8443/api/threat-intel/45.67.89.1/enrich
    

    応答例:```json { "ip": "45.67.89.1", "risk_score": 87, "threat_level": "HIGH", "abuseipdb": { "score": 91, "total_reports": 156, "last_reported": "2024-01-14T10:30:00Z" }, "virustotal": { "malicious": 3, "suspicious": 1 }, "ipinfo": { "country": "CN", "city": "Shanghai", "is_vpn": false, "is_proxy": false, "is_tor": false, "is_hosting": true }, "cached_at": "2024-01-15T14:23:45Z" }

    root@kitploit:~
    </details>
    
    <details>
    <summary><b>📢 通知設定</b></summary>```bash
    # Get notification config
    curl -H "X-API-Token: YOUR_TOKEN" \
      http://localhost:8443/api/notifications/config
    
    # Update notification rules
    curl -X POST \
      -H "X-API-Token: YOUR_TOKEN" \
      -H "Content-Type: application/json" \
      -d '{
        "alert_on_critical": true,
        "alert_on_high": true,
        "alert_on_medium": false,
        "alert_on_low": false
      }' \
      http://localhost:8443/api/notifications/config/update
    
    # Get notification history
    curl -H "X-API-Token: YOUR_TOKEN" \
      http://localhost:8443/api/notifications/history
    
    # Test notifications
    curl -X POST \
      -H "X-API-Token: YOUR_TOKEN" \
      http://localhost:8443/api/notifications/test
    
    💾 キャッシュ管理```bash # Get cache statistics curl -H "X-API-Token: YOUR_TOKEN" \ http://localhost:8443/api/cache/stats

    Clear threat intel cache

    curl -X POST
    -H "X-API-Token: YOUR_TOKEN"
    http://localhost:8443/api/cache/clear

    Clear specific IP from cache

    curl -X DELETE
    -H "X-API-Token: YOUR_TOKEN"
    http://localhost:8443/api/cache/45.67.89.1

    root@kitploit:~
    </details>
    
    ---
    
    **📚 完全なAPIドキュメント:** リクエスト/レスポンススキーマ、エラーコード、レート制限を含む完全なリファレンスは [API_ENDPOINTS.md](https://github.com/0tsystemspublicrepos/ifritproxy/blob/HEAD/docs/API_ENDPOINTS.md) を参照してください。
    
    
    
    ---
    
    ## 🔐 プライバシーとコンプライアンス
    
    ### データ匿名化
    
    機密データは外部LLMに到達する前に**自動的にマスキング**されます:
    
    | **マスキング対象** | **保持される情報** |
    |---|---|
    | 🔒 認証トークンと資格情報 | ✅ HTTPメソッド/パス |
    | 🔒 セッションCookie | ✅ 攻撃パターン |
    | 🔒 APIキー | ✅ Content-Type |
    | 🔒 メールアドレス | ✅ User-Agent |
    | 🔒 個人情報 | ✅ 攻撃シグネチャ |
    
    **コンプライアンス適用範囲:**
    - ✅ **GDPR** - 外部API呼び出し前にPIIを匿名化
    - ✅ **HIPAA** - PHIを第三者から保護
    - ✅ **PCI-DSS** - クレジットカードデータをマスキング
    - ✅ **CCPA** - ユーザーデータの最小化を適用
    
    詳細は [ANONYMIZATION_TESTING.md](https://github.com/0tsystemspublicrepos/ifritproxy/blob/HEAD/docs/ANONYMIZATION_TESTING.md) を参照してください。
    
    ---
    
    ## ⚙️ 設定
    
    ### マルチLLMセットアップ
    
    **Claude(セキュリティ推奨):**```json
    {
      "llm": {
        "provider": "claude",
        "claude": {
          "api_key": "${ANTHROPIC_API_KEY}",
          "model": "claude-sonnet-4-20250514",
          "max_tokens": 4096,
          "temperature": 0.0
        }
      }
    }
    

    Gemini (費用対効果の高い代替):```json { "llm": { "provider": "gemini", "gemini": { "api_key": "${GOOGLE_API_KEY}", "model": "gemini-2.0-flash-exp", "max_tokens": 4096, "temperature": 0.0 } } }

    root@kitploit:~
    ### データベースオプション
    
    **SQLite(デフォルト - 設定不要):**```json
    {
      "database": {
        "type": "sqlite",
        "sqlite": {
          "path": "./data/ifrit.db"
        }
      }
    }
    

    PostgreSQL(エンタープライズ規模):```json { "database": { "type": "postgresql", "postgresql": { "host": "localhost", "port": 5432, "user": "ifrit_user", "password": "${POSTGRES_PASSWORD}", "database": "ifrit", "ssl_mode": "require" } } }

    root@kitploit:~
    **どちらを使うべきか:**
    - **SQLite:** 単一サーバー、1日100万件未満の攻撃、迅速なセットアップ
    - **PostgreSQL:** クラスター、1日100万件超の攻撃、エンタープライズ向け
    
    ### 脅威インテリジェンス
    
    外部エンリッチメントを有効にする:```json
    {
      "threat_intelligence": {
        "enabled": true,
        "cache_ttl_hours": 24,
        "enrichment_workers": 3,
        "apis": {
          "abuseipdb": {
            "enabled": true,
            "api_key": "${ABUSEIPDB_API_KEY}"
          },
          "virustotal": {
            "enabled": true,
            "api_key": "${VIRUSTOTAL_API_KEY}"
          },
          "ipinfo": {
            "enabled": true,
            "api_key": "${IPINFO_API_KEY}"
          }
        },
        "threat_level_thresholds": {
          "critical": 80,
          "high": 60,
          "medium": 40,
          "low": 0
        }
      }
    }
    

    通知システム

    ルールベースのフィルタリングを備えたマルチチャネルアラート:```json { "notifications": { "enabled": true, "providers": { "email": { "enabled": true, "smtp_host": "smtp.gmail.com", "smtp_port": 587, "smtp_username": "${SMTP_USERNAME}", "smtp_password": "${SMTP_PASSWORD}", "from_address": "[email protected]" }, "slack": { "enabled": true, "webhook_url": "${SLACK_WEBHOOK_URL}" }, "twilio": { "enabled": false, "account_sid": "${TWILIO_ACCOUNT_SID}", "auth_token": "${TWILIO_AUTH_TOKEN}", "from_number": "${TWILIO_FROM_NUMBER}", "to_number": "${TWILIO_TO_NUMBER}" } }, "rules": { "alert_on_critical": true, "alert_on_high": false, "alert_on_medium": false, "alert_on_low": false } } }

    root@kitploit:~
    **プロのヒント:** アラート疲れを防ぐため、最初はCRITICALアラートのみを有効にしてください。
    
    ---
    
    ## 📚 ドキュメント
    
    | ドキュメント | 説明 |
    |----------|-------------|
    | [START_HERE.md](https://github.com/0tsystemspublicrepos/ifritproxy/blob/HEAD/docs/START_HERE.md) | 全ドキュメントのナビゲーションガイド |
    | [INSTALLATION.md](https://github.com/0tsystemspublicrepos/ifritproxy/blob/HEAD/docs/INSTALLATION.md) | 詳細なセットアップ手順 |
    | [DETECTION_MODES.md](https://github.com/0tsystemspublicrepos/ifritproxy/blob/HEAD/docs/DETECTION_MODES.md) | 検知モードと許可リストの比較 |
    | [THREAT_INTELLIGENCE.md](https://github.com/0tsystemspublicrepos/ifritproxy/blob/HEAD/docs/THREAT_INTELLIGENCE.md) | インテリジェンス収集ガイド |
    | [NOTIFICATIONS.md](https://github.com/0tsystemspublicrepos/ifritproxy/blob/HEAD/docs/NOTIFICATIONS.md) | アラートシステムの設定 |
    | [API_ENDPOINTS.md](https://github.com/0tsystemspublicrepos/ifritproxy/blob/HEAD/docs/API_ENDPOINTS.md) | REST API完全リファレンス |
    | [FEATURES.md](https://github.com/0tsystemspublicrepos/ifritproxy/blob/HEAD/docs/FEATURES.md) | 全機能一覧 |
    | [DECEPTIVE_PAYLOADS_MANAGEMENT.md](https://github.com/0tsystemspublicrepos/ifritproxy/blob/HEAD/docs/DECEPTIVE_PAYLOADS_MANAGEMENT.md) | ハニーポット応答システム |
    | [ANONYMIZATION_TESTING.md](https://github.com/0tsystemspublicrepos/ifritproxy/blob/HEAD/docs/ANONYMIZATION_TESTING.md) | プライバシーとコンプライアンスの詳細 |
    
    ---
    
    ## 🛣️ ロードマップ
    
    
    **v0.4.0 - インテリジェンス強化** 
    - [ ] Keycloak認証の統合
    - [ ] 管理ポータルの再設計
    - [ ] データベース保存型の設定
    - [ ] 機械学習スコアリングの改善
    - [ ] 攻撃の重複排除
    
    **v0.5.0 - エンタープライズ機能** 
    - [ ] 高度なSIEM統合 (Wazuh、Splunk、ELK)
    - [ ] MySQL/MariaDBのサポート
    - [ ] クラスタリングとロードバランシング
    - [ ] 通知スケジュールと静音時間
    
    **v0.6.0 - 自動化** 
    - [ ] 応答の自動化
    - [ ] エスカレーションポリシー
    - [ ] 通知のバッチ処理
    - [ ] 高度な脅威相関分析
    
    ---
    
    ## 🤝 コントリビューション
    
    IFRITはApache License 2.0のもとでオープンソースです。コントリビューションを歓迎します!
    
    **協力が必要な分野:**
    - 🧠 新しいLLMプロバイダー (GPT、Llama、Mistral)
    - 🔗 SIEM統合 (Wazuh、Splunk、ELK)
    - 🌐 脅威インテリジェンスプロバイダー
    - 📢 通知チャネル (Discord、Teams、PagerDuty)
    - 🎭 新しい攻撃タイプ用のペイロードテンプレート
    - 📖 ドキュメントの改善
    - 🐛 バグ修正と最適化
    
    ガイドラインについては [CONTRIBUTING.md](https://github.com/0tsystemspublicrepos/ifritproxy/blob/HEAD/CONTRIBUTING.md) を参照してください。
    
    **商用サポート:**
    エンタープライズ展開、カスタム統合、コンサルティングについて:
    - メール: [[email protected]](mailto:[email protected])
    - ウェブ: [0t.Systems](https://www.0t.Systems)
    
    ---
    
    ## 📊 プロジェクト統計
    
    <div align="center">
    
    | 指標 | 値 |
    |--------|-------|
    | **検知精度** | 99.2% |
    | **平均応答時間** | < 15ms |
    | **コスト削減** | 学習後90% |
    | **対応LLM** | Claude、Gemini |
    | **データベースオプション** | SQLite、PostgreSQL |
    | **脅威インテルソース** | 3 (AbuseIPDB、VirusTotal、IPInfo) |
    | **通知チャネル** | 4 (Email、Slack、SMS、Webhook) |
    
    </div>
    
    ---
    
    ## 📜 ライセンス
    
    IFRIT Proxyは [Apache License 2.0](https://github.com/0tsystemspublicrepos/ifritproxy/blob/HEAD/LICENSE) の下でライセンスされています。
    
    **商用サポート、カスタム統合、コンサルティング:**  
    📧 [[email protected]](mailto:[email protected])
    
    ---
    
    ## 🙏 謝辞
    
    使用技術:
    - [Go](https://go.dev) - 高性能ランタイム
    - [SQLite](https://www.sqlite.org) / [PostgreSQL](https://www.postgresql.org) - データ永続化
    - [Anthropic Claude](https://www.anthropic.com) - AIセキュリティ分析
    - [Google Gemini](https://deepmind.google/technologies/gemini/) - コスト効率の高いAI代替手段
    - [AbuseIPDB](https://www.abuseipdb.com) - IPレピュテーションインテリジェンス
    - [VirusTotal](https://www.virustotal.com) - マルウェア検知
    - [IPInfo](https://ipinfo.io) - 地理位置情報とプライバシー検知
    
    脅威インテリジェンスとパターンへの貢献に対して、**セキュリティコミュニティに特別な感謝を捧げます。**
    
    
    ---
    
    <div align="center">
    
    ## 🚀 始める準備はできましたか?
    
    **[📦 IFRITをインストール](#-quick-start)** • **[📖 ドキュメントを読む](https://github.com/0tsystemspublicrepos/ifritproxy/blob/HEAD/docs/START_HERE.md)** • **[🔌 APIリファレンス](https://github.com/0tsystemspublicrepos/ifritproxy/blob/HEAD/docs/API_ENDPOINTS.md)**
    
    </div>
    
    ---
    
    <div align="center">
    
    ### **🔥 を込めて [0t.Systems](https://www.0t.Systems) が制作**
    
    *攻撃者をインテリジェンスソースに変える、ハニーポットをひとつずつ*
    
    **[⬆ 先頭に戻る](#-ifrit-proxy)**
    
    ---
    
    **質問は? 問題は? アイデアは?**  
    📧 メール: [[email protected]](mailto:[email protected])  
    🐛 バグを報告: [GitHub Issues](https://github.com/0tSystemsPublicRepos/IfritProxy/issues)  
    💬 ディスカッション: [GitHub Discussions](https://github.com/0tSystemsPublicRepos/IfritProxy/discussions)
    
    ---
    
    [![GitHub stars](https://img.shields.io/github/stars/0tSystemsPublicRepos/IfritProxy?style=social)](https://github.com/0tSystemsPublicRepos/IfritProxy)
    [![LinkedIn Follow](https://img.shields.io/badge/LinkedIn-Follow-0077B5?style=social&logo=linkedin)](https://www.linkedin.com/company/0t-systems)
    
    </div>