Courses3 levels
Level 1 · Foundations11 courses
Level 2 · Core5 courses
Level 3 · Advanced5 courses
Labs8 topics
Library Practice exams AI Range Pricing Start free

Lesson 09 · 35 minutes

Manage supplier risk with clauses, a responsibility table and a calendar

After this lesson you can
  • Rank suppliers by criticality and name the contract clauses that each rank needs
  • Write a shared responsibility table that leaves no area without a name
  • Check supplier records and print a review calendar with a program
Lab files of this lesson (53)

The lab folder as it stands after this lesson. Unzip it in ~/krlab.

More

The zip holds every file that the course has printed up to here. To start this lesson with the files of the earlier lessons only, take the zip of the lesson before. Type the code yourself first: you learn more.

Scenario

The customer database of Brindle Books runs at CloudNorth, an invented hosting provider. When Jonas asks "who patches the database server?", Ben says "CloudNorth, I think". Jonas writes that down, with the words "I think" underlined. Then he asks when the contract with the payroll bureau was last read. Nobody knows. Efe, who signs the supplier contracts, asks you for three things: a register of suppliers, a table that says who does what, and a date for each review.

Recall

Lesson 8: which three results are honest when a policy exception reaches its end date?

The rule is now met, the exception is renewed by a new decision, or the risk is accepted in the register. Letting the date pass in silence is not one of them.

Lesson 4: what does the treatment "transfer" do to a risk?

It shares the risk with another party by contract or insurance. It lowers the likelihood or the cost for you, and it does not remove the risk: you still answer to your customers.

The idea

A supplier (or third party) is an outside organisation whose service you depend on. Its people and systems are outside your control, and its failure is still your problem. The choice of a supplier comes first, and a later course, "AI governance for engineers", shows how to question an AI provider before you sign. This lesson covers the time after the choice: the contract, the split of duties, and the reviews.

First rank the suppliers, because they do not all deserve the same effort. Criticality says how much harm a failure or a leak at the supplier would do.

CriticalityMeaningExample
highHolds confidential or restricted data, or the business stops without itHosting, card payments
mediumHolds some sensitive data, a failure hurtsPayroll bureau
lowNo sensitive data, quickly replacedParcel delivery

The contract is where your needs become duties of the supplier. Six clauses matter, and this course gives them short names.

ClauseThe supplier agrees to
securityKeep stated security measures
breach_noticeTell you about an incident within a set time
auditLet you audit, or give you an independent report
subprocessorsName its own suppliers and tell you before they change
data_returnReturn and delete your data when the contract ends
exitHelp you to move away, on stated terms

A high supplier needs all six. A medium one needs security, breach_notice and data_return. A low one needs security. A high supplier also shows independent assurance at least once a year: an ISO/IEC 27001 certificate (read its scope, lesson 2), a SOC 2 report or, for card payments, a PCI DSS attestation (lesson 12 explains both).

The second tool is the shared responsibility table. For each area of security it says who acts: the supplier, you, or both. "Both" is the dangerous answer, because each side can assume that the other acts. So a row with us or shared names the control of yours that does the work.

Who patches what at CloudNorth
Brindle BooksCloudNorthBenOur database softwareCloudNorth teamPlatformDatacentre1234Brindle BooksCloudNorthBenOur database softwareCloudNorthteamPlatformDatacentre1234
  1. Ben → Our database software: patches it, control C07
  2. Our database software → Platform: runs on top of it
  3. CloudNorth team → Platform: patches the hosting platform
  4. Platform → Datacentre: only CloudNorth guards the building

Worked example

Work in ~/krlab/security-governance.

1. Write the supplier register

assets holds the ids of the assets (lesson 3) that the supplier handles. clauses lists the clauses that the signed contract has. assurance is iso27001, soc2, pci_dss or none, with the date of the certificate or report. review_days is the interval between reviews. All four suppliers are invented.

suppliers.csv

