CertiK dissects the Axion Network incident and subsequent price crash
Published
2 Monaten ago
on
By
On November 2, the Axion Network launched its new token, known as AXN. The project touted the asset as a new investment vehicle, claiming that it would be the most profitable blockchain of its kind to date. During the interim lead up to AXN’s airdrop, five separate teams allegedly examined the token’s code; industry darlings such as CertiK and Hacken were among those who conducted the audits.
A few short hours after the protocol’s freeclaim event, however, it became clear that something had gone awry. An unauthorized actor unexpectedly minted 79 billion AXN and unloaded them on the market. The price collapsed in excess of 99%, netting the attackers a cool 1300 ETH — worth an estimated $500K at time of publication.
In the hours that followed, the team behind the Axion project encouraged participants to stay away from trading or interacting with the asset, stating via the platform’s official telegram channel:
“Do not buy AXN right now, do not interact with the dashboard,”
The Axion Network’s Twitter account continued to post updates, including that:
We’re still here.
All the AXN/HEX2T people were holding at the time of the exploit will be credited.
We will launch a liquidity reward portal to build the liquidity back up as well.
We are working hard to relaunch AXN as soon as possible.
Despite these reassurances, CertiK is stepping forward to offer the community a clearer explanation of what they perceive to have gone wrong, and insights into how similar attacks could be prevented in future. Cointelegraph reached out via email to “Jack Durden” who was described to us as the CEO of the Axion Network, but received no immediate response. No team members are listed in the project’s white paper or on the website, and the name “Jack Durden” is shared with the unseen narrator from the movie Fight Club.
Note that the remainder of this article is reproduced word-for-word, courtesy of CertiK, as a public service to educate readers on the audit team’s understanding of what happened. Cointelegraph has not audited the code and the views stated hereafter are therefore exclusively those of CertiK.
CertiK staff report on the Axion price crash
On the 2nd of November 2020 at approximately 11:00 AM +UTC a hacker managed to mint around ~80 billion AXN tokens by utilizing the unstake function of the Axion Staking contract.
The hacker proceeded to then dump the tokens on the AXN Uniswap exchange for Ether, repeating this process until the Uniswap exchange was drained and the token price was driven to 0.
We were informed of the incident within a few minutes of the attack occuring and our security analysts began assessing the situation immediately.
We have concluded that the attack was likely planned from the inside, involving an injection of malicious code at the time the code was deployed by altering code from OpenZeppelin dependencies.
The exploited function was not part of the audit we conducted as it was added after joining together Axion’s code with OpenZeppelin’s code via “flattening” and injecting it within OpenZeppelin’s code prior to deployment.
Planning
The hacker used anonymous funds procured from tornado.cash the day before the hack occured, hinting at a pre-meditated attack. Presumably to save some funds in case the attack fails, 2.1 Ether were re-circulated in tornado.cash right after the account received the funds.
To finalize the attack setup, the hacker purchased around ~700k HEX2T tokens from the Uniswap exchange. However, these funds were ultimately not part of the attack and served as a smokescreen with regards to how the attack unfolded.
Setup
The hacker began their way towards actuating their attack by creating an “empty” stake on the Staking contract of the Axion Network by invoking the stake function with a 0 amount and 1 day stake duration at approximately 09:00 AM +UTC. This created a Session entry for the attacker with a 0 amount and 0 shares value at session ID 6.
Afterwards, the attacker pre-approved an unlimited amount of AXN to the Uniswap exchange in anticipation of their attack succeeding. Consequently, they approved the NativeSwap contract of Axion for the amount of funds they intended to convert to AXN tokens.
They invoked the deposit function of the NativeSwap contract at approximately 10:00 AM +UTC, however the hacker never called the withdraw function of the contract to claim his swapped AXN as evident on the NativeSwap contract’s swapTokenBalanceOf function. Afterwards, they made one more failed deposit function call before executing the attack.
Execution
These transactions were merely smokescreens for how the unstake attack was actually carried out. As the transactions that the attacker conducted resulted in no change to the sessionDataOf mapping, we concluded that this was a multi-address attack.
We investigated the source code of the contract’s at the GitHub repository that had been shared with us to identify a flaw that would cause the sessionDataOf mapping to be affected.
We were unable to detect any assignments to it or members of it outside the stake functions which prompted us to question whether the deployment of the contracts was conducted properly.
Attack Vector
After analyzing the source code of the deployed Staking contract, we pinpointed a code injection in the AccessControl OpenZeppelin library between L665-L671 of the deployed source code of the Staking contract. The linked checkRole function is not part of the OpenZeppelin v3.0.1 implementation, which was listed as a dependency in the project’s GitHub repository.
Within the checkRole function, the following assembly block exists:
This particular function allows a specific address to conduct an arbitrary write to the contract based on the input variables it supplements via low-level calls. Annotated, the assembly block would look like this:
This function was injected at deployment as it does not exist in the OpenZeppelin AccessControl implementation, meaning that the members of the Axion Network that were involved with deploying the token acted maliciously.
Conclusion
The attack utilized code that was deliberately injected prior to the protocol’s deployment. This incident bears no relation to the audits conducted by CertiK and the party responsible for the attack was a person that seemed to be involved with the deployment of the Axion Network contracts.
As an additional degree of security, audit reports should standardise to include deployed smart contract addresses whose source code has been verified to be the same as the one that was audited.
The Security Oracle serves as an on-chain relayer of security intelligence, conducting security checks which include the verification of deployed smart contracts to match the audited versions.
Grayscale’s AUM Hits $19B, Up from $16.4B Announced Week Ago
Published
38 Minuten ago
on
Dezember 29, 2020
By
While it may be too early to project the possible performance of Grayscale in 2021, the spate of patronage the company recorded in the last two quarters of 2020 looks quite inspiring.
In what confirms the continued embrace of Bitcoin (BTC) and altcoins by institutional investors and the big-money clients, Grayscale’s total Assets Under Management (AUM) has been reported to top $19 billion, a significant uplift from the $16.4 billion reported a week ago. According to a report by CoinDesk, Grayscale hit this AUM milestone on December 28, and Grayscale’s Bitcoin Trust holds by far the largest chunk of the total assets at $16.3 billion.
The recent rally of Bitcoin to new highs as recorded in the past days started as a chain reaction that took its precedent months ago when Wall Street firms and institutional investors began betting big on Bitcoin. The investment made by the likes of MicroStrategy Incorporated (NASDAQ: MSTR), Square Inc (NYSE: SQ), and PayPal Holdings Inc (NASDAQ: PYPL) did not just help put Bitcoin in the limelight through mainstream media, it also prompted the embrace of the digital assets by other firms.
With this chain reaction, the price of Bitcoin continued to soar in response to boosted demand for the coin, and institutions like Grayscale that serves institutional investors benefited from this new demand, and hence, the continued increase in the firm’s AUM. Besides BTC, Grayscale’s Ethereum (ETH) AUM is now worth $2.1 billion, while the bulk of smaller holdings in Litecoin (LTC), XRP, and ZCash amongst others helped Grayscale’s total AUM to reach the new milestone.
Grayscale’s AUM May See More Boost in 2021
While it may be too early to project the possible performance of Grayscale in the coming year 2021, the spate of patronage the company recorded in the last two quarters of 2020 makes the case for improved performance provided the tempo is sustained.
Just as has been noted earlier, the continued embrace of cryptocurrency assets by highly liquid companies will continue to have a positive reaction on the price of Bitcoin, and by extension, this will even make more people pick interest in BTC. As a relatively young asset class, Bitcoin and altcoins have tremendous room to grow as the adoption rate is still not optimized owing to certain regulatory provisions in most countries, Grayscale and other hedge funds have enough room to compete for new clients entering the space.
With Grayscale been among the institutions at the forefront of helping to drive the acceptance of BTC, ETH, and other digital currencies, enjoying the dividends of its works through impressed AUM figures does not come as much of a surprise.
next Altcoin News, Bitcoin News, Cryptocurrency news, News
Benjamin Godfrey is a blockchain enthusiast and journalists who relish writing about the real life applications of blockchain technology and innovations to drive general acceptance and worldwide integration of the emerging technology. His desires to educate people about cryptocurrencies inspires his contributions to renowned blockchain based media and sites. Benjamin Godfrey is a lover of sports and agriculture.
Following the Bitcoin all-time high on Sunday, December 27, Riot Blockchain stock registered 20% gains on Monday’s trading session. The stock has already appreciated by 13x this year. Apart from BTC, investors of Bitcoin mining companies are making a bomb in the market.
Bitcoin mining giant Riot Blockchain is making all the news in the market at the moment. On Monday, December 28, Riot Blockchain Inc (NASDAQ: RIOT) stock price surged a massive 20% surging past $15.5 levels. One of the biggest milestones with the Monday rally is that the Riot Blockchain has clocked a $1 billion market cap.
The latest price rally comes as Riot Blockchain hints at going aggressively on its Bitcoin mining business. Last week, the Riot Blockchain added new S19 Pro Antimers to its bitcoin mining arsenal. The company announced the purchase of an additional 15,000 Bitcoin (BTC) mining machines from Bitmain. The recent purchase also pushes Riot’s total fleet to 37,640 Next-Generation Bitmain Antminers.
Riot said that the fresh purchase of Antminers will help the mining company to attain a 65% jump in its mining hash-rate. RIOT stock has registered an unprecedented rally this year in 2020. RIOT stock has multiplied by 13x this year registering a 1200% surge so far.
Riot Blockchain has issued nearly 17 million shares since November 2020 with its total outstanding shares going to 67.5 million. It has been a phenomenal journey for Riot ever since it ventured into the Bitcoin mining business in October 2017. With valuations less than $50 million back then, Riot has grown more than 20x in size as of its latest stock price.
RIOT Stock and Shares of Other Bitcoin Mining Companies Profit from BTC Bull Run
The recent Bitcoin (BTC) price rally during Q4 2020 has also pushed the stocks of Bitcoin mining companies to new highs. Earlier on Sunday, December 28, the BTC price hit its all-time high of $28,000 in a massive bull run followed by huge institutional inflows.
Moreover, along with the BTC price rally, the Bitcoin hash-rate has jumped significantly since November 2020. Over the last two months, the BTC hash-rate has surged nearly 30% and is currently at 132 TH/s. The surge in the hash-rate suggests higher mining activity for Bitcoin.
As a result, Bitcoin mining companies have been making massive purchases of the BTC mining machines. In addition to Riot Blockchain, other giants like the Marathon Patent Group have made aggressive purchases over the last few months. Just like RIOT, the Marathon Patent Group (NASDAQ: MARA) has registered a phenomenal rally of 18% on Monday, December 28. MARA stock has multiplied investors’ wealth by 12x in 2020. It means the MARA stock has also given phenomenal 1100% returns year-to-date.
next Bitcoin News, Blockchain News, Business News, Cryptocurrency news, Market News
Bhushan is a FinTech enthusiast and holds a good flair in understanding financial markets. His interest in economics and finance draw his attention towards the new emerging Blockchain Technology and Cryptocurrency markets. He is continuously in a learning process and keeps himself motivated by sharing his acquired knowledge. In free time he reads thriller fictions novels and sometimes explore his culinary skills.
How low could XRP go? Watch these price levels next
Published
8 Stunden ago
on
Dezember 29, 2020
By
XRP price dropped by 30% on Dec. 29 following Coinbase’s decision to suspend trading.
The market sentiment around XRP has become overwhelmingly negative due to the fear of more exchange delistings.
In the near term, XRP faces three key historical support levels at $0.224, $0.1743 and $0.1471.
Where will the XRP price go next?
The ongoing price trend of XRP is not cyclical nor reliant on technical analysis. It is due to investors selling XRP following the suspension of trading across major cryptocurrency exchanges.
On Dec. 29, Coinbase announced that it is suspending the XRP trading pairs on their platform. Paul Grewal, the chief legal officer at Coinbase, wrote:
“In light of the SEC’s lawsuit against Ripple Labs, Inc, we have made the decision to suspend the XRP trading pairs on our platform. Trading will move into limit only starting December 28, 2020 at 2:30 PM PST, and will be fully suspended on Tuesday, January 19, 2021 at 10 a.m. Pacific Standard Time*. We will provide additional updates, if any, through the Coinbase Support Twitter account, including if there are any changes to timing.”
Given the SEC’s recent action against Ripple, all XRP books have been moved to limit only and Coinbase plans to fully suspend trading in XRP on Tuesday, January 19, 2021, at 10 AM PST. Afterwards, users will continue to retain access to their XRP funds. https://t.co/izreZvgHNl
As Cointelegraph previously reported, analysts anticipated Coinbase to suspend XRP trading after the United States Securities and Exchange Commission filed its complaint.
Coinbase plans to undergo an initial public offering, and it is in the firm’s best interest to remain fully compliant with the regulators in the U.S.
Considering the regulatory uncertainty around XRP, traders have emphasized that technical analysis is of less importance in the short term. Scott Melker, a cryptocurrency trader, said:
“A few people have told me that there’s oversold bullish divergence on the $XRP chart. You are doing it wrong. Charts don’t matter here. You cannot trade in a vacuum. Jesus could come down with Biggie and Tupac and put on a concert for Brad Garlinghouse and I still wouldn’t buy.”
In the foreseeable future, XRP has several major support areas it could potentially recover from. However, these are deep support levels on the weekly chart, which shows that it lacks momentum for a major rebound.
The XRP price has fallen by over 60% in merely two weeks, recording one of its steepest two-week drops in history.
What happens next?
Adam Cochran, a partner at Cinneamhain Ventures, was one of the first to break the story that Coinbase had conversations about suspending XRP trading.
Cochran hinted that the SEC are probably looking into more projects and companies than people realize. He said:
“If you thought my scoop on Coinbase delisting/suspending $XRP was insightful, you’re going to love the next scoop I’m working on, this week. Looks like that SEC is far more active than we thought and sniffing around a number of projects and companies!”