Change many objects at once
Update, enrich, share, merge or delete many OpenCTI objects at once with a background task, then follow its progress in the task list.
A background task applies the same action to many objects, so you can relabel, enrich, share or delete hundreds of entities without opening them one by one. This page shows how to start a bulk action from any list, follow it in , and what each user can do with tasks.
Kinds of background task
| Kind | Started by | What it does |
|---|---|---|
| List task | Selecting objects one by one in a list | Applies the actions to the selected objects |
| Query task | Selecting all objects of a list | Applies the actions to every object that matches the list's filters and search, in batches of 500 |
| Rule task | Turning an inference rule on or off | Scans the whole knowledge base to create or remove inferred data. See Inference rules |
Notifications have their own bulk actions: marking many alerts as read, unread or deleted from your alerts list also runs as a background task.
Before you start
-
Your role needs the capability that matches what you change:
You act on Capability Knowledge (entities, observables, relationships) Create / Update knowledge; Delete knowledge to delete, restore or remove; Merge knowledge to merge Labels, vocabularies and other settings lists Manage labels Users Manage credentials, or administrator of their organization Your own notifications None; Manage credentials for other users' notifications Imported files and workbenches Import knowledge Dashboards, investigations, public dashboards Delete dashboards, Delete investigations, Manage public dashboards -
To see , your role needs Create / Update knowledge.
Run a bulk action
-
Open a list, for example , and filter it down to the objects you want to change.
-
Select the objects with the checkboxes. To select every object that matches the filters, including those on other pages, use the checkbox in the column header. A toolbar appears with the number of selected elements.
-
Click the action in the toolbar. Depending on the list, you can:
- Update fields: add, replace or remove labels, markings, an author, assignees, a score or another attribute;
- send the objects to an Enrichment connector, or to Indicators/observables generation;
- Rule rescan the objects so that inference rules run on them again;
- Add in container or Remove from the container;
- Share with organizations or Unshare with organizations (Enterprise Edition);
- Enroll in playbook;
- Merge the selected entities into one;
- delete the objects.
-
Fill the action's form. With Update, click the + button under the first step to chain several changes in one task.
-
Check the summary in Launch a background task: each step, its field and its values, and the number of selected elements. A warning appears above 1,000 elements.
-
Click Launch. A message confirms the task and links to the task list.
Example CERT published indicators of the Velvet Harbor campaign, and the CTI team wants them labelled for the hospitality sector and shared with the member hotel chain Grand Meridian Hotels.
- Open and add the filters Author = Example CERT and Indicator type = malicious-activity.
- Select every indicator with the checkbox in the column header.
- Click Update. In Update entities, set Action type to Add, Field to Labels and Values to
hotel-sector. Click + and add a second step: Add, Marking definitions,TLP:AMBER. Click Launch in Launch a background task. - With the same selection, click Share with organizations, choose
Grand Meridian Hotelsin Values, click Share, then Launch.
Two tasks appear in : one adds the label and the marking to every matching indicator, the other shares them, so the analysts of Grand Meridian Hotels see them in their own lists. Sharing needs an Enterprise Edition license.
A query task acts on what the filters match when it runs, not on what you saw. Check the filters before you launch a deletion with every element selected.
In a draft, bulk actions run inside the draft and appear in its Draft processes, not in the task list.
Follow a task
-
Open . The most recent tasks come first.
-
Read the task card: the Targeted entities and how they were chosen (the filters, the search or the List of entities), the Actions, the Initiator, the Task start time and the Scope. Once the task is done, Task end time gives when it finished; until then, Task last execution time gives when it last processed a batch. A rule task reads All rule targets and APPLY RULE: it covers the whole knowledge base.
-
Check the Status: Waiting, In provisioning while OpenCTI collects the objects, Processing, then Complete. The Progress bar counts the objects processed.
-
If the task reports errors, click the errors button: each line gives the Timestamp of a failure and its Message.
OpenCTI 7.260309.0-lts.8
To stop a task that has not finished, click Delete on its card. The objects already processed keep their changes.
Who sees and deletes tasks
- You see the tasks you started, the tasks of others whose scope you have the capability for, as listed in Before you start, and the tasks open to everyone, such as rule tasks and file imports. Users with the Bypass all capabilities capability see every task.
- You can delete every list or query task you see. Deleting a rule task takes Delete knowledge.
If shows a message instead of the list, the task manager is turned off on your platform: an administrator enables it with task_scheduler:enabled in the configuration.
The platform runs with Docker Compose, and the Tasks screen says the task manager is disabled. The administrator sets its environment variable on the opencti service and restarts it:
services:
opencti:
environment:
- TASK_SCHEDULER__ENABLED=true
After the restart, the waiting tasks start, and the list shows their progress again.
What's next
- Automate with playbooks: apply the same changes automatically to every new object.
- Delete and restore: get back objects deleted by mistake.
- Inference rules: the rule tasks behind the rules engine.