Yarden Shafir Profile Banner
Yarden Shafir Profile
Yarden Shafir

@yarden_shafir

Followers
19,090
Following
273
Media
718
Statuses
5,690

A circus artist with a visual studio license

Joined January 2018
Don't wanna be here? Send us removal request.
Explore trending content on Musk Viewer
Pinned Tweet
@yarden_shafir
Yarden Shafir
2 years
Trying to learn security research and getting overwhelmed by all the details? I just published a guide showing my process for step-by-step analysis of a security feature:
Tweet media one
21
552
2K
@yarden_shafir
Yarden Shafir
24 days
My teenage brother interviewed for a job at McDonalds. They asked him why he wants to work there, and why he chose McDonalds specifically. What’s the expected answer from a teenager looking for an after school job selling burgers?
2K
2K
92K
@yarden_shafir
Yarden Shafir
24 days
Things were so much easier when I was a kid. Then the bar was “do you have a pulse and are you willing to work for minimum wage and mild verbal abuse?”
44
310
31K
@yarden_shafir
Yarden Shafir
2 years
My teenage brother’s coding teacher is telling them to keep variable names short - 1-2 characters, to make their code shorter and save space. If you teach, please don’t do this. Im trying to undo the damage now.
468
740
13K
@yarden_shafir
Yarden Shafir
24 days
@cyberwabz I worry they’ll take it the wrong way. That specific branch has been a pretty remarkable failure 😂
13
15
10K
@yarden_shafir
Yarden Shafir
3 years
All those hacker movies really didn't prepare me for how working in cybersecurity is mostly just moving Jira tickets around
81
488
4K
@yarden_shafir
Yarden Shafir
24 days
@gleebix Would hire immediately
2
5
3K
@yarden_shafir
Yarden Shafir
2 years
Linux integration into Windows is so much more impressive than I thought! This recent build even broke the audio drivers to give us the full Linux experience 🤩
36
272
3K
@yarden_shafir
Yarden Shafir
24 days
@tony_bridges_el Hahaha what an experience
1
0
2K
@yarden_shafir
Yarden Shafir
24 days
@_mattata Wow that’s so much better than anything I could come up with
8
1
2K
@yarden_shafir
Yarden Shafir
24 days
@Asher_Wolf Not gonna lie if a kid said that to me with a serious face I don’t think I could stop myself from laughing
3
11
2K
@yarden_shafir
Yarden Shafir
1 year
This is what defeat looks like
Tweet media one
27
90
2K
@yarden_shafir
Yarden Shafir
1 year
Microsoft wiping all their old blog posts and documentation is a modern tragedy
50
85
1K
@yarden_shafir
Yarden Shafir
17 days
I’m proud to announce that after 2 hours of debugging I managed to get my machine back to the same working state it was in before I fucked with it
20
100
1K
@yarden_shafir
Yarden Shafir
11 months
Is my code pretty? No. But does it work? Also no. But is it well documented? Absolutely not.
38
211
1K
@yarden_shafir
Yarden Shafir
3 years
This is a historical moment. After 5 years in cybersecurity I finally decided that I actually do need more than one screen.
54
32
1K
@yarden_shafir
Yarden Shafir
2 years
@quentynblog A whole colon? In this economy??
4
20
1K
@yarden_shafir
Yarden Shafir
2 years
I hate that I’ve become the person who answers technical questions with “it depends” and “what are you actually trying to do”
59
79
1K
@yarden_shafir
Yarden Shafir
24 days
@cyberwabz Haha I don’t care if the branch succeeds or fails. He doesn’t need a 20 year career there, he just wants some money for snacks and football games
8
1
873
@yarden_shafir
Yarden Shafir
4 years
The WinDbg data model is awesome and still being ignored by way too many people! So I wrote a guide for using it, hoping it would change your debugging experience the same way it changed mine:
10
260
725
@yarden_shafir
Yarden Shafir
2 years
As promised, I wrote about my Windows 11 post exploitation technique to go from an arbitrary write/increment to a full read/write through I/O rings:
Tweet media one
3
266
688
@yarden_shafir
Yarden Shafir
1 year
Be warned, anyone asking me how to become a hacker will receive this PDF of the full intel manual that is eternally open in my browser
Tweet media one
42
32
631
@yarden_shafir
Yarden Shafir
1 year
Microsoft is preparing to kill many known KASLR bypasses in the next release. Unless the calling process has debug privilege enabled, kernel addresses will be stripped from the output data for all leaking NtQuery APIs
Tweet media one
12
150
628
@yarden_shafir
Yarden Shafir
11 months
Today my code is failing because calling rand() only ever returns 41. On every single run. No, I have no answers.
44
28
599
@yarden_shafir
Yarden Shafir
2 years
@tihmstar With 2 chars you can get up to 676 variables and entirely unreadable code
10
2
589
@yarden_shafir
Yarden Shafir
2 months
When has anyone ever wanted the full Teams experience
Tweet media one
12
57
577
@yarden_shafir
Yarden Shafir
3 months
MacOS people, how do you do it? This is the worst UX I’ve ever seen. Nothing is where I expect it to be. Nothing works the way I think it will,l. Error messages don’t mean anything and there’s no confirmation when an action is done??? What is this system???
101
32
543
@yarden_shafir
Yarden Shafir
1 year
Can we talk about how Windows Defender is using undocumented features that other EDRs aren't supposed to know about or use (officially)?
Tweet media one
26
92
535
@yarden_shafir
Yarden Shafir
2 months
“A day in the life of a hacker” but it’s just me setting up Python virtual environments and fighting VM networking issues for 12 hours straight
11
58
534
@yarden_shafir
Yarden Shafir
2 years
Trying to learn RE? Compile an open source project and RE it side by side with the source code. Try to guess what the assembly does and compare your guesses with the code until you intuition gets better and you learn to recognize patterns.
12
85
476
@yarden_shafir
Yarden Shafir
3 years
I pretended I'm an exploit dev and created a stable exploit to CVE-2020-1034, that's tagged by MS as "low complexity". But only if crashing the machine is your only goal: Thank you @aionescu for all the help and reviews! 😄
Tweet media one
4
157
480
@yarden_shafir
Yarden Shafir
1 year
Want to practice your kernel VM and exploitation skills? Pick any driver from the HVCI driver block list and see what you can find. Here for example is NCHGBIOS2x64.sys, that has some pretty clear issues (systemBuffer is user input):
Tweet media one
Tweet media two
Tweet media three
Tweet media four
5
98
469
@yarden_shafir
Yarden Shafir
1 year
Today's post for those of you interested in debugging, memory forensics, and obscure driver communication methods:
Tweet media one
6
150
474
@yarden_shafir
Yarden Shafir
4 years
After a lot of work and some crypto-related delays, I couldn't be more proud to publish @aionescu 's and mine latest research - The complete overview of CET internals on Windows (so far!):
10
219
466
@yarden_shafir
Yarden Shafir
3 years
A new blog post in which I get in touch with my inner dev and write about a non-security feature - I/O Rings: As always, thank you @aionescu for the technical help and the reminder that sometimes code is added to do stuff, not just break them.
Tweet media one
11
138
453
@yarden_shafir
Yarden Shafir
3 years
Running out of EDR bypass techniques (that's funny, of course you're not)? Don't worry, Microsoft is here to help you with a new one:
Tweet media one
5
181
427
@yarden_shafir
Yarden Shafir
3 years
A bit late to the party but here's my contribution to #infosecbikini
Tweet media one
6
4
420
@yarden_shafir
Yarden Shafir
3 months
I get lots of requests for recommended resources for learning Windows, exploitation, VR, etc. I have some good links but there’s lots of others I don’t know or forgot about. Give me your best suggestions please! Feel free to link your own stuff, I wanna see it!
24
123
418
@yarden_shafir
Yarden Shafir
6 months
Thanks Uber
Tweet media one
13
13
408
@yarden_shafir
Yarden Shafir
16 days
If you’re considering a career in low level research and exploitation please keep in mind that in the last 36 hours I spent 8 hours staring at a raw physical memory dump looking for byte patterns that might not exist there
14
19
403
@yarden_shafir
Yarden Shafir
5 months
Be prepared to lose your kernel pointers! Windows will soon start restricting KASLR leaks to non-admins: (mentioned this here before but figured it's worth a blog post)
Tweet media one
10
132
396
@yarden_shafir
Yarden Shafir
1 year
RE riddle: what does this function do?
Tweet media one
30
26
393
@yarden_shafir
Yarden Shafir
2 years
Did you know you can mark things in WinDbg in different colors to keep track of repeated values? I find it super useful when debugging things involving large data structures with no available symbols
Tweet media one
9
59
390
@yarden_shafir
Yarden Shafir
4 years
Can your EDR detect symbolic link callback rootkits? Because ours sure as heck can't. @aionescu and I wrote about these!
4
151
362
@yarden_shafir
Yarden Shafir
1 year
170 of the drivers load with the most recent HVCI driver blocklist. Do with this information what you will.
Tweet media one
Tweet media two
Tweet media three
Tweet media four
8
90
351
@yarden_shafir
Yarden Shafir
1 year
- Write driver that blocks all DNS traffic for a project - Load driver to test - Get distracted by unfamiliar API - Google the API, get network error - Debug network issues for 30 minutes - Remember DNS-blocking driver Wish I could say this only happened once.
5
18
350
@yarden_shafir
Yarden Shafir
2 years
Tech enthusiast: computers are deterministic. None of it is magic. Everything has a rational explanation. Tech professionals: My compiler doesn’t like it when the screen is facing the door so I need to turn the screen to make it happy
12
45
325
@yarden_shafir
Yarden Shafir
1 month
I know comparing ourselves to others is dumb. But my research hasn’t been going well lately and seeing all the amazing pwn2own winners this week got me feeling a bit down. So, taking a short break from computers and going to touch sand.
Tweet media one
21
7
323
@yarden_shafir
Yarden Shafir
9 months
As of build 25915 (latest Preview) all known API based kernel address leaks no longer work unless requested by a process with SeDebugPrivilege (only available to admin processes)
Tweet media one
@yarden_shafir
Yarden Shafir
1 year
Microsoft is preparing to kill many known KASLR bypasses in the next release. Unless the calling process has debug privilege enabled, kernel addresses will be stripped from the output data for all leaking NtQuery APIs
Tweet media one
12
150
628
6
106
314
@yarden_shafir
Yarden Shafir
2 months
Attention EDR developers: In 24H2 MS will allow you to receive notifications for drivers blocked by HVCI through SeRegisterImageVerificationCallback through a new CallbackType. You'll need to register twice: once for image loads and once for HVCI-blocked images.
Tweet media one
Tweet media two
Tweet media three
4
83
316
@yarden_shafir
Yarden Shafir
2 years
As a security person I appreciate all the browser and system features that make it harder for users to accidentally download and run malware. As someone who just spent 15 minutes trying to get a malicious driver I need for testing, fuck this.
11
25
313
@yarden_shafir
Yarden Shafir
1 year
Never imagined I’d get such positive feedback on my OffensiveCon talk from all the people I look up to so much. You all are the best and made me so happy 🥰 Slides + recording will be published. Photo by @daveaitel
Tweet media one
10
16
293
@yarden_shafir
Yarden Shafir
4 years
After the WinDbg guide, here's another useful thing you should get to know better - the Windows Debugger API. Thank you @aionescu for introducing me to this and for making this post better :)
1
117
293
@yarden_shafir
Yarden Shafir
2 years
Getting lots of questions lately about how I approach a new research project. So here's a new post documenting the research process of another mitigation: module tampering protection:
Tweet media one
5
102
284
@yarden_shafir
Yarden Shafir
2 years
Today is my last day at CrowdStrike. I had the privilege to work with the most incredible people and learned so much. I can't wait to see all the amazing things they'll keep building. Now I'll see if I can remember how to rest before doing my next thing soon!
19
3
276
@yarden_shafir
Yarden Shafir
2 years
Another glamorous day in the life of a reverse engineer
Tweet media one
15
23
273
@yarden_shafir
Yarden Shafir
3 years
We have just launched  - a space for the security and low level community including forums, articles and tools. Join, ask questions, answer questions and read the awesome blogs!
7
81
272
@yarden_shafir
Yarden Shafir
1 year
Love seeing this exploit use my I/O ring exploitation technique 🥰 Waiting for the blog post! For any other potential exploit writers, the technique is described here:
@chompie1337
chompie
1 year
Releasing a Windows 11 LPE exploit by @FuzzySec and I. Exploits CVE-2023-21768, a vuln in afd.sys. Blog post soon!
32
574
2K
2
67
269
@yarden_shafir
Yarden Shafir
1 year
I could tweet that my laptop died cause I dropped it in the ocean and some people here would still reply to tell me I should use Linux
33
18
266
@yarden_shafir
Yarden Shafir
3 years
Is there a way to leave infosec without starting a tomato planting business or is that required?
28
20
261
@yarden_shafir
Yarden Shafir
2 years
Closing 100 chrome tabs without looking at their content is self care
9
19
265
@yarden_shafir
Yarden Shafir
6 months
Someone this morning was very upset that they are forced to see my circus content on their feed. So anyway, here’s more circus content.
22
7
262
@yarden_shafir
Yarden Shafir
24 days
@evans_cn A weird way to interview teenagers in any job market
2
2
256
@yarden_shafir
Yarden Shafir
2 months
This occasionally comes up in my DMs so here's a few Windows Internals / RE exercises and projects for people at different knowledge levels: 1. What happens when you call CreateFile? From Win32, syscall, filter drivers, filesystems, disk access, etc. 1/2
4
39
255
@yarden_shafir
Yarden Shafir
2 years
Yesterday was my first day @trailofbits 😱 I’m excited and terrified and feel like an imposter all over again. Overall I have a good feeling about this change!
17
8
253
@yarden_shafir
Yarden Shafir
2 years
For the new year I started a new blog post series on HyperGuard: PatchGuard’s lesser-known sibling:
3
89
252
@yarden_shafir
Yarden Shafir
2 years
The real heroes of RE work: - Plain txt websites in Russian - GitHub pages in Chinese - anonymous webpage created in 2007 called input.c.html
6
19
249
@yarden_shafir
Yarden Shafir
2 years
1
0
241
@yarden_shafir
Yarden Shafir
2 months
appid.sys receives 2 function pointers from a user and blindly calls them. 0 validations are done. The most interesting part of this bug to me is that this very trivial bug isn't an ancient one that hasn't been discovered for decades -- it was introduced in Windows 10.
@blackorbird
blackorbird
2 months
#Lazarus exploited a flaw in the Windows AppLocker driver (appid.sys) as a zero-day to gain kernel-level access and turn off security tools.CVE-2024-21338 Beyond BYOVD with an Admin-to-Kernel Zero-Day
Tweet media one
7
180
503
5
66
241
@yarden_shafir
Yarden Shafir
2 years
It's impossible for me to do time estimates because my 3-day hyperfocus got me 80% through a huge task but now it's over so the last 20% will take 6-8 weeks
3
20
238
@yarden_shafir
Yarden Shafir
1 year
Quick blog post on a new ETW event to monitor "valid" KASLR bypasses through system calls:
Tweet media one
7
104
239
@yarden_shafir
Yarden Shafir
2 years
xmm instructions are all generated by cats walking on keyboards. If I'm wrong, explain this: punpcklqdq
10
37
228
@yarden_shafir
Yarden Shafir
2 years
WinDbg tip of the day: !chksvctbl -v Prints all NT system calls, their indexes and addresses @windbgtips
1
35
224
@yarden_shafir
Yarden Shafir
3 years
ADHD people: how do you keep a healthy eating schedule, especially in non-work days? Almost every day I look at the time around lunch and discover it's 7pm and all I ate today is too much coffee.
47
17
217
@yarden_shafir
Yarden Shafir
2 years
Windows persistence tip: lots of binaries run from user-writeable paths and search for DLLs in their own directory before they try System32. Create a fake common DLL in their dir and it'll get autoloaded when the app runs (bonus points if app auto-runs at boot)
7
42
209
@yarden_shafir
Yarden Shafir
9 months
This is where I go to pretend that computers don’t exist
19
4
212
@yarden_shafir
Yarden Shafir
2 years
Pro tip for Windows kernel researchers: read the Linux kernel docs. Yes, seriously.
3
11
205
@yarden_shafir
Yarden Shafir
2 years
It's been a while since part 2 so here's part 3 of the HyperGuard analysis series: registers, intercepts, extents and more:
Tweet media one
1
70
207
@yarden_shafir
Yarden Shafir
3 years
Officially presenting PoolViewer - a pool analyzing tool for RS5+: I'm super excited about this tool and hope you will be too!
Tweet media one
4
59
198
@yarden_shafir
Yarden Shafir
3 years
Slides for my talk "Windows Heap-backed pool: the good, the bad and the encoded" are available here:
1
74
201
@yarden_shafir
Yarden Shafir
24 days
@LongBoi_Mat I haven’t seen that clown in years! Think he was retired for scaring children?
4
0
199
@yarden_shafir
Yarden Shafir
2 years
Fangirling over @chompie1337 for facing every speaker’s worst nightmare and delivering a 🔥🔥 talk
Tweet media one
7
3
198
@yarden_shafir
Yarden Shafir
2 years
I’m using a debugger to debug my kernel debugger that I set up to debug the user-mode debugger on my VM so I think this is the time to switch from coffee to wine
9
18
195
@yarden_shafir
Yarden Shafir
24 days
@tony_bridges_el I’d feel the same way. You clearly wanted that job more than any other candidate.
1
1
196
@yarden_shafir
Yarden Shafir
11 months
Fun WinDbg TTD (Time Travel Debugging) fact: you can query all the function calls done by a process, and the query supports wildcards
Tweet media one
6
35
191
@yarden_shafir
Yarden Shafir
1 year
@vxunderground Starting the timer until a vulnerability through malicious document “history” leads to code execution in explorer.exe
2
4
189
@yarden_shafir
Yarden Shafir
1 month
This is my only contribution to the xz backdoor discussion
Tweet media one
4
36
194
@yarden_shafir
Yarden Shafir
3 years
21H1 introduced a new change to the kernel dispatcher for the first time in a decade - so I had to write about it and find creative uses for it:
Tweet media one
2
72
193
@yarden_shafir
Yarden Shafir
2 years
For someone used to reverse engineering every little thing on Windows being able to read the source code for Linux features feels like cheating
7
9
187
@yarden_shafir
Yarden Shafir
2 years
@netspooky Today I found a technical discussion between 2 Russian researchers where they agreed that they could switch to Russian but will keep using English for future people who look into the topic and I don’t know who they are but I love them
2
6
185
@yarden_shafir
Yarden Shafir
1 month
No idea why but seems like lots of people here think I’m a man. Doesn’t especially bother me, but um… I’m not. Anyway.
Tweet media one
16
2
186
@yarden_shafir
Yarden Shafir
22 days
Shout out to @aall86 for building SkTool. The easiest way to find out what Hypervisor / secure kernel features are enabled on a system
Tweet media one
6
39
183
@yarden_shafir
Yarden Shafir
1 month
Can’t share any details but I did a cool thing today and wanna be excited about it so please be excited for me
17
3
184
@yarden_shafir
Yarden Shafir
1 year
🥳
Tweet media one
6
38
178
@yarden_shafir
Yarden Shafir
11 months
@x86matthew Wow there’s an actual answer!! And yes my srand() got lost in the refactoring 😅
1
1
180