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 12 · 35 minutes

Map your controls to other frameworks, honestly

After this lesson you can
  • Name five other frameworks and say what kind of thing each one is
  • Map your own controls to them with a stated strength for each mapping
  • Find the gaps that a mapping shows and say what a mapping cannot prove
Lab files of this lesson (68)

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

Three mails reach Brindle Books in one week. A customer in the United States asks: "How do you align with the NIST Cybersecurity Framework?" The payment provider PayNorth sends a questionnaire about PCI DSS. A software partner asks for "your SOC 2 report". Asha asks Carys whether the company must start three new programmes. It must not. The controls are the same controls. What each sender wants is a view of them in its own words. You build that view as a table, and you mark how well each row fits.

Recall

Lesson 11: what is the difference between a correction and a corrective action?

A correction repairs the single case, such as disabling one leaver's account. A corrective action removes the root cause, so that the failure does not repeat, such as starting the leaver procedure from the HR report.

Lesson 5: what does the ref column of the statement of applicability hold, and how far can you trust it?

The Annex A number that the course judges closest to the control. It is the course's own reading, and you check it against the standard before you use it at work.

The idea

Frameworks differ in kind. Some are laws, some are standards that an auditor certifies, some are free lists of good practice. Knowing the kind tells you what the sender of a questionnaire can expect from you.

FrameworkFromKindStructure
ISO/IEC 27001ISO and IECStandard for a management system, can be certifiedClauses 4 to 10, Annex A with 93 controls (lesson 2)
NIST Cybersecurity Framework 2.0NIST, a US government instituteVoluntary framework of outcomes, published in February 2024Six Functions: Govern, Identify, Protect, Detect, Respond, Recover
SOC 2AICPA, the US body of accountantsA report by an independent accountant on the controls of a service organisationTrust services criteria in five categories: security, availability, processing integrity, confidentiality, privacy
PCI DSSPCI Security Standards CouncilStandard for those who store, process or transmit payment card data, set by contract with the card industryTwelve requirements. The current version is 4.0.1, published in June 2024
CIS ControlsCenter for Internet SecurityFree, prioritised list of technical good practice18 controls. The current version is 8.1, published in June 2024
GDPREuropean UnionLaw: Regulation (EU) 2016/679 on personal dataArticles

The GDPR is a law about personal data, far wider than security. Two of its articles meet this course most often: Article 32 asks for security of processing that fits the risk, and Article 33 asks the controller to notify the supervisory authority of a personal data breach without undue delay and, where feasible, within 72 hours of becoming aware of it. What these mean for your organisation is a question for your legal people.

Two terms help you to judge a supplier (lesson 9). A service organisation is a company that runs a service for others, such as a hosting provider. A SOC 2 report is the opinion of an independent accountant on the controls of such a company. A Type 1 report looks at the design of the controls on one date. A Type 2 report also tests how the controls operated over a period, often from several months to a year. A PCI DSS attestation of compliance is the official form on which a merchant or a service provider states the result of its PCI DSS assessment: a self-assessment questionnaire, or a report by an assessor. For both, read the scope and the dates, as for an ISO certificate. The AICPA and the PCI Security Standards Council define these terms exactly, and their pages are the source.

Versions and dates change, and the Field notes say where to read the current ones. You met the six Functions in the course "Security operations basics" (lesson 11), where the response to an incident followed them.

A mapping says that a control of yours answers to an item of a framework. Mappings are approximate, for three reasons.

  • The frameworks cut the subject in different ways. Your backup control is about protection (making copies) and about recovery (restoring them), and a table row can name only one Function.
  • An item of a framework usually asks for more than one control gives. "Mapped" does not mean "met".
  • Only an assessor of that framework can say that you comply with it. A mapping is your own claim.

So each row of the table carries a strength: close when the control does most of what the item asks, partial when it covers a part, and loose when the link is only by topic. A loose row needs a note that says what is missing.

One control, several views
Your controlMapping rowStrengthGap listAnswerone row per controlclose, partial or loosewhat the item asks beyond youan honest reply to the senderYour controlMapping rowStrengthGap listAnswer1234
  1. Your control → Mapping row: one row per control
  2. Mapping row → Strength: close, partial or loose
  3. Strength → Gap list: what the item asks beyond you
  4. Gap list → Answer: an honest reply to the sender

