DLL vs EXE | Windows DLL Hell

แชร์
ฝัง
  • เผยแพร่เมื่อ 26 ก.ย. 2024
  • In this video I talk about DLL vs EXE files, static vs dynamic linking, dll injection, and demonstrate how malware can infect your system without ever running a malicious process/exe file, and simply using a legitimate windows process. Example: Blue/Eternal Petya
    Wingamer25 is now fighting malware with a flaming katana, why flaming? cause those games make the GPU run hot!
    danooct1 has been fighting malware for a long time now, with a DOS box and his grandma's Windows 98 cd. Reinstall..Reinfect..Repeat.
    Want to be mentioned here, or just want to support the channel? Check out my Patreon page:
    / tpsc
    -------------------------------------------
    Want to join the TPSC community? Join our Discord server!
    discordapp.com...
    Want instant updates when new malware is discovered? Follow me on Twitter: / leotpsc

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

  • @literalcode
    @literalcode 4 ปีที่แล้ว +51

    Him having all of those ransomware files is like a police officer having a room full of one of each type of drug

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

      i think they have those, that doesnt seem too unreasonable

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

      hes on a emulater or vc prolly

  • @EiB_inc
    @EiB_inc 4 ปีที่แล้ว +8

    This is a nice video, and I do understand it's a bit old but I wanted to mention that dynamic linking is not necessarily all downsides when it comes to security.
    In the case of several applications using a dynamically linked routine that's exploitable in some way, then that same exploit may be patched for the shared routine only without having to update every single (and potentially poorly maintained) application that uses it.
    Again, I'm sure this is something you're aware of, but I wanted to show there are more benefits to dynamic linking than just memory efficiency

  • @jonsprivatelife
    @jonsprivatelife 6 ปีที่แล้ว +5

    Thanks! You're doing good work
    I learned a lot here. Had a side project where I needed to script running a .dll file, I got up to learning how to call the file with rundll32, but got sidetracked when that wasn't enough. Thanks for showing me the ordinal

  • @elviraeloramilosic9813
    @elviraeloramilosic9813 6 ปีที่แล้ว +38

    That's just one excellent topic!
    Great explanation! Kudos!
    DLLs? My favorite links. 🤣
    Secure OSes? Let me take my spacetimeship so I can check in parallel universe. 🚀😁

    • @GainingDespair
      @GainingDespair 6 ปีที่แล้ว +1

      Are you asking for a secure os?
      If so (and if your laptop/pc is decently compatible) than I would recommend Qubes OS. Everyone likes to say this or that OS is safe if you do ... -insert long explanation-
      Qubes OS is run via virtualization, you have so many "qubes" which are different types of OS's sounds complicated but they are all exactly the same. Some have persistent storage (business, home, etc) while others do not. The ones that are not trusted can not come in contact with any other qube. So if something serious does happen the only data that is compromised is the data in that qube. Everything and I mean everything is run virtually on bear metal (Zen I believe) anything from audio drivers to the operating system itself are all ran independently from each other so if there was some exploit in the audio driver the only thing that could be compromised is the data (the audio driver) in that individual qube.
      I suck with explanations
      www.tomshardware.com/news/qubes-os-4.0-fully-virtualized-vms,36774.html

    • @ethanmadets
      @ethanmadets 5 ปีที่แล้ว

      What's crackin' fellow kids.

    • @invisibleboi5166
      @invisibleboi5166 4 ปีที่แล้ว

      wtf

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

    The curtain has been pulled back and the Wizard has been revealed. Always great info on this channel. Thanks for and continue posting. :D

  • @unknownunknown7359
    @unknownunknown7359 6 ปีที่แล้ว +6

    Very inrteresting video. Thanks for information!

  • @TheMR-777
    @TheMR-777 2 ปีที่แล้ว +4

    Man you really amazed me! As, I'm a developer I thought I may already know the basics of these dynamic linking, but man, you showed me the "WAY" how they work, and that was truly mind blowing for me

  • @ashwani14august
    @ashwani14august 6 ปีที่แล้ว +10

    If we keep watching videos like this, I think in few years (maybe months) we all become cybersecurity expert.
    Thanks!

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

      This is not how it works buddy

  • @KoshyGeorge
    @KoshyGeorge 6 ปีที่แล้ว +6

    For those who don't know you can also right click the start menu and run cmd as admin from there.
    It looks like, it now links to powershell rather than cmd but same difference.

    • @LGBKAI
      @LGBKAI 6 ปีที่แล้ว +1

      Or Windows Key + X

    • @Astra3yt
      @Astra3yt 6 ปีที่แล้ว +1

      And also, when searching for a program you can press Shift+ENTER to run the program without right-clicking on it.

  • @non-urbanninja3000
    @non-urbanninja3000 6 ปีที่แล้ว +31

    Question. Have there been any other malware like WannaCry that can infect your system simply by being connected to the internet?

    • @ktk1001
      @ktk1001 6 ปีที่แล้ว +5

      Non-Urban Ninja newpetya Ransomware but it has to have a pc on a local network to be infected

    • @MrVecheater
      @MrVecheater 6 ปีที่แล้ว +5

      If you have a vulnerable service that is waiting for incoming data, yes
      Windows had a bug in the start menu (I guess using the online search function) that could have taken over the system.
      I don't think it has happened though since it got public after they fixed it
      But who knows. It's Windows

    • @MrVecheater
      @MrVecheater 6 ปีที่แล้ว

      Minh Bui Tuan I think he was talking about just leaving the computer on without having any programs open
      except those that are started automatically

    • @agoogleuser9025
      @agoogleuser9025 6 ปีที่แล้ว

      I use fast torrent to download faster from browsers and some occasional 90s tv shows and leave it on download. I have firewalls on though, I'm worried if I can get malware from this habit?

    • @MrVecheater
      @MrVecheater 6 ปีที่แล้ว

      Cy Sy if it's illegal, the files themselves are very likely to be the malware
      The firewall just blocks certain types of traffic so it can either block an infected file or don't block it. But it won't clean the infection

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

    Very Nice Explanatio,Sir.Needs More From You.

  • @Caneladorada
    @Caneladorada 4 ปีที่แล้ว +1

    thank you Leo, this was very informative :)

  • @poryg5350
    @poryg5350 6 ปีที่แล้ว +1

    Absolutely right. And since we now also have python and nw.js, new problems are at sight, because while a C++ code can be modified to make it hidden from antiviruses, Python and Javascript allow the execution of a dynamically generated code. So you can just encrypt the virus with a different key and boom, the virus is once more impossible to detect via scan. The only way to find it is to detect function calls at runtime.
    Or we can be like iOS and disable encrypted files altogether. Which would be a huge security concern.

  • @PREPFORIT
    @PREPFORIT 6 ปีที่แล้ว +7

    This is interesting
    Thank you

  • @MariaCurry
    @MariaCurry 5 ปีที่แล้ว +1

    this video is AWESOME. thank you!!!!!!

  • @callofbooty5827
    @callofbooty5827 6 ปีที่แล้ว

    Very good referential video here, Leo :-) now when anyone asks if DLL's can be harmful or how they can be harmful if they''re not the executables you can simply refer them here..

  • @ceclon7689
    @ceclon7689 6 ปีที่แล้ว

    I love your videos men keep the good work!

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

    This is so useful for the end user if they are even a little bit computer knowledgeable.

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

    Nice explanation! Thank you.

  • @wilfredotorres6628
    @wilfredotorres6628 6 ปีที่แล้ว

    Hi Leo, Many of these issues of course come from downloading programs with cracks and key generators that manipulate the software in order to use it at no cost. Thanks for the info.

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

    Really nice and interesting vid easy to understand and concise.
    👍

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

    "cuz I suck" ha.
    I feel slightly better about my own abilites.

  • @roboedar
    @roboedar 4 ปีที่แล้ว

    Wow this was great. Thank you for the vid.

  • @AA-mc5il
    @AA-mc5il ปีที่แล้ว

    really loved the vid
    thanks

  • @CyrusHusky04
    @CyrusHusky04 6 ปีที่แล้ว +2

    If you right click the start button you can access a lot of programs that you usually require searching for.

    • @Mario583a
      @Mario583a 6 ปีที่แล้ว

      That or use Classic Shell.
      classicshell.net/whycsm/
      Default search is essentially a miss of what you are searching for.

  • @Darth12000
    @Darth12000 6 ปีที่แล้ว

    Libraires, may they be DLL on Windows or SO on others, are kinda necessary as they represent the non executable and non entry point layers of a big executable, which uses them as depedencies.
    When you make a software for desktop, there are layers from a dev's point of view : user interface (usually graphical these days but that's optionnal), business logic (where all the decisions are made), data access (to save and retrieve things) and business object (to picture stuff in memory). Interface is also used as an entry point and thus will be the executable, but each other layer will become a library and they will depend to each other in a precise way. Interface depends on logic and objects. Logic depend on data access and on objects. Data access only depends on objects.
    Obviously i am simplifying a bit but all serious projects have that layer system just for better handling how to find and do things. It's a tidy oneself system, quite efficient at that. You can underline all you want the current risks, it's useful to do, but i believe it to make more sense when coupled with the reason why it's done this way in the first place. Sticks better when it's instructive, i think. ;-)

    • @AdityaGupta-qd8iv
      @AdityaGupta-qd8iv 2 ปีที่แล้ว

      Don't we have checksums and signatures for DLLs that are used by the linker to check for potential change?

  • @AlrekArinbjorn
    @AlrekArinbjorn 6 ปีที่แล้ว

    Stuff like this is why I obsessively run everything inside of sandboxie with comodo I.S. set to auto-block the unknown on the hips, firewall, and auto-containment. I also clear the sandbox directories very often

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

    I am doing a project in school on self-propagating malware and am zeroing in on NotPetya, Taking a shot in the dark here. I was wondering if you knew of a good db to get a hold of malware for sandbox testing. Also thank you so much for this video I have a much better understanding of how DLL injection is so scary and stealthy.

  • @alkahhhtchi
    @alkahhhtchi 4 ปีที่แล้ว

    Great videos. Keep this going.

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

    where can I get that sample Dll of malware Bluepetya?

  • @ir4640
    @ir4640 5 ปีที่แล้ว +1

    Hello , and thanks for the video.
    Are your malware samples accessible, and if yes, where can i find them?

  • @hussaenkahachi7116
    @hussaenkahachi7116 4 ปีที่แล้ว

    Hi, your videos are great. I have a suggestion for your next video.
    Can media files (pictures for example JPG, sound for example MP3, and video for example DAT or MP4) get malware injected into them?

  • @YannMcRissos
    @YannMcRissos 6 ปีที่แล้ว +2

    Really interesting video. Great job !
    Btw, right click the start button or use Win + X. You'll have the choice of starting cmd normally or as admin, along with other things.

  • @avi8aviate
    @avi8aviate 6 ปีที่แล้ว +1

    Dynamic Link Libraries can be quite the problem for security...

  • @noone-xh3iq
    @noone-xh3iq 6 ปีที่แล้ว +1

    Amazing

  • @noone-xh3iq
    @noone-xh3iq 6 ปีที่แล้ว

    Oh boy, i really love ur channel. But can u provide us more information about security in any LinuxOS?

    • @david3994
      @david3994 4 ปีที่แล้ว

      no one the best part on linux is that you dont need an antivirus because most viruses are made just for windows.

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

    awesome

  • @TehPlayer14
    @TehPlayer14 6 ปีที่แล้ว

    That's why using hips is a good idea

  • @janejanejane2046
    @janejanejane2046 4 ปีที่แล้ว

    Hi i want to ask i want installed face rig and it has.....and it has .dll file which i nid to paste to another file but Ecvertime i do dat it alwys disappear and anti virus pop Up does it mean it has virus?

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

    interesante, buen video

  • @ggxue
    @ggxue 6 ปีที่แล้ว

    Thank you

  • @johnsweda2999
    @johnsweda2999 6 ปีที่แล้ว

    Can you make it more secure by having a front end say on the operating system. so the interface would be user friendly and it communicates with the back-end of the operating system where the security lays deep and is always check the front end. Similar to a virtualbox I suppose but built in

    • @SenkJu
      @SenkJu 6 ปีที่แล้ว +1

      Uhm, no. That would be like working in a Virtual Machine all the time which does not increase security. If your important files are in a virtual machine that is infected with a Ransomware for example, they would still be encrypted. Things are not working like this. Virtual machines can protect the host system from malicious software but not themselfes.

  • @Kuba12PL
    @Kuba12PL 6 ปีที่แล้ว

    Basically most game exploits are DLLs with injectors so that kind of means you can't know if it's a virus or a legitimate exploit as they usually get false-positived by antiviruses.

  • @shivayadavudari7803
    @shivayadavudari7803 4 ปีที่แล้ว

    Very nice

  • @rosedev7203
    @rosedev7203 4 ปีที่แล้ว

    Great video! I found multiole dll.bak) folder that refuses to be deleted in a temporary folder. Should I be concerned. You did such a great job helping me understand I thought I would ask.

  • @camiloesquivel6016
    @camiloesquivel6016 6 ปีที่แล้ว

    I got a ransomware that told me to pay 200$ worth of doge coins in 72 hours. Its weird because i got it out of nowhere like it appeared randomly. But before i got the ransomware my laptop camera kept on flashing for no reason. I got rid of the ransomware and my camera stop flashing and the ransomware wouldnt pop up anymore. I was scared.

    • @anarchypizza8840
      @anarchypizza8840 6 ปีที่แล้ว

      Blue Yoshi If there is anybody else using the same Wi fi as you they could have gotten it. Or maybe you connected to a public WiFi once and somebody installed some spyware packaged with ransomware. What was the name of the ransomware?

  • @yXe7777
    @yXe7777 4 ปีที่แล้ว

    So would Kaspersky detect this .dll file?

  • @binetts
    @binetts 6 ปีที่แล้ว +1

    Just downloaded something risky, I’ve scanned the exe but the file has a lot of dll’s
    Might I have a virus or malware?

    • @puffolino1
      @puffolino1 6 ปีที่แล้ว

      Oliver Binetti having a lot of dlls doesn't mean that's it's malware it just means that the program is made up of a lot of modules

    • @anarchypizza8840
      @anarchypizza8840 6 ปีที่แล้ว

      Oliver Binetti This is quite old, if you still want to know then reply to me.

  • @amnesia.-.
    @amnesia.-. 2 ปีที่แล้ว

    I guess that most antiviruses scans all dlls

  • @thomnilsson
    @thomnilsson 6 ปีที่แล้ว

    Please do a review of 'ahnlab v3 internet security'?

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

    Omg thanks:)))

  • @KevinJhonson
    @KevinJhonson 6 ปีที่แล้ว

    Can you please review panda Dome antivirus? Thank you.

  • @Sam_420
    @Sam_420 6 ปีที่แล้ว

    If you use "Ctrl" + "Shit" and then click on the program it will execute as Administrator

  • @ultraprime9859
    @ultraprime9859 6 ปีที่แล้ว

    IOBit Malware Fighter Pro 6 just came out of beta and released as v6.2 today. Please test it. It claims Better & More Extensive Malware Protection and Double Protection against Ransomware.

  • @ktk1001
    @ktk1001 6 ปีที่แล้ว +1

    What language is used to write dll files ?

    • @muabyt7333
      @muabyt7333 6 ปีที่แล้ว

      c++

    • @2arx992
      @2arx992 6 ปีที่แล้ว

      any language that compiles to assembly

  • @АгафонИпатьев
    @АгафонИпатьев 7 วันที่ผ่านมา

    Johnson Patricia Hall William Clark Helen

  • @JustA.Person
    @JustA.Person 6 ปีที่แล้ว

    Hi Leo👋

  • @PaulaNguyen-d9w
    @PaulaNguyen-d9w หลายเดือนก่อน

    Harris Steven Martinez Jason Lewis Edward

  • @akoliver2712
    @akoliver2712 6 ปีที่แล้ว +1

    can you please make a about a antivirus software named QUICK HEAL TOTAL SECURITY it is an INDIAN antivirus i wanted to know how much this antivirus was powerful

    • @darkcoder9383
      @darkcoder9383 6 ปีที่แล้ว

      AK Oliver Its a meme? Its shit

  • @OnionsBonnie-w1m
    @OnionsBonnie-w1m 6 วันที่ผ่านมา

    Walker Susan Lopez Scott Jackson Elizabeth

  • @markusTegelane
    @markusTegelane 6 ปีที่แล้ว

    Face reveal?

  • @juliusreycalderon7025
    @juliusreycalderon7025 6 ปีที่แล้ว

    - Hos Process for Windows Tasks
    - KMS Connection Broker

  • @piggylongsnout4549
    @piggylongsnout4549 6 ปีที่แล้ว

    Oooooh My brain hurt. Too much hard words.

  • @BenDykhouse-d5k
    @BenDykhouse-d5k 15 วันที่ผ่านมา

    Martin James Jones Dorothy Lopez Barbara

  • @Mario583a
    @Mario583a 6 ปีที่แล้ว

    th-cam.com/video/bXnr2y7SPr0/w-d-xo.html

  • @knibhah4633
    @knibhah4633 6 ปีที่แล้ว

    i only know that dlls are for my csgo hack!1!!1

  • @chessemchesse3676
    @chessemchesse3676 6 ปีที่แล้ว

    Exe duh

  • @sc4rydude277
    @sc4rydude277 5 ปีที่แล้ว

    I know what is a exe file now
    It is a virus of fortnite

  • @IIGrayfoxII
    @IIGrayfoxII 6 ปีที่แล้ว +2

    Why do we care about memory usage these days?
    8GB being the minimum, 16GB being some what standard and 32GB being on high end systems.

    • @MrVecheater
      @MrVecheater 6 ปีที่แล้ว

      So we can actually use that much memory

    • @IIGrayfoxII
      @IIGrayfoxII 6 ปีที่แล้ว

      Upgrade plz.
      4GB is nothing these days.
      I hover on 6GB most times.
      Since I have 32GB and an SSD, I have disabled the PF for maximum performance

    • @MrVecheater
      @MrVecheater 6 ปีที่แล้ว +1

      IIGrayfoxII wtf 4gb are totally fine for some people
      If programs would waste resources for no reason, you couldn't do anything even with 16GB or more
      Imagine having 4GB blocked while playing a game that is Ressource intensive or editing 4k Videos. Of course AV manufacturers think about memory consumption

    • @IIGrayfoxII
      @IIGrayfoxII 6 ปีที่แล้ว +1

      I agree with programs being resource hogs.
      Remember back in 1998 when a web browser used less than 50mb of ram?
      These days 200MB is needed per tab.

    • @davidmenlo9305
      @davidmenlo9305 6 ปีที่แล้ว

      IIGrayfoxII This has to do with the complexity of web-pages too. Although I agree, resource usage should not be higher than necessary.

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

    cd %userprofile%/desktop

  • @RamonChiNangWong078
    @RamonChiNangWong078 5 ปีที่แล้ว +1

    open CMD, type Sudo apt-get update.
    no more DLL Hell

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

    When you try to crack GTA IV and every dll file is missing

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

    ? C:

  • @homedevise8025
    @homedevise8025 6 ปีที่แล้ว

    Question. After that dll injection and the screen that says pc is destroyed, than can you install another os again or its just finished And if another os is installed than the files which are not in os drive will be safe or encrypted ?

  • @socaljusticewarrior558
    @socaljusticewarrior558 5 ปีที่แล้ว

    I have been told that I can solve a problem with a Steam game by adding Steam.dll to the game's directory.
    What is the worst case scenario?

  • @xojnowns1520
    @xojnowns1520 6 ปีที่แล้ว

    This is why you never turn off your computer.

  • @SkySkorpions
    @SkySkorpions 6 ปีที่แล้ว

    HI LEO!

  • @Napert
    @Napert 6 ปีที่แล้ว +1

    Ok I'm an idiot.

    • @elvinl.
      @elvinl. 6 ปีที่แล้ว

      well, from what I see, he just wrote the full path to the desktop... he did type the "D" and pressed tab to autocomplete and pressed enter..., just pressing tab works too, though it goes through all the files one by one alphabetically. Anyway, nothing weird happening here.

    • @Napert
      @Napert 6 ปีที่แล้ว

      And you totally missed the point in my original comment.

    • @elvinl.
      @elvinl. 6 ปีที่แล้ว

      ah, I c what you meant by the /d :), did you mean that, because you use the D drive?, lol XD

    • @Napert
      @Napert 6 ปีที่แล้ว

      no, i couldn't change the directory without /d if i was changing it also to another drive

    • @elvinl.
      @elvinl. 6 ปีที่แล้ว

      oh I c, never thought of changing the path to another drive, since i've always only used one drive until recently, and ah, the /d argument for the cd command makes it possible to change the drive and directory at same time(as google says), well learned something today :D

  • @skyline7532
    @skyline7532 5 ปีที่แล้ว

    It was a really great demonstration.
    Thanks