Defense Evasion (TA0005)(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:process where event.type == "start" and // GenAI parent process ( process.parent.name in ( "ollama.exe", "ollama", "Ollama", "textgen.exe", "textgen", "text-generation-webui.exe", "oobabooga.exe", "lmstudio.exe", "lmstudio", "LM Studio", "claude.exe", "claude", "Claude", "cursor.exe", "cursor", "Cursor", "Cursor Helper", "Cursor Helper (Plugin)", "copilot.exe", "copilot", "Copilot", "codex.exe", "codex", "Jan", "jan.exe", "jan", "Jan Helper", "gpt4all.exe", "gpt4all", "GPT4All", "gemini-cli.exe", "gemini-cli", "genaiscript.exe", "genaiscript", "grok.exe", "grok", "qwen.exe", "qwen", "koboldcpp.exe", "koboldcpp", "KoboldCpp", "llama-server", "llama-cli" ) or // Node/Deno with GenAI frameworks (process.parent.name in ("node.exe", "node", "deno.exe", "deno") and process.parent.command_line like~ ("*mcp-server*", "*@modelcontextprotocol*", "*langchain*", "*autogpt*", "*babyagi*", "*agentgpt*", "*crewai*", "*semantic-kernel*", "*llama-index*", "*haystack*")) or // Python with GenAI frameworks (process.parent.name like~ "python*" and process.parent.command_line like~ ("*langchain*", "*autogpt*", "*babyagi*", "*agentgpt*", "*crewai*", "*semantic-kernel*", "*llama-index*", "*haystack*")) ) and // Compilation tools ( // Python packaging process.name in ("pyinstaller", "py2exe", "cx_Freeze", "nuitka", "pyarmor", "pkg") or // C/C++ compilation with output (process.name in ("gcc", "g++", "clang", "clang++", "cl.exe") and process.command_line like~ "*-o *" and process.command_line like~ ("*.c *", "*.c", "*.cpp *", "*.cpp", "*.cc *", "*.cc", "*.m *", "*.m") and not process.command_line like~ "*git*") or // Go compilation (process.name == "go" and process.args == "build") or // Rust compilation (process.name == "cargo" and process.args == "build") or (process.name == "rustc" and process.command_line like~ "*-o *") or // .NET compilation process.name in ("csc.exe", "vbc.exe", "msbuild.exe") or (process.name == "dotnet" and process.args == "build") or // Java compilation process.name == "javac" )
Install detection rules in Elastic Security
Detect GenAI Process Compiling or Generating Executables 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).