<?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 Obelisk on Medium]]></title>
        <description><![CDATA[Stories by Obelisk on Medium]]></description>
        <link>https://medium.com/@obelisk?source=rss-6ca6dd054c81------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*WeWPSlAaTXNtMLEgqXQy0g.jpeg</url>
            <title>Stories by Obelisk on Medium</title>
            <link>https://medium.com/@obelisk?source=rss-6ca6dd054c81------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 11:22:38 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@obelisk/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[DeFi’s Boom and the Importance of Smart Contract Audits]]></title>
            <link>https://obelisk.medium.com/defis-boom-and-the-importance-of-smart-contract-audits-4ec373eaaf82?source=rss-6ca6dd054c81------2</link>
            <guid isPermaLink="false">https://medium.com/p/4ec373eaaf82</guid>
            <category><![CDATA[security]]></category>
            <category><![CDATA[crypto]]></category>
            <category><![CDATA[defi]]></category>
            <category><![CDATA[bsc]]></category>
            <category><![CDATA[binance]]></category>
            <dc:creator><![CDATA[Obelisk]]></dc:creator>
            <pubDate>Sun, 20 Jun 2021 04:49:06 GMT</pubDate>
            <atom:updated>2021-06-20T04:49:06.956Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ijaErHUg-xEHhumNu8S9iQ.png" /></figure><p>It’s often joked about that the cryptocurrency ecosystem is the Wild West of investments and finance. And there is no denying that there are many shady corners in this now rapidly developing market. Decentralized Finance is of course no exception to all of this. While certainly revolutionary and groundbreaking, the DeFi space certainly packs a lot of punch behind all the praise it might be receiving.</p><h3>What’s All the Fuss About?</h3><p>Smart contracts on the blockchain allow currency competition to flourish under the standards of decentralization, trustlessness and immutability. And with the ability to have tokens and decentralized Apps under the same ecosystem, anyone can transfer value from one dApp to another in mere seconds. This innovation initially brought forth by Ethereum has now transmuted to several so-called “EVM compatible” blockchains. Including but not limited to theBinance Smart Chain, Fantom Opera, Polygon, AVAX and HECO with even more coming.</p><p>With all these DeFi enabled blockchains coming out, so do new opportunities. Developers rush to push their projects to production and latch on to the latest trends, new services pop out left and right and interoperability also increases. It’s indeed becoming increasingly easier to move value between different blockchains as more and more cross-chain bridge services come out.</p><p>We’re now reaching a point where ever-increasing monetary value keeps being injected into DeFi on the daily. And with all the unique opportunities, it’s no wonder users are rushing to take advantage of the space’s boom by investing early, looking to earn through the various dApps of up and coming projects. All while developers also do their best to catch up with innovations between blockchains and compete with each other’s innovations.</p><p>As of now, even the most established use cases of DeFi such as yield optimizers, decentralized Automated Market Maker exchanges and collateralized loan platforms are getting new twists on their tokenomics by new developers that come up with competing platforms. But while ease of use and the allure of high profits can appear attractive, the rush to innovate can lead to many mishaps.</p><h3>Preventable Disasters</h3><p>Sadly, investments in DeFi and activities such as yield farming have come to be considered quite risky. Especially given all the very recent exploits that raked in tens of millions for malicious parties attacking DeFi projects, it’s no wonder that investors and newcomers in crypto might be wary of putting money in new projects of the space. Indeed, aside from all the potential for innovation that comes with DeFi, smart contracts also leave the door open to a near-infinite amount of bad outcomes if best practices aren’t followed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/554/0*OauXWVGlaDXa4BAf" /><figcaption>Top exploits by monetary value as ranked by rekt.news.</figcaption></figure><p>Notice how all of the top DeFi exploits that lead to user funds being stolen happened in the span of the last few months; with some of the biggest ones taking place this year alone. <a href="https://obelisk.medium.com/meerkat-finance-and-the-0-that-was-worth-31m-769d9321d245">We’ve also written about how easy it would have been to catch out and prevent certain exploits like with Meerkat Finance (where a single variable name lead to the theft of $31m in value stolen) in our blog</a>.</p><h3>The Importance of Smart Contract Audits</h3><p>Αmid all the hype and marketing designed to lead people to develop “fear of missing out”, the merits by which a project should be judged by might not be distinctively clear to most yet. It might look easy to earn money by participating in this emerging “blockchain revolution” and the projects that arise out of it, but undeniably, inexperienced users might have very little defense against potential scams.</p><p>Things shouldn’t be like that though! Smart contracts allow for dApps to be completely trustless and immutable. Meaning that attack vectors can be entirely done away with by following good practices. In short, if a smart contract is written well, anyone using it wouldn’t need to trust its developer, as the code would run in a decentralized manner where the devs couldn’t affect it in any way with the smart contract only being able to do what it’s supposed to.</p><p>While it’s already fairly easy for individuals to put funds into DeFi, most potential investors are right to be wary about where they put their money. This is a barrier each developer needs to overcome after all the incidents in the space. It’s become known by now that with smart contracts even simple oversights by developers can lead to big losses. Proving a smart contract’s security is no easy task for sure, but it’s certainly possible with the right expertise. And that’s precisely where an external audit could be very useful.</p><h3>With DeFi, It’s Different</h3><p>External audits are not a new concept. Manufacturers get inspections from authorities to guarantee everyone’s safety is taken into account, financial firms are audited by certified accountants to prove their assets and so on… Oftentimes also firms hire external auditors on their own accord simply to make sure their internal auditors didn’t miss anything critical. With code especially, there’s a lot of value in having some external organization look at how your application functions and point out potential inconsistencies that might have been missed; something that applies doubly when handling other people’s money.</p><p>The core difference between audits for DeFi and centralized processes however is that with DeFi, you wouldn’t be getting an audit solely so you can be trusted. Instead, you’d be getting an audit in order to prove your code (which will be running independently on the blockchain) is trustless and immutable. Therefore, even if you as the developer of a project had turned rogue, the damage you could inflict on users could potentially be very limited to non-existent.</p><h3>Smart Contract Audits as an Industry Standard</h3><p>Smart contract audits should be something users demand before investing and something developers seek out when releasing their projects. It’s a small initial investment by developers, but the findings of an audit can prove to be of immense value. Addressing potential vulnerabilities and ensuring security before any damage can be caused is something that could have saved many projects from going bust. Even for the industry as a whole, if extensive auditing is to become a standard, DeFi investments would look more sustainable and everyone in the space would benefit from the increased security and growth.</p><h3>What Obelisk Can Do for You</h3><p>At Obelisk our expertise lies in auditing smart contacts, development and security. We strongly believe that the foundation of building successful projects in the Decentralized Finance space is good security and we always strive to help our partners succeed and realize their ambitions through our auditing services. If you are an investor looking to safely delve in a DeFi project, a developer seeking to launch a new blockchain project or perhaps an already established project looking to improve security, transparency and gain the community’s trust then we would love to hear from you. Get in touch about your audit now through the channels below:</p><ul><li>Twitter: <a href="https://twitter.com/ObeliskOrg">https://twitter.com/ObeliskOrg</a></li><li>Telegram: <a href="https://t.me/ObeliskOrg">https://t.me/ObeliskOrg</a></li><li>Website: <a href="https://obeliskauditing.com/">https://obeliskauditing.com</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4ec373eaaf82" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Can You Trust Safemoon?]]></title>
            <link>https://obelisk.medium.com/can-you-trust-safemoon-bf2b2db76d16?source=rss-6ca6dd054c81------2</link>
            <guid isPermaLink="false">https://medium.com/p/bf2b2db76d16</guid>
            <category><![CDATA[safemoon]]></category>
            <category><![CDATA[defi]]></category>
            <category><![CDATA[smart-contracts]]></category>
            <category><![CDATA[bsc]]></category>
            <category><![CDATA[security]]></category>
            <dc:creator><![CDATA[Obelisk]]></dc:creator>
            <pubDate>Wed, 21 Apr 2021 20:51:06 GMT</pubDate>
            <atom:updated>2021-06-15T02:58:09.138Z</atom:updated>
            <content:encoded><![CDATA[<h3>Can You Trust SafeMoon?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/1*XzCCev6oiZizYnVG1CxXLg.jpeg" /></figure><p>There’s no denying that the cryptocurrency space has been booming as a whole. And more recently, Decentralized Finance keeps stealing the spotlight. All metrics indicate that DeFi keeps growing at an ever-increasing pace through the last few months. More and more capital keeps flowing towards decentralized apps and the usage keeps increasing.</p><p>Binance Smart Chain sits at the center of this spotlight, boasting ever-increasing numbers of transactions and record-breaking value being transacted inside its system; now being among the first DeFi supporting blockchains. And developers have been losing no time seizing the opportunity to jump into this seemingly booming ecosystem. Plenty of new projects are released daily and many of them are met with sudden and meteoric success.</p><h3>Great Success, but What About Due Dilligence?</h3><p>Recently many launched projects have encountered wild success partly thanks due to marketing and social media, especially TikTok and Twitter. Clearly, the success of a project can correlate a lot with how much of a reach the token name achieves on those social media, which leads to projects owner putting more effort into marketing than they do in having high quality and safe smart contracts.</p><p>Fear of missing out under this pretense can be high for anyone seeking to invest in new projects of the space. The potential for quick profits some projects have shown for early investors can indeed seem very attractive, but with great potential also comes great risk. And in fact, many will jump onto new projects without having managed to do proper due diligence, hoping to be that one early investor that ends up profiting a lot by investing in early. But there actually are plenty of tricks developers of a project could pull off to cheat their users.</p><h3>The Case of SafeMoon</h3><p>One of these successful tokens that might have started as a joke was SafeMoon. The concept was a simple spin-off of the so-called “reflect token” system. Basically implying that part of all tokens in each transaction would be “reflected”, meaning that every user balance is calculated from the smart contract logic instead of being a simple counter. In practice, that means that when a transaction happens, a reflect tax is applied on it and the holder balances then increase accordingly.</p><p>SafeMoon’s difference was that on top of the “reflected” tokens, another fee would be applied on each transaction and would go towards providing liquidity in PancakeSwap. It is however worth pointing out that this wasn’t a unique feature, as it was also previously seen in existing projects on Ethereum. It’s worth pointing out that after SafeMoon’s release in a presale, the token’s price has kept increasing at an impressive rate.</p><h3>SafeMoon, Maybe Not so ‘Safe’ After All…</h3><p>When SafeMoon launched, not much was revealed about the technical details in terms of how it was going to achieve what it promised. And in fact, one could say that a lot of the early marketing for the token was even misleading. SafeMoon was advertised as “anti-rugpull” and as having its liquidity locked for 4 years… And to this day the website of the project remains very ambiguous as to how the locks and burns happen. In this post we’ll look into how true the project’s claims are.</p><p>With the massive market capitalization that SafeMoon has amassed, the reflected fees that ended up being added in liquidity have also come to be worth a lot. One of the main issues with the whole project is that while users are lead to believe that the Liquidity Provider tokens (essentially the receipt for having provided liquidity) are in fact locked and inaccessible from the founders, the exact opposite happens.</p><h3>The Many Red Flags in SafeMoon’s Code</h3><p>Let’s take a deeper dive at the code and dig into how SafeMoon actually works.</p><p>In simple terms, the wallet at which all the fees for providing liquidity are directed to is an “Externally Owned Address”, basically an address which belongs to the project’s <a href="https://bscscan.com/address/0x79c4af7c43f500b9ccba9396d079cc03dfcafda1">developer</a>. You can check that address for yourself by looking at the <a href="https://bscscan.com/address/0x8076c74c5e3f5852037f31ff0093eeb8c8add8d3#readContract">SafeMoon token contract</a> to notice the owner value.</p><p>The logic of the code behind that contract is programmed to do the following:</p><ol><li>On every transfer, tax n% and send the SafeMoon token to the SafeMoon contract balance.</li><li>On every transfer, check if the contract balance is above a threshold.</li><li>If that threshold is met, market sell half the contract balance into BNB using the PancakeSwap router.</li><li>Add BNB + SafeMoon liquidity to the PancakeSwap router, using the owner address.</li></ol><p>That means that the liquidity tax gets directly transformed into LP tokens that are added to the dev wallet.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/46f2a9552a517b0cf63ad9a3b839d82f/href">https://medium.com/media/46f2a9552a517b0cf63ad9a3b839d82f/href</a></iframe><p><em>The above function does the market sell of half the contract SafeMoon balance.</em></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/aecfbee655880db8c54173df4a57128c/href">https://medium.com/media/aecfbee655880db8c54173df4a57128c/href</a></iframe><p><em>The above function adds the LP tokens to the owner wallet.</em></p><p>So what’s currently happening is that the address getting the fees could do anything it wanted at any time with the tokens it receives. The owner <a href="https://bscscan.com/address/0x79c4af7c43f500b9ccba9396d079cc03dfcafda1">LP tokens balance</a> will keep increasing and they have total control over it.</p><p>This had lead up to the owner raising up to 53% of all LP tokens. Smart contracts are immutable so SafeMoon owner will permanently receive all of the liquidity fees from <a href="https://bscscan.com/address/0x8076c74c5e3f5852037f31ff0093eeb8c8add8d3#readContract">SafeMoon’s smart contract</a>.</p><p>To mitigate risks, SafeMoon ownership could be transferred to a smart contract that could be programmed to handle funds securely only using predefined functions. This would be a particularly important factor in terms of security and trustlessness.</p><p>But this is not the only worrying part of SafeMoon’s smart contract. The smart contract’s owner also has total control over the percentage amount of fees that are part of each transaction, and could set them to <strong>any number</strong>. Which means that they could set the fees they receive themselves for adding LP to 100% any time they please to do so, which would allow them to cheat users out of the entire amount they try to send when trying to transact.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/a37187dcaeb99c77f23c70d59de9b635/href">https://medium.com/media/a37187dcaeb99c77f23c70d59de9b635/href</a></iframe><p><em>These two function have no conditional to enforce a specific threshold</em></p><p>Additionally, the deployer by default is excluded from the transaction fees:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/3e06c197d0d6f349df768d348aeda779/href">https://medium.com/media/3e06c197d0d6f349df768d348aeda779/href</a></iframe><p><em>The constructor excludes the deployer address from the fees</em></p><p>Which anyone could easily verify on BscScan:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/388/0*dtvGtO5z9RvWvUle" /></figure><p><strong>Edit</strong>: <em>Note that while the deployer isn’t the current owner, it is still an EOA under the control of the development team.</em></p><p>And of course the owner can add and remove anyone to the fees whitelist using the following functions:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/9027e8240d00d5027718e311c16a5b72/href">https://medium.com/media/9027e8240d00d5027718e311c16a5b72/href</a></iframe><p>And last but not least, the contract owner can also outright block all transactions, by setting this value to 0:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/598b875ee8f04439be4b4d7b6c262e90/href">https://medium.com/media/598b875ee8f04439be4b4d7b6c262e90/href</a></iframe><p>The owner is immune to the above limit though:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/800864ed46dd3c7f6558099e018a3684/href">https://medium.com/media/800864ed46dd3c7f6558099e018a3684/href</a></iframe><p>At the time of our investigation, the owner’s wallet was shown to hold more than 50% of the total liquidity (since then the owner LP was transferred to a UniswapLocker contract until 2025).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*tF5BZovrlbBkPvQr" /></figure><p>This is particularly worrisome as the developers could essentially pull out the liquidity and market sell against any other liquidity provider with the coins that they had received from reflection fees from users. This is the perfect conditions to pull the rug under the users feet.</p><p>Even more so, the functions that would allow the token contract’s owner to completely halt transactions and up fees to 100% for anyone else could be the perfect setup for pulling an exit scam, preventing everyone else from selling while grabbing anything that gets transacted.</p><p>Finally, the liquidity continues being added to the developer’s wallet directly, whereas they could have directed the LP fees to a smart contract that would handle this process trustlessly, or at the very least a timelock contract.</p><h3>Worst Case Scenario</h3><p>In this scenario, the owner would wait until he owns a substantial amount of the LP tokens.</p><p>1. Owner changes the reflect fees to 0%.</p><ul><li>This means that the reflect tax is no longer being applied.</li></ul><p>2. Owner changes the liquidity fees to 100%.</p><ul><li>This means that everyone who’s not whitelisted from fees is now unable to trade SafeMoon. Any transfer of SafeMoon would be sent to the SafeMoon contract balance instead of the recipient, which would then trigger the liquidity logic.</li></ul><p>3. Owner removes his LP, and dumps SafeMoon.</p><ul><li>The holders are now powerless and watch the price go to 0. Trying to sell through PancakeSwap which would now require 100% slippage, and any SafeMoon token transfer is sent to the owner contract.</li></ul><h3>Conclusion</h3><p>While SafeMoon’s team has been very successful at marketing their project, it’s clear that there are many major red flags in the project’s smart contract code. The SafeMoon smart contract leaves users open to being exploited in several different ways by the project’s developers. <br>Investors should be extremely careful of the security risks involved while dealing with un-audited smart contracts.</p><h3>What Obelisk can do for you</h3><p>At Obelisk our expertise lies in smart contract auditing, development and security. We firmly believe that security is the foundation of building successful projects in the Decentralized Finance space and we always strive to help our partners succeed with ambitions through our auditing services. If you are an investor that wants to safely delve in a DeFi project, a developer that is seeking to launch a new blockchain project or perhaps an already established project looking to improve security and transparency and gain user trust then we would love to hear from you. Get in touch about your audit now through the channels below:</p><ul><li>Twitter: <a href="https://twitter.com/ObeliskOrg">https://twitter.com/ObeliskOrg</a></li><li>Telegram: <a href="https://t.me/ObeliskOrg">https://t.me/ObeliskOrg</a></li><li>Website: <a href="https://obeliskauditing.com/">https://obeliskauditing.com/</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bf2b2db76d16" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Compromise of PancakeSwap/Cream Finance: DNS Hijacking and How To Protect Yourself From It]]></title>
            <link>https://obelisk.medium.com/the-compromise-of-pancakeswap-cream-finance-dns-hijacking-and-how-to-protect-yourself-from-it-128d652a32f9?source=rss-6ca6dd054c81------2</link>
            <guid isPermaLink="false">https://medium.com/p/128d652a32f9</guid>
            <category><![CDATA[defi]]></category>
            <category><![CDATA[crypto]]></category>
            <category><![CDATA[network-security]]></category>
            <category><![CDATA[binance-smart-chain]]></category>
            <category><![CDATA[security]]></category>
            <dc:creator><![CDATA[Obelisk]]></dc:creator>
            <pubDate>Fri, 26 Mar 2021 19:15:39 GMT</pubDate>
            <atom:updated>2022-04-28T18:54:42.445Z</atom:updated>
            <content:encoded><![CDATA[<p><a href="https://obeliskauditing.com/blog/articles/dns-hijack">This story has moved to the Obelisk blog</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=128d652a32f9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Meerkat Finance and the 0 that was worth $31m]]></title>
            <link>https://obelisk.medium.com/meerkat-finance-and-the-0-that-was-worth-31m-769d9321d245?source=rss-6ca6dd054c81------2</link>
            <guid isPermaLink="false">https://medium.com/p/769d9321d245</guid>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[cryptocurrency]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[binance-smart-chain]]></category>
            <category><![CDATA[hacking]]></category>
            <dc:creator><![CDATA[Obelisk]]></dc:creator>
            <pubDate>Thu, 04 Mar 2021 22:52:45 GMT</pubDate>
            <atom:updated>2022-04-18T22:17:05.022Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6SdbVUs5-75Nj_78AQO7mg.png" /><figcaption>Meerkat Finance Banner</figcaption></figure><p><a href="https://obeliskauditing.com/blog/articles/meerkat-rug-article">This story has moved to the Obelisk blog.</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=769d9321d245" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>