Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Control ID Formats

Correct ID formatting is critical. The Pretorin API returns errors on malformed IDs. When unsure, discover IDs first with pretorin frameworks families <id> or pretorin frameworks controls <id>.

NIST 800-53 Rev 5 / FedRAMP

Framework IDs: nist-800-53-r5, fedramp-low, fedramp-moderate, fedramp-high

Family IDs

Family IDs are lowercase slugs, not short codes:

CorrectIncorrect
access-controlac
audit-and-accountabilityau
identification-and-authenticationia
system-and-communications-protectionsc
configuration-managementcm
incident-responseir
risk-assessmentra

Control IDs

Control IDs are zero-padded with a hyphen:

CorrectIncorrect
ac-01ac-1, AC-1, ac1
ac-02ac-2, AC-2, ac2
au-02au-2, AU-2
sc-07sc-7, SC-7

Enhancement IDs append a dot-suffix or parenthetical suffix:

FormatExample
Dot notationac-02.1
Parentheticalac-02(1)

CMMC 2.0

Framework IDs: cmmc-l1, cmmc-l2, cmmc-l3

Family IDs

CMMC family IDs include a level suffix:

CorrectIncorrect
access-control-level-1access-control, ac
access-control-level-2access-control, ac-l2
incident-response-level-2incident-response, ir
system-and-communications-protection-level-3sc, sc-l3

Control IDs

CMMC control IDs use dotted notation with a level prefix and are case-sensitive:

CorrectIncorrect
AC.L2-3.1.1ac-01, 3.1.1
SC.L3-3.13.2sc-07, 3.13.2
AC.L1-3.1.22ac.l1-3.1.22

Use uppercase for the family prefix (e.g., AC, not ac).

NIST 800-171 Rev 3

Framework ID: nist-800-171-r3

Family IDs

Family IDs use the same lowercase slug convention as NIST 800-53:

CorrectIncorrect
access-controlac, 3.1
incident-responseir, 3.6
identification-and-authenticationia, 3.5

Control IDs

Control IDs use dotted notation with leading zeros:

CorrectIncorrect
03.01.013.1.1, ac-01
03.01.023.1.2, ac-02
03.13.013.13.1, sc-01

SOC 2

Framework ID: soc2

Pretorin’s SOC 2 catalog is an expert-reviewed control register organized by trust-services domain, not by the raw Common Criteria codes.

Family IDs

SOC 2 family IDs are lowercase domain slugs (one per trust-services domain plus an AI-controls domain):

CorrectIncorrect
securityCC6, common-criteria, cc
availabilityA1, avail
confidentialityC1, conf
privacyP1
processing-integrityPI1, processing_integrity
ai-controlsAI, ai

Control IDs

SOC 2 control IDs use a prefixed, zero-padded format — PTR-SOC2-<DOMAIN>-NNN, where the domain code is uppercase and the number is three digits:

CorrectIncorrect
PTR-SOC2-SEC-001CC6.1, sec-1, 6.1
PTR-SOC2-AVL-004A1.4, avl-4
PTR-SOC2-AI-016AI.16, ai-16

Domain codes: SEC (security), AVL (availability), CONF (confidentiality), PRIV (privacy), PI (processing-integrity), AI (ai-controls). SOC 2 IDs are case-sensitive — keep the prefix and domain code uppercase. When unsure, discover the exact IDs with pretorin frameworks controls soc2 --family security.

Auto-Normalization

The CLI and MCP tools automatically normalize NIST 800-53 and FedRAMP control IDs: uppercase is lowered and single-digit numbers are zero-padded. For example, AC-2 becomes ac-02 and SC-7.1 becomes sc-07.1. CMMC, NIST 800-171, and SOC 2 IDs are passed through unchanged — use the exact format shown above.

Discovery Workflow

When a user provides an informal control reference (e.g., “AC-2” or “access control”):

  1. Call pretorin frameworks families <framework_id> to find the correct family slug
  2. Call pretorin frameworks controls <framework_id> --family <family_slug> to find the correct control ID
  3. Use the discovered ID in subsequent calls

Quick Reference

FrameworkFamily FormatControl FormatExample
NIST 800-53access-controlac-01pretorin frameworks control nist-800-53-r5 ac-02
FedRAMPaccess-controlac-01pretorin frameworks control fedramp-moderate ac-02
CMMCaccess-control-level-2AC.L2-3.1.1pretorin frameworks control cmmc-l2 AC.L2-3.1.1
800-171access-control03.01.01pretorin frameworks control nist-800-171-r3 03.01.01
SOC 2securityPTR-SOC2-SEC-001pretorin frameworks control soc2 PTR-SOC2-SEC-001