title: Generative AI Chat Or API Service Accessed Through Proxy
id: 3f4d6a52-8a67-4c0e-9a5b-2d1c7e9f0b41
status: experimental
description: |
    Detects web requests to the chat interfaces or APIs of public generative AI services.
    Meant as an inventory signal for shadow AI rather than an alert: it tells you who uses which service, not what was sent.
references:
    - https://learn.microsoft.com/en-us/purview/deploymentmodels/depmod-data-leak-shadow-ai-step1
author: Chabnco
date: 2026-10-17
tags:
    - attack.exfiltration
    - attack.t1567
logsource:
    category: proxy
detection:
    selection:
        cs-host|endswith:
            - 'chatgpt.com'
            - 'chat.openai.com'
            - 'api.openai.com'
            - 'claude.ai'
            - 'api.anthropic.com'
            - 'gemini.google.com'
            - 'generativelanguage.googleapis.com'
            - 'chat.mistral.ai'
            - 'api.mistral.ai'
            - 'chat.deepseek.com'
            - 'api.deepseek.com'
            - 'perplexity.ai'
    condition: selection
falsepositives:
    - Sanctioned use of these services. Filter on the approved list before using this rule as an alert.
level: low
