<?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: Hasip Timurtas</title>
    <description>The latest articles on DEV Community by Hasip Timurtas (@hasiptimurtas).</description>
    <link>https://dev.to/hasiptimurtas</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F273043%2F59cd4056-e7f0-4d65-8ce0-e5ab7638813a.jpg</url>
      <title>DEV Community: Hasip Timurtas</title>
      <link>https://dev.to/hasiptimurtas</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/hasiptimurtas"/>
    <language>en</language>
    <item>
      <title>Catch Solana smart contract bugs before they hit mainnet - Solsec CLI tool in Rust</title>
      <dc:creator>Hasip Timurtas</dc:creator>
      <pubDate>Wed, 25 Jun 2025 14:02:42 +0000</pubDate>
      <link>https://dev.to/hasiptimurtas/catch-solana-smart-contract-bugs-before-they-hit-mainnet-solsec-cli-tool-in-rust-3931</link>
      <guid>https://dev.to/hasiptimurtas/catch-solana-smart-contract-bugs-before-they-hit-mainnet-solsec-cli-tool-in-rust-3931</guid>
      <description>&lt;p&gt;Hey Solana devs 👋&lt;/p&gt;

&lt;p&gt;I built &lt;a href="https://github.com/hasip-timurtas/solsec" rel="noopener noreferrer"&gt;Solsec&lt;/a&gt;, a Rust-powered CLI that performs &lt;strong&gt;static analysis&lt;/strong&gt; on your Solana smart contracts and catches real vulnerabilities before they hit mainnet.&lt;/p&gt;

&lt;p&gt;This isn't just a basic linter. It runs deep security checks and flags critical issues based on actual exploit patterns.&lt;/p&gt;

&lt;h1&gt;
  
  
  🚨 What it detects:
&lt;/h1&gt;

&lt;ul&gt;
&lt;li&gt;🔴 &lt;strong&gt;Critical&lt;/strong&gt;:

&lt;ul&gt;
&lt;li&gt;Unchecked account access (e.g., unsafe &lt;code&gt;transmute&lt;/code&gt;, raw pointers)&lt;/li&gt;
&lt;li&gt;Privilege escalation (e.g., admin/owner changes without checks)&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;li&gt;🟠 &lt;strong&gt;High&lt;/strong&gt;:

&lt;ul&gt;
&lt;li&gt;Reentrancy issues (CPI followed by state changes)&lt;/li&gt;
&lt;li&gt;Missing signer validations&lt;/li&gt;
&lt;li&gt;PDA validation issues&lt;/li&gt;
&lt;li&gt;Insufficient input validation&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;li&gt;🟡 &lt;strong&gt;Medium&lt;/strong&gt;:

&lt;ul&gt;
&lt;li&gt;Integer overflow&lt;/li&gt;
&lt;li&gt;Unsafe arithmetic (division by zero, unchecked subtraction)&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;li&gt;🔵 &lt;strong&gt;Other checks&lt;/strong&gt;:

&lt;ul&gt;
&lt;li&gt;Lamport manipulation&lt;/li&gt;
&lt;li&gt;Program ID validation&lt;/li&gt;
&lt;li&gt;Missing bump seeds&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;/ul&gt;

&lt;h1&gt;
  
  
  ⚙️ Features:
&lt;/h1&gt;

&lt;ul&gt;
&lt;li&gt;Instant scanning of whole projects&lt;/li&gt;
&lt;li&gt;Smart file system traversal (multi-contract layout supported)&lt;/li&gt;
&lt;li&gt;Clear CLI output with line numbers&lt;/li&gt;
&lt;li&gt;No config required&lt;/li&gt;
&lt;li&gt;CI/CD ready (&lt;code&gt;--fail-on-critical&lt;/code&gt;, &lt;code&gt;--format json/html&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;Built in Rust, open source, fast as hell&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;📦 &lt;a href="https://crates.io/crates/solsec" rel="noopener noreferrer"&gt;crates.io&lt;/a&gt;&lt;br&gt;&lt;br&gt;
🛠 &lt;a href="https://github.com/hasip-timurtas/solsec" rel="noopener noreferrer"&gt;GitHub&lt;/a&gt;&lt;/p&gt;

&lt;h1&gt;
  
  
  Sample output:
&lt;/h1&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;🔍 Running checks…
⚠️ Unchecked unwrap() at programs/myapp/src/lib.rs:42
❌ Missing account validation for ‘ctx.accounts.authority’
⚠️ Potential panic detected in match statement
✅ All other checks passed!
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;If you're building Solana programs especially with Anchor Solsec can save you from hours of painful audits and dangerous bugs.&lt;/p&gt;

&lt;p&gt;Would love your thoughts:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Which rules should I add next?&lt;/li&gt;
&lt;li&gt;Would you use this in your pipeline?&lt;/li&gt;
&lt;li&gt;Got any repos I should test it on?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Let’s make Solana development more secure, together 🛡️&lt;/p&gt;

&lt;p&gt;#Solana #RustLang #BlockchainSecurity #Web3Dev #AnchorLang&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
