Turn protocol requirements into adversarial tests for Ethereum alternative mempools.
Adversyn is an adversarial conformance and security testing suite built specifically for Ethereum Frame Transaction alternative mempools. It helps infrastructure developers understand whether their mempool implementations behave as expected under both normal and adversarial transaction conditions.
Traditional testing often focuses on expected transaction flows. However, transaction infrastructure must also handle edge cases involving validation rules, execution limits, frame ordering, authorization, and unexpected combinations of inputs. A system may pass its basic tests while still behaving incorrectly at critical validation boundaries. Adversyn addresses this gap by turning protocol requirements into executable adversarial tests.
The workflow begins with a scenario that describes a Frame Transaction and its expected behaviour. Adversyn evaluates the scenario against a selected policy profile, compiles it into a transaction, and can generate deterministic adversarial mutations using operators such as changing frame order, removing or duplicating frames, modifying roles, changing atomicity flags, and testing gas boundaries. These scenarios can then be executed against a configured alternative mempool or development gateway.
Adversyn captures the target's actual response, including admission or rejection details and transaction references where available. Its analysis engine compares the expected behaviour with the observed behaviour and classifies the outcome. An important distinction is maintained between three layers: what the protocol specification requires, what Adversyn's selected policy predicts, and what the target implementation actually does. Unknown or unevaluated conditions are treated as inconclusive rather than being presented as confirmed vulnerabilities.
The final output is more than a pass/fail result. Adversyn preserves scenario and mutation provenance, execution observations, and evidence that helps developers inspect and reproduce findings.
The goal is to give alternative mempool operators, Ethereum infrastructure developers, protocol engineers, and security researchers a practical way to challenge transaction admission logic before unexpected behaviour becomes a production issue.
Adversyn follows one principle: SIMULATE → ATTACK → EXECUTE → OBSERVE → ANALYZE → PROVE.
We built Adversyn using TypeScript and Node.js, with a CLI at its core. Instead of creating a dashboard first or relying on mocked transaction responses, we focused on building an actual testing pipeline that can interact with an Ethereum Frame Transaction alternative mempool.
The project is split into a few parts that work together. We have a scenario and schema layer to define test transactions, a policy engine that evaluates them against protocol requirements, and a protocol compiler that turns those scenarios into actual Frame Transactions. On top of that, we built a mutation engine that deliberately changes transaction properties to test edge cases, including frame ordering, duplicated or removed frames, roles, atomicity flags, and gas boundaries.
The interesting part is what happens after generating those tests. Adversyn can submit transactions to a live development target and capture what actually happens. Our analyzer then compares that observation with the expected behaviour and produces a finding with supporting evidence. We also built provenance and hashing into the workflow so that generated mutations and their results can be traced back to the original scenario.
One decision we paid particular attention to was not treating every unexpected response as a vulnerability. We keep protocol requirements, our own policy predictions, and actual mempool observations separate. When the target returns something we cannot confidently interpret, Adversyn marks it inconclusive instead of guessing. That distinction took real thought because rejection messages and validation stages are not always straightforward.
We used the Ethereum Frame Transaction alternative mempool environment as the real execution target. Working against an actual implementation helped us move beyond tests that only prove our own code behaves as expected.
The most interesting engineering challenge was connecting deterministic adversarial test generation with real transaction execution and reproducible evidence. We wanted Adversyn to do more than say that a test failed. We wanted it to show what was submitted, what the mempool did, why the result was classified that way, and how another developer could reproduce it.
That is essentially how Adversyn came together: TypeScript, a modular testing pipeline, real Ethereum infrastructure, and a lot of attention to making the results trustworthy.

