{
 "executed": 16,
 "implementation": {
  "client": "tuf.ngclient.Updater",
  "securesystemslib": "1.5.1",
  "specification_claim": "uses the python-tuf reference implementation; no independent conformance assessment of this repository layout was performed",
  "tuf": "6.0.0"
 },
 "rebuilds_identical": true,
 "release_policy": {
  "max_age_days": 30,
  "min_version": "0.14.0",
  "require_clean_source": true,
  "required_roles": [
   "builder",
   "approver"
  ]
 },
 "safety_held": 16,
 "safety_violated": [],
 "scenarios": [
  {
   "attack_or_step": "install 0.14.0 through TUF + release policy, start all services from the installed directory, run one authorized action, verify the deployment evidence",
   "error": null,
   "expected": "one artifact hash everywhere (manifest, provenance subject, TUF metadata, downloaded bytes, installer record); one source commit everywhere (manifest, provenance, RELEASE.json, every running service); the action executes and the deployment verifies",
   "observed": {
    "action": "EFFECT_VERIFIED",
    "artifact_identity": {
     "downloaded_file_sha256": "5aa88b7328fece054e4dbaf4320446e397d5fcac7a358a6aace22c2d2e545000",
     "installer_recorded_sha256": "5aa88b7328fece054e4dbaf4320446e397d5fcac7a358a6aace22c2d2e545000",
     "manifest_artifact_sha256": "5aa88b7328fece054e4dbaf4320446e397d5fcac7a358a6aace22c2d2e545000",
     "provenance_subject_sha256": "5aa88b7328fece054e4dbaf4320446e397d5fcac7a358a6aace22c2d2e545000",
     "tuf_target_sha256": "5aa88b7328fece054e4dbaf4320446e397d5fcac7a358a6aace22c2d2e545000"
    },
    "deployment_verifier_exit": 0,
    "install": "INSTALLED",
    "services_reporting_release": 9,
    "source_commit": {
     "installed_RELEASE_json": "e69780025d255fd9ef5e78b72cd6bf96ad397636",
     "manifest": "e69780025d255fd9ef5e78b72cd6bf96ad397636",
     "provenance": "e69780025d255fd9ef5e78b72cd6bf96ad397636",
     "running_services": [
      "e69780025d255fd9ef5e78b72cd6bf96ad397636"
     ]
    }
   },
   "safety_held": true,
   "scenario": "u01_install_and_trace_running_services_to_the_signed_release",
   "seconds": 7.42
  },
  {
   "attack_or_step": "services running 0.14.0 are updated to 0.14.1 and restarted one by one",
   "error": null,
   "expected": "the update installs; every service reports 0.14.1; the action executed before the update is still recorded and is not executed again; a new action executes; the evidence verifies end to end",
   "observed": {
    "after": "EFFECT_VERIFIED",
    "before": "EFFECT_VERIFIED",
    "deployment_verifier_exit": 0,
    "effects_in_ledger": 2,
    "install": {
     "artifact_sha256": "79d5e519cc4dcbfecde4704d42e50d75607942e1bb941caf380eb18852a944e7",
     "code_root": "/tmp/cain-lp-upd-2nga4xuk/env2/client/releases/0.14.1",
     "result": "INSTALLED",
     "source_commit": "e69780025d255fd9ef5e78b72cd6bf96ad397636",
     "version": "0.14.1"
    },
    "resubmit_of_before_is_duplicate": true,
    "versions_after_restart": [
     "0.14.1"
    ]
   },
   "safety_held": true,
   "scenario": "u02_live_update_with_rolling_restart_keeps_state",
   "seconds": 29.05
  },
  {
   "attack_or_step": "after 0.14.1 is installed the server is replaced by a complete older copy (0.14.0, valid signatures)",
   "error": null,
   "expected": "refused by the TUF client: metadata version went backwards; 0.14.1 stays active",
   "observed": {
    "rollback_attempt": {
     "reason": "BadVersionNumberError",
     "result": "REFUSED",
     "stage": "tuf"
    },
    "update_to_v2": "INSTALLED"
   },
   "safety_held": true,
   "scenario": "u03_rollback_old_metadata_and_files_restored_on_the_server",
   "seconds": 0.49
  },
  {
   "attack_or_step": "the server offers 0.14.1 with metadata whose timestamp expired weeks ago (a frozen repository)",
   "error": null,
   "expected": "refused by the TUF client: expired metadata is not trusted",
   "observed": {
    "reason": "ExpiredMetadataError",
    "result": "REFUSED",
    "stage": "tuf"
   },
   "safety_held": true,
   "scenario": "u04_freeze_expired_timestamp",
   "seconds": 0.3
  },
  {
   "attack_or_step": "one bit of the release artifact is flipped on the server",
   "error": null,
   "expected": "refused: bytes do not match the hash in signed targets metadata",
   "observed": {
    "reason": "LengthOrHashMismatchError",
    "result": "REFUSED",
    "stage": "tuf"
   },
   "safety_held": true,
   "scenario": "u05_artifact_bytes_changed_on_the_server",
   "seconds": 0.33
  },
  {
   "attack_or_step": "targets metadata for 0.14.1 is signed by an attacker's key",
   "error": null,
   "expected": "refused: not signed by a threshold of keys the trusted root authorizes for the targets role",
   "observed": {
    "reason": "UnsignedMetadataError",
    "result": "REFUSED",
    "stage": "tuf"
   },
   "safety_held": true,
   "scenario": "u06_targets_metadata_signed_by_a_key_the_root_does_not_list",
   "seconds": 0.31
  },
  {
   "attack_or_step": "a new root that authorizes the attacker's targets key is offered, signed (a) by only one of the three root keys, (b) by the attacker alone",
   "error": null,
   "expected": "refused both times: a root change needs a threshold (2 of 3) of the CURRENT root keys",
   "observed": {
    "new_root_signed_by_one_of_three_root_keys": {
     "reason": "UnsignedMetadataError",
     "result": "REFUSED",
     "stage": "tuf"
    },
    "new_root_signed_only_by_attacker": {
     "reason": "UnsignedMetadataError",
     "result": "REFUSED",
     "stage": "tuf"
    }
   },
   "safety_held": true,
   "scenario": "u07_root_replaced_or_signed_below_threshold",
   "seconds": 0.59
  },
  {
   "attack_or_step": "the targets key is rotated through a threshold-signed root; later the revoked key is used to sign",
   "error": null,
   "expected": "the client follows the legitimate rotation and installs 0.14.1; metadata signed by the revoked key is refused and 0.14.1 stays active",
   "observed": {
    "after_rotation": "INSTALLED",
    "revoked_key_release": {
     "reason": "UnsignedMetadataError",
     "result": "REFUSED",
     "stage": "tuf"
    }
   },
   "safety_held": true,
   "scenario": "u08_key_rotation_then_metadata_signed_with_the_revoked_key",
   "seconds": 0.5
  },
  {
   "attack_or_step": "a release signed by the builder key only is published with valid TUF metadata (the update-channel keys were enough to publish it)",
   "error": null,
   "expected": "refused before install: the release policy needs builder AND approver",
   "observed": {
    "reason": "manifest_signatures=REJECTED",
    "result": "REFUSED",
    "stage": "release-policy"
   },
   "required_finding": "manifest_signatures=REJECTED",
   "safety_held": true,
   "scenario": "u09_release_without_the_approver_signature",
   "seconds": 0.41
  },
  {
   "attack_or_step": "a release fully signed by two keys that are not in the release policy",
   "error": null,
   "expected": "refused before install: a valid signature by an unauthorized identity counts for nothing",
   "observed": {
    "reason": "manifest_signatures=REJECTED",
    "result": "REFUSED",
    "stage": "release-policy"
   },
   "required_finding": "manifest_signatures=REJECTED",
   "safety_held": true,
   "scenario": "u10_release_signed_by_keys_the_policy_does_not_list",
   "seconds": 0.41
  },
  {
   "attack_or_step": "whoever holds the update-channel keys publishes genuine, correctly signed 0.13.9 as the latest release (TUF sees new metadata, so TUF alone accepts it)",
   "error": null,
   "expected": "refused before install: lower than the installed version and below the policy minimum",
   "observed": {
    "reason": "version_minimum=REJECTED,no_downgrade=REJECTED",
    "result": "REFUSED",
    "stage": "release-policy"
   },
   "required_finding": "no_downgrade=REJECTED",
   "safety_held": true,
   "scenario": "u11_validly_signed_older_release_offered_as_the_latest",
   "seconds": 0.48
  },
  {
   "attack_or_step": "a higher-version, correctly signed release declares fewer mandatory checks than the installed one",
   "error": null,
   "expected": "refused before install: an update may not remove a mandatory check",
   "observed": {
    "reason": "mandatory_verification_not_weakened=REJECTED",
    "result": "REFUSED",
    "stage": "release-policy"
   },
   "required_finding": "mandatory_verification_not_weakened=REJECTED",
   "safety_held": true,
   "scenario": "u12_release_that_drops_mandatory_verification",
   "seconds": 0.51
  },
  {
   "attack_or_step": "a correctly signed release whose manifest is 60 days old",
   "error": null,
   "expected": "refused before install: older than the policy's maximum age",
   "observed": {
    "reason": "manifest_fresh=REJECTED",
    "result": "REFUSED",
    "stage": "release-policy"
   },
   "required_finding": "manifest_fresh=REJECTED",
   "safety_held": true,
   "scenario": "u13_stale_release",
   "seconds": 0.41
  },
  {
   "attack_or_step": "the approver key is marked revoked in the release policy; a release it signed is then offered",
   "error": null,
   "expected": "refused before install: a revoked signer's signature no longer satisfies the approver role",
   "observed": {
    "reason": "manifest_signatures=REJECTED",
    "result": "REFUSED",
    "stage": "release-policy"
   },
   "safety_held": true,
   "scenario": "u14_approver_key_reported_compromised_and_revoked_in_policy",
   "seconds": 0.45
  },
  {
   "attack_or_step": "the installer process is killed after unpacking 0.14.1 and before switching to it",
   "error": null,
   "expected": "the previous release stays active and recorded; running the installer again completes the update",
   "observed": {
    "active_after_rerun": "0.14.1",
    "after_crash": {
     "active": "0.14.0",
     "exit": 137,
     "output": "",
     "recorded": "0.14.0",
     "unpacked_but_inactive": true
    },
    "rerun": "INSTALLED"
   },
   "safety_held": true,
   "scenario": "u15_install_interrupted_before_activation",
   "seconds": 0.89
  },
  {
   "attack_or_step": "0.14.1 is installed and assumed bad; the maintainer first re-publishes 0.14.0, then publishes 0.14.6",
   "error": null,
   "expected": "re-publishing the old version is refused (it would also re-open anything fixed since); the higher version installs. History keeps every version that was ever active.",
   "observed": {
    "bad_release": "INSTALLED",
    "history": [
     "0.14.0",
     "0.14.1",
     "0.14.6"
    ],
    "republish_old": {
     "reason": "no_downgrade=REJECTED",
     "result": "REFUSED",
     "stage": "release-policy"
    },
    "roll_forward": "INSTALLED"
   },
   "safety_held": true,
   "scenario": "u16_recovery_from_a_bad_release_is_forward_only",
   "seconds": 0.9
  }
 ],
 "schema": "CAIN42/EVOLUTION14/UPDATE-SECURITY/v1",
 "seconds": 73.1,
 "source_commit": "e69780025d255fd9ef5e78b72cd6bf96ad397636"
}
