Skip to main content

TruePattern

Beta

This feature is currently rolling out and may not be enabled for your organization.

TruePattern is a detection-intelligence feed. It collects public detection rules from many projects, keeps them maintained, and records what changed in each revision and why. Connect your TruePattern subscription and Huntbase imports its rules into your organisation as watchers, then keeps them up to date. Sigma rules run in Huntbase itself. Splunk SPL, KQL, osquery, YARA and Sublime MQL rules run as written on the product that speaks their language. See Which rules run where.

With a TruePattern connection you can:

  • add maintained detection rules to your watchers without copying them by hand;
  • take new revisions automatically when they pass their tests, or review each one first;
  • see, on every alert, which rule fired, which version, where it came from and under which licence. See Why this fired.

The rules are your organisation's own watchers. No other organisation sees them, and Huntbase doesn't ship them to anyone.

Before you start​

You need:

  • your own TruePattern subscription;
  • the credentials TruePattern gave you: a username and password, or an API key;
  • to be an organisation admin in Huntbase.

Huntbase only ever connects to TruePattern's own service. You can't point the connection at another address.

Connect TruePattern​

  1. Go to Connections, click Add connection and pick TruePattern.
  2. On Details, name the connection.
  3. On Connect, enter your TruePattern credentials.
  4. Read the Licence terms and tick I accept these terms on behalf of <your organisation>. You can't continue or save the connection until you do. Huntbase records who accepted and when.
  5. Under When a rule changes upstream, choose Update automatically when tests pass or Review each update. See How updates work. You can change this later.
  6. On Verify, review what you entered and create the connection. Your credentials, username included, show as dots. Huntbase then checks the connection. When the check passes, See rule imports opens the connection's page.

The check makes one small request to TruePattern. If TruePattern rejects your credentials, the check says Credentials rejected by TruePattern, here and when you use Test connection on the connection's page later. Check them in your TruePattern account and try again.

Once the connection is saved, the first import walks the whole feed. Later imports only fetch what changed since the last one that succeeded.

Settings​

SettingWhat it does
CredentialsYour TruePattern username and password, or your API key. They are stored as a connection secret and never shown again.
Licence termsRequired: I accept these terms on behalf of <your organisation>. Huntbase records who accepted and when.
When a rule changes upstreamUpdate automatically when tests pass (the default) or Review each update. See How updates work.
Windows security rules onlyOptional, off by default, under the advanced settings. Imports only the rules for the Windows Security event log.
Import only rules with a licenceOptional, off by default, under the advanced settings. Some upstream projects don't publish a licence for their rules. Turn this on to skip them. Skipped rules are listed under Not imported, not as failures. See Licensing.

You can change these settings later on the connection's Setup tab. A change applies from the next import.

What gets imported​

TruePattern carries rules in many languages. Huntbase imports every rule in a language it can run, checks that the rule is valid, and makes it a watcher in your organisation.

  • Sigma rules are compiled the same way as SigmaHQ rules. Each rule that compiles becomes a watcher.
  • Splunk SPL, KQL, osquery, YARA and Sublime MQL rules are checked by a parser for their language. Each rule that passes becomes a watcher with its rule text exactly as TruePattern publishes it. Huntbase doesn't convert these rules to Sigma.
  • Rules in other languages, such as ATR, Fibratus or Anvilogic, aren't supported yet. They aren't imported and they aren't failures. The Rule imports panel lists them under Not supported, by language, so you can see what's there.
  • Rules that use fields Huntbase can't map to your data are skipped and listed with the reason. Huntbase never removes a condition to make a rule fit. A weakened rule would fire on the wrong things.
  • Rules that combine several rules, such as correlation rules, aren't supported yet. They are listed too.

When TruePattern holds several revisions of a rule, Huntbase takes the newest.

Which rules run where​

A rule in a language other than Sigma runs on the product that speaks it. If your organisation doesn't have that connection yet, the rule still imports, and it runs as soon as you add the connection.

Rule languageWhat runs itWhat you need
SigmaHuntbase, on the events your connections stream inNothing more. The watcher needs data for its log source.
Splunk SPLA scheduled search on your SplunkA Splunk connection
KQLA scheduled query on Microsoft Sentinel, Defender or Log AnalyticsA Microsoft Sentinel, Microsoft Defender for Endpoint or Azure Log Analytics connection
osqueryA scheduled query on your endpointsEndpoint Control with the agent installed
YARAYour organisation's YARA ruleset, used by compromise assessment hunts and endpoint scansEndpoint Control with the agent installed
Sublime MQLYour Sublime Security platform, which Huntbase keeps the rules in step withA Sublime Security connection

Each result from a scheduled query becomes a finding, with the same Why this fired record as a Sigma watcher's. Huntbase limits each query to its time window and a row cap. A rule's text can't change which connection it runs on.

Rules in other languages on the watcher​