Worked example

Work in ~/krlab/security-governance.

1. Write the mapping

Seven controls of the statement of applicability. csf is the Function. soc2 is the category. cis is the number of the CIS control, pci the number of the PCI DSS requirement, and gdpr is 32, 33 or empty. An empty cell means "no fitting item", and that is an allowed answer.

mapping.csv

control,csf,soc2,cis,pci,gdpr,strength,note
C01,Govern,security,,12,,partial,
C02,Identify,security,1,,,close,
C03,Protect,security,5,7,32,partial,
C05,Protect,security,6,8,32,close,
C06,Protect,availability,11,,32,partial,The restore test belongs to Recover and one row can name only one Function
C07,Protect,security,7,6,32,partial,
C09,Govern,security,15,12,,loose,The control covers contracts and reviews and not the technical checks of a supplier

The numbers come from the course's reading of each framework: CIS control 1 is about the inventory of assets, 5 about accounts, 6 about access control, 7 about vulnerabilities, 11 about data recovery and 15 about service providers. PCI DSS requirements 6, 7, 8 and 12 are about secure systems, access by need, authentication, and policies. Read the item in the framework before you send a mapping to anybody.

2. Write the checker

The checker makes sure that every cell holds a value that the framework has, that each control is in your statement of applicability and appears once, and that a loose row has its note. range(1, 19) gives the numbers from 1 to 18. str(n) turns a number into text, so that it compares with the text in the file.

mapping_check.py

"""mapping_check.py: check a mapping from your controls to other frameworks.

    python3 mapping_check.py mapping.csv soa.csv
"""
import sys
from collections import Counter

from grc import finish, load

CSF = ["Govern", "Identify", "Protect", "Detect", "Respond", "Recover"]
ALLOWED = {
    "csf": CSF,
    "soc2": ["security", "availability", "processing integrity", "confidentiality", "privacy"],
    "cis": [""] + [str(n) for n in range(1, 19)],
    "pci": [""] + [str(n) for n in range(1, 13)],
    "gdpr": ["", "32", "33"],
    "strength": ["close", "partial", "loose"],
}


def problems(mapping_path, soa_path):
    controls = {c["control"] for c in load(soa_path)}
    rows = load(mapping_path)
    count = Counter(r["control"] for r in rows)
    found = []
    for r in rows:
        name = r["control"]
        if name not in controls:
            found.append(f"{name}: not a control of the statement of applicability")
        if count[name] > 1:
            found.append(f"{name}: mapped {count[name]} times")
        for column, allowed in ALLOWED.items():
            if r[column] not in allowed:
                found.append(f"{name}: {column} has no value {r[column] or 'empty'}")
        if r["strength"] == "loose" and not r["note"]:
            found.append(f"{name}: a loose mapping needs a note that says what is missing")
    return found


if __name__ == "__main__":
    used = Counter(r["csf"] for r in load(sys.argv[1]))
    for function in CSF:
        print(f"{function:<9}{used[function]}")
    finish(problems(sys.argv[1], sys.argv[2]))

3. Run it and read the gaps

python3 mapping_check.py mapping.csv soa.csv
Govern   2
Identify 1
Protect  4
Detect   0
Respond  0
Recover  0
problems: 0

The table is valid, and the summary is the interesting part. Nothing maps to Detect, Respond or Recover. That is a true statement about the controls of Brindle Books: the statement of applicability has no control for logging and alerting, and none for incident response. The backup control sits under Protect, and its note says that a part of it belongs to Recover. A mapping to another framework has shown a gap in your own, which is its best use. The course "Security operations basics" teaches the missing work.

4. Answer one of the three mails

The partner asked for "your SOC 2 report". Count the categories that your controls touch. cut -d, -f3 prints the third field, sort puts equal lines together, and uniq -c counts them. tail -n +2 starts at line 2, so the header is skipped.

tail -n +2 mapping.csv | cut -d, -f3 | sort | uniq -c
      1 availability
      6 security

