<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Eric Warma</title>
    <description>The latest articles on DEV Community by Eric Warma (@ibonon).</description>
    <link>https://dev.to/ibonon</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3960636%2F87dfd173-158f-4765-860b-c24b1acf1162.png</url>
      <title>DEV Community: Eric Warma</title>
      <link>https://dev.to/ibonon</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/ibonon"/>
    <language>en</language>
    <item>
      <title>I Built a Vision AI That Blocks Blockchain Attacks Invisible to Text-Based Systems — From Ouagadougou, Burkina Faso</title>
      <dc:creator>Eric Warma</dc:creator>
      <pubDate>Sun, 31 May 2026 02:03:03 +0000</pubDate>
      <link>https://dev.to/ibonon/i-built-a-vision-ai-that-blocks-blockchain-attacks-invisible-to-text-based-systems-from-50b3</link>
      <guid>https://dev.to/ibonon/i-built-a-vision-ai-that-blocks-blockchain-attacks-invisible-to-text-based-systems-from-50b3</guid>
      <description>&lt;p&gt;I Built a Vision AI That Blocks Blockchain Attacks Invisible to Every Text-Based Security System — From Ouagadougou, Burkina Faso&lt;br&gt;
How a fine-tuned Vision-Language Model on AMD MI300X detected a Drain Star attack that scored 0.42 on every existing system — and blocked it in 48ms.&lt;br&gt;
The Attack That Slipped Through Everything&lt;br&gt;
It was 14:32:01 UTC. Nine wallets simultaneously initiated transfers toward a single hub address. Each transfer: $0.48 USDC. Each one, individually, looked completely normal.&lt;br&gt;
The receiving hub had no prior negative reputation. The sending wallets had clean histories. The transaction amounts were below average for each sender. Frequency was moderate. No single transaction triggered any rule.&lt;br&gt;
Every existing text-based security system would have scored this as R = 0.42 — ambiguous, borderline. In the best case: escalated to human review. In the worst case: allowed through.&lt;br&gt;
$4.32 USDC drained. Nine victims. Zero alerts.&lt;br&gt;
This is a Drain Star attack — and it's completely invisible to text-based analysis.&lt;br&gt;
Until now.&lt;br&gt;
The Problem Nobody Is Solving&lt;br&gt;
I've been building blockchain security infrastructure for the past 6 months. What I kept running into was a fundamental gap that nobody in the ecosystem had properly addressed.&lt;br&gt;
Traditional security systems — both rule-based and ML-based — analyze transactions one at a time. They look at:&lt;br&gt;
Amount (normal? abnormal?)&lt;br&gt;
Frequency (too fast?)&lt;br&gt;
Destination (known bad actor?)&lt;br&gt;
Smart contract (audited?)&lt;br&gt;
This works fine for simple attacks. But coordinated attacks don't look dangerous at the individual transaction level. The attack signature is topological — it exists in the relationship between transactions, not in any single one.&lt;br&gt;
A Drain Star attack with 9 wallets sending $0.48 each is:&lt;br&gt;
9 normal-looking amounts ✓&lt;br&gt;
9 normal frequencies ✓&lt;br&gt;
9 transactions to the same destination (suspicious? maybe)&lt;br&gt;
1 hub address with no prior bad history ✓&lt;br&gt;
Text-based score: R = 0.42. ESCALATE. Maybe a human catches it. Maybe not.&lt;br&gt;
The Insight That Changed Everything&lt;br&gt;
Here's what I realized: these attacks are visually obvious.&lt;br&gt;
When you render the transaction subgraph as an image — wallets as nodes, transfers as directed edges — a Drain Star looks exactly like a star. Nine spokes pointing to one hub. Red hub node (high degree centrality). Purple edges (USDC transfers).&lt;br&gt;
A human security analyst looking at this graph for 3 seconds would immediately say: "That's a drain star. Block it."&lt;br&gt;
So the question became: can a Vision-Language Model do the same thing in 48 milliseconds?&lt;br&gt;
The answer is yes. But you have to train it first.&lt;br&gt;
Building the Dataset: 1 Million Transaction Graphs&lt;br&gt;
I couldn't fine-tune a VLM on generic data. The model needed to see real blockchain attack topologies, thousands of times, until it learned to recognize them instantly.&lt;br&gt;
So I built Sigui-DePIN-1M: 1,000,000 annotated blockchain transaction graph images derived from 1.87 million real on-chain transactions from Ethereum, Arbitrum, and Polygon.&lt;br&gt;
The construction pipeline:&lt;br&gt;
Step 1 — Data collection&lt;br&gt;
Raw transaction subgraphs extracted via archive node queries. For each seed transaction: depth-2 ego-network spanning a 10-block window.&lt;br&gt;
Step 2 — Visualization&lt;br&gt;
Each subgraph rendered as a 672×672 PNG using NetworkX and Matplotlib:&lt;br&gt;
Background: #0d0f2b (deep indigo)&lt;br&gt;
Hub nodes (degree &amp;gt; 3): Red&lt;br&gt;
Leaf nodes: Green&lt;br&gt;
USDC transfer edges: Purple (width proportional to amount)&lt;br&gt;
4 layout algorithms in rotation to prevent overfitting&lt;br&gt;
Step 3 — Labeling&lt;br&gt;
Four classes with graph-theoretic criteria:&lt;br&gt;
Code&lt;br&gt;
Inter-rater agreement (Cohen's κ = 0.91) validated by manual review of 10,000 samples.&lt;br&gt;
Result: 11.1GB of the most specialized blockchain security dataset in existence.&lt;br&gt;
📊 Dataset: huggingface.co/datasets/Ibonon/sigui-depin-1m&lt;br&gt;
Fine-Tuning Imina-Na on AMD MI300X&lt;br&gt;
I named the model Imina Na — the Grand Mask of the Awa society in Dogon cosmology. The most sacred layer.&lt;br&gt;
Base model: Qwen2-VL-2B-Instruct. Fine-tuning method: LoRA (r=16, α=32) targeting the attention projections. Hardware: AMD Instinct MI300X (192GB HBM3) via AMD Developer Cloud.&lt;br&gt;
Code&lt;br&gt;
The results:&lt;br&gt;
Metric&lt;br&gt;
Base Qwen2-VL&lt;br&gt;
Imina-Na V2 (fine-tuned)&lt;br&gt;
Overall F1&lt;br&gt;
88.1%&lt;br&gt;
92.9%&lt;br&gt;
Drain Star recall&lt;br&gt;
82.3%&lt;br&gt;
95.2%&lt;br&gt;
False positives&lt;br&gt;
12.0%&lt;br&gt;
3.1%&lt;br&gt;
Inference latency&lt;br&gt;
48ms&lt;br&gt;
48ms (unchanged)&lt;br&gt;
The fine-tuning added 4.8 F1 points and cut the false positive rate by 75%. Same latency. No tradeoffs.&lt;br&gt;
🤖 Model: huggingface.co/Ibonon/imina_na_v2_lora&lt;br&gt;
The Full Pipeline: Sigui Protocol&lt;br&gt;
Imina Na is Layer 5 of a 5-layer security oracle I call Sigui Protocol — named after the Dogon ceremony of cosmic renewal that happens every 60 years.&lt;br&gt;
Code&lt;br&gt;
The risk formula:&lt;br&gt;
Python&lt;br&gt;
Back to the Attack: What Actually Happened&lt;br&gt;
Let me finish the story from the beginning.&lt;br&gt;
The attack:&lt;br&gt;
9 coordinated wallets → 1 hub&lt;br&gt;
Each transfer: $0.48 USDC&lt;br&gt;
All wallets: clean history&lt;br&gt;
Hub: no prior bad reputation&lt;br&gt;
Text-only pipeline (Layers 1-4):&lt;br&gt;
Code&lt;br&gt;
The attack would have been escalated to human review. Maybe blocked. Maybe not. Depends on whether a human was watching at 14:32:01 UTC.&lt;br&gt;
With Imina Na (Layer 5):&lt;br&gt;
The transaction subgraph is rendered in 3ms. Nine inbound edges converging on a single red hub node. The topology is immediately recognizable.&lt;br&gt;
Imina Na's response:&lt;br&gt;
Json&lt;br&gt;
Final score:&lt;br&gt;
Code&lt;br&gt;
Decision time: 48ms total.&lt;br&gt;
The attack was blocked. Nine wallets protected.&lt;br&gt;
The attack was invisible to text. Imina Na saw it.&lt;br&gt;
ERC-8259: Standardizing Agent Trust&lt;br&gt;
Building Sigui made me realize there's a deeper problem: there's no standard for AI agent identity and reputation on Ethereum.&lt;br&gt;
When an agent makes a transaction, there's no way for a smart contract to:&lt;br&gt;
Verify which AI model is operating the wallet&lt;br&gt;
Query a behavioral trust score&lt;br&gt;
Receive standardized threat signals from security oracles&lt;br&gt;
I submitted ERC-8259 to Ethereum Magicians to address this. It proposes three interfaces:&lt;br&gt;
Solidity&lt;br&gt;
The standard received substantive feedback from Pablo at AHM, who operates behavioral reputation for ~20,000 agent wallets on Base mainnet. Their operational insight about confidence-aware reputation (observation density ≠ score) is now incorporated into the spec.&lt;br&gt;
💬 Discussion: ethereum-magicians.org/t/erc-8259&lt;br&gt;
Using Sigui in Your Agent (3 Lines of Code)&lt;br&gt;
The whole system is available as an open-source Python SDK:&lt;br&gt;
Bash&lt;br&gt;
Python&lt;br&gt;
For LangChain agents:&lt;br&gt;
Python&lt;br&gt;
For OpenClaw agents:&lt;br&gt;
Bash&lt;br&gt;
The skill returns deterministic verdicts (ALLOW / BLOCK / ESCALATE) with exit codes for programmatic handling. Starknet, Aptos, and Ethereum are supported natively.&lt;br&gt;
🔧 OpenClaw Skill: clawhub.ai/ibonon/sigui-security&lt;br&gt;
The Numbers So Far&lt;br&gt;
Built solo, from Ouagadougou, Burkina Faso:&lt;br&gt;
380+ attacks blocked and permanently recorded on Arc L1 testnet&lt;br&gt;
1,000,000 transaction graphs in the open-source dataset&lt;br&gt;
273 PyPI downloads in the first month (sigui-sdk)&lt;br&gt;
115 OpenClaw skill installs in 4 days&lt;br&gt;
133 dataset downloads on HuggingFace&lt;br&gt;
Starknet Foundation Grant: passed pre-screening, in deep technical screening&lt;br&gt;
ERC-8259: under active community review on Ethereum Magicians&lt;br&gt;
What's Next: Trustformer&lt;br&gt;
The 48ms latency of Imina Na comes largely from the graph-rendering pipeline (~28ms of overhead). The model inference itself is only ~20ms.&lt;br&gt;
I'm proposing Trustformer (T-GAT) — a native Spatio-Temporal Graph Attention Transformer that eliminates the rendering step entirely. Instead of converting transactions to images, it processes them as raw token sequences with a novel Dual Flow-Reputation Attention mechanism:&lt;br&gt;
Python&lt;br&gt;
Projected latency: &amp;lt; 5ms. Same F1. No rendering overhead.&lt;br&gt;
Preprint: drive.google.com/file/d/1t9CklAUMLQ9wZgcqLrrvMtTYSGOYYos_&lt;br&gt;
(I'm currently seeking an arXiv endorser for cs.CR or cs.AI — endorsement code P4EHO3 at arxiv.org/auth/endorse. If you hold endorser status and find this work valuable, I'd be honored by your support.)&lt;br&gt;
Open Source, All of It&lt;br&gt;
Everything is MIT-licensed and available today:&lt;br&gt;
Resource&lt;br&gt;
Link&lt;br&gt;
🐙 GitHub&lt;br&gt;
github.com/ibonon/Sigui&lt;br&gt;
📦 SDK (PyPI)&lt;br&gt;
pypi.org/project/sigui-sdk&lt;br&gt;
🧠 Model V2&lt;br&gt;
huggingface.co/Ibonon/imina_na_v2_lora&lt;br&gt;
📊 Dataset&lt;br&gt;
huggingface.co/datasets/Ibonon/sigui-depin-1m&lt;br&gt;
🔧 OpenClaw Skill&lt;br&gt;
clawhub.ai/ibonon/sigui-security&lt;br&gt;
💬 ERC-8259&lt;br&gt;
ethereum-magicians.org/t/erc-8259&lt;br&gt;
📄 Preprint&lt;br&gt;
Trustformer Architecture&lt;br&gt;
The Bigger Picture&lt;br&gt;
As AI agents become autonomous economic actors — managing wallets, executing DeFi strategies, interacting with smart contracts without human oversight — the security infrastructure protecting them was not designed for this world.&lt;br&gt;
Traditional systems analyze transactions one at a time. Attackers coordinate across transactions. The gap is structural, not incremental.&lt;br&gt;
Visual topology analysis is not the only answer. But it's a layer that was missing, and Sigui is the first system to operationalize it at production latency on real blockchain data.&lt;br&gt;
If you're building AI agents that interact with blockchain infrastructure, I'd love to hear about your security challenges. Drop a comment or reach me on GitHub.&lt;br&gt;
— Eric Warma · Independent Researcher · Ouagadougou, Burkina Faso&lt;br&gt;
Tags: #blockchain #ai #security #machinelearning #python #web3 #opensource #defi&lt;/p&gt;

</description>
      <category>blockchain</category>
      <category>ai</category>
      <category>python</category>
      <category>security</category>
    </item>
  </channel>
</rss>
