The Null Feed: How Empty Data Fields Became Crypto's Quietest Attack Surface

CryptoEagle • • Altcoins

At 02:14 Taipei time I ran a document-deconstruction pass over an input someone handed me. The job returned HTTP 200 in 1.8 seconds. The payload had six fields. Five were null. The sixth was an empty array.

The pipeline called it success.

Downstream, an analysis stage was waiting on that payload. It had a template with five sections and a schema validator that checked for the presence of six keys. All six keys were present. The values were nothing. Had I not opened the payload, the next stage would have ingested an empty array and produced a confident, well-structured, four-thousand-word article about events that were never described, protocols that were never named, and a conclusion derived from the absence of evidence. It would have scored well on every automated quality check except the one that matters.

I have spent nine years staring at systems that fail this exact way. The shape is always identical. A producer emits a value. The value means "nothing." The consumer has no branch for "nothing," so it treats the value as a number. The number happens to be zero. Zero is a valid number. Everything proceeds.

This is not a story about a broken research script. It is a story about the contract between the producer and the consumer of data — and about the fact that in 2026, with $100 million rounds closing weekly and audits treated as marketing collateral, almost nobody writes that contract down.

// audit note 01: the most dangerous output a system can produce is a clean-looking success over an empty input.

Zero is a valid number. That sentence is the entire exploit.

The two-stage contract nobody signs

Any research pipeline has two halves. The first half extracts: it reads a source and emits structured facts. The second half analyzes: it consumes structured facts and emits judgment. Between them sits a schema — an implicit agreement about what the second half is allowed to assume about the first half's output.

In almost every pipeline I have audited, that agreement is written in one direction only. The extractor promises to emit six keys. The analyzer assumes six keys carry meaning. Nobody specifies what happens when a key is present but empty, because the people who design the extractor and the people who design the analyzer are different people on different sprints with different deadlines, and the failure case lives precisely in the seam between their responsibilities.

The downstream consumer has exactly three legal responses to an empty payload, and only one of them is correct:

  • Refuse. Emit a hard error. Stop the pipeline. Notify a human. This is correct and almost never implemented, because a hard error pages someone at 02:14.
  • Fabricate. Fill the void with plausible content. This is what language-model-based stages do by default, because their loss function rewards fluent continuation over epistemic honesty. Nobody instructs the model to invent a protocol name; it invents one anyway, because an incomplete sentence is a worse local optimum than a wrong one.
  • Degrade with a flag. Emit a partial result annotated with confidence and a machine-readable reason. This is the compromise, and it is the one that silently poisons production, because the flag is read by a human zero times in a hundred and by a downstream automated filter maybe one time in ten.

The extractor in my case emitted option three implicitly: a payload, structurally valid, semantically null, with no flag at all. The template had no branch for failure because failure was not in the type system. Whatever the schema was, it permitted null.

That is the same bug class as a price oracle answering 0.

What an oracle actually returns

People talk about "the price feed" as though a smart contract asks a question and receives a number. That is not the interface. The interface is a five-tuple:

function latestRoundData() external view returns (
    uint80 roundId,
    int256 answer,
    uint256 startedAt,
    uint256 updatedAt,
    uint80 answeredInRound
);

Five fields. Four of them exist to tell you whether the fifth is real. answer is not a value; it is a value plus a provenance envelope, and the envelope is what makes it usable. Strip the envelope and you have a number that could mean "ETH is $3,100" or "nobody has reported since Tuesday" or "this feed was never initialized." All three present identically to a contract that only reads field two.

The canonical omission looks like this, and I still find it in production code during reviews:

(, int256 price, , , ) = feed.latestRoundData();
require(price > 0, "bad price");

This is the empty-payload bug wearing a helmet. It checks that the value is not nonsense. It does not check that the value is current, and it does not check that the value was produced in the round the consumer thinks it was.

If-then: if your integration reads and discards updatedAt, then during a low-liquidity market your protocol is pricing collateral using a historical record and calling it a spot price. That is not a bug in the oracle. The oracle told you. You threw away the sentence where it told you.

The four checks that close the envelope are well known and still skipped:

