← Archive
lm-003979 · 2026-09

GACEI-05|全域攻擊組合代數 — 依賴、干涉、遮蔽與協同失敗

下載 MD 檔 ⬇

title: "GACEI-05|全域攻擊組合代數:依賴、干涉、遮蔽與協同失敗" title_en: "GACEI-05 | Algebra of Global Attack Composition: Dependency, Interference, Masking, and Synergistic Failure" series: "全域對抗計算與 AI 工程智能系列" series_en: "Global Adversarial Computation and AI Engineering Intelligence Series" series_id: "GACEI-2026" paper_id: "GACEI-05" version: "v0.1" date: "2026-09-08" language: "zh-Hant" author: "Neo.K" organization: "EveMissLab / 一言諾科技有限公司" document_type: "研究論文 / 對抗組合演算 / 全域驗證 / AI 工程智能" status: "Canonical Draft" canonical_source: "UTF-8 Markdown" math_source_rule: "inline math only ...... ; display math only $$...$$" security_scope: "Authorized, isolated, recoverable software testing and simulation only" depends_on: - "GACEI-01 全域對抗計算總論 v0.1" - "GACEI-02 MSSP 的對偶 v0.1" - "GACEI-03 局部攻擊抽象論 v0.1" - "GACEI-04 對抗記憶基底 v0.1"

GACEI-05|全域攻擊組合代數

依賴、干涉、遮蔽與協同失敗

英文題名: Algebra of Global Attack Composition: Dependency, Interference, Masking, and Synergistic Failure


摘要

GACEI-01 至 GACEI-04 依序建立了全域對抗計算、MSSP 對抗對偶、局部攻擊抽象與 SEDB-style 對抗記憶。到此為止,系統已能保存一組具有前提、目標不變量、擾動、觀測、驗證、恢復、成本與 provenance 的 attack operators。然而,真正的全域對抗計算仍缺少一個核心層:局部 attack 到底何時可以組合?組合之後,原本的 attack semantics、觀測語義與診斷能力是否仍然成立?

本文提出「全域攻擊組合代數」(Algebra of Global Attack Composition, AGAC)作為第一版 operational composition calculus。本文使用「代數」一詞,表示我們研究 attack operators 的組合、關係、等價、衝突、部分封閉與可重寫規則;本文不預設所有 attack operators 構成群、環、域、半群、格或任何單一既有代數結構,也不預設所有組合都具有結合律或交換律。

令授權測試系統的狀態空間為:

X,\mathcal X,

局部 attack operator 為部分狀態轉換:

Ta:XX,T_a: \mathcal X \rightharpoonup \mathcal X,

其適用前提為:

Pa:X{0,1},P_a: \mathcal X \rightarrow \{0,1\},

觀測器為:

Oa:X×XZa,O_a: \mathcal X\times\mathcal X \rightarrow \mathcal Z_a,

驗證器為:

Va:Za{Accept,Reject,Unknown,NotMeasured}.V_a: \mathcal Z_a \rightarrow \{ \mathrm{Accept}, \mathrm{Reject}, \mathrm{Unknown}, \mathrm{NotMeasured} \}.

因此一個 attack 的完整執行語義不是只有:

xx,x\mapsto x',

而是:

