Harvest Finance Harvested: Difference between revisions

From Quadriga Initiative Cryptocurrency Hacks, Scams, and Frauds Repository
Jump to navigation Jump to search
(Created page with "{{Imported Case Study|source=https://www.quadrigainitiative.com/casestudy/harvestfinanceharvested.php}} thumb|Harvest FinanceSmart contract thinks it's a good idea to give $25m to a hacker - no issues or suspicion at all. It does what it's programmed to do. Development team asks hacker to return funds. He does - return some of them. This is a global/international case not involving a specific country. == About Harvest Finance == "Harvest F...")
 
No edit summary
Line 1: Line 1:
{{Imported Case Study|source=https://www.quadrigainitiative.com/casestudy/harvestfinanceharvested.php}}
{{Imported Case Study|source=https://www.quadrigainitiative.com/casestudy/harvestfinanceharvested.php}}
{{Unattributed Citations}}


[[File:Harvestfinance.jpg|thumb|Harvest Finance]]Smart contract thinks it's a good idea to give $25m to a hacker - no issues or suspicion at all. It does what it's programmed to do.
[[File:Harvestfinance.jpg|thumb|Harvest Finance]]Smart contract thinks it's a good idea to give $25m to a hacker - no issues or suspicion at all. It does what it's programmed to do.
Line 6: Line 7:


This is a global/international case not involving a specific country.
This is a global/international case not involving a specific country.
<ref name="decrypt-553" /><ref name="harvestfinancetwitter-554" /><ref name="harvestfinancemedium-555" /><ref name="harvestfinancetwitter-556" /><ref name="cryptopotato-557" /><ref name="rekt-513" /><ref name="rekt-558" /><ref name="etherscan-559" /><ref name="ethtx-560" /><ref name="curvefinancetwitter-561" /><ref name="coingecko-562" /><ref name="ciphertrace-1152" /><ref name="slowmisthacked-678" /><ref name="openzeppelinforum-1155" /><ref name="cryptobriefing-825" /><ref name="cryptobriefing-1171" /><ref name="cryptobriefing-1172" /><ref name="amanusktwitter-8747" /><ref name="valentinmihovtwitter-8748" /><ref name="jiecut42twitter-8749" />


== About Harvest Finance ==
== About Harvest Finance ==
Line 33: Line 35:


Don't Include:
Don't Include:
* Any wording which directly states or implies that the business is/was illegitimate, or that a vulnerability existed.
* Any wording which directly states or implies that the business is/was illegitimate, or that a vulnerability existed.
* Anything that wasn't reasonably knowable at the time of the event.
* Anything that wasn't reasonably knowable at the time of the event.
Line 55: Line 56:
|-
|-
|October 26th, 2020 12:00:00 AM
|October 26th, 2020 12:00:00 AM
|First Event
|Main Event
|This is an expanded description of what happened and the impact. If multiple lines are necessary, add them here.
|Expand this into a brief description of what happened and the impact. If multiple lines are necessary, add them here.
|-
|
|
|
|-
|-
|
|
Line 68: Line 65:


== Total Amount Lost ==
== Total Amount Lost ==
The total amount lost is unknown.
The total amount lost has been estimated at $25,000,000 USD.


How much was lost and how was it calculated? If there are conflicting reports, which are accurate and where does the discrepancy lie?
How much was lost and how was it calculated? If there are conflicting reports, which are accurate and where does the discrepancy lie?
Line 79: Line 76:


== Total Amount Recovered ==
== Total Amount Recovered ==
It is unknown how much was recovered.
There do not appear to have been any funds recovered in this case.


What funds were recovered? What funds were reimbursed for those affected users?
What funds were recovered? What funds were reimbursed for those affected users?
Line 92: Line 89:


== References ==
== References ==
[https://decrypt.co/46445/engineering-error-34-million-defi-hack-harvest-finance ‘Engineering Error’ Led to $34 Million DeFi Hack, Harvest Finance Says - Decrypt] (May 11)
<references><ref name="decrypt-553">[https://decrypt.co/46445/engineering-error-34-million-defi-hack-harvest-finance ‘Engineering Error’ Led to $34 Million DeFi Hack, Harvest Finance Says - Decrypt] (May 11, 2021)</ref>


[https://twitter.com/harvest_finance/status/1320650530377633792 @harvest_finance Twitter] (May 11)
<ref name="harvestfinancetwitter-554">[https://twitter.com/harvest_finance/status/1320650530377633792 @harvest_finance Twitter] (May 11, 2021)</ref>


[https://medium.com/harvest-finance/harvest-flashloan-economic-attack-post-mortem-3cf900d65217 Harvest Flashloan Economic Attack Post-Mortem] (May 11)
<ref name="harvestfinancemedium-555">[https://medium.com/harvest-finance/harvest-flashloan-economic-attack-post-mortem-3cf900d65217 Harvest Flashloan Economic Attack Post-Mortem] (May 11, 2021)</ref>


[https://twitter.com/harvest_finance/status/1320624369543057409 @harvest_finance Twitter] (May 12)
<ref name="harvestfinancetwitter-556">[https://twitter.com/harvest_finance/status/1320624369543057409 @harvest_finance Twitter] (May 12, 2021)</ref>


[https://cryptopotato.com/breaking-defi-protocol-harvest-finance-attack-targets-liquidity-pools/ Breaking: DeFi Protocol Harvest Finance Attack Targeting Liquidity Pools] (May 12)
<ref name="cryptopotato-557">[https://cryptopotato.com/breaking-defi-protocol-harvest-finance-attack-targets-liquidity-pools/ Breaking: DeFi Protocol Harvest Finance Attack Targeting Liquidity Pools] (May 12, 2021)</ref>


[https://rekt.news/leaderboard/ Rekt - Leaderboard] (May 12)
<ref name="rekt-513">[https://rekt.news/leaderboard/ Rekt - Leaderboard] (May 12, 2021)</ref>


[https://rekt.news/harvest-finance-rekt/ Rekt - Harvest Finance - REKT] (May 15)
<ref name="rekt-558">[https://rekt.news/harvest-finance-rekt/ Rekt - Harvest Finance - REKT] (May 15, 2021)</ref>


[https://etherscan.io/tx/0x9d093325272701d63fdafb0af2d89c7e23eaf18be1a51c580d9bce89987a2dc1/advanced#internal Ethereum Transaction Hash (Txhash) Details | Etherscan] (May 15)
<ref name="etherscan-559">[https://etherscan.io/tx/0x9d093325272701d63fdafb0af2d89c7e23eaf18be1a51c580d9bce89987a2dc1/advanced#internal Ethereum Transaction Hash (Txhash) Details | Etherscan] (May 15, 2021)</ref>


[https://ethtx.info/mainnet/0x9d093325272701d63fdafb0af2d89c7e23eaf18be1a51c580d9bce89987a2dc1 Ethtx.info Analysis] (May 15)
<ref name="ethtx-560">[https://ethtx.info/mainnet/0x9d093325272701d63fdafb0af2d89c7e23eaf18be1a51c580d9bce89987a2dc1 Ethtx.info Analysis] (May 15, 2021)</ref>


[https://twitter.com/CurveFinance/status/1320694100090376193 @CurveFinance Twitter] (May 15)
<ref name="curvefinancetwitter-561">[https://twitter.com/CurveFinance/status/1320694100090376193 @CurveFinance Twitter] (May 15, 2021)</ref>


[https://www.coingecko.com/en/coins/harvest-finance Harvest Finance price, FARM price index, chart, and info | CoinGecko] (May 15)
<ref name="coingecko-562">[https://www.coingecko.com/en/coins/harvest-finance Harvest Finance price, FARM price index, chart, and info | CoinGecko] (May 15, 2021)</ref>


[https://ciphertrace.com/wp-content/uploads/2021/01/CipherTrace-Cryptocurrency-Crime-and-Anti-Money-Laundering-Report-012821.pdf CipherTrace Cryptocurrency Crime and Anti-Money Laundering Report 2020] (Jun 19)
<ref name="ciphertrace-1152">[https://ciphertrace.com/wp-content/uploads/2021/01/CipherTrace-Cryptocurrency-Crime-and-Anti-Money-Laundering-Report-012821.pdf CipherTrace Cryptocurrency Crime and Anti-Money Laundering Report 2020] (Jun 19, 2021)</ref>


[https://hacked.slowmist.io/en/?c=ETH%20DApp SlowMist Hacked - SlowMist Zone] (May 17)
<ref name="slowmisthacked-678">[https://hacked.slowmist.io/en/?c=ETH%20DApp SlowMist Hacked - SlowMist Zone] (May 17, 2021)</ref>


[https://forum.openzeppelin.com/t/list-of-ethereum-smart-contracts-post-mortems/1191 List of Ethereum Smart Contracts Post-Mortems - Security - OpenZeppelin Community] (Jun 22)
<ref name="openzeppelinforum-1155">[https://forum.openzeppelin.com/t/list-of-ethereum-smart-contracts-post-mortems/1191 List of Ethereum Smart Contracts Post-Mortems - Security - OpenZeppelin Community] (Jun 22, 2021)</ref>


[https://cryptobriefing.com/50-million-lost-the-top-19-defi-cryptocurrency-hacks-2020/ Millions Lost: The Top 19 DeFi Cryptocurrency Hacks of 2020 | Crypto Briefing] (May 21)
<ref name="cryptobriefing-825">[https://cryptobriefing.com/50-million-lost-the-top-19-defi-cryptocurrency-hacks-2020/ Millions Lost: The Top 19 DeFi Cryptocurrency Hacks of 2020 | Crypto Briefing] (May 21, 2021)</ref>


[https://cryptobriefing.com/harvest-finance-developers-adamant-keeping-1-billion-project-centralized/ Harvest Finance Developers Adamant on Keeping the $1 Billion Project Centralized | Crypto Briefing] (Jun 26)
<ref name="cryptobriefing-1171">[https://cryptobriefing.com/harvest-finance-developers-adamant-keeping-1-billion-project-centralized/ Harvest Finance Developers Adamant on Keeping the $1 Billion Project Centralized | Crypto Briefing] (Jun 26, 2021)</ref>


[https://cryptobriefing.com/hackers-drain-defi-protocol-harvest-finance-24-million/ Hackers Drain DeFi Protocol Harvest Finance of $24 Million | Crypto Briefing] (Jun 26)
<ref name="cryptobriefing-1172">[https://cryptobriefing.com/hackers-drain-defi-protocol-harvest-finance-24-million/ Hackers Drain DeFi Protocol Harvest Finance of $24 Million | Crypto Briefing] (Jun 26, 2021)</ref>


[https://twitter.com/amanusk_/status/1321549128577548289 @amanusk_ Twitter] (Jul 24)
<ref name="amanusktwitter-8747">[https://twitter.com/amanusk_/status/1321549128577548289 @amanusk_ Twitter] (Jul 24, 2022)</ref>


[https://twitter.com/valentinmihov/status/1320667338321154048 @valentinmihov Twitter] (Jul 24)
<ref name="valentinmihovtwitter-8748">[https://twitter.com/valentinmihov/status/1320667338321154048 @valentinmihov Twitter] (Jul 24, 2022)</ref>


[https://twitter.com/jiecut42/status/1320574109005348864 @jiecut42 Twitter] (Jul 24)
<ref name="jiecut42twitter-8749">[https://twitter.com/jiecut42/status/1320574109005348864 @jiecut42 Twitter] (Jul 24, 2022)</ref></references>

Revision as of 11:25, 17 February 2023

Notice: This page is a freshly imported case study from the original repository. The original content was in a different format, and may not have relevant information for all sections. Please help restructure the content by moving information from the 'About' section to other sections, and add any missing information or sources you can find. If you are new here, please read General Tutorial on Wikis or Anatomy of a Case Study for help getting started.

Notice: This page contains sources which are not attributed to any text. The unattributed sources follow the initial description. Please assist by visiting each source, reviewing the content, and placing that reference next to any text it can be used to support. Feel free to add any information that you come across which isn't present already. Sources which don't contain any relevant information can be removed. Broken links can be replaced with versions from the Internet Archive. See General Tutorial on Wikis, Anatomy of a Case Study, and/or Citing Your Sources Guide for additional information. Thanks for your help!

Harvest Finance

Smart contract thinks it's a good idea to give $25m to a hacker - no issues or suspicion at all. It does what it's programmed to do.

Development team asks hacker to return funds. He does - return some of them.

This is a global/international case not involving a specific country. [1][2][3][4][5][6][7][8][9][10][11][12][13][14][15][16][17][18][19][20]

About Harvest Finance

"Harvest Finance is an automatic yield farming protocol that helps traders take advantage of the latest DeFi platforms with the highest yield." "The DeFi space is becoming more complex as more protocols are being introduced. Harvest Finance aims to help non-savvy users yield farm and get the highest DeFi yield while saving time and money. For users who are yield farming with small amounts of capital, it may not be the most effective use of time to constantly harvest yield from the various DeFi yield farms. Constantly harvesting yield will also incur high gas cost. Harvest Finance collates capital from various yield farmers to do yield farming more effectively saving time and money for users." "[O]n October 6th, Harvest Finance published a security update stating that they were ensuring the safety of their lands via “rigorous security audits” from Peckshield, Haechi Labs, and CertiK." "The team states that its smart contracts have been audited by Haechi Labs and PeckShield."

"On October 26, 02:53:31 AM +UTC, an attacker executed a theft of funds from the USDC and USDT vaults of Harvest Finance. The attacker exploited an arbitrage and impermanent loss that influences the value of individual assets inside the Y pool of Curve.fi, which is where the funds of Harvest’s vaults were invested." "A skilled farmer used flash loans to reap $33.8 million from the FARM_USDT and FARM_USDC pools."

"The price calculation mechanism for LP deposits and withdrawals was the source of the exploit, meaning this attack could have carried over to the renBTC pool, the FARM_TUSD pool, and the FARM_DAI pool. However the hacker chose to stop after draining $25m or 17% of what was available in the FARM_USDT and FARM_USDC pools, although they could have easily continued to drain the entire pool for a total of $400m if they had so desired."

"Harvest Finance is sorry for the “engineering error,” committed to change, and kindly requests that the thief return the stolen money." "For the attacker: you've proven your point, if you can return the funds to the users, it would be greatly appreciated by the community, including many bystanders watching DeFi from afar."

"To protect users, Harvest Finance pulled the y pool and BTC Curve strategy funds to its vault adding that all stablecoin and BTC funds are secured." "LPs and Harvest developers received a reasonably sized sum of money, as the hacker chose to throw back some scraps ($2,478,549.94) to the Harvest Deployer in the form of USDT and USDC." "The $2.5 million returned by the hacker will be “distributed to the affected depositors pro-rata using a snapshot,” Harvest tweeted."

This is a global/international case not involving a specific country.

The background of the exchange platform, service, or individuals involved, as it would have been seen or understood at the time of the events.

Include:

  • Known history of when and how the service was started.
  • What problems does the company or service claim to solve?
  • What marketing materials were used by the firm or business?
  • Audits performed, and excerpts that may have been included.
  • Business registration documents shown (fake or legitimate).
  • How were people recruited to participate?
  • Public warnings and announcements prior to the event.

Don't Include:

  • Any wording which directly states or implies that the business is/was illegitimate, or that a vulnerability existed.
  • Anything that wasn't reasonably knowable at the time of the event.

There could be more than one section here. If the same platform is involved with multiple incidents, then it can be linked to a main article page.

The Reality

This sections is included if a case involved deception or information that was unknown at the time. Examples include:

  • When the service was actually started (if different than the "official story").
  • Who actually ran a service and their own personal history.
  • How the service was structured behind the scenes. (For example, there was no "trading bot".)
  • Details of what audits reported and how vulnerabilities were missed during auditing.

What Happened

The specific events of the loss and how it came about. What actually happened to cause the loss and some of the events leading up to it.

Key Event Timeline - Harvest Finance Harvested
Date Event Description
October 26th, 2020 12:00:00 AM Main Event Expand this into a brief description of what happened and the impact. If multiple lines are necessary, add them here.

Total Amount Lost

The total amount lost has been estimated at $25,000,000 USD.

How much was lost and how was it calculated? If there are conflicting reports, which are accurate and where does the discrepancy lie?

Immediate Reactions

How did the various parties involved (firm, platform, management, and/or affected individual(s)) deal with the events? Were services shut down? Were announcements made? Were groups formed?

Ultimate Outcome

What was the end result? Was any investigation done? Were any individuals prosecuted? Was there a lawsuit? Was any tracing done?

Total Amount Recovered

There do not appear to have been any funds recovered in this case.

What funds were recovered? What funds were reimbursed for those affected users?

Ongoing Developments

What parts of this case are still remaining to be concluded?

Prevention Policies

The decentralized finance space is still new and developing. In the meantime, it can't be considered secure. Even in the future, it's not possible to know if any exploits remain. A smart contract is pretty similar to a hot wallet.

The only secure storage of customer funds is in an offline (air-gapped) multi-signature wallet held by trained individuals.

References