The honest reply has three sentences. Brindle Books has no SOC 2 report, because a report needs an examination by an independent accountant. Its controls are listed in a statement of applicability on the model of ISO/IEC 27001, and a mapping to the trust services categories is attached, with the strength of each row. Six of the seven mapped controls relate to security and one to availability, and none to the three other categories.

5. Break the mapping on purpose

Add a row with a Function that does not exist, a CIS control 19, and a control that is not yours.

cp mapping.csv test-mapping.csv
echo "C99,Prevent,security,19,,,loose," >> test-mapping.csv
python3 mapping_check.py test-mapping.csv soa.csv | tail -5
PROBLEM C99: not a control of the statement of applicability
PROBLEM C99: csf has no value Prevent
PROBLEM C99: cis has no value 19
PROBLEM C99: a loose mapping needs a note that says what is missing
problems: 4

Remove the copy with rm test-mapping.csv.

Your turn

First, extend your own file: add rows to mapping.csv for the four controls C04, C08, C10 and C12 of your statement of applicability, and run the checker until it exits with 0. C11 does not apply, so a control that is out of the statement gets no row. The page cannot check your choices, because honest people map differently. Write a note for each row that you mark loose.

Then check the mapping that Nadia sent, against marlow/soa.csv of lesson 5.

marlow/mapping.csv

control,csf,soc2,cis,pci,gdpr,strength,note
N01,Govern,security,,12,,partial,
N02,Detect,confidentiality,8,10,32,close,
N03,Recover,availability,11,,32,full,
N04,Protect,security,7,6,32,loose,
N05,Protect,privacy,20,,5,partial,
N09,Respond,security,17,12,33,partial,
N02,Detect,security,8,10,,partial,

Last, a customer writes: "Your mapping shows CIS control 11, so you are compliant with CIS control 11." Write two sentences that correct this.

Check yourself

What is the difference in kind between ISO/IEC 27001, SOC 2 and the GDPR?

ISO/IEC 27001 is a standard for a management system, and a certification body can certify against it. SOC 2 is a report: an independent accountant examines the controls of a service organisation against the trust services criteria and gives an opinion. The GDPR is a law, and nobody chooses whether it applies. A certificate or a report does not prove compliance with a law.

Why does every row of the mapping carry a strength?

A bare mapping reads as "we do this", and most rows are only partly true. The strength tells the reader how much of the item the control covers, and a loose row must say what is missing. Without it, a mapping overstates, and the first detailed question shows that.

The backup control maps to Protect, and nothing maps to Recover. Does Brindle Books have no recovery ability?

It has one: lesson 10 restored the data and measured it. The table has one Function for each control, and the note on the row says that the restore test belongs to Recover. This is the first reason why mappings are approximate: frameworks cut the subject differently. A reader who sees only the counts would draw the wrong conclusion, so the note matters.

PayNorth asks about PCI DSS, and Brindle Books sends all card handling to PayNorth. Is PCI DSS then nothing to do with Brindle Books?

No. Moving the card handling to a provider shrinks what applies to the shop a great deal, and the shop still has duties, for example about how its website hands the customer over to the payment page. The provider and the card industry rules decide exactly which. This is the transfer of lesson 4 again: the risk is shared, and not gone.

Field notes

  • Keep one set of controls and many views. Each new framework then costs a column in a table. Separate programmes for each framework drift apart.
  • Use the official mappings where the publisher gives one. NIST, AICPA and CIS publish mappings between their own material and other frameworks. Start from those and add your controls, and say which version of each framework you used.
  • A mapping goes stale when either side changes. Put its date and the versions in the file, and review it when a framework releases a new version. Take the current versions and dates from the publishers: nist.gov, aicpa-cima.com, pcisecuritystandards.org, cisecurity.org and the official EU text. The versions, dates and counts here are those of 2026-11-21. Read the sites above to see whether something has changed since.
  • The PCI Security Standards Council has an open revision of PCI DSS. Put the version in your mapping file, and plan to review the mapping when a new version is published.
  • Answer questionnaires with evidence, not only with a mapping: the control, its owner, and the sealed record that shows it at work (lesson 6).
  • The AICPA has proposed a revision of the trust services criteria. If a customer asks for SOC 2, ask your accountant which criteria apply to the period of the report.