MOAD Cheat Sheet
MOTHER OF ALL DEFECTS · ALL ACTIVE RESEARCH PROGRAMS · Russell John Ballestrini · Aaron Wes Schacht
↓ download PDF
scan for latest
ID
Codename
CWE
> defect / < fix
Status
MOAD-0001
A Sedimentary Defect
CWE-407
list.contains() inside a loop, O(N²) membership testReplace list with hash set. O(1) lookup, same behavior.
active
MOAD-0002
An Intertangled Defect
TBD
Subsystems coupled through shared mutable global state, no phase boundary
Phase snapshot, clean interface, separate context per subsystem
active
MOAD-0003
A Leaked Context
TBD
ThreadLocal holds request identity, bleeds into next request on thread reuseScopedValue (Java 21+) · context.Context (Go) · ContextVar (Python)HTTP headers (
Authorization, Cookie) logged verbatim, tokens on diskCredential denylist at log serialization, strip before write
active
MOAD-0005
A Thundering Herd
CWE-362
Cache miss + compute + put with no lock, N threads all compute simultaneously
computeIfAbsent · singleflight · lock around compute pathCredentials stored reversibly: plaintext, XOR, base64, or recoverable encryption
One-way hash:
candidate
MOAD-0007
A Flatland Defect
CWE-407
bcrypt · argon2, no recovery pathSpatial objects in flat list, every raycast and collision query scans O(N)
Spatial index (BVH, octree, k-d tree), O(log N) per query
confirmed
MOAD-0008
reserved
Reserved
reserved
MOAD-0009
A Metered Heart
TBD
Scheduled job fires on a clock, not events. State-repair or blind recompute on a timer.
Event-driven design: fire when something actually changes
candidate
MOAD-0010
reserved
Reserved
reserved
MOAD-0011
A Catastrophic Inheritance
CWE-1333
User-supplied pattern compiled by backtracking NFA (PCRE, Oniguruma). O(2^N): at N=25, 6,805ms vs 1.65ms linear (4,120,453x).RE2 or Thompson NFA: google-re2 (Python), re2 gem (Ruby). Timeout wrapper as fail-safe fallback.
candidate
Coupled risk, 0001 + 0005: Fix O(N²) at a high-throughput node without staging downstream capacity and freed throughput floods every queue simultaneously. Assign caretakers in
vendors.json before any patch lands. Surge estimate: speedup × in_degree.