OBLYTECH Logo
OBLYTECH Logo

Create a configuration compliance remediation task from a test result

You can create a configuration compliance remediation task by hand from the Test Result list. Go to All > Configuration Compliance > Test Results, open a Test Result module, check the results you want, then choose Create Remediation Task from the Actions on selected rows… menu. The task opens with those results attached.

Confirm the role and access before you start

The manual method requires sn_vulc.admin. Check that your account holds it before you begin.

Remediation owners have a different path. The sn_vulc.remediation_owner role lets a user view and update the test results and remediation tasks assigned to that user or to the user’s assignment groups. Those users open My Open Test Results under All > Configuration Compliance > Test Results, or My Open Tasks under Configuration Compliance > Remediation Tasks. The creation steps in this guide require the admin role, so a remediation owner’s access alone does not cover them.

Select the test results and create the task from the list

Work through the list in this order.

  1. Navigate to All > Configuration Compliance > Test Results.
  2. In the navigation panel, select a Test Result module to open its list.
  3. Check the box next to each test result to include in the remediation task.
  4. Open the Actions on selected rows… menu at the bottom of the list.
  5. Choose Create Remediation Task.
  6. Review the task that opens. The selected test results appear on its Test Results related list, along with any change requests associated with them.

Use this manual method when results are hard to describe as a filter, or when you want to pick specific rows for remediation. If the group can be described by conditions, the Filter grouping method covered below is the better fit. If your results came from Microsoft Defender for Cloud, read the page on importing Microsoft Defender for Cloud results into Configuration Compliance before you select rows.

Read the remediation task form fields

The form mixes fields you enter with fields the system calculates. These are the ones you will check most often.

  • Number: the auto-assigned ID for the task.
  • Score: a rollup risk score calculated from the test results that are not Closed. It is weighted, with 85% coming from the highest risk score among those results and 15% from how many of them there are. Results in the Open, Under Investigation, Awaiting Implementation, Deferred, or Resolved states count as not Closed.
  • Rating: a 1 to 5 scale that rates overall risk, running from 1 Critical to 5 None, based on the risk score range.
  • State: starts at Open. The state changes are covered in a later section.
  • Assignment group and Assigned to: the remediation group for the task, and the person who will remediate it.
  • Short Description and Description: the task name and a text description of the work.
  • Configuration Test: select the configuration test for this remediation task.
  • Notes: work notes related to the task.

Choose a grouping method on the Group Configuration tab

The Group Configuration related tab sets how test results get into the task. Manual is the default. A manual task starts with no entries, and you add test results yourself. Filter creates the task and uses conditions to add matching test results automatically. The table for a filter is preselected as Test Result.

For a filter, choose the conditions in the Test result condition field. The records match condition link above the conditions opens the matching test result records in a new window. Click Preview to see how many results the filter returns before you save the task.

Two behaviors matter when you mix methods. Test results you added manually are not removed by remediation task rules or remediation task conditions. Also, a test result can belong to more than one remediation task, so one result can sit in a manual task and in a rule-driven task at the same time. Settle the membership of a group before you add rules that touch the same results.

For the wider picture of how grouping, rules and states fit together, see the overview of configuration compliance remediation.

Save the task and confirm its related lists

Right-click the form header and choose Save. You can also click Submit, which saves the task and returns you to the list of remediation tasks.

Open the Test results related list and compare it with your selection. Each result you checked should appear there. Open the Change requests related list to see any change requests linked to the task. If a result is missing, go back to the source list and confirm it was checked before you chose Create Remediation Task.

Move the task through its remediation states

The state of a remediation task controls the state of the test results attached to it, by precedence. A new task starts in Open. From there, the states below are the ones you move the task through.

  • Under Investigation: set by the Start Investigation button. From here you can create a change request, request an exception with a reason and a reopen date, mark the task as a false positive with a reason and notes, or delete the task.
  • In Review: used to assess the next action, typically to check investigation outcomes or approve a proposed change or exception. An approval moves the task to Awaiting Implementation. A decision that more analysis is needed returns it to Under Investigation.
  • Deferred: set by the Defer button. Deferment details appear under the Defer/Close related tab.
  • Awaiting Implementation: set by its button. From here you can create a security incident or a change request, or move the task to Resolved.
  • Resolved: set by the Resolve button. Enter the reason in the Resolution notes. The notes appear under the Resolution related tab and in the work notes of each attached test result.
  • Closed: set by the Mark as false positive button, which closes the task from v14.12 of Configuration Compliance. Releases before v15.0 also had a Close button.

How a resolved task closes or reopens

From Resolved, the task can close automatically on the next scan. If all test results pass that scan, the task closes. Otherwise it moves to Under Investigation. The system also re-checks the state when a test result is added to or removed from the task, and the work notes record each transition. Moving a task back to Open returns its test results from Resolved to Open. Confirm this behavior on your instance and release, since the close controls have changed across versions.

Release differences in the close controls

From v14.12, the Result invalid option is no longer offered in the Resolution field of the Close modal. Also from v14.12, the Remediation Task State Approval workflow is deprecated, and a flow with the same name in Flow Designer takes its place. In v15.0 and later, the Close button and the Resolution field in the Resolve modal are no longer present. If a close step you read about in an older description does not match your screen, check the buttons on your instance first.

Test a manually created task before you rely on it

Start with a small set of test results. For a first run, the governance, risk and compliance testing checklist gives a broader set of checks to fold in once the basic flow works.

  1. Select two or three test results from one Test Result module and create the task.
  2. Confirm all the selected results appear on the Test results related list.
  3. Click Start Investigation, then check that the attached results moved from Open to Under Investigation.
  4. Move the task to Awaiting Implementation, click Resolve, enter resolution notes, and check the work notes on each attached result.
  5. Reopen the task to Open and check that its attached results return from Resolved to Open.

For help planning this work, see ServiceNow implementation.

Troubleshoot the common manual creation problems

Check the selection and the role first, since they are the quickest things to rule out.

  • A result is missing from the task. Check that its box was selected in the source list before you chose Create Remediation Task, then review the Test results related list again.
  • The Create Remediation Task action is not visible. Confirm that the account holds sn_vulc.admin and that you opened the action from the Actions on selected rows… menu.
  • A remediation owner cannot find a task. Check that the task is assigned to that user or to one of the user’s assignment groups, because the sn_vulc.remediation_owner role limits view and update to those records.

Questions about manual remediation tasks from test results

Where did the Priority field go?

The Rating field replaces it. In earlier versions, Priority held that information. Rating is auto-populated from the risk score, so you review it rather than enter it.

Why does the Historical risk score stay empty on my task?

The field is only displayed after the task reaches the Closed state and its risk score is zero. It shows the inherent risk across the passed test results in the task, which makes it the amount of risk the task remediated.

Does a deferred task reopen on its own?

Yes. On the defer date, the task reopens for remediation, and the deferment information stays under the Defer/Close related tab. From the Deferred state, you can also reopen the task to Open.

What do the older names for these records mean?

Before v14.9, the records used different names. Test Result Group is now Remediation Task, Group Rules is now Remediation Task Rules, and Policy is now Test group.