Threat Intelligence Module
Overview
This module is designed to automatically detect threats in IT infrastructure by correlating events from multiple sources with an Indicators of Compromise (IoC) database.
The module is built on the OpenSearch stack and uses Logstash to collect and process data, correlation rules to detect threats, and OpenSearch Dashboards to visualize incidents and analytics.
Key components:
- IoC database: centralized storage for indicators received from external providers (ThreatFox, CTT, and others)
- Data sources: logs from network devices (Cisco ASA), endpoints (KSC), and other security systems
- Correlation engine: jobs that match event data against the IoC database in real time
- Incident system: dedicated index for storing enriched information about detections
Architecture and Workflow
The module workflow consists of four main stages:
- IoC collection: collection scripts retrieve data from provider IoC databases; Logstash processes the data and loads it into dedicated indexes according to the data models
- Correlation: real-time correlation rules perform lookups in IoC indexes for each relevant interaction event
- Incident creation: when a match is found, a new incident is created in Incident Manager. It contains complete details from both the source event and the matched IoC, enabling analysis with all relevant context
- Expiration: a script checks IoC expiration times and moves expired indicators from the active database to the recycle bin
Data Models
The module uses strictly typed and standardized data models to ensure efficient search and analysis. Event and IoC fields are organized into logical groups, such as threat.indicator.*, file.*, and network.*.
To ensure compatibility and consistency, data is aligned with ECS (Elastic Common Schema). Additional fields that start with a capital letter are also used. These fields are not part of ECS but are required to enrich information for specific IoC types.
Follow the data models described in the Domain, Hash, IP, and URL articles. These models are also listed in the supported IoC types section.
- Indicator of Compromise (IoC): describes an individual threat. Each IoC type is stored in a separate index and has a data model adapted to that type
- Incident: records a match between an interaction event and an IoC. The incident data model combines fields from both entities
Supported IoC Types
The module currently supports correlation for four primary indicator types.
| IoC type | Key event field used for matching | Example fields in the IoC database |
|---|---|---|
| Domain | destination.address | threat.indicator.domain, threat.indicator.tld, threat.indicator.resolved.registrant |
| Hash | file.hash.md5, file.hash.sha1, file.hash.sha256 | threat.indicator.file.name, threat.indicator.file.sha256, Threat.indicator.malware.name |
| IP | destination.ip | threat.indicator.geo.country_name, Threat.indicator.category, Threat.indicator.blackists |
| URL | url.original | threat.indicator.url.domain, Threat.indicator.category, Threat.indicator.malware.name |
Assign each source its own alias or aliases. Each IoC type data model provides details about the sources and required aliases.
Dashboards and Visualization
The module uses dashboards that provide the following information:
- Threat Intelligence: IoC Database Statistics
- total number of IoCs in the database
- IoC breakdown by type (IP, Domain, HASH, URL)
- IoC statistics by provider
- trend in new indicator ingestion
- Threat Intelligence: Incident Statistics
- list of recent incidents and their severity
- top 10 attacked hosts and users
- incident breakdown by triggered rules and IoC types
- Threat Intelligence: Deleted IoC Statistics
- total number of IoCs in the recycle bin
- IoC breakdown by provider, type, and severity