About
Smart contracts are blind. They can check who is calling and when, but they have zero awareness of context: a wallet's history across protocols, abnormal market conditions, or a slow-drain attack that's only visible once you zoom out. Coding that kind of detection logic into Solidity is slow, rigid, and expensive, and by the time you've upgraded the contract, the attacker has already moved on.
https://pavesini.github.io/pista/
PISTA fixes this by giving smart contracts a brain outside the EVM. It's an off-chain intelligence layer that watches on-chain activity in near real time and fires back on-chain action the moment something looks wrong. A Substream, built with The Graph's substream-devs tooling, streams every block into ClickHouse, an AI/LLM-native database built for real-time analytics and queryable in plain SQL. An AI agent continuously scores that data against adaptive behavioral baselines, and when it flags a deviation, PISTA can react pausing a contract, blacklisting an address, moving or trading funds, freezing a card, or firing an alert, on-chain or off, depending on what the situation calls for.
What sets it apart is that it requires zero integration from protocol teams, since it can monitor contracts it doesn't own or control. Its rules aren't static: they can be changed though time and adapts as conditions shift, so a bull market and a bear market are judged differently. Because it flags deviation from baseline rather than matching known attack signatures, it may flag novel fraud patterns that rule-based systems miss entirely. All the heavy computation happens off-chain, so gas is only ever spent on the final action, and because a single instance can watch multiple contracts and protocols at once, it correlates signals no individual contract could ever see on its own. The response window between detection and action is measured in seconds, not the days or weeks a governance vote would take.
Real-world applications range from AML enforcement for exchanges and MiCA compliance to stopping novel protocol exploits and outsourcing complex, evolving risk logic that would be impractical or impossible to bake directly into a smart contract.
The demo ships with a working end-to-end pipeline: a local Substreams is fed into ClickHouse, alongside a sample pausable contract, and a documented path to run the same stack live against Ethereum Sepolia.
Prizes
- The Graph · Best AI Tooling for The Graph · 1st place
From the public ETHGlobal showcase page. Votes, swipes and the judge score are hackfeed's own.






