HAFNIUM - Post-Exploitation Analysis from Microsoft Exchange

แชร์
ฝัง
  • เผยแพร่เมื่อ 7 มี.ค. 2021
  • If you would like to support the channel and I, check out Kite! Kite is a coding assistant that helps you code faster, on any IDE offer smart completions and documentation. www.kite.com/get-kite/?... (disclaimer, affiliate link)
    For more content, subscribe on Twitch! / johnhammond010
    If you would like to support me, please like, comment & subscribe, and check me out on Patreon: / johnhammond010
    PayPal: paypal.me/johnhammond010
    E-mail: johnhammond010@gmail.com
    Discord: johnhammond.org/discord
    Twitter: / _johnhammond
    GitHub: github.com/JohnHammond

ความคิดเห็น • 265

  • @jbgaud
    @jbgaud 3 ปีที่แล้ว +48

    it's fun to see how this thing works after speding two days patching all my exchange servers.
    Thanks.

  • @arandomboredindividual7855
    @arandomboredindividual7855 3 ปีที่แล้ว +90

    the thumbnail looks like its from a movie, great work John!

    • @deepergodeeper7618
      @deepergodeeper7618 3 ปีที่แล้ว +4

      when nerds attack coming this summer

    • @andymcnab326
      @andymcnab326 3 ปีที่แล้ว +1

      Hes not pulling a stupid face for once well done John

  • @ruxxuc2091
    @ruxxuc2091 3 ปีที่แล้ว +25

    I want to thank you John because you took me to another stage in the cyber world

  • @insoYT
    @insoYT 3 ปีที่แล้ว +22

    This is interesting stuff. We've had so many interesting (& super dangerous) exploits and vulnerabilities in last few years.
    At 22:30 , it's a trick to add timestamps into URL. That's probably easiest way to make sure responses are not cached at any point. Of course it could be just lazy coding and used for monitoring purposes.
    But little bit later John downloaded the payload (or w/e it turned out be) without the timestamp in URL. I'd always recommend to download payloads with exact same syntax. It's way too easy for malware developer to try to mislead here. If they had some nasty next stage, they could make it look like just like a boring and usual looking malware. And misleading the analysis is absolutely part of the game.

  • @zikkthegreat
    @zikkthegreat 3 ปีที่แล้ว +35

    whole, gigantic powershell script, as a big ol’ format string? that’s neat

  • @scottanderson2871
    @scottanderson2871 3 ปีที่แล้ว +12

    Been a software dev for a long time. Never seen this type of analysis done before... and watching this was absolutely fascinating.

  • @karimmohamed3744
    @karimmohamed3744 3 ปีที่แล้ว +46

    I wasn't feeling good at all today. This video revamped me and bumped me up. Thanks John for not being just educational. But, entertaining and fun to watch too. Sending love and hoping ur having a great day

  • @rainworldenthusiast
    @rainworldenthusiast 3 ปีที่แล้ว +3

    This is such an excellent primer for this sort of work, and you make it so entertaining! Looking forward to binging all your videos over the next couple of days :)

  • @rileymccoy8154
    @rileymccoy8154 3 ปีที่แล้ว +3

    This high of production quality and you were able to put this out the same day you were prodding around. I appreciate the work you're doing, its extremely informative so thank you.

  • @TheH2OWeb
    @TheH2OWeb 3 ปีที่แล้ว +1

    Thank you John !! Once again, I had fun and learned as much as I could (only some but that's in the right direction). You're awesome !

  • @potatoonastick2239
    @potatoonastick2239 3 ปีที่แล้ว +1

    I thoroughly enjoyed the premiere + live chat replay feature here, as well as the content itself obviously. Keep up the good work my dude, im already recommending your channel to my friends!!!

  • @netanel135
    @netanel135 3 ปีที่แล้ว +5

    I never commented on youtube videos before, but, I really want to thank you John Hammond for all the good work you're doing. You are F awesome and please keep it up. BTW, you are my favorite cyber-related TH-camr!

  • @Cyberducky
    @Cyberducky 3 ปีที่แล้ว +2

    I don't know how you do it but whenever I watch one of your videos about malware analysis the time simply passes so quickly. Very entertaining thank you!

  • @fumfsmdb
    @fumfsmdb 3 ปีที่แล้ว +1

    Your videos are great! I'm glad I found your channel. You have great information in a lot of topics I cover at work.

  • @Mbro-dq2do
    @Mbro-dq2do 11 หลายเดือนก่อน

    How John doesn't have millions of followers is beside me. Thank you for all this info John. Being 45 I missed the boat in the early 2000's but a year in Im hooked. Thanks to YOU David Bombal and Network Chuck you guys have helped this construction old guy immensely

  • @Xilhion
    @Xilhion 3 ปีที่แล้ว +3

    Thanks for bringing awareness to such hacks. Right after the video, i checked the last few customers that still has on-premises exchange, and 75% of them were affected. We could mitigate the risk and apply fixes before anything worse happened. Thanks for this John Hammond.

  • @Lexxrt
    @Lexxrt 3 ปีที่แล้ว +67

    Title Contains: Post Exploitation
    Me: Oh Yeah, This is gonna be good

  • @Zed0086
    @Zed0086 3 ปีที่แล้ว +4

    Best instructor I have come across. New subscriber here! Thank you good sir!

  • @Aerogamer158
    @Aerogamer158 3 ปีที่แล้ว +2

    You’re a good guy. Don’t let the others bring you down just because you’re compiling open source information and sharing it in a logical and comprehensive manner. Though I consider myself a home brewed IT craptastistic person, I appreciate the information given every time you put up a video.

  • @angelsepulveda9211
    @angelsepulveda9211 3 ปีที่แล้ว

    Thanks John. As a newbie, this was great. Love how you broke it up and explain this so much!!!!

  • @AustralianCyberOps
    @AustralianCyberOps 3 ปีที่แล้ว +1

    Excellent work John, love your work mate!

  • @dvs.shank.16
    @dvs.shank.16 3 ปีที่แล้ว +5

    Finishing up my final year in cybersecurity in college and videos like these make me so much more intrigued about this field, and that much more excited and motivated to learn more. Thank you for all the hard work you put into these!

    • @nosignal5735
      @nosignal5735 3 ปีที่แล้ว

      What's the name of your college? If u don't mind telling me

  • @TheAnurag69
    @TheAnurag69 3 ปีที่แล้ว +2

    Addicted to this content. How can I watch this whole video without any break?
    Inner me : You found new love !

  • @fractalmultiverse
    @fractalmultiverse 3 ปีที่แล้ว

    Great content John. Education and humour smashed. Big thumbs up for this one. Thanx

  • @St3amPunk
    @St3amPunk 3 ปีที่แล้ว +13

    I'm absolutely Stoked for the NahamCon CTF!!!!

  • @tanveeraalam3271
    @tanveeraalam3271 3 ปีที่แล้ว

    Thank you for your efforts and time, I really appreciate it.

  • @xaviercho7063
    @xaviercho7063 3 ปีที่แล้ว +3

    i love all these type of videos, can't wait for more such that solarwinds or more of this helps!

  • @fhacim6568
    @fhacim6568 3 ปีที่แล้ว

    Wonderful as always, great video!

  • @MrBlackFiction
    @MrBlackFiction 3 ปีที่แล้ว +1

    Nice, You helped me a lot to understand the Threat!

  • @Ylmorko
    @Ylmorko 3 ปีที่แล้ว +12

    I'm watching this as I going through our exchange server logs looking for backdoors :D a nice coincidance

    • @Cavemannnnnn
      @Cavemannnnnn 3 ปีที่แล้ว

      goodluck lol

    • @jiu
      @jiu 3 ปีที่แล้ว

      Same… already patched some servers

  • @lethil
    @lethil 2 ปีที่แล้ว +1

    As someone who knows next to nothing on malware analysis I had a funny feeling mimikatz would turn up haha. I have learnt so much from these exploration videos only knowing intro level programing and just learning cyber security, it was awesome to see the obsfucation techniques and layers built into this and connected so many dots for me. Awesome video.

  • @brianstarr
    @brianstarr 3 ปีที่แล้ว

    T`han`ks for making the video! Good stuff down the rabbit hole. UGH, Empire is scary.

  • @potatoonastick2239
    @potatoonastick2239 3 ปีที่แล้ว +1

    Also the powershell explosion + guy fawkes mask was hilarious :D

  • @atsekbatman
    @atsekbatman 3 ปีที่แล้ว +1

    It's been a pleasure, John!

  • @minhquang3126
    @minhquang3126 3 ปีที่แล้ว

    Cool thumbnail, cool video, cool person, could not asked for more :D

  • @israeltakaw112
    @israeltakaw112 3 ปีที่แล้ว

    John, you make it very entertaining even though it makes my brain ache!

  • @PerfectKlaus
    @PerfectKlaus 3 ปีที่แล้ว

    Amazing work, thank you for sharing

  • @DCLEE-co3dj
    @DCLEE-co3dj 3 ปีที่แล้ว

    Hopefully no one tries to salem witch trial you for mis speaking because you are human after all.. I'm happy you are sharing public info for education. If someone gets upset about it then they must have ill intentions with that information. Keep up the great work!

  • @n-i-n-o
    @n-i-n-o 3 ปีที่แล้ว +1

    Great reversing. Subscribed

  • @acevlt
    @acevlt 3 ปีที่แล้ว

    Great Video!!! Can't wait for more.

  • @SwissPGO
    @SwissPGO 3 ปีที่แล้ว +2

    Great video & I'm installing my fax machine again ;-)

  • @anders6671
    @anders6671 3 ปีที่แล้ว

    Great video, thanks for sharing this!

  • @nikolas8741
    @nikolas8741 3 ปีที่แล้ว +3

    This is professional evilness thanks for showing us this John this is very interesting to me! Big like

  • @RonKirschler
    @RonKirschler 3 ปีที่แล้ว +3

    At around 20:54 the $dt is used to ensure cdn caching is bypassed. So the code on the cdn is static, but as soon as it is changed, the client is supposed to request a new copy.

  • @revenevan11
    @revenevan11 3 หลายเดือนก่อน

    Man, around 45:00 min in you weren't even exaggerating about that being an epiphany 😂
    What a cool obfuscation technique!

  • @TexasTimelapse
    @TexasTimelapse 3 ปีที่แล้ว

    Thanks for doing this. Very interesting.

  • @facelesshacker1528
    @facelesshacker1528 3 ปีที่แล้ว

    Thanks John, learnt a lot.

  • @uniquechannelnames
    @uniquechannelnames 3 ปีที่แล้ว +1

    Hey I signed up for a CTF randomly on CTFtime, and was pleasantly surprised to see it was one you created! Lol, I'm looking forward to it!

  • @Ayush-vy2kq
    @Ayush-vy2kq 3 ปีที่แล้ว

    You're doing a great job Hammond

  • @akazaka3578
    @akazaka3578 3 ปีที่แล้ว

    This was awesome man thanks!

  • @fastmover45
    @fastmover45 3 ปีที่แล้ว +13

    can you do a longer deep dive into this sort of stuff in the future this is just magic and easy to digest

  • @tetetsky
    @tetetsky 3 ปีที่แล้ว

    Thank you, this is very helpful!

  • @SageTheProfessor
    @SageTheProfessor 3 ปีที่แล้ว +1

    Thank you John. As always you are very helpful and I appreciate you going through the reverse engineering process. See you on the next one! --Sage

  • @brianbitange6650
    @brianbitange6650 3 ปีที่แล้ว

    Now I just like your content before watching! Its that good!!

  • @jamalkhan815
    @jamalkhan815 3 ปีที่แล้ว

    Great work man!!!

  • @gp6723
    @gp6723 3 ปีที่แล้ว

    great content, as usual !

  • @savoyblue777
    @savoyblue777 3 ปีที่แล้ว

    Thank you John Very intresting

  • @rahuldogra9271
    @rahuldogra9271 3 ปีที่แล้ว

    Crazy Thumbnail John!!

  • @39580xxx
    @39580xxx 3 ปีที่แล้ว +16

    John looks intimidating in this thumbnail

  • @JTwisted
    @JTwisted 3 ปีที่แล้ว

    Bro, just want you to know, you are awesome!

  • @BugsMoney007
    @BugsMoney007 3 ปีที่แล้ว

    This 1Hr of video teaches more than what I have learnt in past 25 years of my life. Truly appreciate the knowledge you shared and for free.

  • @K2_Chris
    @K2_Chris 3 ปีที่แล้ว +1

    Thanks for the good laugh when you copy and paste that big file! :) I would have done the same thing haha

  • @palva01
    @palva01 3 ปีที่แล้ว

    Thank you, learned alot

  • @rxhango
    @rxhango 3 ปีที่แล้ว

    Great Analysis

  • @AlphaLumenTV
    @AlphaLumenTV 3 ปีที่แล้ว +1

    Got mind blown by that huge Powershell script made only for building an fstring piece by piece. Insane stuff!

  • @GilligansTravels
    @GilligansTravels 3 ปีที่แล้ว

    Man that was fun and I love the recon of it

  • @janisberzins5919
    @janisberzins5919 3 ปีที่แล้ว

    That is some next level PS scripting! Thanks for the video, John. I really enjoyed it.

  • @jonharper5919
    @jonharper5919 2 ปีที่แล้ว

    Creating shellcode in a piece of malware that base64 encodes to McBAD is next level. Bravo to that 👏 👏

  • @internetdoggo4839
    @internetdoggo4839 3 ปีที่แล้ว

    I like what ya’ did with the thumbnail

  • @AliKoca-ds1vv
    @AliKoca-ds1vv 3 ปีที่แล้ว

    Most GREAT channel between others

  • @owns3
    @owns3 3 ปีที่แล้ว

    interesting. Thanks for sharing!

  • @mikejones4012
    @mikejones4012 3 ปีที่แล้ว

    Thank u! This has been a fun one. Unfortunately not out of the water yet. 🥶

  • @sinwolf5539
    @sinwolf5539 3 ปีที่แล้ว

    Love it !!!

  • @Puma2113
    @Puma2113 3 ปีที่แล้ว

    "I know this is really painful on 'human being' eyeballs"
    John just confirmed he is a robot.

  • @dq4944
    @dq4944 3 ปีที่แล้ว

    You have the coolest tech glasses 👓

  • @Red4mber
    @Red4mber 3 ปีที่แล้ว

    OMG, that puzzle script is so cool

  • @1wk407
    @1wk407 3 ปีที่แล้ว

    these videos are so fun!

  • @bbowling619
    @bbowling619 3 ปีที่แล้ว

    Im never going to move up from my current position because....my current job has nothing to do with this subject. I am literally addicted to this madness that John keeps on about.
    I literally cannot quit doing it. Lol
    .. and so i will integrate this with my ongoing studies (beer drinking) as well as continue to try to keep up.

  • @fastmover45
    @fastmover45 3 ปีที่แล้ว +1

    as a computer profesional i love these videos please keep doing the good work you are do.

  • @sanathkumar1006
    @sanathkumar1006 3 ปีที่แล้ว

    Thumbnail looks 🔥

  • @daneilyan6419
    @daneilyan6419 3 ปีที่แล้ว

    The image in the photo makes John look like some secret agent

  • @custume
    @custume 3 ปีที่แล้ว

    video looks great

  • @beyerchr
    @beyerchr 3 ปีที่แล้ว

    Thanks!

  • @logiciananimal
    @logiciananimal 3 ปีที่แล้ว

    Us application security folks know about "format string vulnerabilities" from our C application experience, but this one is interestingly different and yet also suggests that name. :)

  • @TheRogueBro
    @TheRogueBro 3 ปีที่แล้ว +1

    Seems like an easy way to get around this set of scripts in particular would be to have your environment variable something non-standard.

  • @Sebastian-db6ur
    @Sebastian-db6ur 3 ปีที่แล้ว

    great, had fun

  • @williamcunningham8790
    @williamcunningham8790 3 ปีที่แล้ว

    i'm not a programmer - but i love your videos!

  • @VajrangParvate
    @VajrangParvate 3 ปีที่แล้ว +1

    Quick one: The long dot separated number strings at 1:04:50 such as "1.3.6.1.5.5.7.3.2" or "1.3.6.1.4.1.311.20.2.2" are SNMP MIB OIDs (en.wikipedia.org/wiki/Object_identifier).

  • @nonoyourbizness8437
    @nonoyourbizness8437 3 ปีที่แล้ว

    this is what my org got hit by- i really appreciate the analysis!

  • @PythonisLove
    @PythonisLove 2 ปีที่แล้ว

    your videos are great

  • @codygaudet8071
    @codygaudet8071 3 ปีที่แล้ว +1

    Thank you again for a fantastic, informative video Master Hammond. You're an inspiration. ps. You say "sorry" too much. XD Own your shit my guy.

  • @user-zt5bq9tf2z
    @user-zt5bq9tf2z 3 ปีที่แล้ว +2

    Hi, cool thumbnail!

  • @TinkerTech
    @TinkerTech ปีที่แล้ว

    Techcraft?
    That sounds so ominous 😮
    When somebody asks me if I have any hobbies, I just say that I like T.I.T.S. in my spare time.
    Which OF COURSE stands for tinkering in tech services.

  • @karimmohamed3744
    @karimmohamed3744 3 ปีที่แล้ว

    Serious John thumbnail exists.
    Mom come pick me up I am scared

  • @granvillaustine8327
    @granvillaustine8327 3 ปีที่แล้ว +4

    Perfect, as it should be xD

  • @user-lk5qz4wx4q
    @user-lk5qz4wx4q 3 ปีที่แล้ว +7

    John always has to ctrl v or ctrl f something big and THEN realizes that he's made a mistake...LOL

  • @CoenraadLamprecht_coenster711
    @CoenraadLamprecht_coenster711 3 ปีที่แล้ว

    Welldone

  • @gabrote42
    @gabrote42 2 ปีที่แล้ว

    46:23 This is impressive. That has to be some of the most bullshit obfuscation techniques I have ever seen. And you got it. Bless you

  • @logiciananimal
    @logiciananimal 3 ปีที่แล้ว

    The natural etc. strings are the join types in SQL, presumably part of SQLite

  • @jeroenvtec
    @jeroenvtec 3 ปีที่แล้ว

    That was cool to watch , thx. Respect. And what about the ecp/y.js and webshell (aspx) files ?