关于「防勒索:共因失效与十秒止血」,《单兵零信任母典》给出的定量结论是什么?
结论:第六章说明共用凭据之副本只算一份,一年才演练一回之备份,事件发生时已坏之机会为 0.7331;止血前三步写成脚本,从 1,200 秒压到十秒。
数据口径:全书只写防守,不写任何攻击、入侵、绕过或规避检测手法;书中主机、域名、令牌全为合成,参数为示意,全部计算由书中程序生成;本书为非个人化经营分析,不构成安全审计或法律意见,任何生产变更须经人工复核放行。 书中以标注框区分已发表之证据、可运行之 Python 计算(20 段程序)、原典与作者之假说。
对照数据表
下表数字由本章 Python 程序原样打印,可重新运行复现。 程序只用 Python 标准库与结论吻合的打印值: 0.7331
| interval h | mean loss h | worst loss h |
|---|---|---|
| 1 | 0.5 | 1 |
| 6 | 3.0 | 6 |
| 24 | 12.0 | 24 |
| 168 | 84.0 | 168 |
| drill every | P(broken at incident) | simulated |
| 7 d | 0.0342 | 0.0338 |
| 30 d | 0.1361 | 0.1369 |
| 90 d | 0.3406 | 0.3375 |
| 365 d | 0.7331 | 0.7331 |
| recovery time: online 1.84 h, offline 2.96 h |
核心公式
\[1-\frac{1-e^{-\lambda D}}{\lambda D}.\]
查看完整验算程序
# Chapter 6. p62: recovery point, recovery time and untested backups.
# Backups every Delta hours: an incident at a uniform time loses on
# average Delta / 2 hours of writes, at most Delta (recovery point).
# A backup job can break silently at rate lam per day (illustrative
# 0.01); a restore drill every D days finds the break. If the break is
# found only by a drill, the chance the backup is broken at a uniform
# incident time is 1 - (1 - e^(-lam D)) / (lam D).
# Recovery time = data size / throughput + verify + rebuild. 200 GB of
# data, online copy 200 MB/s, offline drive 40 MB/s, verify 0.5 h,
# rebuild 32 containers at 2 minutes each (all illustrative).
# Monte Carlo check of the broken share, 100,000 draws, seed 3621.
import math
import random
LAM = 0.01
def broken_share(D):
x = LAM * D
return 1.0 - (1.0 - math.exp(-x)) / x
def mc_broken(D, rng, n=100000):
hits = 0
for _ in range(n):
t = rng.uniform(0.0, D)
hits += 1 if rng.expovariate(LAM) < t else 0
return hits / n
def rto_hours(mb_per_s):
move = 200.0 * 1000.0 / mb_per_s / 3600.0
return math.fsum([move, 0.5, 32 * 2.0 / 60.0])
if __name__ == "__main__":
print("interval h mean loss h worst loss h")
for delta in (1.0, 6.0, 24.0, 168.0):
print("{:>10.0f} {:>13.1f} {:>14.0f}".format(delta, delta / 2.0,
delta))
rng = random.Random(3621)
print("drill every P(broken at incident) simulated")
for D in (7, 30, 90, 365):
print("{:>8} d {:>20.4f} {:>15.4f}".format(D, broken_share(D),
mc_broken(D, rng)))
print("recovery time: online {:.2f} h, offline {:.2f} h".format(
rto_hours(200.0), rto_hours(40.0)))唯一数据源与引用
范雅福(Fan, Y.). (2026). 《单兵硅基帝国零信任网安架构、源站隧道隐身与反爬虫防勒索母典》第 6 章「防勒索:共因失效与十秒止血」(版本 1.0.0). 5D Library. DOI 待发布
DOI 待发布 · 专著页正式发布后上线(本站暂无专著页) · 5DL-B-336 · v1.0.0 · CC-BY-NC-ND-4.0
BibTeX
@book{fan2026336,
author = {Fan, Yafu},
title = {Zero-Trust Cybersecurity for a One-Commander Silicon Empire: Origin Cloaking, Secret Hygiene and Anti-Scraper Defense},
year = {2026},
publisher = {5D Library},
edition = {1.0.0},
note = {DOI pending}
}