OBLYTECH Logo
OBLYTECH Logo

Automate remediation target tracking in Application Vulnerability Response

Remediation target tracking in Application Vulnerability Response runs on remediation target rules. Each rule sets how many days an application vulnerable item (AVI) has to be fixed, plus a reminder date ahead of that target. A scheduled job calculates the dates once a day, and the Apply Changes button reruns rules after you change them.

How remediation target rules set the timeframe for each AVI

An application remediation target rule defines the expected timeframe for remediating an application vulnerable item. The timeframe covers the vulnerability on that item, so two findings on the same application can carry different dates when they match different rules. A rule has two parts. The remediation target is the number of days allowed for the fix. The reminder target is the number of days before the target date when the reminder applies.

Take a critical finding as an example. A rule that matches a 1-Critical risk rating with a 15-day remediation target gives that AVI a target date 15 days after its starting point. The AVI form and the AVI list views both show that date, so the date is visible from the list as well as from the record.

Where the target date and its status appear

App-Sec Managers can see the remediation target date in the AVI form and in the AVI list views. The Remediation status field on the record shows the state the rules have given it. Read the status and the date together before you treat a record as overdue.

Default rules and the timeframes they set

Application Vulnerability Response ships with three default rules. All three are inactive by default, so no target dates are calculated until you activate a default rule or create your own. Each default pairs a risk rating with a remediation target and a reminder 7 days before the target date.

  • Critical Risk Rating Rule: matches a 1-Critical risk rating, with a remediation target of 15 days.
  • Medium-High Risk Rating rule: matches a 2-High or 3-Medium risk rating, with a remediation target of 30 days.
  • Less Critical Risk Rating rule: matches a 4-Low risk rating, with a remediation target of 45 days.

Treat the defaults as a starting point. Before you activate them, compare the 15, 30 and 45 day values with the timeframes your own remediation policy sets for each severity. If the numbers differ, change the rule first, so the first calculated dates match what your team has agreed.

Setting up a rule that tracks the right items

App-Sec Managers create application remediation target rules by defining a remediation target and a reminder target. The steps below follow that order. Field labels and screen order can differ by release, so check them on your instance before you rely on the sequence.

  1. Open the Remediation Target Rules list view and create a rule, or open an existing one to edit it.
  2. Set the conditions that decide which AVIs the rule matches, such as a risk rating.
  3. Enter the remediation target in days, then the reminder target in days.
  4. Confirm the starting date for the calculation. The default is the Last Opened date. From V17.1, remediation targets are calculated from the Target from (date), while the default value remains the Last Opened date. Check how your release applies this.
  5. Confirm the Active box is selected, then run Apply Changes or wait for the scheduled job.

To see the Last Opened date on the record while you test, add it to the AVI form from the Form Layout slushbucket. It shows the date the AVI was last opened in your instance. For a second walkthrough of rule setup, read setting up remediation target rules in Vulnerability Response.

For help planning this work, see ServiceNow implementation.

How the scheduled job and Apply Changes update dates

The Evaluate remediation targets scheduled job runs once a day at 4:00:00. It works through active rules, starting with the rules that have the earliest remediation target date. It looks at AVIs that are not in a Closed, Deferred or Resolved state, and it writes the Remediation target date and Remediation status fields on the AVI form. For inactive rules, the job clears those fields.

When you change a rule, use the Apply Changes button on the Remediation Target Rules list view. It reruns each changed rule across the active AVIs that are open, so the new settings reach existing records without a manual edit to each one.

The job and the reapply process follow set rules when they overlap. If the scheduled job is running, you cannot start a reapply. If a reapply is already running when the scheduled job is triggered, the two run in parallel. Reapply processes in Vulnerability Response and Application Vulnerability Response are independent, so they can run in parallel with each other.

Reading the dots and the No Target status on the AVI list

The remediation target date appears as a colored dot on the AVI list view. Green means the AVI has not reached its notification date. Orange means it is approaching the remediation target date. Red means it is past the remediation target date.

An AVI that no active rule matches carries the status No Target and has no rule or target date. If you expected a date and see No Target, check the rule conditions against the record and confirm the rule is active, since inactive rules do not apply.

A red dot shows only that the date has passed. Read it with the Remediation status field and the rule that produced the date to find the cause.

How overlapping rules and the more restrictive date are resolved

More than one rule can match the same AVI. When that happens, each rule produces its own target from its own starting date and day count, and the more restrictive rule applies. The calculation counts days as 24-hour increments from the starting date and time.

In the worked example, one AVI has two candidate rules. The first rule starts from one last-opened date and allows a longer period. The second starts from a later last-opened date and allows a shorter period. Work out the date each rule would set. The earlier of the two is the one the AVI carries. Compare the two calculated dates rather than the day counts, because each rule counts from its own start date.

Deactivating and deleting rules

Deactivating a rule clears the current remediation target dates for the AVIs it was applied to. If an AVI satisfies another active rule, that rule applies to it. If none does, the AVI has no rule or target date.

Deleting a rule clears the Remediation target date and related fields on non-closed AVIs, and any dependent rules are reapplied. Both actions can clear dates on open work, so schedule a rule change for a window when a date reset is acceptable.

Checks to run after a rule change

  1. List the rules you are changing and the AVI states each one touches, so you know which records should change and which should keep their dates.
  2. Confirm the scheduled job is not running before you start Apply Changes, because a reapply cannot start while the job runs.
  3. After the reapply finishes, open a sample of active open AVIs for each changed rule and compare the Remediation target date and Remediation status fields with the rule settings.
  4. Check the dot colors on the AVI list view for the same sample.
  5. Note the rule change, the release and the date in your change log, so a later discrepancy has a trail.

The exceptions and wider rule set are covered in application remediation rules and exceptions. For the ranking side of the same queue, read ServiceNow vulnerability prioritization, and for the configuration side, see configuring Application Vulnerability Response.

Questions about existing AVIs, dates that stay put and closed items

Do new rules apply to AVIs that were already open?

Yes, when the AVI has no remediation target date yet. The scheduled job evaluates those records on its next daily run, so a matching rule can add a date to an item that was logged before the rule existed.

Can the scheduled job move a target date later?

No. The job writes a rule’s date over the existing one only when the rule produces an earlier date. An existing date that is already earlier than the rule’s result stays in place.

Why does a Deferred or Resolved item still show a date that has passed?

The dates on AVIs in the Deferred, Resolved or Closed states are not updated, so the date from the last calculation stays on the record. Check the state before you escalate. If the work has restarted, the item needs to move out of Closed, Deferred or Resolved before the job will evaluate it again.

What happens to closed AVIs when a rule is deleted?

Their Remediation target date and related fields are preserved, so a closed item keeps the date it already had. Non-closed items are the ones that lose the calculated date.