TTPs Alert Analysis (Gemini AI)
    100%
    Automation
    0(0 reviews)
    0 downloads

    TTPs Alert Analysis (Gemini AI)

    NM

    Curated by n8n Markets team

    Last updated: June 21, 2026

    What It Does - Automates first-level SOC alert triage by connecting Elasticsearch Kibana detection alerts directly to Google Gemini AI and Microsoft Teams - Receives process-level security alerts via webhook, extracts parent process metadata, and submits it to Gemini for behavioral analysis - Gemini classifies each alert as benign or malicious with a concise TTPs explanation - Delivers the verdict and analysis directly to your SOC's Microsoft Teams channel with a one-click Kibana deep-link How It Works - Kibana detection rule triggers — alert JSON is POSTed to the n8n webhook - Workflow extracts code_signature status and command_line from the parent process - Gemini AI analyzes the process context: binary legitimacy, execution chain, command-line intent - Result is formatted and pushed to Microsoft Teams in seconds MITRE ATT&CK Coverage Sample Scenario (Included as Pinned Data) - Elastic rule fires: "Unusual Process For MSSQL Service Accounts" on host SQL-PROD-01 - SqlLogShip.exe — Microsoft-signed, trusted — spawned by SQLAGENT.EXE under NT SERVICE\SQLSERVERAGENT - Gemini correctly identifies the activity as routine log shipping - Verdict: BENIGN — no analyst time wasted on a false positive Marketplace Readiness - Seven discovery tags applied: security, threat-intel, gemini, elasticsearch, microsoft-teams, ttp-analysis, soc-automation - All node typeVersions upgraded to latest stable - Every node annotated with purpose and setup instructions - Comprehensive sticky note with workflow diagram and setup guide - Sample pinned data on trigger and output nodes for instant Test Workflow preview - Fully in English with all proprietary data sanitized and placeholders clearly marked

    What's Included

    • Workflow Package — 7 Nodes, Ready to Import
    • ELK Alert Webhook — accepts Kibana alert JSON via HTTP POST, pinned with realistic sample data
    • Extract Alert Data — parses parent process code signature and command line from alert payload
    • Basic LLM Chain — prompts Gemini with process context for behavioral analysis
    • Google Gemini Chat Model — AI analysis engine, marked with credential setup warning
    • Format Teams Message — structures the analysis output into a clean Teams notification, pinned with sample Gemini verdict
    • Send to Teams — delivers the formatted analysis to Microsoft Teams via Incoming Webhook, URL placeholder clearly marked
    • Sticky Note Overview — embedded canvas documentation covering workflow purpose, step-by-step setup, use cases, and MITRE ATT&CK mapping
    • Documentation & Annotations
    • In-canvas sticky note with visual workflow overview and buyer setup guide
    • Individual node notes on every node explaining function, expected data shape, and configuration steps
    • Two nodes flagged with setup warnings where buyer action is required
    • Sample Data (Pinned)
    • Webhook trigger: complete sanitized Kibana alert JSON showing exact expected payload structure
    • Teams message output: full 810-character Gemini analysis demonstrating output quality and format
    • Customization Points
    • Gemini prompt: adjust analysis depth, add custom detection rules, incorporate org-specific threat intel
    • Teams message format: restructure fields, add branding, change notification tone
    • Webhook path: rename from default gemini to any endpoint
    • Extensible: add pre-filtering, deduplication, or additional notification channels
    • Technical Specs
    • Compatible with n8n 2.26 and newer
    • All node typeVersions current and verified
    • Seven marketplace discovery tags
    • No hardcoded credentials — all sensitive values replaced with YOUR_* placeholders
    • All text, prompts, and documentation in English

    Requirements

    n8n Platform - Self-hosted or cloud n8n instance running version 2.26 or later - AI features and LangChain nodes enabled External Services & Credentials Google Gemini API - API key with Generative Language API enabled - Obtain from Google AI Studio at aistudio.google.com - Attach to the Google Gemini Chat Model node after import Microsoft Teams - Incoming Webhook URL for your target SOC channel - Create via Teams Channel → Connectors → Incoming Webhook → Configure - Replace the placeholder URL in the Send to Teams node Elasticsearch / Kibana - Elastic Security detection rules configured and active - Alert action set to HTTP POST targeting the n8n webhook production URL - Alert payload must include parent process code signature, command line, host name, and Kibana deep-link URL — a full sample is pinned to the webhook node for reference Network Connectivity - Outbound HTTPS from n8n to generativelanguage.googleapis.com - Outbound HTTPS from n8n to *.webhook.office.com - Inbound HTTP/HTTPS from Elasticsearch to the n8n webhook endpoint, typically via reverse proxy if n8n is not publicly exposed

    How to Use

    Step 1 — Import the Workflow - Download the workflow JSON file from your purchase - In n8n, go to Workflows → Import from File - The workflow appears in your dashboard, inactive by default - Open it and review the sticky note on the canvas for a visual overview Step 2 — Configure Google Gemini - Go to Google AI Studio and create an API key - In n8n, navigate to Credentials → Add Credential → Google Gemini API - Paste your key and save - In the workflow, click the Google Gemini Chat Model node — it is marked with a setup warning — and select your new credential Step 3 — Configure Microsoft Teams - In Microsoft Teams, open your target SOC channel - Click the three dots → Connectors → Incoming Webhook → Configure - Name it appropriately and click Create - Copy the generated webhook URL - In the workflow, click the Send to Teams node — also marked with a setup warning — and replace the placeholder URL with yours Step 4 — Configure Elasticsearch Kibana - In Kibana, navigate to Security → Rules → Detection Rules (SIEM) - Select the rules you want to automate - Edit rule actions and add a Webhook action - Set method to POST and URL to the production URL shown in the ELK Alert Webhook node - Save and enable the rule Step 5 — Test Before Going Live - Click Test Workflow on the ELK Alert Webhook node to run the sample pinned alert - The workflow executes end-to-end and populates the Format Teams Message node with a sample Gemini analysis - Click Test Workflow on the Format Teams Message node to review the analysis quality - Confirm the Teams message format meets your expectations Step 6 — Activate and Monitor - Toggle the workflow to Active - Your SOC team now receives AI-powered alert analysis in Teams automatically - Each notification includes the alert name, affected host, Gemini verdict, and a direct Kibana deep-link Troubleshooting Quick Reference - Gemini returns no response: verify your API key has billing enabled in Google AI Studio - Teams messages not appearing: confirm the webhook URL is correct and the connector was successfully created - Webhook returns 404: ensure the workflow is active and the Kibana rule webhook path matches the workflow node path - Gemini analysis seems off: review the prompt in the Basic LLM Chain node and adjust the instructions to better match your environment

    Apps in this n8n workflow

    How to import this template into n8n

    1. Download the workflow JSON file from this page.
    2. In n8n, open Workflows, create a new workflow and choose Import from File.
    3. Open each node that shows a warning and connect your own credentials.
    4. Run the workflow once manually to check the output before you activate it.
    Included in Pro
    • Importable n8n workflow JSON file
    • Download with Builder Pro or Agency Unlimited
    • Built for n8n v2.2x+
    • Setup time: 5 minutes

    Included in Builder Pro — $19/mo, 4,177 premium workflows

    Before you activate

    Templates are reviewed before they are listed. Test with your own credentials and data before running it in production.

    Updated Jun 2026
    v1.0.0
    SSL
    Secure
    GDPR

    100% Secure Checkout

    Refund requests within 7 days of a new subscription

    Reviews

    0

    No reviews yet

    See all 0 reviews ↓
    —

    0 reviews

    5★
    0
    4★
    0
    3★
    0
    2★
    0
    1★
    0

    No reviews yet.

    Questions & Answers

    0

    Log in to ask a question.

    No questions yet. Be the first to ask!

    People Also Bought