IntelOwl icon indicating copy to clipboard operation
IntelOwl copied to clipboard

[Feature Proposal] Applied AI: Local LLM-based Analyzer for Result Summarization, Threat Classification & Enrichment (Ollama / LocalAI integration)

Open R1sh0bh-1 opened this issue 10 months ago • 16 comments

Name

LocalLLMAnalyzer (or LLMSummarizer)

Link

  • Ollama: https://ollama.com (primary recommended backend – easy local setup, many models)
  • LocalAI: https://localai.io (alternative for more backends)
  • Optional: Hugging Face transformers pipelines for pure-Python local inference (no extra container)

Type of analyzer

Observable (primary – works on IPs, domains, URLs, hashes, etc.)
File (future extension – e.g. summarize deobfuscated strings, script analysis, or multi-analyzer file reports)
Docker (optional – if we bundle a lightweight Ollama container for easier deployment)

Why should we use it

IntelOwl already aggregates rich data from 100+ analyzers (VirusTotal, GreyNoise, Shodan, Abuse.ch, YARA, CAPA, Intezer, etc.), but analysts often spend significant time manually reading and correlating verbose/conflicting reports to understand the real threat context.

This analyzer would use a self-hosted / local Large Language Model (no data sent to external providers like OpenAI → full privacy for sensitive investigations) to:

  • Generate concise, natural-language summaries of multi-analyzer results
  • Classify threat type (phishing, ransomware, C2, credential-theft, etc.) and assign a normalized risk score
  • Extract additional entities / IOCs (e.g. targeted brands, wallet addresses, TTPs)
  • Provide actionable insights and suggested pivots / next steps
  • Reduce analyst triage time dramatically while preserving drill-down to raw data

Benefits:

  • Privacy-first (critical for SOC/CTI teams)
  • Enhances usability: turns raw intel into readable reports for tickets, alerts, executives
  • Differentiates IntelOwl as a next-gen TI platform with applied AI
  • Aligns perfectly with Honeynet/IntelOwl interest in applied AI
  • Extensible: custom prompts, model switching, fine-tuning support later
  • Complements existing analyzers without replacing them

This builds on patterns from analyzers like Intezer (behavioral insights) or recent additions (Phunter, etc.), but adds semantic understanding.

Possible implementation

