Lion Cipher Lab

Size an audit sample for a control test, then measure what it actually proves

Why it matters

Every SOC 2 Type II report, every internal audit, and every ISO 27001 surveillance visit eventually reaches the same moment: someone exports a list of thousands of tickets and says 'pull a sample.' What happens next decides whether the report means anything. Pull the first 25 because they are easy, find nothing, write 'no exceptions noted,' and you may have signed off a control that broke in September. Pull 25 at random, find nothing, and you have proved much less than it sounds like -- only that the failure rate is probably below about 11%, not that it is zero. Ask for 60 and you are better…

What you'll learn

Steps in this lab

  1. What a control test is -- every term, defined once
  2. Generate a year of access tickets with a hidden problem
  3. Write down what counts as a deviation -- before you look
  4. Compute the sample sizes yourself -- where 25, 40 and 60 come from
  5. Measure what a clean sample proves -- the upper deviation limit
  6. Draw a convenience sample and three seeded random samples, and test them
  7. Run 10,000 audits per plan and count how often each one is wrong
  8. Skip sampling: test all 2,400 tickets with a script
  9. The honest negatives -- what sampling cannot do
  10. When to sample, how big, and how a pro writes it up
  11. What you built -- and the reflex to keep

Open the full interactive lab →