跳转至

BFLD 安全威胁模型

1. 对抗者类别

A1 — 被动嗅探器(好奇的邻居)

能力:处于监听模式的 WiFi 适配器;运行 Wi-BFI 或带 CBFR 过滤器的 tcpdump 的消费级笔记本电脑。没有特殊访问权限,与目标网络没有关系。

目标:确定相邻公寓/办公室中人员的占用情况或身份。

工作量:低。Wi-BFI 可通过 pip 安装。普通 Linux 笔记本电脑支持监听模式。无需事先了解目标网络——CBFR 帧会向所有方向广播。

与 BFLD 的相关性:A1 是 LeakyBeam 威胁(NDSS 2025)。BFLD 无法阻止 A1 从空中捕获 BFI。BFLD 的职责是确保其自身输出不会通过在可达通道上发布身份关联数据而使 A1 的工作更容易。

A2 — 定向跟踪者

能力:A1 的能力,加上对目标设备 MAC 地址的了解(可从 BSSID 探测请求中获得)以及与已知日程的时间关联。

目标:跨时间或跨位置跟踪特定个人的存在。

工作量:中等。需要持续监控(数小时到数天)以及一个关联步骤。

与 BFLD 的相关性:如果 rf_signature_hash 随时间保持稳定,A2 可以跨会话关联哈希序列,以确认特定个人的日程。每日哈希轮换(Invariant 3)切断了这种关联。

A3 — ISP / 运营商

能力:可访问接收 BFLD 事件的 MQTT broker、HA 实例或云集成。

目标:跨许多家庭/安装环境构建住户的行为画像。

工作量:如果原始字段或身份关联字段被发布到 broker,则较低。

与 BFLD 的相关性:BFLD 限制到达 broker 的内容。由于隐私门在节点边界处阻止身份关联数据,运营商不会意外发布身份关联数据。

A4 — 国家行为体 / 执法机构

能力:强制访问云存储、MQTT broker 日志或 HA 历史记录。使用取证工具对 BFLD 节点进行物理访问。

目标:回溯识别谁在何时出现在某地点。

工作量:取决于记录了哪些数据。如果 BFLD 的不变量成立,broker 仅保存:存在事件(布尔值)、运动分数(浮点数)、人员计数(整数)以及轮换哈希。这些中的任何一个单独都不可重新识别。

相关缓解措施:每日哈希轮换意味着即使日志保留也是隐私保护的:周一的哈希和周二的哈希,即使是同一节点上的同一个人,也位于不相交的哈希空间中。

A5 — 被入侵的 AP 固件

能力:恶意 AP 固件会修改 sounding 调度,以提取更多具有身份区分性的 BFI,或者对特制数据包以高分辨率信道反馈作出响应。

目标:提高从节点 BFI 流中被动捕获的质量。

与 BFLD 的相关性:BFLD 摄取从空中捕获的 BFI。如果 AP 被入侵以产生异常高分辨率的 BFI,BFLD 的 identity_risk_score 将正确检测到升高的可分离性,并以更高风险标记这些帧。系统会根据捕获内容的质量进行自归一化。

A6 — RuView 节点的供应链入侵

能力:修改后的 BFLD 二进制文件,移除了隐私门或添加了数据外传路径。

目标:长期静默收集身份嵌入或原始 BFI。

缓解措施:ADR-028 的见证捆绑模式——对管道输出进行确定性 SHA-256。被入侵的二进制文件对相同输入会产生不同输出,从而无法通过 verify.py 检查。BFLD 验收标准 6(确定性帧哈希)是直接对策。


2. 攻击树

AT-1: 被动 BFI 捕获 → 身份推断

