Command and Control (TA0011)(external, opens in a new tab or window)
endpoint(external, opens in a new tab or window)
windows(external, opens in a new tab or window)
sentinel_one_cloud_funnel(external, opens in a new tab or window)
text code block:network where host.os.type == "windows" and dns.question.name != null and ( process.name : ("MSBuild.exe", "mshta.exe", "wscript.exe", "powershell.exe", "pwsh.exe", "msiexec.exe", "rundll32.exe", "bitsadmin.exe", "InstallUtil.exe", "RegAsm.exe", "vbc.exe", "RegSvcs.exe", "python.exe", "regsvr32.exe", "dllhost.exe", "node.exe", "javaw.exe", "java.exe", "*.pif", "*.com") or ?process.code_signature.subject_name : ("AutoIt Consulting Ltd", "OpenJS Foundation", "Python Software Foundation") or ( process.executable : ("?:\\Users\\*.exe", "?:\\ProgramData\\*.exe") and (?process.code_signature.trusted == false or ?process.code_signature.exists == false) ) ) and dns.question.name : ( // Major LLM APIs "api.openai.com", "*.openai.azure.com", "api.anthropic.com", "api.mistral.ai", "api.cohere.ai", "api.ai21.com", "api.groq.com", "api.perplexity.ai", "api.x.ai", "api.deepseek.com", "api.gemini.google.com", "generativelanguage.googleapis.com", "api.azure.com", "api.bedrock.aws", "bedrock-runtime.amazonaws.com", // Hugging Face & other ML infra "api-inference.huggingface.co", "inference-endpoint.huggingface.cloud", "*.hf.space", "*.replicate.com", "api.replicate.com", "api.runpod.ai", "*.runpod.io", "api.modal.com", "*.forefront.ai", // Consumer-facing AI chat portals "chat.openai.com", "chatgpt.com", "copilot.microsoft.com", "bard.google.com", "gemini.google.com", "claude.ai", "perplexity.ai", "poe.com", "chat.forefront.ai", "chat.deepseek.com" ) and not process.executable : ( "?:\\Program Files\\*.exe", "?:\\Program Files (x86)\\*.exe", "?:\\Windows\\System32\\svchost.exe", "?:\\Windows\\SystemApps\\Microsoft.LockApp_*\\LockApp.exe", "?:\\Users\\*\\AppData\\Local\\Google\\Chrome\\Application\\chrome.exe", "?:\\Users\\*\\AppData\\Local\\BraveSoftware\\*\\Application\\brave.exe", "?:\\Users\\*\\AppData\\Local\\Vivaldi\\Application\\vivaldi.exe", "?:\\Users\\*\\AppData\\Local\\Programs\\Opera*\\opera.exe", "?:\\Users\\*\\AppData\\Local\\Programs\\Fiddler\\Fiddler.exe" ) and not (?process.code_signature.trusted == true and ?process.code_signature.subject_name : ("Anthropic, PBC", "Google LLC", "Mozilla Corporation", "Brave Software, Inc.", "Island Technology Inc.", "Opera Norway AS"))
Install detection rules in Elastic Security
Detect Connection to Common Large Language Model Endpoints in the Elastic Security detection engine by installing this rule into your Elastic Stack.
To setup this rule, check out the installation guide for Prebuilt Security Detection Rules(external, opens in a new tab or window).