supplier,service,assets,criticality,clauses,assurance,assurance_date,last_review,review_days,contract_end,owner
CloudNorth,Hosting of the shop and the database,A1 A2 A7 A8,high,security breach_notice audit subprocessors data_return exit,iso27001,2026-03-10,2026-06-15,365,2027-06-30,Ben
PayNorth,Card payment service,A5,high,security breach_notice audit subprocessors data_return exit,pci_dss,2026-05-20,2026-06-15,365,2027-01-31,Efe
PaySlip,Payroll bureau,A4,medium,security breach_notice data_return,none,,2026-04-01,365,2027-03-31,Efe
BoxFast,Parcel delivery,,low,security,none,,2025-12-01,730,2028-01-01,Hal

2. Write the shared responsibility table

The table has five areas for each high supplier. our_control is a control id from the statement of applicability (lesson 5).

responsibility.csv

supplier,area,who,our_control
CloudNorth,physical security,supplier,
CloudNorth,platform patching,shared,C07
CloudNorth,user accounts,us,C03
CloudNorth,backup of our data,us,C06
CloudNorth,incident response,shared,C09
PayNorth,physical security,supplier,
PayNorth,platform patching,supplier,
PayNorth,user accounts,us,C03
PayNorth,backup of our data,supplier,
PayNorth,incident response,shared,C09

Read the second row: patching is shared. CloudNorth patches the hosting platform, and Ben patches the server software of Brindle Books on top of it, under control C07. That is the answer to Jonas, without "I think".

3. Write the checker and the calendar

timedelta(days=n) is a span of n days, and adding it to a date gives a later date. The checker has rules for every supplier: a known criticality, an owner, the clauses of its rank, a review that is not overdue. A high supplier also needs a review at least once a year, assurance that is less than a year old, and a named side for each of the five areas.

supplier_check.py

"""supplier_check.py: check supplier records, or print the review calendar.

    python3 supplier_check.py check suppliers.csv responsibility.csv
    python3 supplier_check.py calendar suppliers.csv
"""
import sys
from datetime import timedelta

from grc import TODAY, day, finish, load

ALL = ["security", "breach_notice", "audit", "subprocessors", "data_return", "exit"]
REQUIRED = {"high": ALL, "medium": ["security", "breach_notice", "data_return"], "low": ["security"]}
AREAS = ["physical security", "platform patching", "user accounts", "backup of our data", "incident response"]


def next_review(s):
    return day(s["last_review"]) + timedelta(days=int(s["review_days"]))


def problems(suppliers_path, responsibility_path):
    table = load(responsibility_path)
    found = []
    for s in load(suppliers_path):
        name, level = s["supplier"], s["criticality"]
        if level not in REQUIRED:
            found.append(f"{name}: unknown criticality: {level or 'none'}")
            continue
        if not s["owner"]:
            found.append(f"{name}: no owner")
        missing = [c for c in REQUIRED[level] if c not in s["clauses"].split()]
        if missing:
            found.append(f"{name}: the contract lacks: {' '.join(missing)}")
        if next_review(s) < TODAY:
            found.append(f"{name}: review overdue since {next_review(s)}")
        if level != "high":
            continue
        if int(s["review_days"]) > 365:
            found.append(f"{name}: a high supplier is reviewed at least once a year")
        if s["assurance"] == "none" or (TODAY - day(s["assurance_date"])).days > 365:
            found.append(f"{name}: no independent assurance from the last year")
        rows = {r["area"]: r for r in table if r["supplier"] == name}
        for area in AREAS:
            who = rows.get(area, {}).get("who", "")
            if who not in ("us", "supplier", "shared"):
                found.append(f"{name}: nobody is named for {area}")
            elif who != "supplier" and not rows[area]["our_control"]:
                found.append(f"{name}: {area} is {who}, but no control of ours is named")
    return found


if __name__ == "__main__":
    if sys.argv[1] == "calendar":
        print(f"{'review due':<12}{'supplier':<12}{'rank':<8}contract ends in")
        for s in sorted(load(sys.argv[2]), key=next_review):
            print(f"{str(next_review(s)):<12}{s['supplier']:<12}{s['criticality']:<8}"
                  f"{(day(s['contract_end']) - TODAY).days} days")
    else:
        finish(problems(sys.argv[2], sys.argv[3]))

4. Check, then print the calendar

python3 supplier_check.py check suppliers.csv responsibility.csv
python3 supplier_check.py calendar suppliers.csv
problems: 0
review due  supplier    rank    contract ends in
2027-04-01  PaySlip     medium  130 days
2027-06-15  CloudNorth  high    221 days
2027-06-15  PayNorth    high    71 days
2027-12-01  BoxFast     low     406 days

