Brokex Docs
Docs/SECURITY & REVIEWS/Internal Security Review

Internal Security Review

Adversarial threat modeling across Router, Vault, LongManager, and ShortManager.

The internal security review in brokex-v1/security/ covers:

  • BrokexAdversarialVault.t.sol (6 tests: inflation, donation, FIFO bypass, blacklist DoS)
  • BrokexAdversarialManagers.t.sol (9 tests: callback spoofing, unauthorized calls, BRX-01)
  • BrokexAdversarialRouter.t.sol (4 tests: order replay, stale epoch, escrow theft)
  • BrokexAdversarialInvariants.t.sol (3 stateful invariants: 64 runs × 2,048 calls, 0 reverts)