/lc-advanced-skills:threat-report-evaluationfrom lc-advanced-skills
Extracts IOCs (hashes, domains, IPs, file paths) and malicious behaviors from threat reports, searches for compromise indicators across LimaCharlie orgs via CLI, and generates LCQL queries, D&R rules, and lookups.
Ships in lc-advanced-skills. 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.
Systematically evaluate threat reports to determine organizational impact and create comprehensive defense-in-depth detections.
Prerequisites: Run
/init-lcto initialize LimaCharlie context.
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
| 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 |
| D&R Rules | Write YAML manually | Use limacharlie ai generate-detection + limacharlie dr validate |
| 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) |
This skill uses specialized sub-agents to reduce context usage and enable parallel processing:
Main Skill (Orchestrator)
├── Phase 0: Download report to /tmp/ (keeps content out of main context)
├── Phase 1: Spawn threat-report-parser → Get structured IOCs/behaviors
├── Phase 2: Platform check (lightweight API call)
├── Phase 3: Spawn ioc-hunter agents (parallel, one per org)
├── Phase 4: Spawn behavior-hunter agents (parallel, one per org)
├── Phase 5: User checkpoint - present findings
├── Phase 6: Spawn detection-builder agents (parallel, by layer)
├── Phase 7: User approval - confirm rules to deploy
├── Phase 8: Deploy approved rules
└── Phase 9: Generate final report from aggregated summaries
Before starting, obtain:
IMPORTANT: Before spawning the parser agent, download the report to a local file. This keeps the report content out of the main context and allows sub-agents to process it independently.
# Download HTML/web reports
curl -sL "https://example.com/threat-report.html" -o /tmp/threat_report.html
# Download PDF reports
curl -sL "https://example.com/report.pdf" -o /tmp/threat_report.pdf
# Google Cloud Storage
curl -sL "https://storage.googleapis.com/bucket/report.pdf" -o /tmp/threat_report.pdf
# S3 (public)
curl -sL "https://bucket.s3.amazonaws.com/report.pdf" -o /tmp/threat_report.pdf
Important Notes:
/tmp/ for downloaded files-sL flags to follow redirects silentlyRead tool which handles PDFs nativelySpawn the threat-report-parser agent to extract all IOCs and behaviors. Always pass the local file path from Phase 0 (not the original URL).
Task(
subagent_type="lc-essentials:threat-report-parser",
prompt="Parse threat report and extract all IOCs and behaviors:
Report Source: /tmp/threat_report.pdf
Report Type: pdf"
)
Agent returns structured JSON with:
Display to user: Summary of extracted IOCs and behaviors with counts.
Use a lightweight API call to verify platforms exist in target org(s).
limacharlie event types --oid <oid> --output yaml
Filter IOCs and behaviors to matching platforms only.
Spawn one ioc-hunter agent per organization. For multi-org scenarios, spawn all agents in a SINGLE message for parallel execution.
Task(
subagent_type="lc-essentials:ioc-hunter",
prompt="Search for IOCs in organization '{org_name}' (OID: {oid})
IOCs:
{iocs_json}
Time Window: 30 days"
)
Spawn multiple in parallel for multi-org:
# Single message with multiple Task calls = parallel execution
Task(subagent_type="lc-essentials:ioc-hunter", prompt="...org1...")
Task(subagent_type="lc-essentials:ioc-hunter", prompt="...org2...")
Task(subagent_type="lc-essentials:ioc-hunter", prompt="...org3...")
Agent returns:
Spawn one behavior-hunter agent per organization.
Task(
subagent_type="lc-essentials:behavior-hunter",
prompt="Search for behaviors in organization '{org_name}' (OID: {oid})
Behaviors:
{behaviors_json}
Platforms Available: {platforms}
Time Window: 7 days"
)
Agent returns:
Present aggregated findings to user:
## IOC Hunt Results
### Critical Findings (Immediate Investigation)
- [IOC type]: [value] - Found on [X] sensors
### High Priority Findings
- ...
### No Findings
- [X] IOCs searched, [Y] not found
## Behavior Hunt Results
### Suspicious Activity Detected
- [Behavior]: [X] events on [Y] sensors
- Sample: [hostname]: [command_line]
### No Activity Detected
- ...
## Affected Sensors Summary
| Hostname | IOC Hits | Behavior Hits | Action Required |
|----------|----------|---------------|-----------------|
Ask user: "Continue with detection creation? Which layers are needed?"
Based on findings and user input, spawn detection-builder agents for each detection layer.
Detection Layers:
Task(
subagent_type="lc-essentials:detection-builder",
prompt="Build detections for layer 'process' in organization '{org_name}' (OID: {oid})
Threat Name: {threat_name}
Detection Requirements:
{detection_requirements_json}"
)
Spawn layers in parallel:
Task(subagent_type="lc-essentials:detection-builder", prompt="...layer: process...")
Task(subagent_type="lc-essentials:detection-builder", prompt="...layer: network...")
Task(subagent_type="lc-essentials:detection-builder", prompt="...layer: file...")
Agent returns:
Present all generated rules for approval:
## Generated Detection Rules
### Process Detections (5 rules)
| Rule Name | MITRE | Priority | Status |
|-----------|-------|----------|--------|
| apt-x-process-encoded-powershell | T1059.001 | 8 | validated |
### Network Detections (3 rules)
| Rule Name | MITRE | Priority | Status |
|-----------|-------|----------|--------|
[Show full YAML for each rule if requested]
## Validation Failures
- apt-x-network-exfil: Schema error - bytes_sent not available
## Deploy Rules?
- [ ] Deploy all validated rules
- [ ] Select specific rules to deploy
- [ ] Skip deployment (rules returned for manual review)
For each approved rule, deploy using:
# Write rule to temp file
cat > /tmp/rule.yaml << 'EOF'
detect:
<detect_yaml>
respond:
<respond_yaml>
EOF
limacharlie dr set --key <rule_name> --input-file /tmp/rule.yaml --oid <oid>
Also create IOC lookup tables:
cat > /tmp/lookup.yaml << 'EOF'
<ioc_data>
EOF
limacharlie lookup set --key <threat>-<ioc-type> --input-file /tmp/lookup.yaml --oid <oid>
Generate final report from aggregated agent outputs:
# Threat Report Evaluation: [Report Name]
Date: [YYYY-MM-DD]
Organization: [OID(s)]
## Executive Summary
[2-3 sentences on findings from agent summaries]
## IOC Search Results
| IOC Type | Searched | Found | Critical | High |
|----------|----------|-------|----------|------|
| Hashes | 12 | 2 | 1 | 1 |
| Domains | 8 | 0 | 0 | 0 |
## Behavioral Query Results
| Behavior | MITRE | Events | Sensors | Status |
|----------|-------|--------|---------|--------|
| Encoded PS | T1059.001 | 45 | 3 | Review |
## Detections Created
### D&R Rules Deployed
| Rule Name | Layer | Priority |
|-----------|-------|----------|
### Lookups Created
| Lookup Name | IOC Count |
|-------------|-----------|
## Affected Sensors
| Sensor | Findings | Action |
|--------|----------|--------|
## Recommendations
1. [Action items based on findings]
For comprehensive coverage, ensure agents cover:
All rules follow: [threat-name]-[layer]-[indicator]
Examples:
apt-x-process-encoded-powershellapt-x-network-c2-domainapt-x-file-malicious-dllapt-x-persistence-runkeyPriority-based response actions:
High Priority (8-10):
Medium Priority (5-7):
Low Priority (1-4):
All responses include metadata:
For MSSP scenarios with multiple organizations:
limacharlie org list --output yaml# Parallel IOC hunting across 5 orgs
Task(subagent_type="lc-essentials:ioc-hunter", prompt="...org1...")
Task(subagent_type="lc-essentials:ioc-hunter", prompt="...org2...")
Task(subagent_type="lc-essentials:ioc-hunter", prompt="...org3...")
Task(subagent_type="lc-essentials:ioc-hunter", prompt="...org4...")
Task(subagent_type="lc-essentials:ioc-hunter", prompt="...org5...")
Download fails: Check URL accessibility, try with curl -v for verbose output
Parser fails on PDF: Ensure Phase 0 downloaded to /tmp/, then Read tool (handles PDFs natively)
Too many IOC results: Check for ubiquitous IOCs (>100 hits) - likely weak indicators
Behavior queries return excessive events: Ask agent to refine with more specific exclusions
Rule validation fails: Agent will retry; if still failing, review error in output
Platform missing: Agent automatically skips behaviors/detections for unavailable platforms
This skill uses sub-agents and file-based report handling to reduce main context usage by ~90%:
| Phase | Without Optimization | With Optimization | Savings |
|---|---|---|---|
| Report Download | ~200KB in context | ~0KB (file on disk) | 100% |
| PDF Parsing | ~200KB | ~10KB JSON | 95% |
| IOC Search | ~100KB | ~20KB summaries | 80% |
| Behavior Search | ~150KB | ~15KB summaries | 90% |
| Detection Rules | ~50KB | ~25KB validated | 50% |
Key optimizations:
/tmp/ - never enters main contextWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
16 skills in this plugin
/adapter-assistantComplete adapter lifecycle assistant for LimaCharlie. Supports External Adapters (cloud-managed), Cloud Sensors (SaaS/cloud integrations), and On-prem USP adapters. Dynamically researches adapter types from local docs and GitHub usp-adapters repo. Creates, validates, deploys, and troubleshoots adapter configurations. Handles parsing rules (Grok, regex), field mappings, credential setup, and multi-adapter configs. Use when setting up new data sources (Okta, S3, Azure Event Hub, syslog, webhook, etc.), troubleshooting ingestion issues, or managing adapter deployments./doc-updaterDeploy and manage a daily AI agent that automatically updates GitHub documentation for a LimaCharlie organization. The agent collects org config, diffs against previous state, analyzes changes with full case/session context, renders Jinja2 templates, and pushes annotated updates to a GitHub repo. Templates are read from the lc-ai repo or a user-provided custom repo — no payloads needed. Use for "deploy doc updater", "set up automatic documentation", "install doc-updater agent", "update docs agent"./fp-pattern-finderAutomatically detect false positive patterns in detections using deterministic analysis. Fetches historic detections for a time window, runs pattern detection script to identify noisy patterns (single-host concentration, identical command-lines, service accounts, same hash, temporal periodicity, etc.), generates narrow FP rules for each pattern, and presents for user approval before deployment. Use for bulk FP tuning, detection noise analysis, or automated alert fatigue reduction./graphic-outputGenerate interactive HTML dashboards and visualizations from LimaCharlie data using Jinja2 templates and D3.js charts. Creates professional, self-contained HTML reports with pie charts, bar charts, line graphs, gauges, sortable tables, and responsive layouts. Supports MSSP multi-tenant dashboards, single-org details, sensor health reports, detection analytics, and billing summaries. Integrates with reporting, sensor-health, and detection-engineering skills. Built with strict data accuracy guardrails - NEVER fabricates, estimates, or infers data. Use for "visual report", "dashboard", "HTML output", "interactive charts", "export HTML", "generate visualization", "graphical report".
/init-cases-to-slackSet up automated Slack notifications for LimaCharlie case events. Creates a Python playbook, D&R rules, API key, and secrets so that case creations, resolutions, severity upgrades, and closures post rich messages to a Slack channel. Usage - /init-cases-to-slack <org_name>/init-feedbackSet up interactive feedback channels for LimaCharlie ext-feedback. Subscribes to the extension, configures channels (Web, Slack, Telegram, Microsoft Teams, Email), creates required Tailored Outputs and secrets, and optionally creates a sample D&R rule that requests human approval before containment. Usage - /init-feedback <org_name>npx claudepluginhub refractionpoint/lc-ai --plugin lc-advanced-skillsOther plugins' skills for the same job