OBLYTECH Logo
OBLYTECH Logo

Use MITRE ATT&CK technique extraction rules

MITRE ATT&CK technique extraction rules tell Threat Intelligence Security Center to read the data attached to an observable or object and link any MITRE tactics and techniques it finds to that record. You build each rule under the Rules Engine, set its scope, choose an extraction method, and enable it.

Where the rules sit and what they need before they run

Threat Intelligence Security Center keeps the MITRE ATT&CK repository inside the instance, and the extraction rules compare incoming data against it. Open All > Threat Intelligence Security Center > Administration, then go to Rules Engine > MITRE ATT&CK Technique Extraction Rules. The procedure requires the sn_sec_tisc.admin role, so confirm your account holds that role before you start.

Check the repository data before anything else. If the MITRE ATT&CK data is missing from the instance, extraction does not occur. The rules page shows an alert before you enable a rule, asking you to confirm the dataset is present. Treat that alert as a stop point. If the dataset is not present, rule execution may not produce the expected results.

If you already work with MITRE ATT&CK in security operations, you can compare the techniques these rules attach with the ones you review there.

Choosing the data scope for each rule

The Integration Type field decides which records a rule reads. A rule with a narrow scope will not match records outside it, so choose the scope that matches where the observables actually come from. The same discipline matters in triage grouping rules in vulnerability response, where a rule that matches too widely groups records it should leave alone.

Data source scopes

The Data Sources – All option covers all data source types, including Threat Intel Feeds, Import Intelligence records, API Sources such as observables created through the API, observables sent from SIR, and entities created manually in the Threat Intelligence library. The narrower options are Data Sources – Threat Intel Feeds, Data Sources – API Sources, and RSS Feeds Only.

When you choose Threat Intel Feeds, pick a Threat Feed Type of STIX (TAXII), MISP, or Custom feed, then select the associated feeds from the lookup. Extraction rules for threat intelligence feeds are supported for those three types. For RSS Feeds Only, the Feeds field is optional. If you leave it blank, all threat feed integrations for the selected feed type are used.

Threat lookup scopes

The Threat Lookup integrations option applies a rule to the results of threat lookups such as VirusTotal. You enter the vendor name for that lookup. The vendor name fills in automatically for lookup integrations installed from the ServiceNow store. For other integrations, type the name yourself.

Picking an extraction method for the data

The method field decides how the rule finds IDs in the text it reads. The choice changes which tactic links end up on the record, so pick the method on purpose rather than by default.

  • Tactic and Technique Regex pulls tactic and technique IDs as pairs, which keeps the tactic the data explicitly assigns to each technique.
  • Technique Regex pulls technique IDs on their own. The system then links each technique to all of its possible tactics in the repository, so one technique can end up with several tactics.
  • Script runs your own code for extraction and linking, which gives you full control over the logic.

For the two regex methods, the form asks for patterns that match your data. Combined Tactic-Technique Regex matches a tactic ID together with its technique or sub-technique ID as a linked pair, and it applies when the method is Tactic and Technique Regex. Tactic Regex identifies tactic IDs inside those pairs and is used alongside the combined pattern. Technique Regex is the field for the Technique Regex method and matches technique or sub-technique IDs independently.

Test each pattern against a sample of the real payload before you enable the rule. A loose pattern can match strings that resemble ATT&CK IDs without being technique references, and those false matches then appear on the record as if they were real.

Use the script method when the IDs sit inside one field of a nested payload. The sample script parses the raw payload of a threat lookup result, reads one specific field, runs a regex extraction against that field, and then calls a helper that attaches the tactics and techniques to the observable record.

Creating and enabling a rule step by step

Fill in the Extraction Rule and Extraction Method sections on the New form, then enable the rule. The conflict check at enablement is where setups tend to stall.

  1. Go to Rules Engine > MITRE ATT&CK Technique Extraction Rules and select New.
  2. Enter a Name and a Description. Name the rule for its scope and method, so the Extraction Rule column makes sense when you troubleshoot later.
  3. Set the Integration Type, then the Threat Feed Type and Feeds, or the vendor name, that the scope requires.
  4. Choose the Method to extract MITRE ATT&CK tactics and techniques and complete the fields that method shows.
  5. Select Save, then select Enable.

Enabling runs a conflict check. For data sources, the combination of data source and integration type must not match an enabled rule that already exists. For threat lookups, the vendor name must not match one. If the check fails, an error message appears. Change the conflicting combination or vendor name, then enable the rule again.

The base system includes four sample rules, all disabled by default: Generic Rule for data sources ingestion, Generic rule for CrowdStrike Feed, Generic Rule for Threat Lookup, and Generic Rule for Observable Enrichment Integrations. Enable and activate each sample before use. A sample and a new rule with the same scope cannot both be enabled. Use Duplicate to copy a rule when you want a variant, and select Disable to stop a rule.

For help planning this work, see ServiceNow implementation.

How extraction runs and where the results show up

Timing depends on the scope. Data source rules run when an entity source record is created, meaning an observable source or an object source. They apply to any field in that record except date fields, number fields, and the Usage category and Attack phases fields. Threat lookup rules run when a threat lookup result record is created after someone selects Run threat lookup on an observable. They read only the raw_data field of that result.

The extracted techniques attach to the source record first. The system then removes duplicate associations and rolls the results up to the parent entity. To see them, open the observable or object in the Threat Intel Library, select the Related Records tab, and choose MITRE Techniques. Select a technique ID to open its association record. The Sources column lists each source that produced the link. When the same tactic and technique pair comes from several sources, you see one association with all of those sources listed.

Once the techniques are attached, the filtering approach in link analysis and threat hunting with MITRE ATT&CK filters is the next step for working with them.

Why a technique can show more tactics than expected

The data decides how wide the tactic list gets. When the data has no tactic ID for a technique, the system creates an association for all the tactics the repository links to that technique. When the data does include a tactic ID, the association is created only for the tactics that appear in the data and that the repository links to that technique. A rule that reads technique IDs alone therefore often produces a longer tactic list than an analyst expects.

Troubleshooting a rule that produces no results

Work through the checks in order. Confirm the repository data is present. Confirm the rule is enabled, because a saved rule that is not enabled is not applied. Confirm the scope matches the record, since a data source rule does not act on a threat lookup result. For a result you cannot explain, add the Extraction Rule column to the list through the List Actions icon, then open the Technique Source Relations view to see which rule produced each association. Field labels and sample rules can differ between releases, so check the form on your own instance before you copy a setting from this page.

Questions about rule scope and troubleshooting

Where should I start if I am unsure which scope fits?

Start with Data Sources – All for a first pass, then narrow the scope once you can see which records the rule touches. A broad scope is easier to check against a handful of records, and a narrow scope is easier to troubleshoot once you know what it should match.

Do I need a separate rule for each threat lookup vendor?

Not necessarily. The Generic Rule for Threat Lookup covers threat lookup integrations in general. A vendor-specific rule makes sense when one lookup needs its own pattern or script, and each enabled threat lookup rule needs its own vendor name.

Why does a threat lookup rule find nothing on a result I can see?

Threat lookup rules read only the raw_data field of the result record. If the ATT&CK IDs sit in a part of the payload that the raw data does not carry, the rule has nothing to read. Open the result, compare its raw data with your pattern, and confirm the lookup ran with Run threat lookup after the rule was enabled. Rules are applied when the result record is created, so a result that predates the rule will not be re-read.

Does the script method still need a regex pattern?

No. The script method replaces the regex fields, because your code performs the extraction. Keep the linking step in the script, since that step attaches the results to the record.