SIEM and threat intelligence

Forward security events to Splunk, Elastic, syslog or HTTPS, read TAXII 2.1 threat feeds to monitor or block, and share Stater's own feed.

See it in the tour: Security events and threat feeds

On this page

Admin › Security brings three things together:

  1. SIEM forwarding (Business and Enterprise): Stater sends its security events to Splunk, Elastic, a syslog server or any HTTPS endpoint.
  2. Threat feeds (Enterprise): Stater reads TAXII 2.1 collections of known-bad addresses and domains, records when someone matches one, and can refuse them.
  3. Sharing (Enterprise): Stater publishes the addresses that keep failing to sign in as its own TAXII 2.1 collection, stater-security.

Owners set everything up. Owners and finance can read the overview, indicators, sightings and the event log. Recording security events and the event log work on every plan.

Security events#

Every security event has an id, a time, a category, an action, an outcome (success, failure or unknown) and a severity from 0 to 10 (the CEF scale). It also records the person or API token, the user name, the address, the browser or client, the request reference and a short summary.

Category What Example actions
auth Sign-ins and PINs auth.sign_in, auth.sign_in_failed, auth.locked_out, pin.failed, auth.password_changed
access Refused requests access.denied, auth.token_rejected
admin Admin changes settings.org, staff.update, token.create, webhook.update, siem.create, security.settings
export Data exports and imports data.export, customer.export, product.import
licence Licence licence.install
backup Backups backup.*, restore.*
threat Threat intelligence threat.blocked, threat.seen, threat.allow
business Everyday activity (busy) sale.complete, stock.adjust; only recorded while a destination asks for it

Changes come from the audit log through a database trigger, so an event exists exactly when its change was committed. Request-level events (a wrong password, a lock-out, a refused request, a refused API token, an export, a threat match) are recorded by the server as the answer goes out, through a small buffer: if thousands arrive at once, the excess is dropped and counted in stater_security_events_dropped_total rather than slowing anyone down. Lock-outs, refusals and threat matches are recorded once per window (one to five minutes) however often they repeat: a refused API token once per address, a refused request once per person and method, a threat match once per address, indicator and place. The request path is recorded but never tells repeats apart, so varying it cannot flood the log.

Events are kept for 90 days by default (Admin › Security › Overview, "Keeping data", on every plan), and never removed before every destination has them.

Admin changes record the address, browser or client and request reference of the request that made them. Changes made with the stater command line have none.

Names typed at failed sign-ins#

People sometimes type their password into the user name box. A SIEM therefore receives the name typed at a failed sign-in as sha256: and the first 16 hex digits of a salted SHA-256 of it: the same name always gives the same value, so attempts still group, but the text is not sent. Turn on "Send names typed at failed sign-ins as typed" on a destination to send them plainly. Names of real accounts on successful events are always sent as they are.

What a SIEM never receives#

Only these data keys are forwarded: ip, method, role, access, scopes, store_id, kind, reason, perm, path, report, rows, format, tier, licence_id, expires_at, attempts, limit, indicator, feed, mode, status, job, file, secrets_changed, tokens_revoked. Pay, cost, customer details, addresses and passwords are never sent.

SIEM destinations#

Admin › Security › SIEM › Add destination. Each destination chooses the categories it wants and the least severe event to send.

Kind How Format
Syslog RFC 5424 over TCP (RFC 6587 octet counting) or TLS (RFC 5425), port 6514 for TLS and 601 for TCP by default CEF or JSON
Splunk HTTP Event Collector: POST <address>/services/collector/event, Authorization: Splunk <token> HEC events carrying the JSON below
Elastic POST <address>/_bulk with create actions, API key or user name and password Elastic Common Schema 8.11
HTTPS POST <address> with a JSON array, optional bearer token or user name and password JSON

There is no UDP syslog: it loses events silently. TLS certificates are always checked; for a server with a private certificate authority, paste its certificate in "CA certificate". Tokens and passwords are saved encrypted (see Secrets) and never shown again. Changing a destination's address or user name needs the token or password typed again. Writing or removing a token, turning on "On my own network", turning on plain user names and changing the CA certificate all need the web app: API tokens are refused.

Delivery#

