/lc-fundamentals:search-and-queryfrom lc-fundamentals
Generates, validates, and executes LCQL queries against LimaCharlie telemetry. Handles cost estimation, event schema exploration, and detection listing.
Ships in lc-fundamentals. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
How to query and explore data in LimaCharlie using LCQL, detection listing, and event schema tools.
LCQL uses a unique pipe-based syntax validated against org-specific schemas. LLMs do NOT know correct LCQL syntax. Any manually written LCQL will be invalid.
ALWAYS use the generation + validation workflow below.
Convert natural language to LCQL:
limacharlie ai generate-query --prompt "Find all NEW_PROCESS events with encoded PowerShell commands in the last hour" --oid <oid> --output yaml
Mandatory for ALL queries — even generated ones, user-provided ones, or saved queries:
limacharlie search validate --query "<query>" --oid <oid> --output yaml
start=$(date -d '1 hour ago' +%s) && end=$(date +%s)
limacharlie search run --query "<validated_query>" --start $start --end $end --oid <oid> --output yaml
Valid --stream values: event, detect, audit.
For queries older than 30 days (paid queries), estimate cost first:
limacharlie search estimate --query "<query>" --start <ts> --end <ts> --oid <oid> --output yaml
Show the estimated cost to the user. If estimate > 0, ask for approval before running.
Re-call limacharlie ai generate-query with the error message in the prompt. Never fix LCQL syntax manually. After 3 failures, report to user.
NEVER calculate timestamps manually. LLMs consistently produce incorrect values.
date +%s # Current time (seconds)
date -d '1 hour ago' +%s # 1 hour ago
date -d '7 days ago' +%s # 7 days ago
date -d '2025-01-15 00:00:00 UTC' +%s # Specific date
Milliseconds vs seconds:
limacharlie event types --oid <oid> --output yaml
# Platform-specific:
limacharlie event types --platform windows --oid <oid> --output yaml
limacharlie event schema --event-type NEW_PROCESS --oid <oid> --output yaml
limacharlie event retention --sid <sid> --start <epoch> --end <epoch> --oid <oid> --output yaml
start=$(date -d '1 hour ago' +%s) && end=$(date +%s)
limacharlie event list --sid <sid> --start $start --end $end --oid <oid> --output yaml
limacharlie event get --sid <sid> --atom <atom> --oid <oid> --output yaml
limacharlie event children --sid <sid> --atom <atom> --oid <oid> --output yaml
start=$(date -d '7 days ago' +%s) && end=$(date +%s)
limacharlie detection list --start $start --end $end --oid <oid> --output yaml
Filter by category:
limacharlie detection list --start $start --end $end --filter "[?cat=='suspicious_process']" --oid <oid> --output yaml
limacharlie detection get --id <detect_id> --oid <oid> --output yaml
Search for indicators of compromise across all sensors in an org:
limacharlie ioc search --type <type> --value "<value>" --oid <oid> --output yaml
Valid IOC types: ip, domain, file_hash, file_path, file_name, user, service_name, package_name.
limacharlie search saved-list --oid <oid> --output yaml
limacharlie search saved-create --name <name> --query "<lcql_query>" --stream event --oid <oid> --output yaml
limacharlie search saved-run --name <name> --start <ts> --end <ts> --oid <oid> --output yaml
limacharlie search saved-delete --name <name> --oid <oid> --output yaml
LimaCharlie has four data streams, each queryable differently:
| Stream | Content | Query Method |
|---|---|---|
event | Real-time telemetry (processes, DNS, network, files) | LCQL, event list |
detection | Alerts from D&R rules | detection list, LCQL |
audit | Platform management events | LCQL |
deployment | Sensor lifecycle events | LCQL |
When API calls return a resource_link URL:
# curl handles decompression automatically — do NOT pipe through gunzip
curl -sS "<resource_link_url>" | jq '.'
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
limacharlie, lcql, query-generation, telemetry-search, event-schema
npx claudepluginhub refractionpoint/lc-ai --plugin lc-fundamentals13 skills in this plugin
/adaptersWorking with LimaCharlie adapters — cloud sensors (SaaS integrations), external adapters (cloud-managed), and on-prem/USP adapters. Covers configuration, credential setup, parsing rules, validation, deployment, and troubleshooting. Use when setting up data sources, configuring adapters, or troubleshooting ingestion./appsAuthor and deploy LimaCharlie "apps" — self-contained AI-generated HTML mini-apps that render in a sandboxed iframe in the LimaCharlie web UI and call LimaCharlie APIs through a brokered, permission-scoped runtime (window.lc). Use when a user wants to create, edit, or understand a custom app/dashboard/tool embedded in the LimaCharlie console (the `app` hive)./casesWorking with LimaCharlie Cases — CRUD, lifecycle management, entities, telemetry references, notes, tags, merging, export, and bulk operations. Use when managing cases, adding evidence, updating case status, or querying the case queue./cloud-securityLimaCharlie Cloud Security (CNAPP) — cloud findings triage, security-graph pivoting and queries, attack paths, CIEM identity analysis, inventory, data security, CAASM, compliance, and MSSP fleet views. Use when investigating cloud risk, pivoting between cloud resources and identities, walking attack paths, connecting cloud assets to endpoint sensors, or triaging cloud security findings./d-and-r-rulesWorking with Detection & Response rules in LimaCharlie — AI-assisted generation, validation, unit testing, historical replay, deployment, FP rules, stateful rules, behavioral detection patterns, suppression, alternate detection targets, and response actions. Use when creating, testing, modifying, or managing D&R rules, false positive rules, or understanding detection patterns./exfil-event-collectionManaging which events EDR sensors send to LimaCharlie — event collection rules, watch rules, performance rules, throughput management, Afterburner mode, and IR mode. Use when configuring which events sensors collect, troubleshooting throughput issues, managing high-volume sensors, or understanding why events are missing.Other plugins' skills for the same job