croissant Profile picture
Feb 4 19 tweets 6 min read
On October 14th, 2021 it was just your ordinary day in DeFi.

Everything was eerily quiet… Then the exploit happened.

Nobody was prepared for the 19 year old math prodigy that was about to rock the world with this $16M attack.
Meet Andean Medjedovic (on the right). He’s a young Canadian mathematician who spends his time writing complex mathematical research…

& in his free time, writes some of the most advanced exploits known to DeFi.
On the cursed Thursday evening of the attack, the Indexed finance team heard the blood-turning words that every DeFi developer fears most:

“Holy shit, Indexed has been attacked.”

$16M was in the hands of an attacker, & the treasury didn’t have funds to cover all of their losses
Indexed finance was unique. Its code was built mostly from scratch, and it offered crypto index portfolios in a single token.

Andean, the 19 year old attacker was able to manipulate the prices of assets in pools with a complex arbitrage transaction.
Team members at Indexed quickly sprang in to action in hopes to save what could be salvaged.

Upon plugging the exploit txs in a debugger, they quickly realized how bad the situation was.

It took many attempts to even open it correctly because of how big it was.
Once working, the debugger finally revealed a mind-blowing tx.

At first, nobody knew what they were looking at.

It was so complex that it made up of more than 1,000 events, & the bundle took up an entire block on the blockchain.

Here’s just a small glimpse of its entirety:
It took an entire 8 hours and army of solidity developers in a “war room” to determine the design of the exploit.

Now it was about getting funds back to users.

Unlike many other exploits in DeFi, the story does not end here…
Dillon, a developer at Indexed claims to have had a gut feeling from the moment he heard about the exploit.

This dev designed the smart contracts, & admitted he had an intuitive feeling that the function could be exploited, but was unable to hack it himself.

What happened next?
Indexed developers Dillon and Laurence did what anyone else would do.

Started digging.

A month before, the pair had been suspiciously approached by an odd individual on Discord, who had the name “UmbralUpsilon.”

He asked them about technical details about the protocol…
During the chat, the Discord user claimed to be building a small arbitrage bot.

Both Dillon & Laurence took note of how suspiciously specific his questions were & how unrelated they were to his initial inquiry.

This would prompt the developers to read over the messages again…
Only to find that the user deleted half of their conversation.

Some more digging would lead them to find that “UmbralUpsilon”had now changed their name to “BogHolder#1688.”

This was the bombshell that would lead to a real breakthrough in the case the next day…
When a smart contract auditing platform revealed BogHolder#1688 was a regular and active member of their community.

He had previously won 4th place in a bounty for a coding contest, with the rewards being sent to his ETH address.
This address coincidentally had four deposits to Tornado Cash, a privacy tool, which matched the withdrawals made by the exploiter address a day later.

With this information, the devs were able to contact centralized exchanges that he had previously interacted with…
Which required KYC (know your customer procedures), meaning Andean’s identity was ousted from lack of OpSec.

The final dagger came from small connections to a GitHub page with the name “mtheorylord1.”

Inspecting the git cli, the team found a 12th grade project with his email.
If all of this information still wasn’t crazy enough for you, it gets even better.

Those who are familiar with DeFi, know stuff like this doesn’t happen often.

Indexed finance was actually in a unique position to fight back with actual proof.
So, they filed a class action lawsuit against the teen.

They were on track to setting legal precedent, being the 1st time in history any government actively pursued a DeFi hacker.

Unfortunately, 19 year old math prodigy Andean Medjedovic was not going down without a fight.
In a bizarre tweet, he took offense, asking for “the most elite crypto lawyers” to help him fight against the case.

He appears to be making the case that “code is law,” & he did nothing other than use the contract as it was deployed.
Inevitably, this facade dissolved in late 2021, when a judge in Canada issued a arrest warrant for Andean "Andy" Medjedovic, the 19-year-old math whiz.

This came after Andean failed to attend a face-to-face hearing in court in December.

Funds have still not been returned.
Anyways, I hope you all enjoyed! I tried something different with this one… 🥐

I’m going to be documenting more of the crazy stuff that occurs here every single day.

This is an absolutely wild story not enough people talk about: bakery.fyi/indexed-exploi…

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with croissant

croissant Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @CroissantEth

Feb 2
I have seen people fall victim to impersonators.

I have seen people fall victim to phishing attacks.

I myself have been a victim of many rug pulls.