Every replica runs the forwarder. New events are fanned out to a queue per destination, claimed with FOR UPDATE SKIP LOCKED, and sent in batches of up to 200 (1 MiB). Delivery is at least once: use the event id (externalId in CEF, event.id in ECS) to remove duplicates. A failed batch is retried after 30 seconds, doubling to at most an hour; an event still not delivered three days after it was queued is dropped and counted on the destination. Elastic documents carry a fixed _id (stater-<id>-<time>), so a retry of one Elastic already took is not a second copy. Refusals that can never succeed (a malformed event, Splunk codes 6 and 12, an Elastic 4xx for one document) are dropped at once. "Send a test event" sends siem.test straight away.

/metrics (Monitoring) adds stater_siem_pending, stater_siem_retrying, stater_security_events_dropped_total, stater_threat_indicators_active and stater_threat_blocks_total.

JSON#

{"id": 1042, "time": "2026-03-04T05:06:07.89Z", "category": "auth", "action": "auth.sign_in_failed",
 "outcome": "failure", "severity": 5, "summary": "Failed sign-in",
 "actor": {"username": "sha256:3fa1c0d2e4b5a697"}, "source": {"ip": "203.0.113.9", "user_agent": "Mozilla/5.0"},
 "store": {}, "request_id": "a1b2c3d4e5f6", "data": {"method": "password"}, "product": "stater", "version": "0.1.0"}

CEF#

CEF:0|KazLabs|Stater|<version>|<action>|<summary>|<severity>|rt=<ms> externalId=<id> cat=<category> act=<action> outcome=<outcome> suser=<user name> suid=<user id> src=<ip> requestClientApplication=<user agent> cs1Label=store cs1=<store code> cs2Label=requestId cs2=<reference> msg=<summary>

Syslog priority#

PRI is facility × 8 + severity. Facility defaults to 10 (authpriv). Severity 0-2 is info (6), 3-4 notice (5), 5-6 warning (4), 7-8 error (3) and 9-10 critical (2).

Recipes#

  • rsyslog: module(load="imtcp" StreamDriver.Name="gtls" StreamDriver.Mode="1" StreamDriver.Authmode="anon") and input(type="imtcp" port="6514") with your certificate; choose TLS and CEF or JSON in Stater.
  • Splunk: Settings › Data inputs › HTTP Event Collector › New token, source type stater:security. In Stater, use https://<splunk>:8088 and the token.
  • Elastic: create an API key with create_doc on logs-stater.security-default (the default data stream), and paste the encoded key.

Threat feeds (TAXII 2.1)#

Admin › Security › Threat feeds › Add a feed. Enter the server's discovery address (or an API root), sign in with nothing, a user name and password, or a token, and pick a collection. The user name and token are only ever sent to the address they were entered for: API roots a discovery document lists on another server are read without them, and roots Stater may not reach are listed but not read. Click a feed (or Edit in its menu) to rename it, change how often it is read, or enter a new token when its provider rotates it. Stater checks the collection can be read before saving it, then reads new objects every 15 minutes to 24 hours using added_after, following next while the server says there is more (at most 50 pages, 10 MiB per answer, 50,000 objects per check and 100,000 indicators per feed).

Only the simplest STIX patterns are used, a single equality:

  • [ipv4-addr:value = '203.0.113.9'], [ipv4-addr:value = '203.0.113.0/24'] and the same for ipv6-addr;
  • [domain-name:value = 'evil.example'], which also matches every name under it;
  • [url:value = 'https://evil.example/path'], matched as a prefix.

Anything else (AND, OR, other operators, file hashes, e-mail) is skipped. A later version replaces an earlier one, and a revoked version stops the indicator. Indicators end at their valid_until, or, when they have none, after 90 days without an update (adjustable under "Keeping data" on the Overview tab).