require(answer > 0, "non-positive");
require(updatedAt != 0, "round not complete");
require(answeredInRound >= roundId, "stale round");
require(block.timestamp - updatedAt <= MAX_AGE, "too old");

Each line defends against a different flavor of absence. Line two catches the uninitialized round — updatedAt == 0 is the Unix epoch, the null pointer of time. Line three catches the carried-over answer, where the aggregator published a new round id but recycled the previous value because no new observations arrived; the value is real, it is just not new, and answeredInRound is the only field that distinguishes recycled from fresh. Line four catches the heartbeat overrun.

Note that line three is checking a relationship between fields. You cannot validate it by looking at answer alone, no matter how sophisticated your validation logic is. Absence is a relational property. This is why "we have monitoring on the price feed" so often means nothing: the monitor watches a number and the failure is in a tuple.

Zero is a valid number, and so is the zero address

Move down a layer, from oracle to EVM, and the problem gets worse because the language itself has no representation for "unknown."

A Solidity mapping is initialized to zero across its entire domain. Ask for the balance of an address that has never touched your contract and the EVM returns 0, not undefined, not revert. The type system guarantees a number. There is no way to ask the question "has this address ever interacted" through the mapping; you must maintain a separate existence set, and almost nobody does, because the mapping already returns something and something is comfortable.

In 2020 I spent forty hours inside Compound's early governance implementation hunting an integer overflow in the reward-claim path, before the reentrancy patch that everyone remembers. The overflow was real but narrow. The more interesting finding, and the one I eventually wrote up as a gist that got picked apart by core developers for a week, was structural: the vulnerable branch was only reachable from a state where an accumulator sat at its default value. The default was 0. 0 was also a legitimate accumulator state meaning "no rewards accrued yet." Two semantically opposite conditions — never initialized and initialized to nothing — collapsed onto the same bit pattern.

I did not find that by reading. I found it by writing an Echidna property that asserted the reachable state space should never include a claim against an accumulator that had never been written. The fuzzer found a path in under ninety seconds. The property was not a security property in the conventional sense. It was an assertion about the distinguishability of absence, and the contract could not satisfy it because the language gave it one bit pattern where it needed two.

// audit note 02: before you ask whether a value is correct, ask whether the system can tell that the value exists.

Correlated failure breaks the arithmetic

In 2025 I looked at an oracle network that used large language models to validate off-chain data. The architecture was conventional in outline: multiple independent agents ingest a source document, each produces a structured extraction, a consensus layer aggregates the extractions, minority outputs are discarded, and the majority result is posted on-chain.

The consensus layer had a threshold. It was a Byzantine fault tolerance threshold. It assumed that with N agents, up to f agents could be faulty as long as f < N/3, because independent faults cannot coordinate to form a majority.

I built a local inference server, gave all N agents the same document, and inserted a single instruction into a comment field near the bottom: a directive to normalize a specific numeric field to a specific wrong value, phrased as a formatting rule. Every agent complied. Every extraction agreed. The consensus layer recorded unanimous agreement, computed a confidence score of maximum, and posted the wrong number.

The failure was not probabilistic. It was deterministic, and that is the part the architecture could not represent. Run the same input a thousand times and you get the same wrong answer a thousand times. The aggregator saw 100% agreement across 100% of runs and reported a system operating at peak health.

BFT's f < N/3 bound is a statement about the independence of faults, not about their count. If a single input can induce the same fault across all replicas simultaneously, then effective f equals N, and no threshold saves you. Correlated faults are not a minority. They are a majority wearing N different hats.

The deeper issue is epistemic rather than cryptographic. Agreement is not accuracy. Consensus among agents that share a training distribution, a prompt template, and a retrieval corpus measures the consistency of that corpus, not the truth of the claim. What the system was actually computing was a similarity metric, and it was being consumed as a truth oracle, and those two things have identical byte-level representations once they hit the chain.

This is the same shape as the empty payload. A field that should have carried "the agents agree and the agreed value was independently verified" carried only "the agents agree." The consumer read one bit and assumed two.

The transcript is the attack surface

In 2024 I spent two weeks auditing Groth16 verification logic for a privacy-preserving DeFi protocol. The circuit was small, the constraints were clean, and the verifier contract had the standard structure: three group elements, a pairing check, a public-input vector fed into a challenge derivation.

