CSE Roadmap

Specialist tier · about 3 hours · 12 parts

Part 6 of 12 · 4 min read

Accountability and escalation: what the example found

How to read the tamper-detection table: each row is a log design tested against the same 200-entry log and the same five attacks; "yes" means the design's own verify() caught the tampering.

Log Modify Delete middle Reorder Truncate tail Rewrite all
Plain no no no no no
Hash chain yes yes yes no no
Hash chain + anchor yes yes yes yes yes
HMAC chain yes yes yes no yes
HMAC chain + anchor yes yes yes yes yes

What to notice: truncating the tail is the one column where only the two anchored designs say yes. An attacker who controls the storage can always recompute hashes forward, so nothing stored inside the log itself can catch a chain that simply stops early.

How to read the severity table: each row is a different combination of impact, reach and reversibility run through the same formula.

Impact, reach, reversibility Grade
Minor, 1 record, reversible SEV4
Minor, 50 records, reversible SEV3
Serious, 5 records, reversible SEV3
Serious, 500 records, irreversible SEV2
Critical, 5 records, irreversible SEV1
Critical, 5,000 records, irreversible SEV1

What to notice: serious impact on 5 records and minor impact on 50 records both land on SEV3. The reach band (under 10, 10 to 999, 1,000 and over) can outweigh a one-point difference in raw impact once both cases sit in the same band.

How to read the time-to-acknowledgement table: p is the probability each on-call person is reachable for the whole incident; p95 is the minutes below which 95 percent of incidents were acknowledged; "never" is the share that hit the 480-minute give-up point.

p available Escalate: p95 / never Re-page same person: p95 / never
0.9 23 min / 0.1% 480 min / 9.8%
0.7 39 min / 2.5% 480 min / 30.0%
0.5 480 min / 12.3% 480 min / 50.0%

What to notice: escalating keeps the p95 under 40 minutes at 90 and 70 percent availability. But once availability drops to 50 percent, even escalation's p95 hits the 480-minute cap. Escalation helps most at realistic availability. It helps far less once availability is already bad.

How to read the circuit-breaker table: limit is how many suspicious events in 60 seconds open the breaker; harm is the mean units of damage before it opens during a simulated attack; false trips counts how often ordinary traffic (5 percent flagged) opened it over 8 hours.

Limit Harm before halt (mean of 20 runs) False trips per 8 h
2 1.0 27.9
3 2.3 3.1
5 5.5 0.0
10 56.6 0.0
No breaker 68.5 0.0

What to notice: limit 3 cuts harm by 97 percent (68.5 to 2.3) for about 3 false trips a day, while limit 10 barely helps (56.6). The useful threshold sits where the harm curve has already dropped sharply but false trips have not yet climbed, which here is 3 to 5, not 10.

Verifying a 100,000-entry chain end to end took about 0.5 seconds in this example, which is cheap enough to run on every shift change rather than only when something looks wrong.

AAAWgmp1bWIAAAAeanVtZGMycGEAEQAQgAAAqgA4m3EDYzJwYQAAABZcanVtYgAAAEdqdW1kYzJtYQARABCAAACqADibcQN1cm46YzJwYTpmMDA5OGJiMC01YjRiLTRjODgtYjA0Ni1hN2E5ZjUxM2YwYTkAAAADl2p1bWIAAAApanVtZGMyYXMAEQAQgAAAqgA4m3EDYzJwYS5hc3NlcnRpb25zAAAAALxqdW1iAAAARGp1bWRjYm9yABEAEIAAAKoAOJtxE2MycGEuaW5ncmVkaWVudC52MwAAAAAYYzJzaGfj3MsZKOdjWSRd6aHg3MIAAABwY2JvcqNpZGM6Zm9ybWF0bWltYWdlL3N2Zyt4bWxqaW5zdGFuY2VJRHgseG1wOmlpZDo0YTA3NTZhZS1jNWZhLTQzMzctYWZiMC1mOWYzNGM2NjBmYmNscmVsYXRpb25zaGlwaHBhcmVudE9mAAAB4mp1bWIAAABBanVtZGNib3IAEQAQgAAAqgA4m3ETYzJwYS5hY3Rpb25zLnYyAAAAABhjMnNoSXCIRjad3gSa9XVhrcGUNwAAAZljYm9yomdhY3Rpb25zgqJmYWN0aW9ua2MycGEub3BlbmVkanBhcmFtZXRlcnOha2luZ3JlZGllbnRzgaJjdXJseC1zZWxmI2p1bWJmPWMycGEuYXNzZXJ0aW9ucy9jMnBhLmluZ3JlZGllbnQudjNkaGFzaFggWlv2PSdspGUExKUQzDTLTf7pn9kkEkpOXAgEXod1xV6kZmFjdGlvbngdY29tLmFudGhyb3BpYy5jbGF1ZGUucHJvdmlkZWRqcGFyYW1ldGVyc6F4H2NvbS5hbnRocm9waWMub3JpZ2luLWNvbmZpZGVuY2VndW5rbm93bmtkZXNjcmlwdGlvbnhmQ2xhdWRlIHByb3ZpZGVkIHRoaXMgZml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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAPZYQCxUZtMIiDqbGaWgs2LdRTswwrSjeI5XoN8tz1xhiK1ZfTYWrBUlREpUgskxXeVdBxum+Z8EKcpZHZu8F8eehmc=Tamper detection, escalation and the circuit breaker trade-off (simulations with assumed parameters)Tamper detected?modifydelete middlereordertruncate tailrewrite allplainNONONONONOhash chainyesyesyesNONOhash chain + anchoryesyesyesyesyeshmac chainyesyesyesNOyeshmac chain + anchoryesyesyesyesyesVerifying 100,000 entries took 0.531 s on this machine.Minutes until a human acknowledges (each person reachable with probability p; page every 15 min)p_available 0.9escalate: p95 23 min, never reached 0.1%re-page one person: never reached 10%p_available 0.7escalate: p95 39 min, never reached 2.5%re-page one person: never reached 30%p_available 0.5escalate: p95 480 min, never reached 12.3%re-page one person: never reached 50%Circuit breaker: halt after N suspicious events in 60 s (attack: 6 attempts/min, 60% flagged; normal: 5% flagged)limit 2harm 1 unitsfalse trips 27.9/8 hlimit 3harm 2 unitsfalse trips 3.1/8 hlimit 5harm 5 unitsfalse trips 0.0/8 hlimit 10harm 57 unitsfalse trips 0.0/8 hno breakerharm 68 unitsfalse trips 0.0/8 h
Tamper detection matrix, escalation versus re-paging, and the breaker threshold trade-off.