Security Detections

v3.3.4
io.github.MHaggis/security-detections-mcp Checked 6 hours ago Published 27 days ago

Search security detections across Sigma, Splunk, Elastic, KQL, Sublime, CQL and Jamf with ATT&CK.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

get_by_id

Get a single detection by its ID

ParameterTypeDescription
id *stringDetection ID (UUID for Sigma, or Splunk detection ID)
source_typestringSource format; required when an ID appears in multiple sources

get_raw_yaml

Get the original YAML content for a detection

ParameterTypeDescription
id *stringDetection ID
source_typestringSource format; required when an ID appears in multiple sources

list_all

List all detections with pagination. Use for browsing the detection index.

ParameterTypeDescription
limitnumberMax results to return
offsetnumberOffset for pagination (for paging through results)

list_by_source

List detections filtered by source type

ParameterTypeDescription
source_type *stringSource type to filter by
limitnumberMax results to return (default 100)
offsetnumberOffset for pagination (default 0)

list_by_mitre

List detections that map to a specific MITRE ATT&CK technique

ParameterTypeDescription
technique_id *stringMITRE ATT&CK technique ID (e.g., T1059.001)
limitnumberMax results to return (default 100)
offsetnumberOffset for pagination (default 0)

list_by_logsource

List Sigma detections filtered by logsource (category, product, or service)

ParameterTypeDescription
categorystringLogsource category (e.g., process_creation, network_connection)
limitnumberMax results to return (default 100)
offsetnumberOffset for pagination (default 0)
productstringLogsource product (e.g., windows, linux, aws)
servicestringLogsource service (e.g., sysmon, security, powershell)

list_by_severity

List detections filtered by severity level

ParameterTypeDescription
level *stringSeverity level to filter by
limitnumberMax results to return (default 100)
offsetnumberOffset for pagination (default 0)

list_by_cve

List detections that cover a specific CVE vulnerability

ParameterTypeDescription
cve_id *stringCVE ID (e.g., CVE-2024-27198, CVE-2021-44228)
limitnumberMax results to return (default 100)
offsetnumberOffset for pagination (default 0)

list_by_analytic_story

List Splunk detections that belong to a specific analytic story (e.g., "Ransomware", "Data Destruction")

ParameterTypeDescription
story *stringAnalytic story name or partial match (e.g., "Ransomware", "Windows Persistence")
limitnumberMax results to return (default 100)
offsetnumberOffset for pagination (default 0)

list_by_process_name

List detections that reference a specific process name (e.g., "powershell.exe", "w3wp.exe", "cmd.exe")

ParameterTypeDescription
process_name *stringProcess name to search for (e.g., "powershell.exe", "cmd.exe", "nginx.exe")
limitnumberMax results to return (default 100)
offsetnumberOffset for pagination (default 0)

list_by_detection_type

List detections by type (TTP, Anomaly, Hunting, Correlation)

ParameterTypeDescription
detection_type *stringDetection type to filter by
limitnumberMax results to return (default 100)
offsetnumberOffset for pagination (default 0)

list_by_data_source

List detections that use a specific data source (e.g., "Sysmon", "Windows Security", "process_creation")

ParameterTypeDescription
data_source *stringData source to search for (e.g., "Sysmon", "Windows Security", "process_creation")
limitnumberMax results to return (default 100)
offsetnumberOffset for pagination (default 0)

list_by_mitre_tactic

List detections by MITRE ATT&CK tactic (e.g., "execution", "persistence", "credential-access")

ParameterTypeDescription
tactic *stringMITRE ATT&CK tactic to filter by
limitnumberMax results to return (default 100)
offsetnumberOffset for pagination (default 0)

list_by_kql_category

List KQL detections filtered by category (e.g., "Defender For Endpoint", "Azure Active Directory", "Threat Hunting")

ParameterTypeDescription
category *stringKQL category derived from folder path (e.g., "Defender For Endpoint", "DFIR", "Sentinel")
limitnumberMax results to return (default 100)
offsetnumberOffset for pagination (default 0)

