ByteRay CQL Hub
CrowdStrike Query Library

The open CQL library for Falcon Next‑Gen SIEM.

173 community-maintained detection & hunting queries for CrowdStrike Falcon Next-Gen SIEM and LogScale. Search, filter, copy — free to use.

173 queriesReset filters
Powershell Command Length Anomaly Detection
Detection
Endpoint
Insight
This query establishes a 7-day baseline of average PowerShell command lengths for each host. It then compares this baseline to the average command length of the last 24 hours. The query identifies hosts with a significant percentage increase in command length, which can be an indicator for obfuscation, fileless execution, or other malicious activities associated with "Living off the Land" techniques.
CQL
Copy
Run in Falcon ↗
#event_simpleName=ProcessRollup2 | ImageFileName=/\\(powershell(_ise)?|pwsh)\.exe/i | CommandLength := length("CommandLine") | CommandLength>0 | aid=?AID // Classify Data into Historical and LastDay | case { test(@timestamp < (end() - duration(7d))) | DataSet:="Historical"; test(@timestamp > (end() - duration(1d))) | DataSet:="LastDay"; * } // Calculate Average Command Length | groupBy([DataSet, aid], function=avg(CommandLength)) | case { DataSet="Historical" | rename(field="_avg", as="historicalAvg"); DataSet="LastDay" | rename(field="_avg", as="todaysAvg"); * } // Aggregate Averages | groupBy([aid], function=[avg("historicalAvg", as=historicalAvg), avg("todaysAvg", as=todaysAvg)]) // Calculate Percentage Increase | PercentIncrease := (todaysAvg - historicalAvg) / historicalAvg * 100 | format("%d", field=PercentIncrease, as=PercentIncrease) | format(format="%.2f", field=[historicalAvg], as=historicalAvg) // Filter and Sort Results | PercentIncrease > 0 | sort(PercentIncrease, limit=10000)
T1059.001, T1027.010
ByteRay GmbH
powershell-command-length-anomaly-detection
GenAI Usage
Hunting
Endpoint
Insight
This query identifies DNS requests to GenAI services.
CQL
Copy
Run in Falcon ↗
#event_simpleName=DnsRequest | in(field=DomainName, values=[".ai", ".ai21.com", ".aleph-alpha.com", ".anthropic.com", ".assemblyai.com", ".bolt.ai", ".bubble.io", ".character.ai", ".claude.ai", ".clickup.com", ".codeium.com", ".cohere.ai", ".copy.ai", ".cursor.so", ".deepmind.com", ".deepseek.ai", ".deepl.com", ".dalle.ai", ".elevenlabs.io", ".feedhive.io", ".forefront.ai", ".grok.x.ai", ".gpt3.com", ".huggingface.co", ".inflection.ai", ".jasper.ai", ".llama.ai", ".looka.com", ".lovable.ai", ".midjourney.com", ".mistral.ai", ".openai.com", ".opus.ai", ".perplexity.ai", ".pi.ai", ".poe.com", ".replicate.com", ".runwayml.com", ".rytr.me", ".scale.com", ".stability.ai", ".sudowrite.com", ".synthesia.io", ".tabnine.com", ".together.ai", ".v0.dev", ".vercel.ai", ".vista.social", ".wordtune.com", ".writesonic.com", ".x.ai", ".you.com", "ai21.com", "aleph-alpha.com", "anthropic.com", "api.anthropic.com", "api.openai.com", "assemblyai.com", "bard.google.com", "bedrock.aws.amazon.com", "bolt.ai", "bubble.io", "character.ai", "chat.openai.com", "chatgpt.com", "claude.ai", "clickup.com", "codeium.com", "cohere.ai", "console.anthropic.com", "copilot.github.com", "copilot.microsoft.com", "copy.ai", "cursor.so", "dalle.ai", "deepmind.com", "deepseek.ai", "deepl.com", "elevenlabs.io", "ernie.baidu.com", "feedhive.io", "forefront.ai", "gemini.google.com", "gigachat.sberbank.ru", "grok.x.ai", "gpt3.com", "huggingface.co", "inflection.ai", "jasper.ai", "labs.perplexity.ai", "llama.ai", "looka.com", "lovable.ai", "midjourney.com", "mistral.ai", "openai.com", "opus.ai", "perplexity.ai", "pi.ai", "platform.openai.com", "poe.com", "replicate.com", "runwayml.com", "rytr.me", "scale.com", "stability.ai", "sudowrite.com", "synthesia.io", "tabnine.com", "together.ai", "v0.dev", "vercel.ai", "vista.social", "wordtune.com", "writesonic.com", "x.ai", "you.com"]) | groupBy([DomainName, ComputerName, event_platform]) | sort(field=_count,type=number,order=desc)
ByteRay GmbH
genai-usage
No queries match your filters.

Have a query worth sharing?

Submit it directly — no GitHub account required — or open a pull request. Every query is reviewed and validated before it goes live, credited to you as the author.

Contribute a query →

These queries run in production.

We build, tune and operate CrowdStrike Falcon Next-Gen SIEM for companies across Europe, with more than 350 tested use cases and 24/7 incident response behind them.

Talk to the SIEM team