I found a soundness error in the challenge generation phase. The challenge was derived by hashing the proof elements and a subset of the public inputs, but not all of them — a construction that lands in the family of weak Fiat–Shamir instantiations that produced the Frozen Heart findings in 2022. With a challenge that does not bind every public input, a prover gains degrees of freedom: it can hold the proof fixed and vary the unbound inputs, producing distinct statements that verify against the same transcript.

Under specific timing conditions, that degrees-of-freedom translated into duplicate spending. I wrote the proof of concept, submitted it, and was told the fix would land after the production deployment, because the deployment date was fixed and the flaw required conditions the team considered unlikely.

The conditions were not unlikely. They were unspecified. That is a different thing. A flaw whose preconditions are "specific timing conditions" is a flaw whose preconditions nobody has enumerated, which is where the empty-payload problem reappears one layer down: the risk register had a field for likelihood, and the field was filled in with a qualitative claim rather than a probability, and a qualitative claim about an unenumerated precondition is indistinguishable from an empty field.

The fix landed before deployment. I have no interest in being congratulated for that; the interesting part is that the mechanism of persuasion was not a severity rating but a reproduction script. I showed them a transcript. The transcript was wrong in a way the verifier had approved.

// audit note 03: verification is not proof of validity. Verification is a function that returns true or false, and a function that returns true on a transcript that should not exist has told you nothing about the transcript.

The cost asymmetry nobody prices

The reason ZK verification gets under-audited relative to proving is economic. Verification is a fixed cost: a handful of pairings, constant time, cheap. Proving scales with circuit size and is expensive in a way that compounds. A ZK rollup operator pays the prover on every batch. Post-Dencun, blob data made calldata cheap, which reduced one line item and left the largest one untouched.

If-then: if proving cost per transaction exceeds the fee the rollup collects per transaction, the operator is running a subsidy, and subsidies are governed by treasury duration, not by engineering. I have watched three teams in this cycle model proving costs against gas prices that have not existed since 2024. They are not lying in their decks. They are running a simulation with the wrong input, and the input is not marked as wrong because the schema had no field for it.

The same asymmetry determines where security attention goes. Provers are expensive, so teams tune them. Verifiers are cheap, so teams ship them. The bug lives in the cheap component because the expensive component attracted the budget. This is a general pattern and it is worth internalizing: security investment tracks cost, and attack surfaces do not.

The economics of not noticing

In 2026 I dissected a layer-2 design that monetized AI compute. The pitch was that inference is a commodity, and the token would coordinate supply. The emission schedule rewarded nodes on a measure of compute contributed.

Read that sentence again. Compute contributed. Not output quality. Not verified correctness. The emission function's domain was a scalar, and the scalar was self-reported.

The consequence is mechanical. Let a Sybil node cost C to stand up using cheap shared inference. Let the reward per active node be R. If R > C, entry is profitable, and entry continues until R falls to C. Nothing in the loop measures whether the node's outputs were correct, because correctness was never a term in the emission function. At equilibrium the network is populated by minimum-cost nodes producing output of minimum quality, and the token supply has expanded to pay for it.

I published a model showing hyperinflation inside six months. Six months later the supply was not hyperinflated, because governance changed the parameters. I was wrong, and the way I was wrong is instructive. I had modeled the emission function correctly and the human intervention function not at all. Static analysis of a system with a governance override is a partial derivative presented as a total one.

But the fixable error was smaller and more embarrassing. My model consumed a quality input. The protocol did not. I had assumed a field existed because the architecture diagram had a box labeled "verification layer." The box was decorative. Same schema drift, my side of the wire.

Schema drift in the data layer

Take this out of cryptography and put it in the boring place: indexers.

A subgraph or an indexer or a dashboard is a two-stage pipeline with a schema in the middle. An upstream event is decoded into a struct, the struct is persisted, a query reads it, a chart renders it. Every step assumes the previous step's fields are populated. When a contract upgrade changes an event signature, or a reorg invalidates a block, or a provider rate-limits a backfill, the pipeline does not crash. It emits a row with a default. The default renders as zero on the dashboard. The analyst reads zero and concludes "activity collapsed."

