Alan Lai (@wp__lai) profile picture

Solidity developer & auditor

Joined June 2014
Foundry has a new release candidate: v1.4.0-rc3! Highlights include: backtraces, configuration inheritance & multi-chain configuration, forge fmt powered by Solar🌞, enhanced coverage guided fuzzing, custom precompiles & many performance improvements! $ foundryup -i v1.4.0-rc3
11
32
17
173
44,156
Alan Lai retweeted
1/10 @troublor says wait, but I can't. Can't wait. We are builting an Ethereum debugger with 1) true source-level stepping, 2) near-100% local/state variable inspection, and 3) on-the-fly Solidity expression eval at any step. Screenshots below; details in the thread.
222
36
20
226
76,219
Reminder guys: now with PECTRA ethereum upgrade, you only need to sign a message to get completely drained! Before, you actually had to sign the TX. Be very careful of what you sign now - even an offchain message!
96
371
83
1,274
319,164
We have to take the LLMs to school. When you open any textbook, you'll see three major types of information: 1. Background information / exposition. The meat of the textbook that explains concepts. As you attend over it, your brain is training on that data. This is equivalent to pretraining, where the model is reading the internet and accumulating background knowledge. 2. Worked problems with solutions. These are concrete examples of how an expert solves problems. They are demonstrations to be imitated. This is equivalent to supervised finetuning, where the model is finetuning on "ideal responses" for an Assistant, written by humans. 3. Practice problems. These are prompts to the student, usually without the solution, but always with the final answer. There are usually many, many of these at the end of each chapter. They are prompting the student to learn by trial & error - they have to try a bunch of stuff to get to the right answer. This is equivalent to reinforcement learning. We've subjected LLMs to a ton of 1 and 2, but 3 is a nascent, emerging frontier. When we're creating datasets for LLMs, it's no different from writing textbooks for them, with these 3 types of data. They have to read, and they have to practice.
378
1,727
203
11,736
723,595
Nice post on software engineering. "Cognitive load is what matters" minds.md/zakirullin/cognitiv… Probably the most true, least practiced viewpoint.
148
801
90
6,866
677,602
Dear players of Damn Vulnerable DeFi, rumours are true. The most vulnerable smart contracts in all web3 have been upgraded. V4 is out! 🔥 This is a major update to the game, packed with new challenges and improvements all around. damnvulnerabledefi.xyz/v4-re…
34
107
30
433
47,401
Today we’re releasing weAudit, the VSCode extension we use during secure code reviews to collaboratively take notes and highlight code regions. blog.trailofbits.com/2024/03…
17
149
33
552
66,129
Alan Lai retweeted
After two days of relentless hacking and countless cups of coffee later, it's finally a wrap for @paradigm_ctf 2023. Result Rundown: - We tackled 14 of the 17 demanding challenges presented, and all cryptography and pwning questions were completed. The Solana question eluded us, stepping outside our expertise, and two KOTH questions remained untouched. We also seized first blood on the 100% challenge 🩸 Enormous gratitude to @samczsun and @paradigm_ctf for crafting such an invigorating #CTF competition. This was more fun than we expected, we are seeing a lot of different companies banding together to tackle these challenges. This sparks an idea for the next showdown—how about joining forces to crack the codes? Who's in for some collaborative hacking fun? 😜 The camaraderie within the community was inspiring, and we are already buzzing for the next one! #teamSalute #CTF
3
8
2
27
7,088
The new Echidna release allows testing against on-chain state instead of having to set everything up yourself. This should open up a lot of avenues for security researchers to test against deployed contracts github.com/crytic/echidna/re…
1
40
4
130
14,655
As smart contract security evolves, property-based fuzzing has become a go-to technique for developers and security engineers. To help the community define properties, we are releasing a set of 168 pre-built properties that can be used to guide Echidna. blog.trailofbits.com/2023/02…
5
45
5
188
38,628
Hey #BUIDLers, need a quick testnet and need it fast? Jump to development and testing with Tenderly Forks! ✅ 10 unlocked accounts funded with 100 ETH each ✅ Team-sharable JSON-RPC URL ✅ Complete & fast TX execution ✅ Tenderly Debugger available out of the box
2
8
4
21
5,721
1/ Ethereum has over 290 MILLION lines of smart contract code 🦇🔊 and it's VERY HARD to search that codebase! Today @garythung and I are launching V1 of codeslaw.app as a public good to help developers easily find and learn from battle-tested code. Example queries👇
32
204
41
905
135,060
Bet you didn't know slither can automatically generate invariants to fuzz! In this thread I break down 3 insanely valuable slither features that few know about. 🧵
2
25
2
90
10,343
⚒️ Foundry Feature Alert Introducing `forge doc`
15
49
5
360
78,753
There is one Solidity feature that goes virtually unnoticed in the land of auditing. This feature is possibly the MOST underrated feature in Solidity. Let's learn everything about it in this thread 👇 🧵
13
49
6
162
28,848
Dear breakers of DeFi, today is a good day. A new version of Damn Vulnerable DeFi is out ! damnvulnerabledefi.xyz/v3-re… What's included ?
53
238
31
622
154,400
Want some security alpha for powering through my world cup tweets anon? Check this out 👇 theauditorbook.com/ What is it you ask? A compilation of high and medium-severity findings from Code4rena & Sherlock compiled by @aviggiano 🐐
1
5
1
26
Alan Lai retweeted
Today we release an inspirational talk by @tinchoabbate who pulls from previous experiences, best practices, and ethereum culture to dive deep into the spirit of security auditing + ecosystem safety. Enjoy! youtu.be/3wwOb1HO20w
1
16
6
53