So… I thought it’d be nice if I listed out the many tips + things I’ve learned to help maximize security while in crypto. (1/x)
The entire security of the blockchain is inherited from a list of just 2048 words.

These 2048 words are randomly generated into strings of 12 words in the list, to create what we call a seed phrase.

This is very important. They are the lifeline to your funds.

Scary, right?
It shouldn’t be.

Even if there were 4B people with 4B Googles running 4B hashes a second, with 4B copies of earth in the galaxy, & 4B copies of that galaxy in the universe, it would still take 37x the age of the universe for anyone to have a 1 in 4B chance to guess a valid seed
Read 22 tweets
Jan 31
There has been a lot of talk about high gas fees on Ethereum, but not enough about layer 2.

These are some crazy platforms that have the ability to scale ETH 100-1000x.

& the best part about all of this? 𝘛𝘩𝘦𝘺 𝘢𝘭𝘳𝘦𝘢𝘥𝘺 𝘦𝘹𝘪𝘴𝘵.

Here are some of my favorite… (1/x)
1. Optimistic Ethereum

Optimism is a rollup which can greatly reduce transaction times & fees on ETH by a magnitude of 100x+

It does so by running computations off-chain, bundling tx data in batches then writing to the main chain in the form of calldata

Check it out:
2. Arbitrum One

Arbitrum is also an optimistic rollup, minimizing computation and batching txs on the main chain to reduce gas costs.

The network can scale up to 40 thousand transactions per second, while offering the same security as Ethereum.
Read 7 tweets
Jan 26
Ever since I started to get a large following on Twitter, I have been trying to refrain from dropping lots of alpha irresponsibly…

I am always wary of promoting any small projects, aware of the impact I may have.

Today, however. That’s not going to be the case…
Why? It’s time to introduce you to .@theBakeryDAO.

The BakeryDAO is a cumulative effort by a handful of pastries, that we hope will change the NFT and web 3.0. ecosystem as we know it today.

The magic begins with our website: bakery.fyi
If you look closely, this isn’t just your ordinary website.

Using some web3 trickery, we have integrated accounts into the back end via NFTs.

This allows us to monetize special pages across the website, locked to only members of the BakeryDAO (holders of the NFT)

Check it out:
Read 25 tweets
Jan 25
Well, the total market capitalization of the crypto market is down 41% on the month.

Is it finally time for a bear market thread from croissant? Let’s give it a shot… (1/x) 🐻
With tokens reaching several year lows, surely there are other great investment opportunities arising in the real world…

Let’s take a look at stocks.

Oh, the Nasdaq is down 12.7% this month, wiping out many months of single digit gains?

That’s okay. that’s just one example…
By now you’d think all these people would stop using Ethereum so much with gas fees so high & block space getting so undesirable, right?

Mmm, no. Despite extraordinarily high fees, a growing number of users continue to bid to get their transactions included in the next block…
Read 10 tweets
Jan 24
Think the building + hype behind NFTs and web3 is slowing down? Think again.

Last week an ETH hackathon led by ETHGlobal broke all previous records

It showcased 255 projects built by more than 800 devs in 68 different countries

I’ll describe some of the best projects below! 🥐
1. Creativerse

Creativerse is a Minecraft server that is connected to the Ethereum network.

Users can purchase plots as NFTs, with block data of each plot stored in the NFT.

This means that anyone (even you!) can run a server, & no matter what, your build cannot be censored 👀
2. Duomint

Want to onboard a friend into web 3.0 without worrying about the gas costs?

Duomint makes this easy. Anyone who wants can cover the gas fees for a mint

It adds a DuoMint function that, when called, mints 2 NFTs, one to the msg.sender and one to another account(s)
Read 24 tweets
Dec 22, 2021
Here you go .@elonmusk

For more than a year now I have been working on a cumulative effort to showcase the unique features of web3 & NFTs.

Allow me to explain my experience with this… 🥐
First off, writing for a living sucks.

Writers have few options to choose from when it comes to platforms, all part of a larger monopoly who picks and chooses what can be said on the internet.

I didn’t even start writing with crypto, my first gig was writing in politics…
Every day in high school I would work my ass off building my Facebook and Twitter pages up to the hundreds of thousands of followers…

Until that all came to an end.

I will never forget the day that Facebook permanently banned my pages for what could only be political reasons..
Read 25 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Don't want to be a Premium member but still want to support us?

Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

:(