list_by_kql_tag

List KQL detections filtered by tag (e.g., "ransomware", "hunting", "ti-feed")

ParameterTypeDescription
tag *stringTag to filter by (e.g., "ransomware", "dfir", "apt")
limitnumberMax results to return (default 100)
offsetnumberOffset for pagination (default 0)

list_by_kql_datasource

List KQL detections that use a specific Microsoft data source (e.g., "DeviceProcessEvents", "SigninLogs", "EmailEvents")

ParameterTypeDescription
data_source *stringMicrosoft KQL table name (e.g., "DeviceProcessEvents", "AADSignInEventsBeta", "CloudAppEvents")
limitnumberMax results to return (default 100)
offsetnumberOffset for pagination (default 0)

get_stats

Get statistics about the indexed detections and stories

get_technique_ids

Get ONLY unique MITRE technique IDs (lightweight - no full detection data). Use this for Navigator layer generation or coverage analysis.

ParameterTypeDescription
severitystringFilter by severity
source_typestringFilter by source type
tacticstringFilter by MITRE tactic

analyze_coverage

Get coverage analysis with stats by tactic, top covered techniques, and weak spots. Returns summary data, not raw detections. Use this instead of listing detections and processing manually.

ParameterTypeDescription
source_typestringFilter by source type (optional - analyzes all if not specified)

identify_gaps

Identify detection gaps based on a threat profile (ransomware, apt, initial-access, persistence, credential-access, defense-evasion). Returns prioritized gaps with recommendations.

ParameterTypeDescription
threat_profile *stringThreat profile to analyze gaps against
source_typestringFilter by source type (optional)

suggest_detections

Get detection suggestions for a specific technique. Returns existing detections, required data sources, and detection ideas.

ParameterTypeDescription
technique_id *stringMITRE technique ID (e.g., T1059.001, T1547.001)
source_typestringFilter by source type (optional)

generate_navigator_layer

Generate a MITRE ATT&CK Navigator layer JSON from detection coverage. Returns valid Navigator JSON ready for import at https://mitre-attack.github.io/attack-navigator/. Filter by source, tactic, or severity.

ParameterTypeDescription
name *stringLayer name (e.g., "Sigma Coverage Q1 2026")
descriptionstringOptional layer description
severitystringFilter by minimum severity (optional)
source_typestringFilter to specific source type (optional — includes all if omitted)
tacticstringFilter by MITRE tactic (optional)

analyze_procedure_coverage

Analyze procedure-level coverage for a MITRE technique. Goes beyond "we cover T1059.001" to show WHICH specific behaviors/procedures your detections actually catch (e.g., encoded commands, download cradles, AMSI bypass). Shows covered and uncovered procedures with detection names.

ParameterTypeDescription
technique_id *stringMITRE technique ID (e.g., T1059.001, T1003.001)
include_query_snippetsbooleanInclude relevant query snippets showing what each detection checks (default: false)
source_typestringFilter to specific source (optional — analyzes all if omitted)

compare_procedure_coverage

Compare procedure-level detection coverage across sources for a technique. Shows which source catches which specific behaviors — two orgs can both tag T1059.001 but detect completely different procedures. Returns a matrix of source × procedure.

ParameterTypeDescription
technique_id *stringMITRE technique ID to compare across sources
sourcesarraySources to compare (default: all available)

get_detection_list

Get a lightweight list of detection names and IDs matching a search query. Returns ONLY name, id, source, mitre_ids - no queries or raw yaml. Use this when you need a simple list.

ParameterTypeDescription
query *stringSearch query (e.g., "powershell", "credential", "T1059")
limitnumberMax results (default 100)
source_typestringOptional: filter by source type

compare_sources

Compare detection coverage between sources (Sigma vs Splunk vs Elastic vs KQL) for a topic. Returns a clean breakdown with counts and names per source.

ParameterTypeDescription
topic *stringTopic to compare (e.g., "powershell", "credential dumping", "ransomware")
limit_per_sourcenumberMax detections to show per source (default 50)

