Command Palette

Search for a command to run...

UnylyUnyly
Back to skills

sensor-tasking

FreeNo executable scriptsNot checked

Send tasks (commands) to EDR sensors to gather data or take action. Handles offline agents via reliable-tasking, collects responses via LCQL queries, and…

refractionPOINTby refractionPOINT★ 32 GitHub stars6 installs in other catalogs

About this skill

Sensor Tasking - Query and Command EDR Agents

This skill orchestrates sending tasks (commands) to EDR sensors and handling responses. It solves two key challenges of sensor tasking:

  1. Offline agents: Sensors may be offline when you want to task them
  2. Response collection: Some tasks generate data that needs to be collected

LimaCharlie Integration

Prerequisites: Run /init-lc to initialize LimaCharlie context.

LimaCharlie CLI Access

All LimaCharlie operations use the limacharlie CLI directly:

limacharlie <noun> <verb> --oid <oid> --output yaml [flags]

For command help and discovery: limacharlie <command> --ai-help

Critical Rules

Rule Wrong Right
CLI Access Call MCP tools or spawn api-executor Use Bash("limacharlie ...") directly
Output Format --output json --output yaml (more token-efficient)
Filter Output Pipe to jq/yq Use --filter JMESPATH to select fields
LCQL Queries Write query syntax manually Use limacharlie ai generate-query first
Timestamps Calculate epoch values Use date +%s or date -d '7 days ago' +%s
OID Use org name Use UUID (call limacharlie org list if needed)

When to Use

Use this skill when the user wants to:

  • Live Response: Query running processes, network connections, registry keys, services
  • Forensic Collection: Collect memory maps, file listings, autoruns, packages
  • Fleet Operations: Execute commands across many sensors (by tag, platform, etc.)
  • Incident Response: Isolate hosts, kill processes, gather evidence
  • Data Collection at Scale: Get OS versions, installed software, users across fleet

Example requests:

  • "Get running processes from sensor X"
  • "List all files in C:\Windows\Temp on compromised hosts"
  • "Get OS version from all Windows servers when they come online"
  • "Run a memory collection on all hosts tagged 'incident-response'"
  • "Execute netstat on all online Linux servers"

Core Concepts

Challenge 1: Offline Agents

Direct tasking (get_processes, dir_list, etc.) only works for online sensors. If a sensor is offline, the task fails immediately.

Reliable tasking queues tasks for delivery when sensors come online. Tasks persist for a configurable TTL (default: 1 week).

Approach Use When Pros Cons
Direct Task ≤5 online sensors, need immediate response Fast, response inline Fails if offline
Reliable Task >5 sensors, offline sensors, or can wait Guaranteed delivery Response via telemetry

Challenge 2: Receiving Responses

Method Use When How It Works
Inline Response Direct tasking small numbers Response returned directly from API
LCQL Query Need to collect reliable task responses Query for routing/investigation_id containing your --investigation-id value
D&R Rule Need automated action on responses Create rule matching investigation_id, with response actions

Decision Tree

START: User wants to task sensors
    |
    v
Are all targets online AND ≤5 sensors?
    |
    |--YES--> Use Direct Tasking (inline response, parallel execution)
    |
    |--NO--> Use Reliable Tasking (>5 sensors OR any offline)
              |
              v
       Do you need the response data?
              |
              |--NO (action-only like isolate)--> Create Reliable Task, done
              |
              |--YES--> Do you need automated handling?
                        |
                        |--NO--> Create Reliable Task, wait 2+ min, then LCQL query
                        |
                        |--YES--> 1. Create D&R rule with TTL FIRST
                                  2. THEN create Reliable Task
                                  (rule must exist before task to avoid missing responses)

How to Use

Step 1: Understand the Request

Parse the user's request to determine:

  • Target scope: Single sensor, selector, all sensors?
  • Task type: Data collection (needs response) or action (unidirectional)?
  • Urgency: Need immediate response or can wait?
  • Response handling: Inline, LCQL collection, or automated D&R?

Step 2: Get Organization and Sensors

If you don't have the OID, get it first:

limacharlie org list --output yaml

Check sensor status if targeting specific sensors:

limacharlie sensor get --sid <sid> --oid <oid> --output yaml

CRITICAL: Filter to Taskable EDR Sensors

Before spawning executor agents or tasking sensors, you MUST verify sensors are EDR agents (not adapters or cloud sensors). Non-EDR sensors will fail with UNSUPPORTED_FOR_PLATFORM.

Taskable sensors require BOTH:

  • Platform: windows, linux, macos, or chrome
  • Architecture: NOT usp_adapter (code 9)

A sensor running on Linux platfo

Full SKILL.md on GitHub

Install sensor-tasking in Claude Code & Claude Desktop

Sign up to install this skill

Create a free account to reveal the install command and save the skill to your library.

  • Reveal the one-line install command
  • Save skills to your synced library
  • Get notified when skills update
Sign up freeI already have an account

Allowed tools

Tools this skill is permitted to call.

Task
Read
Bash
Skill

FAQ

What does the sensor-tasking skill do?

Send tasks (commands) to EDR sensors to gather data or take action. Handles offline agents via reliable-tasking, collects responses via LCQL queries, and creates D&R rules for automated response handling. Use for live response, data collection, forensic acquisition, or fleet-wide operations like "get OS version from all Windows servers" or "isolate all hosts with tag X".

How do I install the sensor-tasking skill?

Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.

Does the sensor-tasking skill run scripts?

No, this skill is instructions only (SKILL.md) with no executable scripts.

Related skills

Compare sensor-tasking with