A Compensating Control Lives in the Implementation, So Re-Check It When the Procedure Is Rewritten

In progress ITIL 4 AppSec DevOps

A security exception is accepted on conditions: a narrow scope, a time limit, and compensating controls that reduce the risk while the normal control is off. The exception record states those conditions, but it doesn't enforce them. Something in the actual procedure does: a line in a script, a task in a playbook, a setting in a pipeline. When the procedure is rewritten in another tool, the record stays the same while the controls it promises can silently disappear.

How It Happens

Step Record says Reality
Exception approved "Wrapper active for one script run, removed on exit, verified after each run" True: the Bash script has a trap and a check.
Procedure moves to Ansible Unchanged The playbook installs the wrapper and never removes it; the check was never ported.
Next review Unchanged The exception has been permanent and unscoped for months.

Nobody decided to widen the exception. The rewrite carried over the change (the wrapper) because it was needed to make things work, and dropped the controls because nothing failed without them.

What to Do

  • List the controls as testable statements in the exception record ("dpkg --verify sqv prints nothing after every run"), not as descriptions of the code.
  • Make a rewrite of the procedure a review trigger, alongside the calendar or version triggers.
  • Automate the detective control inside the new implementation, so its absence fails the run rather than going unnoticed.

References