Who can read the payroll?
Can you remove unnecessary access without breaking legitimate work?
Entering midway? Revisit Protect access without losing recovery for the preceding worked example, or start here and use the explanation below.
Start with a concrete question
Synthetic access-control table: a visitor needs the public guide; an editor also needs the team draft; an administrator needs all three files. Each granted permission permits reading one file.
Try the initial inputs, then write a prediction before changing one setting. All calculations run locally on your CPU.
What do you expect?
Predict whether denying everyone private-file access is a successful repair.
Change one thing. Inspect what happens.
- Try broad access and inspect every role in the trace.
- Predict the effect of switching to public-only access; check blocked work.
- Find a policy with zero excess permissions and zero blocked tasks.
- Change which account is stolen. Explain the remaining risk.
Your settingsMechanism
Calculation belowEvidence
Compare outcomes
Compare the current results
Every bar starts at zero and uses the same numeric scale in this chart. The upper bound automatically adjusts to the largest current value (at least 1), so compare the numbers when changing inputs. Units and quantities come from each label; different kinds of quantity are not interchangeable. Displayed values are rounded to at most six significant digits.Follow the calculation
- visitor: public guide allowed; team draft allowed; payroll export allowed.
- editor: public guide allowed; team draft allowed; payroll export allowed.
- administrator: public guide allowed; team draft allowed; payroll export allowed.
- Stolen visitor account can read 3 of 3 files.
Legitimate work succeeds, but unnecessary grants increase access after account theft.
Captures keep your inputs, prediction and observation. Results are recalculated from those inputs. Resetting inputs keeps your captures and challenge history.
Explain the mechanism
Who can read the payroll?
Synthetic access-control table: a visitor needs the public guide; an editor also needs the team draft; an administrator needs all three files. Each granted permission permits reading one file.
Follow the mechanism
Least privilege means granting access needed for a task. It requires a task contract, not merely removing permissions.
The table has nine possible grants: three roles multiplied by three files. Six grants are necessary, so broad access contains three excess grants.
Role matching still lets a stolen administrator account read every file. Access design and account protection address different problems.
Worked example
visitor: public guide allowed; team draft allowed; payroll export allowed.
editor: public guide allowed; team draft allowed; payroll export allowed.
administrator: public guide allowed; team draft allowed; payroll export allowed.
Stolen visitor account can read 3 of 3 files.
Calculation
Excess grants = granted but unneeded cells; blocked work = needed but denied cells.
Try a controlled comparison
Try broad access and inspect every role in the trace.
Predict the effect of switching to public-only access; check blocked work.
Find a policy with zero excess permissions and zero blocked tasks.
Change which account is stolen. Explain the remaining risk.
What this does not establish
All roles, files and theft scenarios are fictional. This does not implement a real authorization boundary.
Reading is the only operation; writing, delegation and revocation are omitted.
Try a fresh case
A new assistant needs 2 of 5 files but receives access to all 5. How many excess grants exist?
This is a public practice check. Retries support learning; matching a number does not certify independent proficiency.
Take the investigation further
Choose any extension. These are project prompts for you to carry out; they are not automatically assessed.
School investigation
Draw permissions for a school club; identify public, member and organizer tasks.
College investigation
Implement a permission matrix and tests for denied operations in an isolated program.
Workplace investigation
Write a fictional access review with task owners, approval reasons and a revocation plan.
Keep the evidence, choose your next step
Completion records your own decision that you have worked through this investigation. Practice checks and independent project evidence are separate.