count_by_source

Get quick counts of detections by source for a topic. Returns just the numbers, no detection details.

ParameterTypeDescription
topic *stringTopic to count (e.g., "powershell", "lateral movement")

list_by_name_pattern

List detections whose NAME matches a pattern, grouped by source. Returns just name + ID pairs.

ParameterTypeDescription
pattern *stringPattern to match in detection names (e.g., "PowerShell", "WMI", "Registry")
source_typestringOptional: filter to specific source

smart_compare

Compare detections across sources, tactics, or techniques for a given topic. Returns breakdown by source, tactic, and severity.

ParameterTypeDescription
topic *stringTopic to compare (e.g., "powershell", "credential dumping", "T1059", "ransomware")

get_coverage_summary

Get a lightweight coverage summary (~200 bytes) with tactic percentages. Use this for quick overviews instead of full analyze_coverage.

ParameterTypeDescription
source_typestringFilter by source type (optional)

get_top_gaps

Get just the top 5 gaps (~300 bytes) for a threat profile. Use this for quick gap checks.

ParameterTypeDescription
threat_profile *stringThreat profile to check

get_technique_count

Get just the detection count for a technique (~50 bytes). Use this for quick coverage checks.

ParameterTypeDescription
technique_id *stringMITRE technique ID (e.g., T1059.001)

analyze_actor_coverage

Analyze detection coverage against a specific threat actor. Shows which of the actor's known MITRE ATT&CK techniques have detections, coverage percentage, and prioritized gaps. Requires STIX data (ATTACK_STIX_PATH env var).

ParameterTypeDescription
actor_name *stringThreat actor name or alias (e.g., APT29, Cozy Bear, Lazarus Group, FIN7, HAFNIUM)
include_navigator_layerbooleanInclude ATT&CK Navigator layer JSON in response (default: false)
source_typestringFilter detections to a specific source (optional)

list_actors

List all known MITRE ATT&CK threat actors with aliases and technique counts. Requires STIX data (ATTACK_STIX_PATH env var).

ParameterTypeDescription
limitnumberMaximum results to return (default: 50)
searchstringSearch by actor name or alias (optional)

compare_actor_coverage

Compare detection coverage across multiple threat actors. Shows shared technique gaps and unique risks per actor. Requires STIX data (ATTACK_STIX_PATH env var).

ParameterTypeDescription
actor_names *arrayList of threat actor names to compare (2-5 actors)
source_typestringFilter detections to a specific source (optional)

get_actor_profile

Get full threat actor dossier: description, aliases, known techniques, software employed, and detection coverage status. Requires STIX data (ATTACK_STIX_PATH env var).

ParameterTypeDescription
actor_name *stringThreat actor name or alias

search_stories

Search analytic stories by narrative, description, or name. Stories provide rich context about threat campaigns and detection strategies.

ParameterTypeDescription
query *stringSearch query for stories (e.g., "ransomware encryption", "credential theft", "persistence")
limitnumberMax results to return (default 20)

get_story

Get detailed information about a specific analytic story by name

ParameterTypeDescription
name *stringStory name (e.g., "Ransomware", "Windows Persistence Techniques")

list_stories

List all analytic stories with pagination

ParameterTypeDescription
limitnumberMax results to return (default 100)
offsetnumberOffset for pagination (default 0)

list_stories_by_category

List analytic stories by category (e.g., "Malware", "Adversary Tactics", "Abuse")

ParameterTypeDescription
category *stringStory category (e.g., "Malware", "Adversary Tactics", "Abuse", "Cloud Security")
limitnumberMax results to return (default 100)
offsetnumberOffset for pagination (default 0)

save_query

Save a query result for quick retrieval later. Useful for caching frequently needed data.

ParameterTypeDescription
data *objectThe data to save (any JSON object)
name *stringName for the saved query (e.g., "powershell_splunk_detections")
query_type *stringType of query (e.g., "detection_list", "comparison", "coverage")
ttl_minutesnumberTime-to-live in minutes (optional, default: no expiry)