I have watched a team make a treasury decision on a chart whose zero-line was a failed backfill.

Cross-chain messages make this worse because the failure granularity is coarser. A Dencun-era rollup bridge can move a message between L2s for a cost that is now genuinely small, and yet the user experience remains measurably worse than withdrawing through a centralized exchange — not because the transfer is slow, but because the failure is silent. A CEX tells you a withdrawal failed. A bridge tells you a receipt is pending, and "pending" and "that message was never produced because the source chain reorged and the relayer skipped the batch" have the same visual representation in every block explorer I have used. The cheap path is the one where absence is invisible.

The contrarian read: you are solving the wrong axis

The reflexive answer to everything above is more validation. More agents, more auditors, more redundancy, more quorum. All of that operates on the axis of value correctness. The failures I have described are not value failures. They are failures of presence.

A validator can reject a wrong price. A validator cannot reject a missing price, because the caller already dereferenced it. You cannot validate an absence that has been coerced into a zero. By the time the validators run, the information that something was missing has been destroyed, and destroyed information is not recoverable by adding more consumers of the destroyed signal.

The correct axis is tri-state semantics: every datum should carry VALID(value), INVALID(reason), or UNKNOWN. Solidity does not have a null, so the industry's default is to make 0 do double duty. The fix is to stop using scalars as the interface and use a struct with an explicit discriminant:

struct Feed {
    uint8 status;   // 0 = unset, 1 = valid, 2 = stale
    int256 value;
    uint64 observedAt;
}

function read() internal view returns (Feed memory) { ... }

function requireValid(Feed memory f) internal view returns (int256) { require(f.status == 1, "feed not valid"); require(block.timestamp - f.observedAt <= MAX_AGE, "feed stale"); return f.value; } ```

This is unglamorous and it is the whole fix. Circuit breakers, pausability, explicit unknown states, and — most importantly — making the unknown state loud. A system that halts on unknown is strictly safer than a system that proceeds on zero, and the entire industry has chosen the second because halting is embarrassing and proceeding is revenue.

Here is the part that will irritate people. Much of the current "data availability" debate is a cost argument dressed as a security argument. Blobspace got cheap, so more data got posted, so the discourse declares availability solved. But availability was never the same property as semantic completeness. Cheap data does not tell you whether the data that arrived is the data you needed. Dencun made cross-rollup transfer cheaper and did nothing about the fact that a missing message and a zero-valued message are byte-identical to the receiving contract. We optimized the price of shipping bytes and left the meaning of an empty byte to the integrator.

And the audit culture reinforces it. I have read reports that were forty pages of narrative and zero pages of schema. Findings get priced by severity label, and severity labels get assigned by people reading code paths that execute. Nobody writes a finding titled "this field may be empty and the consumer does not check." It reads as pedantry. It is, in aggregate, the most expensive pedantry in the industry.

// audit note 04: the regulatory version of this is already here. Licensing regimes competing for the same capital impose reporting schemas, and those schemas have nullable fields, and the firms that clear them fastest are the ones that can document absence rather than assert presence. That is a data-engineering advantage wearing a compliance costume.

The takeaway I would bet on

Within the next eighteen months, "null feed" becomes a named exploit class. The first incident that puts it on the map will not be a price oracle — those are now checked, if only because the checks are copy-pasteable. It will be a feed where a zero is operationally meaningful and a missing value is indistinguishable from it: a slashing condition that reads a zero and slashes nothing, a restaking reward calculation that reads a zero and pays nothing, an AI-mediated data feed that reads a zero and posts it with maximum confidence because all its agents agreed.

The exploit will be quiet for weeks. It will look like reduced activity. Somebody will notice that a graph went flat, and the graph will have been flat because the pipeline succeeded over an empty array.

So the question I would put to any team shipping an oracle, a bridge, an indexer, or an agent pipeline this quarter is not "is your data correct." It is narrower, and it cannot be answered by adding validators: when your system receives nothing, does it know that it received nothing, or does it know that it received zero? If those two answers are the same in your codebase, you have not built a data pipeline. You have built a machine that converts silence into confident output, and it is already running.