> ## Documentation Index
> Fetch the complete documentation index at: https://developer.box.com/llms.txt
> Use this file to discover all available pages before exploring further.

# AIセキュリティ検出イベント

export const MultiRelatedLinks = ({sections = []}) => {
  if (!sections || sections.length === 0) {
    return null;
  }
  return <div className="space-y-8">
      {sections.map((section, index) => <RelatedLinks key={index} title={section.title} items={section.items} />)}
    </div>;
};

export const RelatedLinks = ({title, items = []}) => {
  const getBadgeClass = badge => {
    if (!badge) return "badge-default";
    const badgeType = badge.toLowerCase().replace(/\s+/g, "-");
    return `badge-${badge === "ガイド" ? "guide" : badgeType}`;
  };
  if (!items || items.length === 0) {
    return null;
  }
  return <div className="my-8">
      {}
      <h3 className="text-sm font-bold uppercase tracking-wider mb-4">{title}</h3>

      {}
      <div className="flex flex-col gap-3">
        {items.map((item, index) => <a key={index} href={item.href} className="py-2 px-3 rounded related_link hover:bg-[#f2f2f2] dark:hover:bg-[#111827] flex items-center gap-3 group no-underline hover:no-underline border-b-0">
            {}
            <span className={`px-2 py-1 rounded-full text-xs font-semibold uppercase tracking-wide flex-shrink-0 ${getBadgeClass(item.badge)}`}>
              {item.badge}
            </span>

            {}
            <span className="text-base">{item.label}</span>
          </a>)}
      </div>
    </div>;
};

export const Link = ({href, children, className, ...props}) => {
  const localizedHref = localizeLink(href);
  return <a href={localizedHref} className={className} {...props}>
      {children}
    </a>;
};

`AI_SECURITY_DETECTION`イベントは、Box AIが入力コンテンツや取得したコンテンツにセキュリティスキャンを実行して、プロンプトインジェクションの試行など、潜在的なセキュリティリスクを検出した場合に生成されます。このイベントを利用すると、エージェントセッションとAIを活用したワークフローの全体にわたってAIセキュリティ検出を監視および監査できます。

<Warning>
  AIセキュリティ検出イベントはBox Agentに対してのみ生成され、従来のエージェントはスキャンされません。また、Box Shield Proのエージェント (<Link href="https://support.box.com/hc/en-us/articles/44263764561171-AI-Classification">AI分類エージェント</Link>と<Link href="https://support.box.com/hc/en-us/articles/48430758923027-AI-Threat-Analysis">AI脅威分析エージェント</Link>を含む) もスキャンされません。
</Warning>

AIセキュリティ検出イベントはすべて、<Link href="/guides/events/enterprise-events/for-enterprise">Enterprise Event</Link> Stream内で生成されます。これらのイベントは標準の<Link href="/reference/resources/event">イベント</Link>オブジェクトスキーマに従っており、`event_type`は`AI_SECURITY_DETECTION`に設定され、個々の検出の詳細は`additional_details`内にネストされます。

```json theme={null}
{
  "created_by": {
    "type": "user",
    "id": "1234"
  },
  "created_at": "2026-01-01T00:00:00-08:00",
  "event_type": "AI_SECURITY_DETECTION",
  "type": "event",
  "session_id": null,
  "additional_details": {
    "ai_security_detection_event": {
      "agent_id": "box-ai-agent",
      "items": null,
      "detector_type": "PROMPT_INJECTION",
      "scan_source_type": "PROMPT",
      "confidence_level": "MEDIUM",
      "action": "ALLOW"
    }
  }
}
```

# `additional_details`のフィールド

| フィールド              | 説明                                                    |
| ------------------ | ----------------------------------------------------- |
| `agent_id`         | リクエストを処理したBox AIエージェントのID。                            |
| `items`            | 常に`null`が返されます。                                       |
| `detector_type`    | 何が検出をトリガーしたのかを示します。[検出タイプ](#detector-types)を参照してください。 |
| `scan_source_type` | エージェントへのユーザー入力がスキャンされたことを示します。                        |
| `confidence_level` | 検出の信頼度レベル: `LOW`、`MEDIUM`、`HIGH`。                     |
| `action`           | 検出後に実行されたアクション。[アクション](#actions)を参照してください。            |

## 検出タイプ

`detector_type`フィールドは、何が検出をトリガーしたのかを示します。検出タイプは今後さらに追加される可能性があります。

| 検出タイプ              | 説明                                                                                           |
| ------------------ | -------------------------------------------------------------------------------------------- |
| `PROMPT_INJECTION` | エージェントの対応中またはAIを活用したワークフロー中に、悪意のある入力や敵対的な入力を通じてエージェントの指示を操作または上書きしようとする試みがBox AIによって検出されました。 |

# アクション

`action`フィールドは、Box AIが検出への対応として実行したアクションを示します。すべての検出は、信頼度レベルが`LOW`であるものも含め、Enterprise Event Streamに記録されます。

| 動作         | 説明                              |
| ---------- | ------------------------------- |
| `LOG_ONLY` | 検出が記録されました。リクエストは処理の続行が許可されました。 |

<RelatedLinks
  title="関連するAPI"
  items={[
{ label: "List user and enterprise events", href: "/reference/get-events", badge: "GET" },
{ label: "Get events long poll endpoint", href: "/reference/options-events", badge: "OPTIONS" }
]}
/>

<RelatedLinks
  title="関連するガイド"
  items={[
{ label: "Get Enterprise Events", href: "/guides/events/enterprise-events/for-enterprise", badge: "GUIDE" }
]}
/>