get_saved_query

Retrieve a previously saved query result by name.

ParameterTypeDescription
name *stringName of the saved query

list_saved_queries

List all saved queries, optionally filtered by type.

ParameterTypeDescription
query_typestringOptional: filter by query type

rebuild_index

Force re-index all detections and stories from configured paths. WARNING: This is a destructive operation that deletes the current index.

ParameterTypeDescription
confirmbooleanSet to true to confirm you want to rebuild (required for safety)
skip_elicitationbooleanSkip the elicitation confirmation prompt (for programmatic use)

save_template

Save a reusable query template with {{placeholders}}. Templates can contain SQL queries or tool-chain definitions for future execution.

ParameterTypeDescription
name *stringUnique name for the template (e.g., "ransomware_gaps", "technique_coverage")
template *stringThe query template with {{param}} placeholders (e.g., "SELECT * FROM detections WHERE mitre_ids LIKE '%{{technique}}%'")
descriptionstringHuman-readable description of what this template does

run_template

Execute a saved query template with the provided parameters. Returns the query results.

ParameterTypeDescription
name *stringName of the saved template to execute
paramsobjectParameter values to substitute into the template (e.g., {"technique": "T1486", "source": "splunk_escu"})

list_templates

List all saved query templates with their names, descriptions, and usage statistics.

ParameterTypeDescription
limitnumberMaximum number of templates to return (default: 50)
sort_bystringField to sort by (default: use_count)

get_template

Get the full details of a saved query template including the template string and parameters.

ParameterTypeDescription
name *stringName of the template to retrieve

delete_template

Delete a saved query template by name.

ParameterTypeDescription
name *stringName of the template to delete

create_table

Create a new custom table to store analysis data. Use this to persist findings, research results, or any structured data you want to retrieve later. Pre-built tables available: gap_analyses, source_comparisons, threat_actor_profiles, detection_recommendations

ParameterTypeDescription
columns *arrayColumn definitions for the table schema
description *stringHuman-readable description of what this table stores
name *stringTable name (alphanumeric and underscores, must start with letter). Examples: my_analysis, cve_research, custom_mappings

insert_row

Insert a row of data into a dynamic table. Data is validated against the table schema.

ParameterTypeDescription
data *objectKey-value pairs matching the table schema. Use JSON for complex values (arrays, nested objects).
table_name *stringName of the table to insert into
row_idstringOptional: Custom row ID. If not provided, a UUID is generated.

query_table

Query data from a dynamic table with optional filtering, sorting, and pagination. Filter examples: - Exact match: {"status": "completed"} - LIKE match: {"name": "%ransomware%"} - Multiple conditions: {"status": "pending", "priority": "high"}

ParameterTypeDescription
table_name *stringName of the table to query
limitnumberMaximum rows to return (default: 100)
offsetnumberNumber of rows to skip (for pagination)
order_byarraySort order
selectarrayColumns to return (default: all)
whereobjectFilter conditions as key-value pairs. Use % for LIKE patterns.

list_tables

List all dynamic tables created by the LLM, including pre-built analysis tables and their statistics.

ParameterTypeDescription
include_prebuiltbooleanInclude pre-built analysis tables in the list (default: true)

drop_table

Remove a dynamic table and all its data. Use with caution - this is irreversible.

ParameterTypeDescription
confirm *booleanMust be true to confirm deletion
table_name *stringName of the table to drop

describe_table

Get detailed schema information and statistics for a dynamic table.

ParameterTypeDescription
table_name *stringName of the table to describe

create_entity