Some indicators are kept but never enforced: private, loopback and other internal addresses (a bad feed must never lock out the shop's own network), IPv4 networks wider than /16 and IPv6 wider than /32, a whole public suffix such as co.uk or github.io (it would block every name under it), and URLs whose host is an internal address. The Indicators tab shows them as "Not enforced" with the reason.

Modes#

Mode Sign-in and API requests Outbound connections Webhooks
Off not checked not checked not checked
Monitor (default) recorded recorded recorded
Block refused with 403 and recorded refused and recorded recorded only

Requests are checked by the caller's real address: the peer, or, behind a trusted proxy (STATER_TRUSTED_PROXIES; see Linux packages and Kubernetes), the nearest forwarded address that is not a proxy. A forged X-Forwarded-For from anyone else is ignored. A refused person sees "Requests from your network are blocked by a threat-intelligence rule" and a reference, never the indicator. /api/v1/system/info, the API reference and the web app's pages are never blocked, so the message can be read.

Outbound connections are every connector that goes through Stater's outbound guard: SIEM, TAXII, email, directory sign-in, AI, off-site backups. The host name and the address it resolves to are both checked. Webhooks are always monitor-only: a feed can never stop your own integrations.

Each match is a sighting and a threat.blocked or threat.seen event. Click an indicator in Admin › Security › Indicators to see its sightings: the day, where it matched (sign-in, API, TAXII, outbound or webhook), what was seen, whether it was blocked and how often.

The allow list and break glass#

Entries on the allow list (an address, a network or a domain) win over every indicator. Add your office's address before turning blocking on. If a bad feed locks everyone out:

  • run stater security mode monitor on a server (it takes effect on every replica within 30 seconds), or stater security allow 203.0.113.0/24;
  • or set STATER_THREAT_ENFORCE=false and restart: block then acts as monitor on that server.

stater security status shows the mode, the feeds, the destinations and the allow list.

Sharing: Stater's TAXII server#

Admin › Security › Sharing › "Publish the stater-security collection". Every five minutes Stater looks at the failed sign-ins and wrong manager PINs of the last 15 minutes (adjustable). An address with 10 failed sign-ins or 5 wrong PINs (adjustable) is published as an ipv4-addr or ipv6-addr, an observed-data, an indicator ([ipv4-addr:value = '…'], anomalous-activity, valid for 7 days after the last failure) and a sighting by your organisation's identity. A new version is written when the count changes. Objects carry the chosen TLP marking (AMBER by default) and never contain user names, browsers or store names. Private addresses and allow-listed ones are not shared unless you ask. Addresses with nothing new for 37 days are removed.

Readers need a TAXII token: Admin › Security › Sharing › Create a TAXII token. It reads the collection only (it is refused on /api/v1), and API tokens are refused on /taxii2/. TAXII tokens also appear in Admin › Integrations among the API tokens, named "TAXII: …" with the finance role and read access; that role only lets them read the feed. Revoke one from either place. Send it as Authorization: Bearer stk_…, or as the password with Basic authentication for clients that only do Basic.

Address What
GET /taxii2/ Discovery
GET /taxii2/stater/ The API root
GET /taxii2/stater/collections/ The one collection (none while sharing is off)
GET /taxii2/stater/collections/{id}/ The collection: its id, or the alias stater-security
GET …/objects/ A STIX envelope: added_after, limit (100, at most 1000), next, match[id], match[type], match[version] (last, first, all or timestamps), match[spec_version]
GET …/objects/{object_id}/ One object
GET …/objects/{object_id}/versions/ Its versions
GET …/manifest/ Manifest records

Answers are application/taxii+json;version=2.1, with X-TAXII-Date-Added-First and -Last. Anything but GET is 405: the collection is read-only.

  • OpenCTI: Data › Ingestion › TAXII feeds › Create: the discovery address, collection stater-security, "Bearer token" authentication.
  • MISP: use the TAXII 2.1 client of your choice (such as misp-taxii-client) with the API root …/taxii2/stater/ and the token as the Basic password.

Settings and licence#

Settings are under GET/PUT /api/v1/settings/security. Turning on blocking or sharing needs Enterprise; SIEM destinations need Business. Adding, moving or resuming a destination or feed needs the plan; pausing, renaming and removing never do. When a licence no longer includes them, SIEM forwarding, TAXII polling and sharing stop, and blocking stops with them; existing destinations and feeds stay listed so they can be removed. Recording events and the event log carry on.

Variable Default What
STATER_THREAT_ENFORCE true false makes block act as monitor on this server
STATER_PRIVATE_CONNECTORS true lets "On my own network" reach private addresses (see Secrets)
STATER_TRUSTED_PROXIES loopback the proxies whose X-Forwarded-For is believed