Open a watcher imported in a language other than Sigma, then Looks for:

  • The rule shows the language and the rule text, read-only. These rules can't be edited in Huntbase, because Huntbase runs them as written.
  • Runs on says what runs the rule and whether your organisation can run it now: Ready, Needs a connection (with the connection to add) or Not supported.

In the watchers list, a badge says where each rule came from and, if it isn't Sigma, its language, such as TruePattern · SPL. A rule you have from both SigmaHQ and TruePattern shows as two watchers, SigmaHQ and TruePattern.

New watchers arrive turned off, the same as SigmaHQ rules. Nothing runs until you switch a watcher on. Start it in Shadow, watch its activity, and move it to On when you trust it. See Off, Shadow, On.

Every imported watcher keeps the rule's TruePattern name, a link to the rule's source, its licence, its ATT&CK techniques and the change note for the revision you run.

How updates work​

Huntbase checks TruePattern once a day. To check straight away, use Sync now in the Rule imports panel on the connection's page. The panel shows Queued until the import starts.

An import is all or nothing. Huntbase reads the whole update first and only then changes your watchers. If the import fails part way, none of your watchers change.

When a rule you have has a newer revision, Huntbase compiles it and runs the rule's tests, if it has any. What happens next depends on the update mode:

Tests passDoesn't compile, or a test fails
Update automatically when tests passThe new revision becomes the watcher's next version. Its version note names the TruePattern revision and the change.The watcher keeps running the version you have. The new revision waits for review.
Review each updateThe new revision waits for review.The new revision waits for review, with the error.

Your edits are never overwritten​

If your organisation has changed an imported rule, an update never replaces your change, whatever the update mode. The new revision waits for review instead, and the watcher says your organisation has edited it.

Review an update​

A watcher with an update waiting says TruePattern has a newer version of this rule in its Source section (open the watcher, then Looks for), with the new revision's change note under What changed and the reason it's waiting. Anyone who can manage watchers in your organisation can:

  • click Adopt update: the new rule is saved as the watcher's next version, through the same checks as any edit;
  • click Dismiss: the watcher keeps its current rule. The update comes back if TruePattern changes the rule again.

See Why this fired › The watcher's Source section.

Revoked and removed rules​

  • When TruePattern explicitly marks a rule as revoked, Huntbase turns the watcher off and marks it as revoked.
  • When a rule is deleted upstream, TruePattern doesn't send a revocation, so Huntbase doesn't turn the watcher off. When the rule is missing from a full sync, the watcher's Source section says No longer published upstream so you can review it. The watcher keeps running until you turn it off.

Import status and failures​

A TruePattern connection brings in rules, not data, so there is nothing to query on it. Its page has no Query this connection and no query budget. Imported watchers opens your watchers instead, and the status line says when the connection was last checked.

The Rule imports panel on the TruePattern connection's Overview shows the latest import:

ReadingWhat it means
StatusQueued, Running, Succeeded, Partly imported or Failed. A failed import shows its error and says that no watcher was changed.
Last runWhen it ran.
AddedNew rules imported as watchers.
UpdatedWatchers that took a new revision automatically.
Pending reviewNew revisions held for an admin to adopt or dismiss.
UnchangedRules that had no new revision.
FailedRules that couldn't be imported, such as rules that don't compile or don't pass their language's check. Rules in a language Huntbase doesn't support aren't counted here.
RevokedWatchers turned off because TruePattern revoked their rule.

Below the counts, the panel says how many of TruePattern's rules work in Huntbase and splits them by language:

SectionWhat it lists
WorkingRules your organisation can run now, by language.
Needs a connectionRules that imported but wait for a connection, for example 2,269 Splunk SPL rules: add a Splunk connection to run them. Add connection starts that connection's setup. These rules count as working: they run once the connection is added.
Not supportedRules in a language Huntbase can't run yet, by language. They aren't imported and aren't failures.
Not importedRules skipped on purpose, with the reason, such as No licence published upstream when Import only rules with a licence is on. They aren't failures.

Why N rules failed to import opens the failures list. It groups the rules that really failed by reason, with a count and example rules for each, for example Uses a field we don't map yet: EventID or Didn't pass the Splunk SPL check. Rows that say the same thing are shown once, with their counts added up. Use it to see which rules you don't have yet, and why.

Licensing​

TruePattern collects rules that other projects publish. Each rule keeps the licence of the project it came from, such as the Detection Rule License (DRL) 1.1 for SigmaHQ rules. Those licences still apply when you run the rule in Huntbase.

A few rules have no licence, because their upstream project doesn't publish one. To leave them out, turn on Import only rules with a licence in the connection's settings.

Huntbase keeps the attribution with each rule: its source link and licence show on the watcher and on every alert it raises. When Scout writes a customer report from an alert, it names the detection source and its licence too.

Your TruePattern subscription is between your organisation and TruePattern.

Next steps​