Create a knowledge entity representing a security concept. Use this to build the knowledge graph with threat actors, techniques, detections, campaigns, tools, vulnerabilities, and data sources. Entity types: - threat_actor: APT groups, criminal gangs (e.g., "APT29", "STORM-0501") - technique: MITRE ATT&CK techniques (e.g., "T1059.001 PowerShell") - detection: Security detection rules (e.g., "Suspicious PowerShell Execution") - campaign: Attack campaigns (e.g., "SolarWinds Compromise") - tool: Attack tools or malware (e.g., "Cobalt Strike", "Mimikatz") - vulnerability: CVEs (e.g., "CVE-2024-12…

ParameterTypeDescription
entity_type *stringType of entity: threat_actor, technique, detection, campaign, tool, vulnerability, data_source
name *stringUnique name for the entity (e.g., "APT29", "T1059.001", "Cobalt Strike")

create_relation

Create a relationship between two entities WITH reasoning explaining WHY they're connected. This is the core of tribal knowledge - capturing not just the connection but the insight behind it. Relation types: - uses: Threat actor uses technique/tool (e.g., APT29 uses Cobalt Strike) - targets: Threat actor targets sector/system - detects: Detection covers technique - covers: Detection provides coverage for technique - mitigates: Control mitigates technique - exploits: Campaign exploits vulnerability - attributed_to: Campaign attributed to threat actor - depends_on: Detection depends on data sou…

ParameterTypeDescription
from_entity *stringName of the source entity
reasoning *stringREQUIRED: WHY does this relationship exist? This captures tribal knowledge.
relation_type *stringType of relationship: uses, targets, detects, covers, mitigates, exploits, attributed_to, depends_on, related_to
to_entity *stringName of the target entity
confidencenumberConfidence in this relationship (0.0-1.0, default 1.0)

add_observation

Add a fact or observation about an entity. Observations capture point-in-time knowledge that can be queried later. Examples: - "APT29 has been active since at least 2008" - "This detection has high false positives in development environments" - "T1059.001 is commonly used for initial access in ransomware"

ParameterTypeDescription
entity_name *stringName of the entity this observation is about
observation *stringThe fact or observation to record
confidencenumberConfidence in this observation (0.0-1.0, default 1.0)
sourcestringSource of this observation (e.g., "CISA Advisory", "user input", "threat report")

delete_entity

Remove an entity from the knowledge graph. This also removes all relations and observations associated with the entity.

ParameterTypeDescription
name *stringName or ID of the entity to delete

delete_observation

Remove a specific observation by its ID. Use open_entity first to find observation IDs.

ParameterTypeDescription
observation_id *stringUUID of the observation to delete

search_knowledge

Search across all knowledge types: entities, relations, observations, decisions, and learnings. Uses full-text search to find relevant tribal knowledge. Search examples: - "PowerShell execution" - Find everything related to PowerShell - "credential theft" - Find credential-related knowledge - "APT29" - Find all knowledge about this threat actor

ParameterTypeDescription
query *stringSearch query (supports FTS5 syntax)
limitnumberMaximum results to return (default 30)

read_graph

Read the entire knowledge graph or a filtered subgraph. Returns entities, relations, and observations. Use this to: - Get an overview of all stored knowledge - Filter by entity type to focus on specific concepts - Understand the structure of captured tribal knowledge

ParameterTypeDescription
entity_typestringFilter to specific entity type (threat_actor, technique, detection, etc.)
limitnumberMaximum entities/relations to return (default 500)

open_entity

Get complete information about a specific entity including all its relations and observations. This is the detailed view of a single knowledge node.

ParameterTypeDescription
name *stringName or ID of the entity to open

log_decision

Record WHY a significant decision was made. This is the gold of tribal knowledge - capturing the reasoning process so future agents can understand past decisions. Decision types: - gap_identified: A detection gap was found - detection_recommended: A specific detection was recommended - coverage_mapped: Coverage was analyzed and mapped - priority_assigned: A priority decision was made - false_positive_tuning: FP tuning recommendation - threat_assessment: Threat level assessment - data_source_selected: Data source was chosen IMPORTANT: Be detailed in the reasoning - this helps future analysis.

ParameterTypeDescription
context *stringThe situation/context that led to this decision
decision *stringThe actual decision that was made
decision_type *stringType of decision being logged
reasoning *stringDETAILED explanation of WHY this decision was made - this is the tribal knowledge. Be specific!
entities_involvedarrayNames of entities involved in this decision
outcomestringOptional outcome or result of the decision
session_idstringOptional session ID to group related decisions

add_learning

Store a pattern or insight derived from analysis for future reference. Learnings are reusable knowledge that can help future sessions. Learning types: - detection_pattern: A pattern for writing effective detections - gap_pattern: A recurring type of detection gap - user_preference: User preferences for analysis style - false_positive_pattern: Common FP patterns to avoid - threat_pattern: Recurring threat behaviors - correlation_insight: Insights about technique correlations - data_quality_insight: Insights about data source quality Examples: - "STORM-0501 consistently uses native tools befor…

ParameterTypeDescription
insight *stringThe actual insight or pattern learned
learning_type *stringType of learning: detection_pattern, gap_pattern, user_preference, false_positive_pattern, threat_pattern, correlation_insight, data_quality_insight
title *stringShort title for this learning
applicationsstringHow this learning can be applied in practice
evidencestringEvidence supporting this learning (observations, decisions that led to it)

get_relevant_decisions

Get past decisions relevant to the current context. Uses full-text search to find tribal knowledge that applies to your current analysis. Use this to: - See how similar situations were handled before - Understand reasoning behind past recommendations - Maintain consistency with previous decisions

ParameterTypeDescription
context_query *stringDescription of current context to find relevant decisions (e.g., "ransomware detection gaps", "credential theft coverage")
decision_typestringOptional filter by decision type
limitnumberMaximum decisions to return (default 20)
session_idstringOptional filter by session

get_learnings

Get applicable learnings for the current task. Returns patterns and insights that may help with the current analysis. Use this to: - Apply proven patterns to new situations - Remember user preferences - Avoid known pitfalls

ParameterTypeDescription
task_query *stringDescription of current task to find relevant learnings (e.g., "writing PowerShell detection", "analyzing APT coverage")
learning_typestringOptional filter by learning type
limitnumberMaximum learnings to return (default 10)
mark_appliedbooleanIf true, increment the times_applied counter for returned learnings

auto_analyze_coverage

Automatically analyze detection coverage, identify gaps across threat profiles, and store findings for future reference. This tool: 1. Runs coverage analysis across all detections 2. Identifies gaps for specified threat profiles (ransomware, apt, etc.) 3. Stores results in the gap_analyses dynamic table 4. Logs decisions about significant findings in the knowledge graph Use this for comprehensive, stored analysis that persists across sessions.

ParameterTypeDescription
analysis_namestringOptional name for this analysis run (defaults to timestamp-based name)
session_idstringOptional session ID to group related analyses
store_resultsbooleanStore results in dynamic tables for persistence (default: true)
threat_profilesarrayThreat profiles to analyze. Options: ransomware, apt, initial-access, persistence, credential-access, defense-evasion. Default: ["ransomware", "apt"]

auto_gap_report

Generate a comprehensive gap report comparing detection coverage across sources (Sigma, Splunk ESCU, Elastic, KQL) and threat profiles. This tool: 1. Analyzes all threat profiles for gaps 2. Compares detection coverage across different sources 3. Creates prioritized recommendations based on severity and coverage 4. Stores the complete report in dynamic tables Use this for executive-level reporting on detection posture.

ParameterTypeDescription
compare_sourcesbooleanInclude source comparison analysis (default: true)
include_recommendationsbooleanGenerate prioritized recommendations (default: true)
priority_tacticsarrayTactics to prioritize in recommendations. Options: execution, persistence, credential-access, defense-evasion, lateral-movement, exfiltration, impact
report_namestringName for this report (defaults to timestamp-based name)
session_idstringOptional session ID to group related reports

auto_compare_sources

Autonomously compare detection coverage across different sources (Sigma, Splunk ESCU, Elastic, KQL) with detailed reasoning and analysis. This tool: 1. Compares detection counts and coverage across all available sources 2. Analyzes technique-level coverage differences between sources 3. Identifies which source has best coverage for specific tactics/techniques 4. Provides reasoned recommendations for source selection 5. Stores comparison results and logs decision reasoning Use this to understand the strengths/weaknesses of different detection sources and make informed decisions about which to…

ParameterTypeDescription
focus_tacticstringFocus comparison on a specific MITRE ATT&CK tactic
include_quality_analysisbooleanInclude analysis of detection quality indicators (default: true)
session_idstringOptional session ID to group related comparisons
techniques_to_comparearraySpecific MITRE technique IDs to compare (e.g., ["T1059.001", "T1003.001"]). If not provided, uses high-priority techniques.

llm_enhanced_analysis

Request LLM-enhanced analysis of security detection data using MCP sampling. This tool leverages MCP sampling to request the client's LLM to analyze security data with expert reasoning. Unlike the auto_* tools that perform direct analysis, this tool asks the LLM to provide contextual insights. Note: Requires client to support MCP sampling capability. If not supported, falls back to structured data output. Use cases: - Get expert reasoning about coverage gaps - Generate detection recommendations with context - Compare sources with nuanced analysis - Understand threat profile implications

ParameterTypeDescription
analysis_type *stringType of analysis to request
custom_contextstringAdditional context for the analysis
techniquesarraySpecific techniques to analyze (optional)
threat_profilestringThreat profile context (e.g., ransomware, apt)

check_sampling_status

Check if MCP sampling is available for LLM-enhanced analysis. Sampling allows the server to request LLM completions from the client, enabling richer autonomous analysis. Not all MCP clients support this feature. Use this tool to check capability before using llm_enhanced_analysis.

get_query_patterns

Get common query patterns for a MITRE technique based on existing detections. Returns SPL structure, common fields, macros used, and example queries. Use this before writing a detection to learn the conventions.

ParameterTypeDescription
technique_id *stringMITRE technique ID (e.g., T1059.001, T1003.001)
source_typestringFilter patterns by source type (optional)

get_field_reference

Get available fields for a Splunk data model with usage examples. Use this to understand what fields are available when writing a detection query.

ParameterTypeDescription
data_model *stringData model name (e.g., Endpoint.Processes, Endpoint.Filesystem, Network_Traffic.All_Traffic)

get_macro_reference

Get common Splunk macros and their usage patterns. Essential for writing detections that follow repository conventions.

ParameterTypeDescription
filterstringFilter macros by name (optional, e.g., "security_content")

find_similar_detections

Find existing detections similar to what you want to create. Use this to learn from existing detection logic and structure.

ParameterTypeDescription
description *stringDescribe the behavior you want to detect (e.g., "PowerShell downloading files", "process injection via CreateRemoteThread")
limitnumberMaximum results (default 5)
source_typestringFilter by source type (optional)
technique_idstringMITRE technique ID to narrow search (optional)

suggest_detection_template

Generate a detection template based on technique, learned patterns, and conventions. Returns YAML structure ready for customization.

ParameterTypeDescription
description *stringWhat behavior to detect (e.g., "PowerShell executing encoded commands")
technique_id *stringMITRE technique ID (e.g., T1059.001)
data_modelstringData model (e.g., Endpoint.Processes). If not specified, will use most common for technique.
detection_typestringDetection type (default: TTP)
platformstringTarget platform (default: Windows)

generate_rba_structure

Generate RBA (Risk-Based Alerting) structure for a detection based on learned patterns and best practices.

ParameterTypeDescription
description *stringWhat the detection identifies (for message generation)
detection_type *stringType of detection
severity *stringDetection severity
fields_availablearrayFields available in the detection (e.g., ["dest", "user", "process_name"])

extract_patterns

Extract and store patterns from all indexed detections. Run this to populate the pattern database for template generation.

ParameterTypeDescription
forcebooleanForce re-extraction even if patterns exist (default: false)

learn_from_feedback

Store user preference or correction to improve future suggestions. Call this when user modifies generated content to build tribal knowledge.

ParameterTypeDescription
corrected *stringWhat the user changed it to
feedback_type *stringType of feedback
original *stringWhat was originally suggested
contextstringAdditional context (technique, detection type, etc.)