The records are complete. The calendar is the work plan: PaySlip is due first, and the contract with PayNorth ends in 71 days. If its notice period is three months, the decision to renew or leave is already late. A calendar shows that, and a drawer of contracts does not.

5. Let time pass and a clause go missing

Test the checker with a copy: the last review of CloudNorth was in 2025, its contract has no exit clause, and nobody is named for its platform patching.

sed '/^CloudNorth/s/2026-06-15/2025-06-15/; /^CloudNorth/s/ data_return exit/ data_return/' suppliers.csv > test-suppliers.csv
grep -v "CloudNorth,platform patching" responsibility.csv > test-responsibility.csv
python3 supplier_check.py check test-suppliers.csv test-responsibility.csv
PROBLEM CloudNorth: the contract lacks: exit
PROBLEM CloudNorth: review overdue since 2026-06-15
PROBLEM CloudNorth: nobody is named for platform patching
problems: 3

Two edits are given to one sed here, with ; between them. Without the option -i it prints the result, and > writes it to a new file. Remove the copies with rm test-suppliers.csv test-responsibility.csv.

Your turn

Nadia keeps the suppliers of Marlow Physio. BookWell hosts the booking system with all patient records. Save both files, check them, and print the calendar. There are no steps.

marlow/suppliers.csv

supplier,service,assets,criticality,clauses,assurance,assurance_date,last_review,review_days,contract_end,owner
BookWell,Hosted booking system,M1 M2,high,security breach_notice subprocessors data_return,iso27001,2025-09-01,2026-02-01,730,2027-02-28,Nadia
BillRight,Billing and invoices,M1,medium,security data_return,none,,2025-10-15,365,2027-05-31,
CleanCo,Office cleaning,,low,,none,,2026-08-01,365,2026-12-31,Nadia
ItHelp,IT support by Omar's firm,M3,urgent,security,none,,2026-09-01,365,2027-08-31,Nadia

marlow/responsibility.csv

supplier,area,who,our_control
BookWell,physical security,supplier,
BookWell,platform patching,supplier,
BookWell,user accounts,shared,
BookWell,incident response,both,

Then write what you would ask BookWell for first: the two clauses that its contract lacks and the assurance that is too old. Add one sentence on why exit matters for a system that holds every patient record.

Check yourself

Why is "shared" the most dangerous word in a responsibility table?

Each side can assume that the other one acts, and then nobody does. A shared area needs the split in words (the supplier patches the platform, you patch what you install on it) and a control of your own that covers your part. The checker asks for that control.

PayNorth carries the card handling. Why does Brindle Books still need a row "user accounts: us" for it?

Staff of Brindle Books log in to the payment service to refund orders. Who has those logins, and who loses them when leaving, is in the hands of Brindle Books only. The supplier cannot know that Ines left. The access review of lesson 7 must cover accounts at suppliers too.

A supplier sends an ISO/IEC 27001 certificate from 18 months ago. What do you do with it?

Check the dates and the scope first. If its validity has ended, it is not assurance. If it is still valid, the checker of this course still asks for something from the last year: a current certificate, a surveillance audit result or a recent report. Then read whether the scope covers the service that you buy.

Why does the calendar show the end of the contract, and not only the review date?

The strongest moment to ask for a missing clause or a better price is before renewal, and most contracts need notice months before the end. A date that arrives unseen means automatic renewal on the old terms.

Field notes

  • A clause that you never test is a hope. Ask for the breach notice contact once a year, and ask the high suppliers how they would return your data. The answers show whether the clause is real.
  • Your suppliers have suppliers. The subprocessors clause gives you the list, and a change in it is a reason for a review outside the calendar.
  • For cloud services the split of duties is written by the provider and differs for each kind of service. Read the provider's own responsibility document and copy its split into your table, with your controls next to it.
  • Plan the exit before you need it: which data, in which format, how long a move takes, and what runs meanwhile. Lesson 10 asks the same questions for your own systems.
  • A supplier incident changes your risk register. Re-score the risks that depend on that supplier (lesson 4), and record what you asked and what they answered.