evmbench: a Next.js front end around a detect-only Codex run in six containers
Collab with OpenAI. A benchmark and harness for finding and exploiting smart contract bugs
At a glance
- What is it?
- evmbench is a companion interface to the detect evaluation in OpenAI's frontier-evals, taking an uploaded zip of contracts through Postgres, RabbitMQ, and a Secrets Service into a worker container that runs Codex and returns a JSON vulnerability list. It is detection-only at runtime, and by default the worker receives the caller's plaintext OpenAI key.
- Who is it for?
- evmbench suits a team that wants to reproduce the detect evaluation with its own UI and its own model keys rather than run the upstream harness directly. Two decisions have to be made before anything is exposed to a network: the worker holds a plaintext OpenAI key by default, and the placeholder secrets in .env.example are stated to be sufficient for local dev only.
- Can I use it commercially?
- Yes. Apache-2.0 is a permissive licence: you can use, modify and sell software built on it, as long as you keep its copyright and licence notices.
- Is it still maintained?
- Yes. The repository last received commits 31 days ago.
- What is it written in?
- Mainly TypeScript, according to GitHub's language statistics.
Answers come from the project's GitHub data, last synced on November 22, 2026, and from our analysis. They are not legal advice.
Star history
- paradigmxyz/evmbench473 ★ · +17
| Repository | 2026-09-22 | 2026-11-22 |
|---|---|---|
| paradigmxyz/evmbench | 456 | 473 |
17 Stars in the last 61 days, measured from the daily GitHub snapshot. Compare with other projects
Editorial analysis
The interface wraps an evaluation that lives in another repository
evmbench is not the benchmark. It is a companion interface to the evmbench detect evaluation whose code lives in OpenAI's frontier-evals repository, and that upstream code is included here as a pinned git submodule at frontier-evals/, which is why a .gitmodules file sits at the root. What this repository adds is the operating surface around one job: a Next.js frontend that uploads a zip and selects an agent, a FastAPI backend, and the machinery that runs the agent and stores the result. The license is Apache-2.0 with a LICENSE file in the tree, the project page is at paradigm.xyz/evmbench, the primary language is TypeScript, and the repository has no GitHub releases even though it carries a .github directory. The last commit on the repository is dated 2026-09-18.
Eight services, and the two that matter most have no port
The service table names eight moving parts and gives five of them fixed ports. The backend API listens on 1337 and handles job submission, status, history, and auth. The Secrets Service on 8081 stores and serves the per-job bundle, which is the uploaded zip plus key material. The Results Service on 8083 receives what the worker sends, validates and parses it, and persists it to the database. The optional OpenAI proxy sits on 8084 and only runs in proxy-token mode. Postgres holds job state on 5432 and RabbitMQ carries the queue on 5672. The two that start the actual work, the instancer and the worker, have no port at all, because the instancer is a queue consumer and the worker is a container the instancer launches.
A job is six hops from the upload to the rendered report
The end to end flow is short enough to follow exactly. The user uploads a zip through the frontend, and the UI sends the archive, the selected model key, the reasoning level, and a user-provided OpenAI API key to /v1/jobs/start. The backend writes a job record to Postgres, puts a secret bundle in the Secrets Service, and publishes a message to RabbitMQ. The instancer consumes that message and starts a worker, Docker locally and Kubernetes optionally. The worker pulls its bundle, unpacks the zip into audit/, and runs Codex in detect-only mode, taking its prompt from backend/worker_runner/detect.md, which is copied to $HOME/AGENTS.md inside the container, its model mapping from model_map.json, and its command line from run_codex_detect.sh. The frontend then polls job status and renders the report with file navigation and annotations.
Validation is one JSON key, and detect-only is the only mode
The agent writes submission/audit.md, and the worker checks one thing before it uploads anything: whether the output contains parseable JSON with a vulnerabilities key holding a list. Nothing else about the report is checked, no schema is stated for the entries inside that list, and no second pass validates them. The mode is equally narrow. The repository description promises a harness for finding and exploiting smart contract bugs, while the runtime runs Codex in detect-only mode and the results service validates a vulnerability list. So the exploit half exists in the description and not in the pipeline. The model map file is the other quiet lever: it translates the model key chosen in the UI into a Codex model identifier, so what the operator picks and what the agent runs are connected by a file the UI never shows.
By default the worker container holds a plaintext OpenAI key
The security section is the part of this project with the sharpest edges. evmbench runs an LLM-driven agent against uploaded, untrusted code, and the text says to treat the worker runtime, its filesystem, its logs, and its outputs as untrusted. Credential handling has two modes. Direct BYOK is the default, and the worker receives a plaintext OpenAI key as OPENAI_API_KEY or CODEX_API_KEY, which means untrusted uploaded code runs in a container holding a working key. Proxy-token mode is the alternative, where the worker receives an opaque token and routes through oai_proxy while the plaintext key stays outside the worker. Turning it on takes a profile flag:
cd backend
cp .env.example .env
# set BACKEND_OAI_KEY_MODE=proxy and OAI_PROXY_AES_KEY=...
docker compose --profile proxy up -d --buildThe full trust model lives in SECURITY.md, which the page points to rather than repeats.
The default audit budget is three hours per run
The worker runtime is bounded by default and the bound is a single environment variable. EVM_BENCH_CODEX_TIMEOUT_SECONDS defaults to 10800 seconds, which is three hours, and it is the documented override for the maximum audit runtime. Three hours is the ceiling on a single detect run, not a per-step limit, and it applies to the Codex process inside the container rather than to the queue wait in front of it. That number matters when reading the queue: a job that has been running for hours has not necessarily hung, and a job that never reaches the validation step may have hit the ceiling during generation. The bundled developer images are built ahead of the stack with plain docker build commands, once for the base image and once for the worker, and the page notes that both are required before the stack starts.
The Makefile calls a syntax check a typecheck and runs it outside uv
The Makefile declares six targets and one of them is named for a check it does not perform. backend-typecheck runs python -m py_compile against four paths, api/app.py, docker/worker/init.py, instancer/backends/docker.py, and instancer/backends/k8s.py, and the help text for that target describes it as py_compile on hot paths. That compiles the files and stops there, so four files are syntax checked while the rest of the backend is unchecked by that target. The neighbouring lint target is stricter about its environment: it syncs a locked development dependency set with uv and then runs ruff through uv, while the typecheck target calls the interpreter on the path directly, outside the locked environment. docker-build-images builds four images, base, worker, backend, and frontend, against the two the quickstart tells you to build first.
The layout listing stops mid-line and the frontend credit points elsewhere
The repository layout section is a tree, and the visible part ends inside one entry. It shows README.md, SECURITY.md, and LICENSE at the root, the frontend directory for the Next.js interface, frontier-evals as the pinned upstream reference, and inside backend/ the api, instancer, secretsvc, resultsvc, and oai_proxy directories before stopping at a line reading prunner with the description Optional cleanup of and no continuation. The root entry list is longer than the tree and adds a deploy directory, assets, a Makefile, and an .editorconfig, none of which appear in the printed layout. The acknowledgements name the OtterSec team and four people credited specifically with building the frontend, which is a front end credited to another security firm inside a Paradigm project that ships a submodule of OpenAI's evaluation code.
Editorial conclusion
evmbench suits a team that wants to reproduce the detect evaluation with its own UI and its own model keys rather than run the upstream harness directly. Two decisions have to be made before anything is exposed to a network: the worker holds a plaintext OpenAI key by default, and the placeholder secrets in .env.example are stated to be sufficient for local dev only. The audit budget is three hours unless EVM_BENCH_CODEX_TIMEOUT_SECONDS says otherwise, which is the number to check first when a job sits in the queue. Nothing here exploits anything: the runtime is detect-only and the worker's own description says as much.
Frequently asked questions
What does evmbench do with an uploaded contract zip?
The frontend sends the archive, the selected model key, the reasoning level, and a user-provided OpenAI API key to /v1/jobs/start. The worker unpacks the zip into audit/, runs Codex in detect-only mode, and the agent writes submission/audit.md.
Does the evmbench worker have the OpenAI key in plaintext?
By default yes: direct BYOK passes the worker a plaintext key as OPENAI_API_KEY or CODEX_API_KEY. Proxy-token mode instead hands the worker an opaque token and routes through oai_proxy on port 8084 so the plaintext key stays outside the worker.
How long can an evmbench audit run?
The worker runtime is bounded at 10800 seconds by default, which is three hours, and the bound is changed through EVM_BENCH_CODEX_TIMEOUT_SECONDS. It caps the Codex run inside the container rather than the time a job waits in the queue.
Which ports does the evmbench stack use?
The backend API is on 1337, the Secrets Service on 8081, the Results Service on 8083, the optional OpenAI proxy on 8084, Postgres on 5432, and RabbitMQ on 5672. The instancer and the worker have no port because the instancer is a queue consumer and the worker is a launched container.
Official sources
Add this badge to your README
If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.
[](https://hysenlabs.com/projects/paradigmxyz-evmbench)Star history chart for your README
[](https://hysenlabs.com/projects/paradigmxyz-evmbench)Was this useful?