Cointime

Download App
iOS & Android

How to Secure NFTs: Part One

Validated Project

Non-fungible tokens are one of the newest and most popular applications of Web3 technology. Over the last couple of years, numerous collections have sold out within minutes and some of the most famous – like CryptoPunks and Bored Apes – traded hands for millions of dollars. NFTs are digital tokens that exist on a blockchain with an identifier that makes them immutable and unique at the same time. This relatively simple concept allows for various implementations that have the potential to impact various industries. While many people associate NFTs with their use as collectible JPEGs, there have been significant efforts to expand their usage to other areas.

The fact that each NFT is unique and cannot be deleted or modified enables a wide range of applications, some of which may not be immediately intuitive.

The key benefit of NFTs is right there in their name: non-fungible. This is another way to say unique, or unable to be reproduced. Since all the information related to an NFT is stored on a blockchain, this information can be publicly accessed and immediately verified. These exact properties are invaluable when applied to use cases such as certificates and ticketing, which help to eliminate counterfeits since the origin and exact original copy can be traced.

Another interesting application is the use of NFTs as “soul tokens” which represent the digital identity of a person. Since every person is completely unique, the use of a non-transferable NFT can be used as a Web3 digital identifier, almost like a digital passport.

The fact that NFTs are often minted as a part of a collection also finds application in fractional real estate investments, which allows users to invest in fractional shares of real estate without having to purchase the entire asset. Collectively, these shares represent the entire stake in a piece of property, like a Real Estate Investment Trust (REIT).

Even with all their promise and potential, it is still important that the community and projects be aware of the risks that are associated with working with NFTs.

NFT Hacks and Scams

With the growth of the NFT market, the sector is becoming an increasingly attractive target for hackers and bad actors. We’ve seen a number of examples of well-known celebrities shilling disreputable projects, while scammers are working hard to apply social engineering techniques to compromise the users’ private keys.

Phishing

Phishing is a type of attack that tricks a person into revealing sensitive information via fraudulent messages. Attackers send fraudulent messages to target users trying to get the private key or cheat them into signing a malicious transaction, thus stealing their funds. Those attacks are more related to secure operations and preventable with good security awareness. Platforms ranging from Twitter, Telegram, Reddit, and Discord all have active communities related to NFTs. Phishing has become one of the most common ways scammers get their hands on NFTs. Phishing occurs when a malicious attacker sets up a lure in the form of a fake website or contract to collect valuable user data or steal user funds. These phishing attacks often target users who are new to the space and aren’t fully aware of the various attack vectors.

On December 21, 2021, the Discord group of Monkey Kingdom was hacked and users reported that their wallets had been drained. Around $1.3 million worth of SOL was lost in the attack. Upon investigation, it appears that the official admin account was compromised and deployed bots into the Discord channels that sent bogus links to users claiming to grant user access to a limited edition mint. Unsuspecting users connected their wallets to get access to the free mint but instead had their wallets drained.

On June 5, 2022, the famous project Bored Apes Yacht Club, also referred to as BAYC, announced a hack resulting in the loss of around $350,000 worth of NFTs. The community manager’s account was hacked and the attacker posted fake links to a mint on the official BAYC and related project Otherside’s Discord channels. Yoshi Labs, the team behind the project, took swift action and made a patch to resolve the issue.

As with many things on the internet, great caution must be taken when clicking on unknown links in various social media channels. Users should exercise caution and conduct proper due diligence before clicking on links that offer so-called limited edition mints or rare NFTs. It is important to review the information and access that a user is providing in order to claim the offer. If the offer requires the user signs off on unknown transactions or to provide access to sensitive account functions, these may be considered red flags. It may be prudent to check with various trusted parties to make sure an opportunity is legitimate.

Rugpulls and Exit Scams

Rugpulls, also called exit scams, are exploits where the owners create new NFT projects with no intention of delivering on the promises they make. Instead, they wait until the project has attracted enough liquidity for them to dump their holdings on the market and walk away. When the exploits occur at the level of the project’s team, it might sometimes be more difficult to discern the authenticity of the project due to a lack of information, especially with new projects. It is important for potential investors to thoroughly review the project and take a look at the project wallet transaction history to see if transactions seem legitimate. It can also help to speak to other members of the community on various social media channels to try to identify the authenticity of the project. CertiK’s KYC process can help protect influencers and users from associating with high-risk NFT projects.

Private Key Hacks

As with cryptocurrencies, NFTs are held in a wallet which is secured and managed by a private key. Losing control of one’s private keys will result in the potential loss of all the assets the wallet contains, including NFTs. Your assets are only as secure as your private key is.

In an unfortunate case of “not your keys, not your crypto”, the NFT exchange Nifty Gateway was hacked in March 2021. The hackers stole user passwords and gained access to their accounts. An analysis showed that none of the affected users had two-factor authentication activated.

Holding NFTs and other crypto assets in cold storage provides the best user protection, since hot wallets that are constantly connected to the internet will always have a risk of being exploited. If hot wallets need to be used, be sure to have some sort of multi-factor authentication activated for better security.

Smart Contract Exploits

There is also the security of the smart contracts to consider. The security of the smart contract relies on its implementation and necessary validations/restrictions included in the code. Therefore, the correctness of the smart contract implementation directly affects the safety of the project.

When there are any vulnerabilities in the smart contract code, hackers will be able to exploit them and profit at the expense of the project and its users. Audits can help in this area to review the code and its implementation to ensure that security measures are sufficient to safeguard the funds and ensure the viability of the project.