aθ(x)=(x,z,v,h),\boxed{ \llbracket a\rrbracket_\theta(x) = \left( x', z, v, h \right), }

其中 θ\theta 為版本、平台、權限、資源、baseline 與 sandbox 條件, zz 為觀測, vv 為判定, hh 為執行 provenance。

本文首先提出六類基本關係:

aba\parallel b

表示可獨立並行;

aba\prec b

表示有序依賴;

a#ba\# b

表示組合衝突;

aba\triangleright b

表示 aa 遮蔽 bb 的可觀測效果;

aba\odot b

表示存在協同 failure;

aba\leadsto b

表示 aa 會改變 bb 的適用域、狀態或觀測條件。

但本文進一步指出,這六種關係本身還不足以構成全域 attack。真正的組合必須滿足一組「組合可接受條件」:

Composable(a,bθ)\boxed{ \mathsf{Composable}(a,b\mid\theta) }

至少同時考慮:

  1. authorization compatibility;
  2. precondition satisfiability;
  3. baseline consistency;
  4. sandbox / recovery compatibility;
  5. semantic target compatibility;
  6. observation separability;
  7. diagnosability preservation;
  8. cost feasibility;
  9. non-destructive campaign boundedness。

只有:

Composable(a,bθ)=1\mathsf{Composable}(a,b\mid\theta)=1

時,系統才應把 a,ba,b 放入同一 global campaign 的直接組合關係。

本文定義第一版組合算子:

aba\circ b

為序列組合;

aba\otimes b

為隔離並行組合;

aba\oplus b

為條件分支/替代組合;

aba\odot b

為協同組合;

aba\blacktriangleright b

為具有已知遮蔽語義的受控組合;

[a]R[a]_R

為在 restore / snapshot 邊界 RR 下執行的 attack。

本文強調:

abba\boxed{ a\circ b \neq b\circ a }

一般成立;

而:

(ab)c=a(bc)\boxed{ (a\circ b)\circ c = a\circ(b\circ c) }

也不能無條件假設,因為 observation window、timeout、snapshot、recovery、version binding 與 intermediate evidence 都可能使不同分組具有不同語義。因此 AGAC 是一套條件化、部分定義、帶觀測的組合演算

本文進一步定義「協同失敗」:

V(a)=Accept,V(b)=Accept,V(ab)=Reject.\boxed{ V(a)=\mathrm{Accept}, \qquad V(b)=\mathrm{Accept}, \qquad V(a\odot b)=\mathrm{Reject}. }

這描述一類非常重要的全域缺陷:每個局部 component 在單獨擾動下都能維持 contract,但多個局部狀態、時間或依賴擾動組合後,系統才跨越 failure threshold。此類 interaction defect 正是逐局部攻擊最容易漏掉、而全域 campaign 最有價值的地方之一。

本文同時提出「遮蔽失敗」與「診斷崩潰」。如果:

ab,a\triangleright b,

且執行 aa 後導致 bb 的有效 observation 消失,則 a,ba,b 不應被簡單同批執行,除非 campaign 明確設計:

  • separate sandbox;
  • staged observation;
  • replay;
  • snapshot restore;
  • counterfactual slice;

以恢復可辨識性。本文把此要求稱為:

Diagnosability Preservation.\boxed{ \text{Diagnosability Preservation}. }

真正的 global attack 不是「最大化同時破壞」,而是:

Maximize meaningful interaction coverage while preserving causal interpretability.\boxed{ \text{Maximize meaningful interaction coverage while preserving causal interpretability.} }

本文最後把 attack composition 建模成帶型別的 interaction hypergraph:

HA=(A,E,λ,Θ,W),\mathcal H_A = \left( A, \mathcal E, \lambda, \Theta, W \right),

其中 E\mathcal E 可連接兩個或多個 attack, λ\lambda 表示 relation type, Θ\Theta 表示條件纖維, WW 表示成本、風險、覆蓋與資訊增益。全域 campaign synthesis 於是被轉換成一個受限 hypergraph selection / scheduling problem:

C=Compile(HA,B,τ,Auth,Diag).\boxed{ \mathcal C^\ast = \operatorname{Compile} ( \mathcal H_A, B, \tau, Auth, Diag ). }

本文為 GACEI-06 的「全域攻擊壓縮」建立必要前置:只有先知道局部 attack 如何合法組合,才能進一步問如何用最少組合覆蓋最大對抗空間。

關鍵詞: Attack Composition、Attack Algebra、Interaction Hypergraph、Synergistic Failure、Masking、Diagnosability、Sequential Composition、Parallel Composition、MSSP、Global Campaign、全域對抗計算、AI 工程智能


0. 研究定位、安全範圍與「代數」聲明

本文中的所有 attack composition 只適用於:

  • 授權軟體;
  • synthetic system;
  • isolated copy;
  • sandbox;
  • 可恢復 testbed;
  • 內部工程驗證。

本文不描述如何把局部攻擊鏈組合成對第三方真實系統的未授權滲透流程。


0.1 這不是傳統滲透鏈條教學

本文研究:

Software Adversarial Test Composition.\boxed{ \text{Software Adversarial Test Composition}. }

而不是:

Operational Intrusion Chaining.\boxed{ \text{Operational Intrusion Chaining}. }

其核心目標是:

  • 降低測試計算成本;
  • 找 interaction defect;
  • 保留可診斷性;
  • 建立 AI 全域工程理解 benchmark。

0.2 「代數」是 operational calculus

本文稱:

A\mathcal A

為 attack operator space。

但不宣稱:

(A,)(\mathcal A,\circ)

一定構成 semigroup。

更不宣稱:

(A,+,)(\mathcal A,+,\cdot)

構成 ring。

本文只研究:

哪些 operators 可組合、在哪些條件下可組合、組合後有哪些語義、哪些等式成立、哪些等式不能假設。


1. Attack 不是只有 Mutation

GACEI-03 已定義:

a=(P,T,I,O,V,R,C,K,H).a = (P,T,I,O,V,R,C,K,H).

本文為組合方便,將其分成四層:

a=(Sema,Execa,Obsa,Gova).\boxed{ a = \left( \mathsf{Sem}_a, \mathsf{Exec}_a, \mathsf{Obs}_a, \mathsf{Gov}_a \right). }

1.1 Semantic Layer

Sema=(Pa,Ia,Θa).\mathsf{Sem}_a = (P_a,I_a,\Theta_a).

回答:

  • 何時適用?
  • 在測什麼?
  • 對哪些條件成立?

1.2 Execution Layer

Execa=(Ta,Ra).\mathsf{Exec}_a = (T_a,R_a).

回答:

  • 如何擾動?
  • 如何恢復?

1.3 Observation Layer

Obsa=(Oa,Va).\mathsf{Obs}_a = (O_a,V_a).

回答:

  • 看什麼?
  • 如何判斷?

1.4 Governance Layer

Gova=(Ca,Ka,Ha,Autha).\mathsf{Gov}_a = (C_a,K_a,H_a,Auth_a).

回答:

  • 覆蓋什麼?
  • 成本多少?
  • 來源是什麼?
  • 是否被授權?

2. Attack 的帶觀測執行語義

給定:

xXx\in\mathcal X

與:

θΘ,\theta\in\Theta,

若:

Pa(x,θ)=1,P_a(x,\theta)=1,

則 attack 執行:

Ta(x)=x.T_a(x)=x'.

再觀測:

za=Oa(x,x,θ).z_a = O_a(x,x',\theta).

判定:

va=Va(za,θ).v_a = V_a(z_a,\theta).

所以:

aθ(x)=(x,za,va,ha).\boxed{ \llbracket a\rrbracket_\theta(x) = (x',z_a,v_a,h_a). }

如果:

Pa(x,θ)=0,P_a(x,\theta)=0,

則:

aθ(x)=NotApplicable.\llbracket a\rrbracket_\theta(x) = \mathrm{NotApplicable}.

3. 為什麼 Attack Composition 不是函數合成那麼簡單?

如果只看:

Ta,Tb,T_a, T_b,

當然可以問:

TbTa.T_b\circ T_a.

但完整 attack 還有:

  • precondition;
  • observation;
  • validator;
  • recovery;
  • cost;
  • authorization;
  • provenance。

因此:

TbTa exists\boxed{ T_b\circ T_a \text{ exists} }

不代表:

ab is a valid adversarial composition.\boxed{ a\circ b \text{ is a valid adversarial composition}. }

4. Sequential Composition

本文定義:

ab\boxed{ a\circ b }

表示:

先執行 aa,保留或轉換其結果,再讓 bbaa 的 post-state 上執行。

注意本文採語義:

ab=a then b.a\circ b = \text{$a$ then $b$}.

這與部分數學領域的函數記號方向不同,因此本文全文以此定義為準。


4.1 Sequential precondition

要求:

Pa(x)=1P_a(x)=1

且:

Pb(Ta(x))=1.P_b(T_a(x))=1.

因此:

Pab(x)=Pa(x)Pb(Ta(x)).\boxed{ P_{a\circ b}(x) = P_a(x) \land P_b(T_a(x)). }

4.2 Sequential evidence

組合 evidence:

Eab=(Ea,Eb,Eabinteraction).E_{a\circ b} = (E_a,E_b,E_{ab}^{\mathrm{interaction}}).

不能只保存最終:

Eb.E_b.

因為:

EaE_a

可能是定位根因的必要中間證據。


5. Parallel Composition

本文定義:

ab\boxed{ a\otimes b }

為「隔離並行」或「可證明安全的並行」。

它不是:

兩個 attack 同時 start 就算。


5.1 最安全形式

使用兩個共享 baseline 的隔離 sandbox:

SaSbS.S_a \cong S_b \cong S^\ast.

然後:

a(Sa),b(Sb).a(S_a), \qquad b(S_b).

這叫:

Baseline-Equivalent Parallelism.\boxed{ \text{Baseline-Equivalent Parallelism}. }

5.2 同一 runtime 並行

若真的同一 runtime:

a,ba,b

並行,

至少要求:

WriteSet(a)WriteSet(b)=\operatorname{WriteSet}(a) \cap \operatorname{WriteSet}(b) = \varnothing

或存在明確 synchronization semantics。

否則不是 independent parallel,而是 interaction attack。


6. Alternative / Branch Composition

定義:

ab\boxed{ a\oplus b }

表示:

根據條件、觀測或 budget 選擇 aabb

例如:

aϕb={a,ϕ=1,b,ϕ=0.a\oplus_\phi b = \begin{cases} a,&\phi=1,\\ b,&\phi=0. \end{cases}

這對 adaptive global campaign 很重要。


7. Synergistic Composition

定義:

ab\boxed{ a\odot b }

表示:

組合的研究目的就是測 a,ba,b 的交互效應,而非把它們當成獨立 attack。


7.1 最典型形式

V(a)=Accept,V(a)=\mathrm{Accept}, V(b)=Accept,V(b)=\mathrm{Accept},

但:

V(ab)=Reject.V(a\odot b)=\mathrm{Reject}.

7.2 Interaction defect

定義:

Fsyn(a,b)=1\boxed{ F_{\mathrm{syn}}(a,b) = 1 }

若:

¬F(a)¬F(b)F(a,b).\neg F(a) \land \neg F(b) \land F(a,b).

這表示 failure 不能由任何單一 attack 的局部效果充分解釋。


8. Dependency

定義:

ab\boxed{ a\prec b }

bb 的成立需要:

Post(a).Post(a).

這不是 attack severity 關係。

而是:

Execution Dependency.\boxed{ \text{Execution Dependency}. }

8.1 Dependency DAG

若:

\prec

在一個 campaign subset 上無 cycle,

可形成 DAG:

GD.G_D.

8.2 Cycle

若:

ab,a\prec b, ba,b\prec a,

則:

Unsatisfied Circular Dependency\boxed{ \text{Unsatisfied Circular Dependency} }

除非存在:

  • fixed point;
  • staged state;
  • external initializer。

否則 campaign compiler 應拒絕。


9. Conflict

定義:

a#b\boxed{ a\# b }

若:

a,ba,b

在同一 execution context 中不能同時保持 intended semantics。


9.1 Precondition conflict

例如:

Post(a)¬Pb.Post(a) \models \neg P_b.

9.2 Recovery conflict

RaR_a

會清除:

bb

需要的 state。


9.3 Validator conflict

aa

改變:

ObO_b

的 observation substrate。


10. Masking

定義:

ab\boxed{ a\triangleright b }

若:

SignalbSignal_b

在:

aa

存在後變得不可辨識或不可歸因。


10.1 完全遮蔽

I(Signalb;Observationa)0.I(Signal_b;Observation\mid a) \approx0.

這裡 II 只表示資訊性直覺,不宣稱所有實作都必須以 Shannon mutual information 計算。


10.2 部分遮蔽

bb 的 signal 仍存在,但:

SNRb.SNR_b \downarrow.

11. Masking 不等於 Conflict

若:

ab,a\triangleright b,

兩者仍可能物理上可一起執行。

但:

Executable TogetherDiagnosable Together.\boxed{ \text{Executable Together} \neq \text{Diagnosable Together}. }

這是 GAC 很重要的區分。


12. Influence

定義:

ab\boxed{ a\leadsto b }

表示:

aa 會改變 bb 的 applicability、cost、observation、validator 或 effect distribution。

它比:

aba\prec b

更一般。


13. Composition Acceptability

本文定義:

Composable(a,bθ).\boxed{ \mathsf{Composable}(a,b\mid\theta). }

第一版:

Composable=APBRSODC.\mathsf{Composable} = A \land P \land B \land R \land S \land O \land D \land C.

其中:

  • AA:authorization compatible;
  • PP:preconditions satisfiable;
  • BB:baseline compatible;
  • RR:recovery compatible;
  • SS:semantic target meaningful;
  • OO:observation plan valid;
  • DD:diagnosability acceptable;
  • CC:cost feasible。

14. Authorization Compatibility

若:

Auth(a)=1,Auth(a)=1, Auth(b)=1,Auth(b)=1,

也不能直接推出:

Auth(ab)=1.Auth(a\odot b)=1.

因為組合可能擴大:

  • resource use;
  • scope;
  • data exposure;
  • state mutation。

所以:

Auth(a)Auth(b)⇏Auth(ab).\boxed{ Auth(a) \land Auth(b) \not\Rightarrow Auth(a\star b). }

15. Baseline Compatibility

兩個 attack 若不是作用於同一:

baselinebaseline

或可證明等價 snapshot,

不能直接合成同一 global observation。


15.1 Baseline identity

BID=Hash(source,build,config,fixture,architecture,validator).BID = Hash ( source, build, config, fixture, architecture, validator ).

16. Recovery Compatibility

若:

aa

後:

RaR_a

會:

  • destroy sandbox;
  • reset state;
  • invalidate bb

則:

aba\circ b

可能無定義。


17. Semantic Target Compatibility

如果:

aa

與:

bb

測完全無關的 system slices,

組合仍可能合法,

但:

InfoGain(ab)\operatorname{InfoGain}(a\odot b)

可能沒有額外價值。

因此:

ComposableWorth Composing.\boxed{ \text{Composable} \neq \text{Worth Composing}. }

18. Diagnosability Preservation

本文定義:

D(a,b)\boxed{ D(a,b) }

表示:

組合後仍能把主要失敗證據合理投影到 attack / structure candidates。


18.1 最低條件

若:

F(a,b)=1,F(a,b)=1,

但無法判斷:

  • aa
  • bb
  • interaction;
  • harness;

哪個是原因,

則:

D(a,b)D(a,b)

低。


18.2 診斷崩潰

定義:

Diagnostic Collapse\boxed{ \text{Diagnostic Collapse} }

當:

FailureDetected=1\operatorname{FailureDetected}=1

但:

LocalizationInformation0.\operatorname{LocalizationInformation} \approx0.

19. Global Attack 不是最大破壞

所以全域 campaign 的目標不是:

maxDamage.\max \operatorname{Damage}.

而是:

max(Coverage+InfoGain+InteractionDiscovery)\boxed{ \max \left( \operatorname{Coverage} + \operatorname{InfoGain} + \operatorname{InteractionDiscovery} \right) }

subject to:

Safety=1,\operatorname{Safety}=1, DiagnosabilityτD,\operatorname{Diagnosability}\ge\tau_D, CostB.\operatorname{Cost}\le B.

20. Snapshot-Bounded Composition

定義:

[a]R\boxed{ [a]_R }

表示:

在 snapshot / restore boundary RR 內執行 aa

因此:

[a]R[b]R[a]_R\otimes[b]_R

可以保證兩個 attack 都從等價 baseline 開始。


21. Replay-Bounded Composition

若:

ab,a\triangleright b,

可改為:

[a]Rrestore[b]R[a]_R \rightarrow \text{restore} \rightarrow [b]_R

再:

[ab]R[a\odot b]_R

第三次執行 interaction。

這形成三段證據:

Ea,Eb,Eab.E_a, E_b, E_{ab}.

22. A/B/AB 三元比較

對 synergy 特別重要:

OA,OB,OAB.O_A, O_B, O_{AB}.

定義 interaction residual:

ΔAB=OABF^(OA,OB).\Delta_{AB} = O_{AB} - \widehat F(O_A,O_B).

其中:

F^\widehat F

是「若兩者只是獨立效果,預期組合結果」。

若:

ΔAB\Delta_{AB}

顯著,

表示存在 interaction effect。


23. 不要求線性可加

通常:

OABOA+OB.O_{AB} \neq O_A+O_B.

因此:

Attack Effect need not be additive.\boxed{ \text{Attack Effect} \text{ need not be additive}. }

24. Non-Commutativity

一般:

abba.\boxed{ a\circ b \neq b\circ a. }

原因可能包括:

  • state mutation;
  • cache;
  • retry;
  • lifecycle;
  • version;
  • timeout;
  • recovery;
  • observation window。

25. Conditional Commutativity

若:

aba\parallel b

且:

ReadWriteIndependent(a,b)=1,ReadWriteIndependent(a,b)=1, ObservationIndependent(a,b)=1,ObservationIndependent(a,b)=1,

則可以有:

abθba.a\circ b \equiv_\theta b\circ a.

注意是:

θ\equiv_\theta

條件化等價,不是 bytes identical。


26. Associativity 不能預設

若只看 pure state transform:

Tc(Tb(Ta(x))),T_c(T_b(T_a(x))),

分組看似相同。

但 attack evidence 可能不同。

例如:

(ab)c(a\circ b)\circ c

可能先生成:

Eab,E_{ab},

再進入 cc

而:

a(bc)a\circ(b\circ c)

可能使用不同 observation boundary。

因此:

(ab)c≢a(bc)\boxed{ (a\circ b)\circ c \not\equiv a\circ(b\circ c) }

一般不能預設。


27. Evidence-Sensitive Associativity

若:

  1. state transition equivalent;
  2. intermediate evidence preserved;
  3. observation windows equivalent;
  4. recovery semantics equivalent;
  5. timeout semantics equivalent;

才可以宣告:

(ab)cEa(bc).(a\circ b)\circ c \equiv_E a\circ(b\circ c).

28. Identity Attack

可以定義:

1\mathbf 1

為 no-op control。

要求:

T1(x)=x.T_{\mathbf 1}(x)=x.

若 observation contract 相容,可有:

1aa,\mathbf 1\circ a \equiv a, a1a.a\circ\mathbf 1 \equiv a.

但:

1\mathbf 1

仍可能有測量成本。


29. Null / Invalid Attack

定義:

A\bot_A

為:

  • unauthorized;
  • unsatisfied precondition;
  • invalid validator;
  • impossible recovery;

等無法進入 campaign 的 attack。


30. Attack Hypergraph

Pairwise graph 不足以表示:

abc.a\odot b\odot c.

因此:

HA=(A,E,λ,Θ,W).\boxed{ \mathcal H_A = (A,\mathcal E,\lambda,\Theta,W). }

30.1 Hyperedge

e={a1,,ak}.e = \{a_1,\ldots,a_k\}.

relation type:

λ(e){INDEPENDENT,ORDERED,CONFLICT,MASKING,SYNERGY,DEPENDENCY,INFLUENCE}.\lambda(e) \in \{ INDEPENDENT, ORDERED, CONFLICT, MASKING, SYNERGY, DEPENDENCY, INFLUENCE \}.

31. Conditional Hyperedge

同一組 attack 在不同:

θ\theta

可以具有不同 relation。

例如:

aba\parallel b

在 Linux,

但:

a#ba\# b

在 Windows-specific runtime。

因此:

Relation(a,b)=Relation(a,bθ).\boxed{ Relation(a,b) = Relation(a,b\mid\theta). }

32. Hypergraph 也是可學習知識

如果歷史上反覆觀察:

aba\odot b

具有 synergy,

這不是一次 campaign detail。

它可以被 promotion 成:

Attack Interaction Knowledge.\boxed{ \text{Attack Interaction Knowledge}. }

未來存入 AMS。


33. Attack Interaction Memory

GACEI-04 的 relation graph 因此需要保存:

REQUIRES
CONFLICTS
MASKS
SYNERGIZES_WITH
INFLUENCES
COMMUTES_UNDER
NONCOMMUTES_UNDER

並綁定:

θ.\theta.

34. Composition Closure

給定 attack family:

F.F.

若:

a,bFa,b\in F

不能保證:

abF.a\circ b\in F.

所以:

Attack Family need not be composition-closed.\boxed{ \text{Attack Family} \text{ need not be composition-closed}. }

35. Composition Can Create New Family

例如:

aFstate,a\in F_{\mathrm{state}}, bFtemporal,b\in F_{\mathrm{temporal}},

但:

abFstatetemporalinteraction.a\odot b \in F_{\mathrm{state-temporal-interaction}}.

這可以形成新 family proposal。


36. Composite Attack Identity

定義:

ID(ab)ID(a\star b)

不能只 hash:

ID(a)+ID(b).ID(a)+ID(b).

還要包含:

  • operator;
  • ordering;
  • condition;
  • snapshot boundary;
  • observation contract。

因此:

IDcomp=Hash(IDa,IDb,,θ,R,O).ID_{\mathrm{comp}} = Hash ( ID_a, ID_b, \star, \theta, R, O ).

37. Equivalent Composite Campaign

兩個 composite:

c1,c2c_1,c_2

即使 script 不同,

若:

  • target invariants equivalent;
  • state transition equivalent;
  • observation equivalent;
  • validator equivalent;
  • recovery equivalent;

可以:

c1θ,I,Oc2.c_1 \equiv_{\theta,I,O} c_2.

38. Campaign DAG

若所有 non-parallel dependencies 可形成 partial order:

,\prec,

可建立:

GC=(AC,EC).G_C = (A_C,E_C).

39. Topological Schedule

若:

GCG_C

acyclic,

可以:

TopoSort(GC)\operatorname{TopoSort}(G_C)

形成可執行 schedule。


40. Parallel Antichain

在 partial order 中,antichain:

A\mathcal A_{\parallel}

可作 parallel candidate。

但仍需檢查:

#\#

與:

.\triangleright.

41. Interference Matrix

對:

nn

個 attacks,

可以建立稀疏:

MIRn×n.M_I \in \mathbb R^{n\times n}.

元素:

MijM_{ij}

描述:

  • 0:unknown / none;
  • positive:synergy;
  • negative:conflict / masking;

但單一數值會丟 relation semantics。

因此實作上更適合:

Sparse Typed Relation Matrix.\boxed{ \text{Sparse Typed Relation Matrix}. }

42. Higher-Order Interaction

三個 attack:

a,b,ca,b,c

可能:

F(a,b)=0,F(a,b)=0, F(a,c)=0,F(a,c)=0, F(b,c)=0,F(b,c)=0,

但:

F(a,b,c)=1.F(a,b,c)=1.

這表示:

Pairwise CoverageHigher-Order Coverage.\boxed{ \text{Pairwise Coverage} \neq \text{Higher-Order Coverage}. }

43. 組合爆炸

若:

nn

個 attack,

所有 subset:

2n.2^n.

若考慮 ordering:

k=1n(nk)k!.\sum_{k=1}^{n} {n\choose k}k!.

所以不能 brute force。


44. Architecture-Induced Pruning

若 project architecture graph:

GSG_S

顯示:

aa

與:

bb

作用域沒有 causal path,

則:

Psynergy(a,b)P_{\mathrm{synergy}}(a,b)

可以降低。

這就是:

Architecture UnderstandingComposition-Space Compression.\boxed{ \text{Architecture Understanding} \rightarrow \text{Composition-Space Compression}. }

45. Invariant-Induced Pruning

若:

IaIb=I_a \cap I_b = \varnothing

且無 shared dependency,

可降低 interaction priority。


46. State-Induced Pruning

若:

WriteSet(a)(ReadSet(b)WriteSet(b))=,\operatorname{WriteSet}(a) \cap (\operatorname{ReadSet}(b)\cup \operatorname{WriteSet}(b)) = \varnothing,

且反向同樣成立,

可以提高:

aba\parallel b

信心。


47. Observation-Induced Pruning

若:

aa

與:

bb

共享同一不可分離 signal channel,

則同時執行可能:

D(a,b).D(a,b)\downarrow.

因此應分 lane。


48. Campaign Lane

本文提出:

Lane\boxed{ \text{Lane} }

作為 global campaign 的執行分區。

不同 lane 可以:

  • isolated parallel;
  • ordered;
  • interaction-specific;
  • validator-specific。

49. 四種基礎 Lane

L1:Independent Replay Lane

跑已知單 attack。

L2:Pair Interaction Lane

跑:

ab.a\odot b.

L3:Higher-Order Lane

只跑高風險 hyperedge。

L4:Diagnostic Lane

對 failure 做 counterfactual replay。


50. 全域 Campaign 不是單一大爆炸

因此:

GlobalEverything Simultaneously.\boxed{ \text{Global} \neq \text{Everything Simultaneously}. }

真正 global:

One Global Plan+Coordinated Lanes+Shared Baseline Reference+Integrated Evidence.\boxed{ \text{One Global Plan} + \text{Coordinated Lanes} + \text{Shared Baseline Reference} + \text{Integrated Evidence}. }

51. Composition Safety

定義:

SafeComp(c)=Auth(c)Sandbox(c)Bounded(c)Recoverable(c).SafeComp(c) = Auth(c) \land Sandbox(c) \land Bounded(c) \land Recoverable(c).

52. Boundedness

一個 adaptive campaign 不應:

generate attackgenerate children.\text{generate attack} \rightarrow \text{generate children} \rightarrow \infty.

因此每個 composition plan 必須有:

  • depth budget;
  • compute budget;
  • execution budget;
  • wall-clock budget;
  • novelty threshold。

53. Composition Cost

對 composite:

c=ab,c=a\star b,

一般:

K(c)K(a)+K(b).K(c) \neq K(a)+K(b).

因為可能有:

  • shared setup savings;
  • synchronization overhead;
  • restore cost;
  • extra diagnosis cost。

54. Synergy Value

定義:

SV(a,b)=InfoGain(ab)InfoGain(a)InfoGain(b).SV(a,b) = \operatorname{InfoGain}(a\odot b) - \operatorname{InfoGain}(a) - \operatorname{InfoGain}(b).

若:

SV>0,SV>0,

表示 interaction test 具有額外資訊價值。


55. Redundancy

若:

a,ba,b

覆蓋幾乎相同 invariant / path,

且歷史結果高度重合,

可定義:

Red(a,b).Red(a,b)\uparrow.

campaign compiler 可降低同時選取。


56. Composition Utility

本文提出:

U(c)=αCov(c)+βIG(c)+γRisk(c)+δNovel(c)ηCost(c)μRed(c)νDiagLoss(c).U(c) = \alpha Cov(c) + \beta IG(c) + \gamma Risk(c) + \delta Novel(c) - \eta Cost(c) - \mu Red(c) - \nu DiagLoss(c).

57. Global Composition Optimization

因此:

C=argmaxCCU(C)\boxed{ C^\ast = \arg\max_{C\in\mathfrak C} U(C) }

subject to:

Cost(C)B,Cost(C)\le B, Auth(C)=1,Auth(C)=1, Diag(C)τD,Diag(C)\ge\tau_D, Coverage(C)τC.Coverage(C)\ge\tau_C.

這是 GACEI-06 的直接前置。


58. MSSP 中的組合優勢

MSSP 顯式:

  • ownership;
  • boundary;
  • dependency;
  • state;

因此:

ReadSet,WriteSet,I,E\operatorname{ReadSet}, \operatorname{WriteSet}, I, E

相對容易推導。

這使:

Composable(a,b)\mathsf{Composable}(a,b)

比 spaghetti architecture 更容易估計。


59. MSSP 中的組合風險

同樣因為結構清楚,

AI 很容易枚舉:

¬Ii\neg I_i

與它們的組合。

因此:

Ncandidate compN_{\mathrm{candidate\ comp}}

可能迅速膨脹。

所以需要:

Composition Intelligence\boxed{ \text{Composition Intelligence} }

而不是:

Composition Enthusiasm.\boxed{ \text{Composition Enthusiasm}. }

60. Attack Memory 對組合的作用

AMS 可以提供:

  • known conflicts;
  • known synergy;
  • known masking;
  • historical cost;
  • transfer evidence。

因此 planner 不必每次重新學:

Relation(a,b).Relation(a,b).

61. Unknown Relation

若 AMS 沒資料:

Relation(a,b)=UNKNOWN.Relation(a,b)=UNKNOWN.

不能:

UNKNOWNINDEPENDENT.UNKNOWN \rightarrow INDEPENDENT.

這是重要安全原則。


62. Unknown 的處理

可:

  1. separate lane;
  2. cheap probe;
  3. static dependency analysis;
  4. sandbox trial;
  5. defer。

63. Composition Probe

對未知 pair:

(a,b),(a,b),

先跑最小:

Probe(a,b)Probe(a,b)

只測:

  • precondition compatibility;
  • masking;
  • shared state;
  • validator collision。

若通過,再進 full interaction test。


64. AI 全域注意力在這裡測什麼?

AI 必須一次看見:

GS+HA+I+X+O+B.G_S + H_A + I + X + O + B.

不是只看單 attack。


65. 理解能力

AI 要判斷:

這兩個局部 attack 為什麼可能有交互?

這是 architecture understanding。


66. 解析能力

要拆出:

  • shared state;
  • shared boundary;
  • ordering;
  • validator;
  • recovery。

67. 創造能力

AI 可能從:

a,ba,b

生成以前沒見過的:

aba\odot b

interaction hypothesis。


68. 生成能力

再把:

aba\odot b

變成可執行 sandbox experiment。


69. 計算能力

在:

2n2^n

組合空間中剪枝、排序、分 lane。


70. 驗證能力

區分:

Local Fail\text{Local Fail}

與:

Interaction Fail.\text{Interaction Fail}.

71. 定位能力

把:

F(a,b)F(a,b)

投影回:

  • aa
  • bb
  • relation;
  • boundary;
  • shared state;
  • validator。

72. 組合學習

若:

aba\odot b

反覆產生同類 failure,

可抽象成:

mab.m_{ab}.

再寫回 AMS。


73. Global Attack Grammar

本文提出第一版 grammar:

Campaign :=
    Attack
  | Sequence(Campaign, Campaign)
  | Parallel(Campaign, Campaign)
  | Branch(Condition, Campaign, Campaign)
  | Interaction(AttackSet)
  | RestoreBoundary(Campaign)
  | DiagnosticReplay(Campaign)

74. Grammar 需要 Type Check

不是任意 AST 都可執行。

需要:

TypeCheck(Campaign)=Pass.TypeCheck(Campaign)=Pass.

75. Campaign Type

可記錄:

τC=(Baseline,Auth,StateDomain,ObservationDomain,RecoveryDomain,Budget).\tau_C = ( Baseline, Auth, StateDomain, ObservationDomain, RecoveryDomain, Budget ).

76. Type Error 例子

若:

Sequence(a,b)Sequence(a,b)

但:

PostType(a)⊭PreType(b),PostType(a) \not\models PreType(b),

則:

TypeError.TypeError.

77. Interaction Type Error

如果:

aba\odot b

沒有共同 observation window,

interaction claim 不可判定。


78. Diagnostic Type Error

若 composite 沒有:

  • provenance;
  • lane id;
  • baseline id;

則:

Πfail\Pi_{\mathrm{fail}}

可能無法可靠執行。


79. Composition Normal Form

未來可以研究把 campaign rewrite 成 normal form。

第一版可嘗試:

FreezeIndependentInteractionsDiagnosticsRestore\boxed{ \text{Freeze} \rightarrow \text{Independent} \rightarrow \text{Interactions} \rightarrow \text{Diagnostics} \rightarrow \text{Restore} }

但本文不主張唯一 normal form。


80. Rewrite Rules

在條件成立時:

abba.a\otimes b \Rightarrow b\otimes a.

若:

ab.a\parallel b.

80.1 Sequence fusion

若:

aba\circ b

反覆出現且 recovery / observation 可合併,

可:

abmab.a\circ b \Rightarrow m_{ab}.

80.2 Conflict split

若:

a#b,a\# b,

則:

ab[a]Rlane[b]R.a\otimes b \Rightarrow [a]_R \oplus_{\mathrm{lane}} [b]_R.

意思是拆 lane,而不是強行一起跑。


81. Mask split

若:

ab,a\triangleright b,

則:

aba\odot b

前應至少有:

a,b,aba, b, ab

三組對照。


82. Synergy promotion

若:

SV(a,b)0,SV(a,b)\gg0,

可提高該 hyperedge 的 future priority。


83. Evidence Provenance

每一個 composite execution:

ece_c

至少綁:

  • baseline;
  • component attacks;
  • operator;
  • order;
  • lane;
  • snapshot;
  • observation;
  • validator;
  • time;
  • version。

84. Failure Attribution

對 composite:

c,c,

failure attribution 不應只輸出:

failed = true

而應:

Attribution(c)=(Alocal,Ainteraction,Aharness,U).Attribution(c) = \left( A_{\mathrm{local}}, A_{\mathrm{interaction}}, A_{\mathrm{harness}}, U \right).

85. Interaction Attribution

例如:

P(Fa)=0.05,P(F\mid a)=0.05, P(Fb)=0.03,P(F\mid b)=0.03, P(Fa,b)=0.8.P(F\mid a,b)=0.8.

這可以支持 interaction hypothesis,但不自動證明唯一因果機制。


86. Counterfactual Diagnostics

可以比較:

F(a,b),F(a,b), F(a,¬b),F(a,\neg b), F(¬a,b),F(\neg a,b), F(¬a,¬b).F(\neg a,\neg b).

這是一種受控 factorial-style diagnostic。


87. Higher-Order Diagnostics

三 attack 可比較:

232^3

個 presence/absence cells。

但只對高風險 small subset 使用,避免組合爆炸。


88. 組合深度

定義:

Depth(C).Depth(C).

不是越深越好。

若:

Depth(C),Depth(C)\uparrow,

通常:

DiagLoss(C)DiagLoss(C)\uparrow

與:

Cost(C).Cost(C)\uparrow.

89. 最小互動深度

若某 failure 需要:

kk

個 attack 才出現,

定義:

dF=k.d_F=k.

這可以作為:

Interaction Complexity\boxed{ \text{Interaction Complexity} }

之一。


90. Attack Composition Complexity

可定義:

κ(C)=f(AC,Depth(C),Width(C),HyperedgeOrder(C),StateCoupling(C)).\kappa(C) = f ( |A_C|, Depth(C), Width(C), HyperedgeOrder(C), StateCoupling(C) ).

91. Complexity 不等於價值

高:

κ\kappa

可能只是亂。

因此:

Complex CampaignHigh-Value Campaign.\boxed{ \text{Complex Campaign} \neq \text{High-Value Campaign}. }

92. Local Attack Coverage 與 Interaction Coverage

分開:

ρlocal,\rho_{\mathrm{local}}, ρinteraction.\rho_{\mathrm{interaction}}.

93. Pairwise Interaction Coverage

若候選 pair set:

E2,E_2,

已測:

T2,T_2,

則:

ρ2=T2E2.\rho_2 = \frac{|T_2|}{|E_2|}.

但前提是:

E2E_2

分母有明確 reference frame。


94. Higher-Order Coverage

對:

k3,k\ge3,

不能假裝要全部:

(nk){n\choose k}

窮舉。

應採:

  • architecture-guided;
  • risk-guided;
  • history-guided;
  • novelty-guided。

95. Global Coverage Shape

因此 global coverage 至少包含:

ρG=(ρlocal,ρpair,ρhigher,ρpath,ρvalidator,ρrecovery).\boldsymbol\rho_G = ( \rho_{\mathrm{local}}, \rho_{\mathrm{pair}}, \rho_{\mathrm{higher}}, \rho_{\mathrm{path}}, \rho_{\mathrm{validator}}, \rho_{\mathrm{recovery}} ).

96. 組合的停止規則

若新增 composite:

cc

只增加:

RedundancyRedundancy

而:

ΔCoverage0,\Delta Coverage \approx0, ΔInfoGain0,\Delta InfoGain \approx0,

則停止。


97. Marginal Composition Value

定義:

MCV(c)=ΔCoverage(c)+ΔInfoGain(c)+ΔRiskResolution(c)Cost(c)+ϵ.MCV(c) = \frac{ \Delta Coverage(c) + \Delta InfoGain(c) + \Delta RiskResolution(c) }{ Cost(c)+\epsilon }.

98. Shadow Price

若:

MCV(c)<λB,MCV(c) < \lambda_B,

則:

cDefer.c \rightarrow Defer.

這直接接 AICTE。


99. 研究假說

H1:Interaction-aware campaign 能發現 sequential-local 漏失缺陷

存在專案族,使:

Dinteraction>Dlocalonly.D_{\mathrm{interaction}} > D_{\mathrm{local-only}}.

H2:Diagnosability constraint 可降低無效紅燈

若 campaign optimization 加入:

Diag(C)τD,Diag(C)\ge\tau_D,

則:

Nunattributable red.N_{\mathrm{unattributable\ red}} \downarrow.

H3:Architecture-guided pruning 可降低組合空間

相較 uniform pairwise enumeration:

Carchpruned<CuniformC_{\mathrm{arch-pruned}} < C_{\mathrm{uniform}}

且 defect recall 不顯著下降。


H4:Attack interaction memory 可降低未來 composition discovery 成本

若 AMS 已保存:

SYNERGIZESWITH,MASKS,CONFLICTS,SYNERGIZES_WITH, MASKS, CONFLICTS,

則:

Crelationdiscovery.C_{\mathrm{relation-discovery}} \downarrow.

H5:過深 composite 會降低可診斷性

在部分系統:

Depth(C)Diag(C).Depth(C)\uparrow \Rightarrow Diag(C)\downarrow.

因此全域不等於無限深。


100. Benchmark 設計

建立 synthetic systems,故意注入:

  1. pure local defect;
  2. pair synergy defect;
  3. three-way defect;
  4. masking case;
  5. conflict case;
  6. recovery interference;
  7. validator collision。

比較三種 AI:

A:Local-only

逐 attack。

B:Naive Batch

很多 attack 一起跑。

C:AGAC-aware

先建立 interaction graph,再編譯 campaign。

測:

Defect Recall,\text{Defect Recall}, Interaction Recall,\text{Interaction Recall}, Unattributable Red,\text{Unattributable Red}, Compute Cost,\text{Compute Cost}, Time-to-Diagnosis,\text{Time-to-Diagnosis}, False Positive,\text{False Positive}, Campaign Size.\text{Campaign Size}.

101. 本文非主張

本文不主張:

  1. attack operators 構成群、環、域或 complete algebra;
  2. sequence composition 一定具結合律;
  3. parallel composition 一定具交換律;
  4. 所有 pairwise independent 都代表 higher-order independent;
  5. 所有組合 effect 都線性可加;
  6. 所有 attack interaction 都能用單一數值表示;
  7. 所有 unknown relation 都可視為 independent;
  8. 所有可執行組合都值得執行;
  9. global attack 等於所有 attack 同時執行;
  10. synergy 越多越好;
  11. campaign 越深越好;
  12. 全域 attack 應最大化破壞程度;
  13. diagnostics 可以完全自動找到唯一 root cause;
  14. attack composition 應脫離 authorization boundary;
  15. interaction hypergraph 必然存在唯一最優 campaign;
  16. 本文可以取代正式軟體測試、model checking、fuzzing、故障注入或安全工程。

本文主張的是:

局部 attack 的組合必須有條件、有型別、有觀測、有恢復、有診斷語義。\boxed{ \text{局部 attack 的組合必須有條件、有型別、有觀測、有恢復、有診斷語義。} }

以及:

Globality comes from coordinated structural composition, not from attack count.\boxed{ \text{Globality comes from coordinated structural composition, not from attack count.} }

102. 與 GACEI-01 至 04 的關係

GACEI-01:

為什麼要全域 attack?\text{為什麼要全域 attack?}

GACEI-02:

MSSP 如何把 global failure 投影回 local responsibility?\text{MSSP 如何把 global failure 投影回 local responsibility?}

GACEI-03:

局部 attack 如何抽象成 reusable operator?\text{局部 attack 如何抽象成 reusable operator?}

GACEI-04:

這些 operator 如何被長期記憶?\text{這些 operator 如何被長期記憶?}

本文:

這些 remembered operators 如何合法組合?\boxed{ \text{這些 remembered operators 如何合法組合?} }

103. 下一篇:全域攻擊壓縮

GACEI-06 將回答:

已知 attack 與其 interaction graph 都存在後,怎麼選最少的一組,取得最大的有效全域覆蓋?

核心將研究:

Attack Set Cover+Interaction Cover+Risk Weight+Information Gain+Compute Budget.\boxed{ \text{Attack Set Cover} + \text{Interaction Cover} + \text{Risk Weight} + \text{Information Gain} + \text{Compute Budget}. }

以及:

Global Adversarial Compression.\boxed{ \text{Global Adversarial Compression}. }

104. 結論

局部 attack 可以被抽象、被記憶,仍不代表它們可以任意拼接。

真正的問題是:

When does composition preserve meaning?\boxed{ \text{When does composition preserve meaning?} }

如果:

aa

與:

bb

一起執行後:

  • precondition 失效;
  • validator 失真;
  • evidence 被遮蔽;
  • recovery 崩潰;
  • baseline 不一致;
  • root cause 無法定位;

那麼:

a+ba+b

不是高品質 global attack。

它只是:

Adversarial Noise.\boxed{ \text{Adversarial Noise}. }

本文因此提出:

Composable(a,bθ)\boxed{ \mathsf{Composable}(a,b\mid\theta) }

作為所有 attack combination 的基本 gate。

只有通過:

Authorization+Precondition+Baseline+Recovery+Semantic Target+Observation+Diagnosability+Cost\text{Authorization} + \text{Precondition} + \text{Baseline} + \text{Recovery} + \text{Semantic Target} + \text{Observation} + \text{Diagnosability} + \text{Cost}

的 attack 組合,才應進入 global campaign。

因此真正的全域攻擊不是:

一口氣把所有東西都弄壞。

而是:

在共同 baseline 與有限資源下,選擇一組具有結構意義的局部擾動,安排其並行、順序、隔離與交互,使系統暴露最多有價值的 failure behavior,同時仍能知道為什麼紅、紅在哪裡、哪些 attack 彼此造成了什麼。

其核心式可壓縮為:

Local Operators+Typed Interactions+Bounded Scheduling+Preserved Diagnosability=Global Adversarial Composition.\boxed{ \text{Local Operators} + \text{Typed Interactions} + \text{Bounded Scheduling} + \text{Preserved Diagnosability} = \text{Global Adversarial Composition}. }

這才是大量局部攻擊真正轉化成全域攻擊的第一個演算法基礎。


Canonical Source Note

本文件之正式原稿為 UTF-8 Markdown。

所有數學原始碼僅使用:

  • inline:$...$
  • display:$$...$$

不以 Unicode 數學字元替代 LaTeX source,不進行 unicode-escape round-trip,不將聊天渲染畫面視為 canonical source。