Matching and sightings¶
DRACO matches your active indicators against log events continuously and records every match as a sighting. Sightings of confident indicators raise alerts. Open Threats > Threat intel (the Sightings tab).
Continuous matching¶
Every 5 minutes DRACO matches the events stored since the last run (with event times within 7 days) against the active indicators:
- IP addresses exactly and inside active CIDRs;
- a host, and a URL's host, as the domain and every parent domain (
evil.commatchesa.b.evil.com); - URLs, e-mail addresses (in
actor_userwhen it looks like one), user agents and file hashes (by length).
By default the fields read are src_ip, dst_ip, url, actor_user, user_agent, host and the hash fields; the matching settings can name others. A match of an indicator that is no longer active (revoked, expired, allowlisted) is dropped.
Sightings¶
A sighting records the indicator, the event, its time and source, the matched field and value, the context (source and destination IP, host, user, URL) and how it was found (matcher or retro-hunt). Each event matches an indicator once. Each new sighting moves the indicator's last seen and adds to its count.
The Sightings page has counts (24 hours, 7 days, matched indicators, alerts), filters (type, field, severity, alert, how it was found, time) and a drawer with the event's fields and raw line. Host and user chips open the assets; Open in Search shows the event.
Alerts¶
Sightings of indicators whose (effective) confidence is at least the minimum confidence to alert (50 by default) raise alerts of the system rule Threat intel indicator matched: one alert per indicator and matched value per day, grouped into incidents by matched value within 24 hours. A CIDR indicator opens one incident for its range, not one per address: every address it matches joins that incident within the grouping window, as an entity (source or destination IP). Notifications, playbooks, risk and assets work as for any detection rule; the rule's notify, grouping, dedup window and playbook can be edited. The alert takes the indicator's severity unless the settings choose one.
Retro-hunts¶
Creating, importing or reactivating indicators (by hand or by a feed) queues a hunt over the last 30 days of events (the retro-hunt days setting, 1 to 365). Hunt now in the indicator drawer and the bulk Hunt run one on demand. The Hunts tab lists them with their window, events scanned, matches, sightings and alerts.
The iocmatch stage¶
The same matching is available in DQL:
source=nginx* | iocmatch src_ip, url min_confidence=50
| table ts, src_ip, url, ioc_value, ioc_type, ioc_confidence, ioc_severity
| iocmatch [field, ...] [types=ip,domain,...] [min_confidence=N] [OUTPUT ...] keeps the events whose fields match an active indicator and adds the best one as ioc_id, ioc_type, ioc_value, ioc_field, ioc_matched, ioc_confidence, ioc_severity and ioc_tags. Match in Search on the Sightings page opens it.
Settings¶
The Matching settings tab turns matching on or off (off: no matching and no automatic hunts), and sets the minimum confidence to alert, the alert severity, the matched fields and the retro-hunt days.