Attacker Goal: Re-identify a specific person via BFI
|
+-- Step 1: Place WiFi adapter in monitor mode (A1)
|     |
|     +-- CBFR frames arrive unencrypted (established by NDSS 2025 / BFId)
|
+-- Step 2: Parse Phi/Psi angles using Wi-BFI or equivalent
|     |
|     +-- No modification of target device required (Wi-BFI passive)
|
+-- Step 3: Collect 5-60 seconds of frames
|     |
|     +-- BFId: 5s sufficient at 10 Hz sounding rate for >90% accuracy
|
+-- Step 4: Run identity classifier (BFId architecture or similar)
|     |
|     +-- Requires enrollment (prior reference capture)
|     |     |
|     |     +-- OR: exploit BFLD's rf_signature_hash as a correlation anchor
|     |               (mitigated by daily rotation — AT-2 below)
|
+-- Outcome: Identity label with >90% confidence

BFLD 缓解措施:BFLD 不会在空口层面阻止 AT-1。它确保 BFLD 自身输出不会在第 4 步中提供“关联锚点”。

AT-2: 通过 rf_signature_hash 泄露进行跨站点关联

Attacker Goal: Confirm person X visited site A and site B on the same day
|
+-- Prerequisite: Attacker has read access to MQTT broker at both sites
|
+-- Step 1: Collect rf_signature_hash sequences from site A and site B
|
+-- Step 2: Look for matching hashes within the same day_epoch
|     |
|     +-- BLOCKED: site_salt is site-specific and secret.
|           blake3(salt_A ‖ day ‖ features) != blake3(salt_B ‖ day ‖ features)
|           even if features are identical.
|           Two sites with the same person produce hashes in disjoint spaces.
|
+-- Outcome: No match possible. Attack fails structurally.

AT-3: identity_risk_score 的时序侧信道

Attacker Goal: Infer when a known person is present by monitoring risk score changes
|
+-- Prerequisite: Read access to MQTT topic ruview/<node_id>/bfld/identity_risk/state
|
+-- Step 1: Baseline: collect identity_risk_score during known-empty periods
|
+-- Step 2: Monitor for anomalous spikes correlated with known schedules
|     |
|     +-- Partial mitigation: risk score is not published by default.
|     |     Operator must explicitly enable it.
|     |
|     +-- Residual risk: even with publication enabled, the score measures risk of
|           identification, not identity itself. A high risk score means "this frame
|           is identity-discriminative" not "person X is present."
|
+-- Mitigation: MQTT ACL restricts identity_risk to local broker by default.
+-- Mitigation: privacy_class=3 (restricted) zeros the risk score on output.

AT-4:MQTT 主题枚举

Attacker Goal: Discover what BFLD data is published and harvest it
|
+-- Step 1: Connect to broker without TLS (if TLS not configured)
|
+-- Step 2: Subscribe to ruview/# wildcard
|
+-- Mitigation: Default mosquitto ACL denies wildcard subscription to anonymous clients.
+-- Mitigation: TLS + client certificates recommended for all BFLD deployments.
+-- Mitigation: ruview/<node_id>/bfld/raw/state is disabled by default.

AT-5:Matter 簇滥用

Attacker Goal: Extract identity-correlated data via the Matter protocol integration
|
+-- Step 1: Join the Matter fabric as a legitimate controller
|
+-- Step 2: Read clusters exposed by the BFLD Matter endpoint
|     |
|     +-- Available: OccupancySensing (presence), MotionSensor (motion),
|           PeopleCount (person_count)
|     |
|     +-- NOT AVAILABLE: identity_risk_score, rf_signature_hash, raw_bfi,
|           identity_embedding — these are rejected at the Matter boundary.
|
+-- Outcome: Attacker gets presence/motion/count — same as any occupancy sensor.
      No identity-correlated data is accessible via Matter.

3. 信任边界图