The first version of CryptoPunks – one of the oldest and most valuable NFT collections – was hacked early in 2017. The vulnerability allowed NFTs to be sold without the user having to make any payment for the purchase of the NFT. The code was written in a way that prevented the seller from withdrawing the proceeds from the sale of an NFT. Instead, it was the buyer who would be able to withdraw these funds. This meant that a buyer could purchase an NFT and then subsequently withdraw the funds sent to the contract for the purchase of the NFT, therefore essentially minting NFTs for free. To fix the issue, the creators of the project, LarvaLabs, relaunched the project with the fix implemented in a new set of NFT contracts.

Best practice for smart contract developers is to have a review system in place and test code to ensure that all bugs are found and resolved. Rigorous testing should be used to test all different scenarios and especially when various contracts are integrated together. In general, developers should make use of battle-tested libraries and frameworks to reduce the bugs that might result from having untested custom code implementations. Auditing is an essential step for all smart contract projects. Expert code review can pick up on errors missed by developers, while building trust with the project’s community.

Keep an eye out for Part Two of this short series on NFT security, which will go into detail on some of the most common smart contract risks.

https://www.certik.com/resources/blog/68pBiYQxDq6Dxnsn2pVNXF-how-to-secure-nfts-part-one

NFT
Comments

All Comments

Recommended for you

  • AI Competition: Cash Flow Leaders Gain Advantage as Microsoft and Google Face Earnings Test

    On October 28, the stock price trends of Microsoft and Google have diverged significantly since their last earnings report. As the pressure of massive spending on artificial intelligence increasingly impacts corporate profits, Wall Street is scrutinizing the returns on AI investments from both companies. As major players in the AI field, both tech giants are set to announce their earnings after the market closes on Wednesday. Recent stock performance indicates that investors currently seem to favor Microsoft. The market anticipates that Google's free cash flow will be negative in both 2026 and 2027, while Microsoft's free cash flow is expected to decline in the current fiscal year ending next June, before recovering growth.

  • Netanyahu's Camp Secures 54 Seats After 70.7% of Votes Counted

    According to Israel's Channel 12, after 70.7% of the votes have been counted, Netanyahu's camp has secured 54 seats, the Eisenkot camp has obtained 47 seats, and the Arab parties have garnered 19 seats.

  • U.S. Optical Communication Stocks Rise Pre-Market, Mavenir, Corning, and Lumentum Up Over 2%

    On October 28, U.S. optical communication stocks saw a collective rise in pre-market trading. Among them, AXT Inc, MaxLinear, Credo Technology, Coherent, Applied Optoelectronics, Viavi Solutions, Ciena, Mavenir Technologies, Astera Labs, Corning, and Lumentum all increased by over 2%.

  • Seagate Technology Falls 4% Pre-Market, SK Hynix Rises 8%

    In pre-market trading, Seagate Technology is down about 4%, as the company's quarterly earnings guidance falls short of analyst expectations. NXP Semiconductors is down approximately 8%, despite a 19% year-over-year revenue increase in Q3 that exceeded expectations; however, the Q4 guidance is below expectations. SK Hynix is up about 8%, with the company's operating profit in the third quarter soaring sevenfold year-over-year, announcing an epic shareholder return of one trillion Korean won.

  • Walsh to Hold FOMC Press Conference at 2:30 PM ET

    On October 28, it was announced that Federal Reserve Chairman Kevin Walsh will hold a FOMC press conference at 2:30 PM ET.

  • Changxin Technology Included in Shanghai Composite Index as Top Weighted Stock

    On October 28, according to the website of the China Securities Index Company, Changxin Technology has been included in the Shanghai Composite Index with a weight of 4.67%, making it the largest weighted stock in the index. Agricultural Bank of China and Industrial and Commercial Bank of China rank second and third, with weightings of 3.83% and 3.77%, respectively. Changxin Technology has also been included in the Shanghai STAR Market Composite Index, with a weight of 15.74%, making it the top weighted stock there as well. According to the compilation plan, the weight factor will be adjusted on the next trading day after the second Friday of each month or when the newly included sample weight exceeds 15%.

  • SK Hynix Plans 100 Trillion Won Shareholder Returns by 2026

    On October 28, regulatory filings revealed that SK Hynix plans to distribute at least 30 trillion won in cash dividends and to repurchase and retire at least 60 trillion won worth of shares by 2026. The share buyback includes a recently completed 40 trillion won stock repurchase.

  • SK Hynix Reports Q3 Sales of 104.62 Trillion Won

    On October 28, SK Hynix reported third-quarter sales of 104.62 trillion won, exceeding expectations of 98.96 trillion won. The operating profit for the third quarter was 83.33 trillion won, higher than the anticipated 77.5 trillion won. SK Hynix plans to repurchase 20 trillion won worth of shares.

  • WTI Crude Oil Drops 1.5% to $100.19 per Barrel

    International oil prices hit a daily low, with Brent crude futures (December contract) trading around $114. WTI crude oil experienced a daily decline of 1.5%, settling at $100.19 per barrel.

  • Meta Falls 1.4%, Plans to Raise $95 Billion for AI Investment

    On October 27, Meta (META.US) fell 1.4%, closing at $621.47. In news, Meta has initiated a public offering to raise approximately $35 billion and plans to raise up to $60 billion through a market offering of a new class of non-voting C shares. Meta stated that these plans will support its ongoing investments in AI infrastructure and personal superintelligence.