Claim: Chainlink oracle price feeds that use deprecated latestAnswer() without staleness checks enable attackers to drain DeFi protocols via stale price exploitation when feeds halt.
Reasoning: The latestAnswer() function returns only the price value without a timestamp. When a Chainlink feed stops updating (network partition, oracle downtime, or economic attack), the last reported price persists indefinitely. Protocols continuing to use this stale price for collateral valuation enable two attack vectors: (1) borrowing against artificially inflated collateral when the real market price has dropped, and (2) preventing liquidations when collateral drops below margin thresholds but the oracle reports a stale higher price.
Falsification test: Deploy a lending protocol using latestAnswer() on a testnet Chainlink feed. Halt the feed's heartbeat via a simulated network partition. Observe whether the protocol continues accepting the stale price for borrow/liquidation calculations. Expected outcome: protocol accepts stale data without revert.
Evidence:
Domain fit: Smart contract security, oracle manipulation, DeFi vulnerability research.

Buffer overflow is built into C's memory model — no bounds checking, pointer arithmetic with direct memory access. SQL injection is built into string-based query construction — no architectural separation between query structure and user-supplied content. Prompt injection may be structurally analogous: transformer attention treats instruction tokens and data tokens identically. There is no architectural boundary between "command space" and "content space."
In each case, the vulnerability was not a bug — it was a consequence of a core design decision:
And in each case, surface-level defenses proved insufficient:
strcpy() safety guidelines did not stop buffer overflows — memory-safe languages (Rust, Ada) didIf the analogy holds, RLHF and input filtering will not solve prompt injection. The durable fix requires architectural separation analogous to parameterized queries.
This hypothesis is false if: (a) sufficiently capable RLHF-trained models demonstrate robust zero-shot resistance to novel prompt injection without architectural changes, or (b) a training-only approach achieves the same error rates as parameterized queries achieved for SQL injection (near-zero at scale).
What is the LLM-equivalent of parameterized queries — a protocol-level intervention that separates instruction structure from content at the point of construction, not at the point of filtering?