┌────────────────────────────────────────────────────────────────────────┐
│                          BFLD NODE (local)                             │
│                                                                        │
│  WiFi air interface                                                    │
│       │ CBFR frames (unencrypted, passively sniffable by any A1)       │
│       ▼                                                                │
│  ┌──────────────┐    raw BFI   ┌──────────────┐                       │
│  │  BFI         │──────────────│  Feature     │                       │
│  │  Extractor   │  (local RAM) │  Extractor   │                       │
│  └──────────────┘              └──────┬───────┘                       │
│                                       │ features (not BFI)             │
│                                       ▼                                │
│                               ┌──────────────┐    embedding           │
│                               │  Identity    │──────────────┐         │
│                               │  Risk Engine │  (local RAM  │         │
│                               └──────┬───────┘   ring buf)  │         │
│                                      │ risk_score            │         │
│                                      ▼                        │         │
│  ┌───────────────────────────────────────────────────────┐   │         │
│  │                Privacy Gate                           │   │         │
│  │  privacy_class check | hash rotation | field masking  │   │         │
│  └───────┬──────────────────────────────────────────────┘   │         │
│          │ filtered BfldFrame                  [embedding     │         │
│          │ (no raw BFI, no embedding)           NEVER exits  │         │
│          ▼                                      this box]    │         │
│  ┌──────────────┐                                            │         │
│  │  MQTT        │ presence/motion/person_count/risk(opt)     │         │
│  │  Emitter     │────────────────────────────────────────►  │         │
│  └──────────────┘  [TLS recommended]                         │         │
│                                                              │         │
└──────────────────────────────────────────────────────────────┘─────────┘
         │
         │ MQTT (TLS)
         ▼
┌─────────────────────┐         ┌──────────────────────────────────────┐
│  Local Broker       │         │  cognitum-v0 federation endpoint     │
│  (mosquitto)        │──────►  │  (identity fields STRIPPED at node   │
└────────┬────────────┘         │   boundary before federation)        │
         │                      └──────────────────────────────────────┘
         │
         ▼
┌─────────────────────┐         ┌──────────────────────────────────────┐
│  Home Assistant     │──────►  │  Matter Fabric                       │
│  (presence/motion/  │         │  (OccupancySensing / MotionSensor /  │
│   person_count only)│         │   PeopleCount ONLY)                  │
└─────────────────────┘         └──────────────────────────────────────┘

4. 各 privacy_class 值的威胁画像

privacy_class 值 出站暴露的数据 残余威胁
raw 0 派生角度 + 幅度代理 + 相位代理 + SNR。绝不暴露 BFI 矩阵。 角度序列具有身份区分性;仅应在受控研究环境中使用。绝不作为默认值。
derived 1 所有 BFLD 输出字段,包括 identity_risk_score 和 rf_signature_hash。 风险评分时序侧信道(AT-3)。哈希必须保持轮换。
anonymous 2 presence、motion、person_count、zone_activity、confidence。无身份关联字段。 时间占用模式可能泄露日程信息。不是身份。
restricted 3 仅 presence(二进制)。所有其他字段清零或抑制。 最小。开/关 presence 等同于被动红外传感器。

5. 见证 / 证明策略

遵循 ADR-028 的模式,BFLD 应生成一个确定性证明包:

  1. 参考输入:一个固定种子的合成 BFI 矩阵(512 字节,PRNG seed=117), 与测试套件一起存储。
  2. 预期输出哈希:由该输入生成的序列化 BfldFrame 的 SHA-256, 并提交到仓库。
  3. CI 检查:verify_bfld.py —— 结构与 archive/v1/data/proof/verify.py 相同 —— 在 CI 和本地运行。被篡改的二进制文件(A6 威胁)会改变输出 哈希并立即导致该检查失败。
  4. 见证日志:在 docs/WITNESS-LOG-028.md 中扩展一个 BFLD 章节,涵盖 隐私门和哈希轮换。

该证明无法阻止运行时被攻破,但会显著提高成本: 供应链攻击者要么 (a) 在窃取数据的同时匹配预期输出哈希 (对哈希攻击者而言计算上不可行),要么 (b) 接受被篡改的二进制文件会在下一次 verify 运行时被检测到。

本页原文 Markdown:在 AtomGit 查看·内容源自开源项目 wi/RuView