Assignment rules decide which group receives each vulnerable item. Rules are tested in execution order, the first match sets the group, and a default rule catches whatever remains. This guide covers building the rules, choosing an Assign using option, applying changes to open items, and deciding when a script or machine learning is worth the effort.
How rules decide where an item goes
Each vulnerable item is tested against the rules in execution order, lowest number first. The first rule whose conditions match sets the assignment group, and the lookup stops there. Rules run when an item is imported, created by hand or reopened. After that the item is tested again when someone reapplies the rules. Reapplying overwrites the existing group with the first matching rule, so a rule added later can move an item that already has a group.
If no rule matches, the item falls through to the default assignment group, provided a default rule exists. The default rule carries the highest execution order value, so it runs last. Without one, the item stays unassigned when the remediation task rule builds its task.
Rules leave manual work alone. They do not reevaluate manual assignments, and reapplication skips them unless an administrator enables the manual reassignment property.
Starting point and where rules live
The base system ships with one rule, Assign to CI support group, which sends an item to the support group on its linked configuration item. You can edit it with filter conditions or add rules around it.
Rules are built at All > Vulnerability Response > Administration > Assignment Rules. The role needed is sn_vul.vulnerability_admin; the older sn_vul.admin role is deprecated.
Form fields that matter
| Field | What to enter |
|---|---|
| Name | A name that says which items the rule catches |
| Active | Switches the rule on or off without deleting it |
| Execution order | The position the rule takes in the evaluation sequence |
| Condition | The filter an item must meet, with a preview of how many items match |
| Assign using | User group, user group field or script |
Use New Criteria to add condition fields. Check the preview count before you submit. A count far higher than expected usually means the wrong field was chosen.
Choosing an Assign using option
| Option | Choose it when | Effort |
|---|---|---|
| User group | One existing group owns this slice of items | Low: pick the group from the lookup |
| User group field | The owner is already recorded on the configuration item | Low: pick a group field from the CI table |
| Script | The owner depends on logic a filter cannot express | High: needs scripting experience |
The user group field option depends on the group recorded on the configuration item. Where the group field on the configuration item is blank, the rule has no group to assign, so test that case on a sample item before relying on this option.
Ordering rules so the right group wins
Put rules for items that need special handling at the top: critical risk, and items regulatory compliance must handle. Next come general rules for items whose owning team you already know. Finish with a default rule that sends the remainder to a triage group, which can add its own rules over time.
Order matters because the lookup stops at the first match. A broad rule placed above a specific one will catch the items the specific rule was meant for.
Two details trip people up. Filters on Rapid7 InsightVM asset tags appear after the Rapid7 InsightVM Asset List integration has run, and that integration must run before the other Rapid7 InsightVM integrations. Do not rely on case-sensitive matching in the condition builder, so test any condition that depends on capitalization.
Applying changes to items that are already open
Editing a rule does not reach open items by itself. The Apply Changes button on the Assignment Rules form reruns the rules against open items. Manually assigned items are skipped, and reapplying does not regroup items.
If the scheduled job Reapply all vulnerability assignment rules has not run yet, the first Apply Changes runs all rules against all open items except manual ones, which can be heavy. The job ships inactive and can run Daily, Weekly, Monthly, Periodically, Once or On Demand. Choose its Run value with the active item count in mind.
A rule change can move items into a different group, so test a change on a small set first. For a handful of items, the Vulnerability Manager Workspace can re-evaluate remediation task rules for the items you select.
Regrouping remediation tasks after a group changes
Assignment groups feed remediation task rules, so a changed group can leave items in the wrong task. Regrouping corrects that, but it is off by default. Set the sn_sec_rem.rerun_task_rules system property to true. Then activate the Link to Remediation Tasks business rule.
With both in place, items whose conditions no longer match are unlinked from their tasks, then moved to the relevant group or placed in a new one if none fits. Check a sample item afterwards to confirm its remediation task landed where you expected. Manual changes do not trigger regrouping, only rule-driven updates do.
A scripted rule for service-based assignment
When ownership follows the business service rather than one field, use the service support rule. Set Assign using to Script and paste the published script, which starts from the configuration item on the vulnerable item.
The script finds the business services affected by that configuration item. Two properties cap the search: sn_sec_cmn.services_affected_by_CI_max_size, default 1000, and sn_sec_cmn.services_affected_by_CI_max_depth, default 10. It queries those services, sorts on business criticality in ascending order, takes one, and uses that service’s support group. With no matching service, or a blank support group, the item goes to the Vulnerability Analyst group.
Three checks come before go-live. Confirm the sort direction matches how your criticality scores are set, because the script takes the first record after an ascending sort. Switch the field if ownership lives in managed_by_group, assignment_group or change_control, which the script’s comments name as alternatives. And note that the rule description mentions departments, but the published script checks services and their support groups and not departments, so test an item with no service link before relying on the fallback.
Machine learning as a catch-all
This rule has heavier prerequisites. Install and activate the Vulnerability Assignment Recommendations for Vulnerability Response application from the ServiceNow Store, and have a classification solution that is defined, active and trained. The model predicts a group for items the other rules could not place.
The script asks the recommendations utility for predictions, takes the top entry and returns its sys_id. Each prediction carries a name and a confidence score. The script assumes at least one prediction comes back. The published script takes the first entry from the predictions list and reads its sys_id with no check for an empty list, so test it on a sample of items first. It suits people with advanced coding experience or in-depth knowledge of Predictive Intelligence, and it needs sn_vul.vulnerability_admin.
Requesting assignment group recommendations for a vulnerable item
Rules are not the only way to fill in a group. When a matching assignment group is not available for an item, or the group on it is wrong, a remediation owner can ask the system to suggest one from the item record itself. The suggestions come from the Vulnerability Assignment Recommendations feature, and each one carries a confidence score that shows how well the group fits the item. The request needs the sn_vul.remediation_owner role.
For a single item, the steps run in this order:
- Open the vulnerable item from All > Vulnerability Response > Vulnerable Items.
- Check that the item is in the Open, Deferred, Under investigation or Awaiting implementation state.
- Click the recommend icon beside the Assignment group field.
- In the Assignment Group Recommendations dialog box, select a suggestion and click Assign.
The chosen group appears in the Assignment group field, and the Assignment type changes to Recommendation. Check that field on a sample item before you work through the rest of a batch.
Bulk edit covers several items at once, with a few differences. Select the items in the Vulnerable Item list and click Bulk Edit. Every selected item must be in the Open, Under investigation or Awaiting implementation state. Deferred is not on that list, so handle deferred items one at a time from their own records. On the Bulk Vulnerable Items form, the recommend icon beside Assignment group works as it does for a single item. The work notes field adds a note to the selected items when you click OK.
Predictions for a bulk selection run on a random sample of the items you chose, so the suggested groups and their scores can differ slightly from one request to the next. The assignment_recommendation_batchsize system property sets the batch size for bulk requests on remediation tasks and vulnerable items. Its default is tuned for prediction performance. Raising it can change how long each response takes, so test a larger value on a small selection first.
Two checks keep this clean. Read the confidence score as a guide rather than a verdict, and look at the group’s members before you accept a suggestion for a high-risk item. If the suggested group is not the right owner over the long run, add a rule for it, because reapplying the rules overwrites a group that came from a recommendation.
Where classification and ungrouped items fit
Classification groups sort table records by ordered conditions, and the ungrouped list shows items with no group. The base system includes groups such as Discovered Items Classification and Vulnerability Entry Classification, and a table can have only one active classification group. The triage grouping rules page on this site overlaps this ground, so read it next if items keep landing in the ungrouped list.
Frequently asked questions
What happens to an item that no rule matches?
It goes to the default assignment group if one exists. Without a default rule, it stays unassigned when the remediation task rule creates its task.
Does changing a rule move items that already have a group?
Only when the rules are reapplied. Apply Changes reruns the rules against open items and skips manual assignments, but regrouping needs the rerun property and the Link to Remediation Tasks business rule.
Will a later rule overwrite a manual assignment?
Not by default. Rules do not reevaluate manual assignments, and reapplication skips them unless the manual reassignment property is enabled.
Do I need to write code?
No, for the user group and user group field options. The script option needs scripting experience, and the machine learning rule also needs the recommendation application and a trained solution.
How can I see which rule assigned an item?
Open a sample item and compare its assignment group with the rule conditions. Manually assigned findings are marked as such and are excluded from rule evaluation.
For the wider setup, start from the Vulnerability Response hub. If the rule set needs outside design help, see the implementation page.