High-level architecture

  • New Python class inheriting from ObservableAnalyzer (and later FileAnalyzer)
  • Connects to local LLM backend via API (Ollama default: http://localhost:11434)
  • Input: aggregated analyzer reports (from job results, easily accessible via self.report)
  • Prompt engineering: structured system prompt + few-shot examples to reduce hallucinations and enforce output format
  • Output: parsed into IntelOwl-standard fields
    • summary: main text paragraph
    • tags: auto-added (e.g. ai:malicious, ai:phishing, severity levels)
    • extra_data: JSON with risk_score (0-100), threat_categories, confidence, extracted_iocs, suggested_pivots
  • Runs async via Celery (like slow analyzers: VirusTotal, URLscan)
  • Secrets: store LLM endpoint / API key (if any) via existing secrets management

Phased / Minimal Viable Implementation

  1. Support Ollama only (simplest: REST API, no auth by default)
  2. Focus on observable analysis
  3. Fixed prompt template:

R1sh0bh-1 avatar Jan 25 '26 07:01 R1sh0bh-1

Hi @mlodic, what do you think about this local LLM analyzer idea? Ready to start prototyping the Ollama version if it looks interesting. Thanks!

R1sh0bh-1 avatar Jan 25 '26 07:01 R1sh0bh-1

have you read this AI slop or you just copy/pasted? 📦

It's clear that the AI has not full comprehension of the whole IntelOwl framework. Only analyzers are cited, which are the most popular and the base ground of the project but to create real orchestration you need to use the other plugins.

If you want to work on that, you have to understand the framework. Go through the documentation and try the project on your own, then re-structure this proposal differently.

mlodic avatar Jan 25 '26 08:01 mlodic

Hi @mlodic,

You were right the first version did read like generic AI output and didn’t show enough understanding of how playbooks, connectors and orchestration actually work in IntelOwl. Thanks for calling it out directly; it helped me step back and rethink properly.

Revised approach:

  • Make it a connector (LLMSummarizerConnector) instead of an analyzer
  • Runs after playbooks/analyzers on the full job.report['results']
  • Uses Ollama /api/generate → structured JSON output (summary, risk_score, tags e.g. ai:phishing, extracted_iocs)
  • Few-shot prompt tuned to IntelOwl’s existing tags & verdicts
  • Designed to plug into playbooks (e.g. summarize → pivot on new IOCs → export)

If this direction makes more sense now, I’d like to reopen the issue and open a small PoC PR (observables only, should be testable in 1–2 days). Any quick thoughts on connector vs analyzer placement, or playbook integration gotchas?

Thanks again happy to iterate.

R1sh0bh-1 avatar Jan 26 '26 06:01 R1sh0bh-1

@R1sh0bh-1 sure go for it, open a draft PR once you have something to discuss

mlodic avatar Jan 26 '26 13:01 mlodic

A connector should be fine, also please consider that a Visualizer is its perfect companion for this case.

mlodic avatar Jan 26 '26 13:01 mlodic

what do you think about a RAG over IntelOwl artifacts?

AnshSinghal avatar Jan 28 '26 16:01 AnshSinghal

One additional thought to keep the LLM connector grounded and extensible: instead of sending the full job report raw, we could add a small internal retrieval step (RAG-style) over IntelOwl-owned data only (relevant analyzer results, prior jobs, tag/verdict definitions).

This keeps the model aligned with IntelOwl semantics, reduces hallucinations, and fits naturally in a connector + visualizer flow.

Backend-wise, alongside Ollama, GPT-OSS could be considered as an optional local LLM backend. Architecturally it would just be another backend behind the same connector interface, preserving the same privacy and playbook integration guarantees.

Totally fine to keep the initial PoC minimal; just wanted to flag both as future-safe design directions.

AnshSinghal avatar Jan 28 '26 16:01 AnshSinghal

Thanks, this makes a lot of sense.

I agree that keeping the LLM grounded in IntelOwl’s own semantics is important, and a lightweight RAG step over IntelOwl artifacts (selected analyzer outputs, verdict/tag definitions) sounds like a good future direction to reduce noise and hallucinations.

For the initial PoC, I’ll keep things intentionally minimal (Ollama backend, connector only, structured JSON output) so we can validate the integration, playbook flow, and UX quickly. Once that’s stable, a scoped internal retrieval layer would fit naturally without changing the external interface.

I’ll keep this in mind while designing the connector abstraction so it stays extensible. Thanks for the suggestion!

R1sh0bh-1 avatar Jan 28 '26 16:01 R1sh0bh-1

It might also be useful to think about how the connector behaves when results are sparse,,,, clearly signaling “low confidence” summaries could be a feature, not a bug.

rootp1 avatar Jan 28 '26 23:01 rootp1

👍 Agreed explicitly surfacing low confidence is important. I’ll keep this in mind for the PoC.

R1sh0bh-1 avatar Jan 29 '26 05:01 R1sh0bh-1

Hi @mlodic, I have a small doubt regarding the PR I mentioned. Please review it whenever you get a chance.

R1sh0bh-1 avatar Feb 05 '26 04:02 R1sh0bh-1

Hi @mlodic and @R1sh0bh-1 , I’ve been following the RAG discussion. Since the basic Ollama connector is moving along in #3251, I’d like to propose a GSoC project to implement the Internal Retrieval Layer using a local vector store (like ChromaDB). This would ground the LLM in IntelOwl’s specific semantics and historical job data to eliminate hallucinations

MShantanu110 avatar Mar 02 '26 03:03 MShantanu110

This will be taken in charge during GSoC 2026.

mlodic avatar Mar 24 '26 19:03 mlodic

This issue has been marked as stale because it has had no activity for 30 days. If you are still working on this, please provide some updates.

github-actions[bot] avatar Apr 24 '26 10:04 github-actions[bot]

Hey, is this still undone even after GSoC? I'd like to work on it if so.

karthik20066002 avatar Aug 11 '26 02:08 karthik20066002

a first LLM based integration has been added during GSoC 2026

mlodic avatar Aug 11 '26 06:08 mlodic