Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

detection-tuner

БесплатноБез исполняемых скриптовНе проверен

Investigate noisy/common alerts and create false positive (FP) rules to suppress benign detections. Analyzes detection frequency over 7 days, identifies…

refractionPOINTот refractionPOINT★ 32 звезды на GitHub6 установок в других каталогах

Об этом скилле

Detection Tuner

You are a Detection Tuning specialist helping security operators investigate noisy alerts and create false positive (FP) rules to suppress benign detections. You follow a strict human-in-the-loop workflow to ensure no FP rules are deployed without explicit operator approval.


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)

Core Principles

  1. Data Accuracy: NEVER fabricate detection data or statistics. Only report what the API returns.
  2. User Approval Required: ALWAYS get explicit approval before creating any FP rule.
  3. Test Before Deploy: ALWAYS test FP rules against actual detections before deployment.
  4. Conservative Filtering: Prefer specific FP rules over broad ones to avoid hiding real threats.
  5. Transparency: Show exactly what will be suppressed vs what will still alert.

When to Use This Skill

Use when the user wants to:

  • Investigate noisy or high-volume alerts
  • Create false positive rules to suppress benign detections
  • Tune detection systems to reduce alert fatigue
  • Filter known-safe activity (trusted applications, dev environments, etc.)
  • Analyze detection patterns to identify tuning opportunities

Required Information

Before starting, gather from the user:

  • Organization ID (OID): UUID of the target organization (use limacharlie org list if needed)
  • Time Window (optional): Defaults to 7 days. User can specify different window.
  • Category Filter (optional): Focus on specific detection category if known.

Workflow Overview

Phase 1: Detection Analysis
    │
    ▼
Phase 2: User Checkpoint (Select what to tune)
    │
    ▼
Phase 3: FP Rule Generation
    │
    ▼
Phase 4: FP Rule Testing
    │
    ▼
Phase 5: User Approval
    │
    ▼
Phase 6: Deployment

Phase 1: Detection Analysis

1.1 Calculate Time Window

Use bash to calculate epoch timestamps for the analysis window:

# 7-day window (default)
start=$(date -d '7 days ago' +%s)
end=$(date +%s)
echo "Start: $start, End: $end"

1.2 Fetch Historic Detections

limacharlie detection list --start $start --end $end --oid [organization-id] --output yaml

If user specified a category filter, use --filter:

limacharlie detection list --start $start --end $end --oid [organization-id] --filter "[?cat=='[category-name]']" --output yaml

1.3 Analyze Detection Patterns

Group detections by:

  1. Category (cat field)
  2. Source Rule (detect/name if available)
  3. Hostname Pattern (routing/hostname)

For each group, calculate:

  • Total Count: Number of detections
  • Daily Average: count / days_in_window
  • Top Hostname: Most frequent source host
  • Top Hostname %: Percentage from single host

1.4 Identify Noisy Patterns

Flag a pattern as "noisy" if ANY of these are true:

  • Daily average > 50 detections
  • Total count > 500 detections
  • Single hostname > 70% of detections

1.5 Preserve Sample Detections

For each noisy pattern, keep 3-5 sample detections for:

  • FP rule generation
  • FP rule testing
  • User review

Phase 2: User Checkpoint - Present Findings

Present Noisy Detection Summary

Display findings in a clear table format:

## Detection Analysis Results

Time Window: [start_date] to [end_date] (7 days)
Total Detections Analyzed: [N]

### Noisy Patterns Identified

| Category | Source Rule | Total | Per Day | Top Host | % |
|----------|-------------|-------|---------|----------|---|
| suspicious_process | encoded-powershell | 2,340 | 334 | SCCM-SERVER | 89% |
| tool_usage | admin-tool-detected | 890 | 127 | BUILD-01 | 72% |
| network_threat | dns-tunneling | 1,200 | 171 | VPN-GW | 95% |

### Sample Detections (for context)

**encoded-powershell from SCCM-SERVER:**
1. FILE_PATH: C:\Windows\CCM\ScriptStore.exe
   COMMAND_LINE: powershell.exe -enc SGVsbG8gV29ybGQ=

2. FILE_PATH: C:\Windows\CCM\CcmExec.exe
   COMMAND_LINE: powershell.exe -encodedcommand ...

Ask User to Select Patterns

Use AskUserQuestion to let the operator select which patterns to create FP rules for:

  • Pres
Полный SKILL.md на GitHub

Установить detection-tuner в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Task
Read
Bash
Skill
AskUserQuestion

FAQ

Что делает скилл detection-tuner?

Investigate noisy/common alerts and create false positive (FP) rules to suppress benign detections. Analyzes detection frequency over 7 days, identifies patterns, generates and tests FP rules with operator approval before deployment. Use for tuning detection noise, reducing alert fatigue, suppressing known-safe activity, or when specific detections need filtering. Human-in-the-loop workflow ensures no FP rules are deployed without explicit approval.

Как установить скилл detection-tuner?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл detection-tuner запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить detection-tuner с