◇ OpenCyber Academy
Rapid course · Chapter 4 · English

Chapter 4 — Web3, blockchain and cryptoasset security: guided lab and applied synthesis

Open, free learning for anyone who wants to protect people and technology. No account is required to read this text or its worked answers.

Chapter 4 — Web3, blockchain and cryptoasset security: guided lab and applied synthesis

Lesson map

Lesson 04 published. Map, example, EX039.

flowchart TD
  N0["Learning outcomes"]
  N1["4.1 The checklist"]
  N2["Lab — Loyalty setup checklist"]
  N3["4.2 Interpreting the gaps"]
  N4["4.3 Deciding and planning"]
  N5["Synthesis"]
  N0 --> N1 --> N2 --> N3 --> N4 --> N5
  N5 --> EX["Worked example"]
  EX --> Q["Exercise EX039"]

Logical drawing

flowchart LR
  N0["Learning outcomes"]
  N1["4.1 The checklist"]
  N2["Lab — Loyalty setup checklist"]
  N3["4.2 Interpreting the gaps"]
  N4["4.3 Deciding and planning"]
  N5["Synthesis"]
  N0 --> N1 --> N2 --> N3 --> N4 --> N5 --> Q["EX039"]
[Learning outcomes]
    |
    v
[4.1 The checklist]
    |
    v
[Lab — Loyalty setup checklist]
    |
    v
[4.2 Interpreting the gaps]
    |
    v
[4.3 Deciding and planning]
    |
    v
[Synthesis]
    |
    v
[Worked example] --> [Exercise EX039]

Learning outcomes

You will (1) score a setup against a short checklist; (2) interpret gaps; (3) decide and plan next steps.

4.1 The checklist

Mr Otieno gives Elena a short checklist for small token schemes, drawn from the course: privileged minting held by a multi-signature arrangement, administrator changes behind a timelock of at least 48 hours, customer names kept off the ledger, daily reconciliation of points against purchases, recent review of vendor access, a tested backup restore, a written incident contact list, and monitoring of role changes and pauses. The contractor records whether the vendor's test setup meets each item, with evidence. The guided lab scores the synthetic answers with a read-only standard-library script.

Lab — Loyalty setup checklist

"""Score a synthetic loyalty-token setup against a short safety checklist (read-only)."""
CHECKS = [
    ("Mint role held by a 2-of-3 multisig", True),
    ("Admin changes behind a timelock of at least 48 h", False),
    ("Customer names kept off the ledger", True),
    ("Daily reconciliation of points issued vs purchases", True),
    ("Vendor access reviewed in the last 90 days", False),
    ("Backup restore tested in the last 90 days", True),
    ("Written incident contact list", True),
    ("Monitoring of role changes and pauses", False),
]

def main():
    passed = [c for c, ok in CHECKS if ok]
    failed = [c for c, ok in CHECKS if not ok]
    print(f"passed {len(passed)}/{len(CHECKS)} ({100 * len(passed) / len(CHECKS):.1f}%)")
    for c in failed:
        print(" gap:", c)

if __name__ == "__main__":
    main()

Run with python3 lab_loyalty.py. Verified output:

passed 5/8 (62.5%)
 gap: Admin changes behind a timelock of at least 48 h
 gap: Vendor access reviewed in the last 90 days
 gap: Monitoring of role changes and pauses

4.2 Interpreting the gaps

The lab shows 5 of 8 items passed, 62.5 percent, with three gaps: administrator changes have no 48-hour timelock, vendor access has not been reviewed in the last 90 days, and role changes and pauses are not monitored. Elena notes that all three gaps concern control over the system's rules, the area the course identified as highest risk. A percentage alone can mislead: one missing control over privileged changes matters more than several minor items. She discusses each gap with the vendor, who agrees to fix all three before launch.

4.3 Deciding and planning

Elena decides to proceed with a three-month pilot in one café, conditional on the three gaps being fixed and verified by the contractor, a monthly balance export, the exit plan in the contract and personal data off the ledger. She writes a one-page decision note for the owners, stating the benefits, the remaining risks and a review date. She adds a simple monthly check: compare points issued with purchases and review any privileged events. Mr Otieno praises her for a proportionate decision grounded in evidence rather than enthusiasm or fear.

Worked example

The checklist scores 5 of 8 (62.5 percent), with all three gaps in control over rules, and Elena approves a conditional one-café pilot.

Synthetic case. The checklist results, vendor and pilot are synthetic.

Errors and limits

Reading a checklist percentage without weighting gaps can hide the most serious missing control.

Exercises

Synthesis

A short checklist, careful interpretation and a conditional decision let a manager adopt new technology responsibly.

Continue studying — chapter 04 of 04

← Chapter 03 (draft) · Course chapter index · Worked results ↓ · Next course via chapter index →