DLL vs EXE | Windows DLL Hell

  Рет қаралды 97,326

The PC Security Channel

6 жыл бұрын

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:
www.patreon.com/tpsc
-------------------------------------------
Want to join the TPSC community? Join our Discord server!
discordapp.com/invite/y7q3qMM
Want instant updates when new malware is discovered? Follow me on Twitter: leotpsc

Пікірлер: 117
@literalcode
@literalcode 3 жыл бұрын
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 жыл бұрын
i think they have those, that doesnt seem too unreasonable
@plantfoodpower77
@plantfoodpower77 Жыл бұрын
hes on a emulater or vc prolly
@Darknamja
@Darknamja 6 жыл бұрын
The curtain has been pulled back and the Wizard has been revealed. Always great info on this channel. Thanks for and continue posting. :D
@jonsprivatelife
@jonsprivatelife 6 жыл бұрын
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
@EiB_inc
@EiB_inc 4 жыл бұрын
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
@unknownunknown7359
@unknownunknown7359 6 жыл бұрын
Very inrteresting video. Thanks for information!
@elviraeloramilosic9813
@elviraeloramilosic9813 6 жыл бұрын
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 5 жыл бұрын
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 3 жыл бұрын
wtf
@mithunchandrasaha403
@mithunchandrasaha403 Жыл бұрын
Very Nice Explanatio,Sir.Needs More From You.
@ceclon7689
@ceclon7689 6 жыл бұрын
I love your videos men keep the good work!
@Caneladorada
@Caneladorada 4 жыл бұрын
thank you Leo, this was very informative :)
@TheMR-777
@TheMR-777 2 жыл бұрын
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
@gaaty1954
@gaaty1954 3 жыл бұрын
Really nice and interesting vid easy to understand and concise. 👍
@YannMcRissos
@YannMcRissos 6 жыл бұрын
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.
@PREPFORIT
@PREPFORIT 6 жыл бұрын
This is interesting Thank you
@MariaCurry
@MariaCurry 4 жыл бұрын
this video is AWESOME. thank you!!!!!!
@TheVedicWayChannel
@TheVedicWayChannel 3 жыл бұрын
Nice explanation! Thank you.
@roboedar
@roboedar 4 жыл бұрын
Wow this was great. Thank you for the vid.
@alkahhhtchi
@alkahhhtchi 4 жыл бұрын
Great videos. Keep this going.
@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.
@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..
@poryg5350
@poryg5350 6 жыл бұрын
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.
@AA-mc5il
@AA-mc5il 10 ай бұрын
really loved the vid thanks
@ashwani14august
@ashwani14august 6 жыл бұрын
If we keep watching videos like this, I think in few years (maybe months) we all become cybersecurity expert. Thanks!
@yipo1
@yipo1 11 ай бұрын
This is not how it works buddy
@ir4640
@ir4640 5 жыл бұрын
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?
@sangitakumari5482
@sangitakumari5482 2 жыл бұрын
This is so useful for the end user if they are even a little bit computer knowledgeable.
@skyline7532
@skyline7532 5 жыл бұрын
It was a really great demonstration. Thanks
@noone-xh3iq
@noone-xh3iq 6 жыл бұрын
Amazing
@KoshyGeorge
@KoshyGeorge 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 жыл бұрын
Or Windows Key + X
@Astra3yt
@Astra3yt 6 жыл бұрын
And also, when searching for a program you can press Shift+ENTER to run the program without right-clicking on it.
@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.
@non-urbanninja3000
@non-urbanninja3000 6 жыл бұрын
Question. Have there been any other malware like WannaCry that can infect your system simply by being connected to the internet?
@ktk1001
@ktk1001 6 жыл бұрын
Non-Urban Ninja newpetya Ransomware but it has to have a pc on a local network to be infected
@MrVecheater
@MrVecheater 6 жыл бұрын
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
@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 ?
@shivayadavudari7803
@shivayadavudari7803 4 жыл бұрын
Very nice
@ggxue
@ggxue 6 жыл бұрын
Thank you
@farismazlan5157
@farismazlan5157 2 жыл бұрын
awesome
@programacion3694
@programacion3694 Жыл бұрын
interesante, buen video
@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
@novianindy887
@novianindy887 Жыл бұрын
where can I get that sample Dll of malware Bluepetya?
@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?
@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.
@daffertube
@daffertube 2 жыл бұрын
"cuz I suck" ha. I feel slightly better about my own abilites.
@CyrusHusky04
@CyrusHusky04 6 жыл бұрын
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.
@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?
@thelowendstudio
@thelowendstudio 3 жыл бұрын
Omg thanks:)))
@avi8aviate
@avi8aviate 6 жыл бұрын
Dynamic Link Libraries can be quite the problem for security...
@TehPlayer14
@TehPlayer14 6 жыл бұрын
That's why using hips is a good idea
@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?
@yXe7777
@yXe7777 3 жыл бұрын
So would Kaspersky detect this .dll file?
@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.
@thomnilsson
@thomnilsson 6 жыл бұрын
Please do a review of 'ahnlab v3 internet security'?
@KevinJhonson
@KevinJhonson 6 жыл бұрын
Can you please review panda Dome antivirus? 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 жыл бұрын
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.
@binetts
@binetts 6 жыл бұрын
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 5 жыл бұрын
Oliver Binetti This is quite old, if you still want to know then reply to me.
@SkySkorpions
@SkySkorpions 6 жыл бұрын
HI LEO!
@xojnowns1520
@xojnowns1520 6 жыл бұрын
This is why you never turn off your computer.
@amnesia.-.
@amnesia.-. 2 жыл бұрын
I guess that most antiviruses scans all dlls
@JustA.Person
@JustA.Person 6 жыл бұрын
Hi Leo👋
@RamonChiNangWong078
@RamonChiNangWong078 5 жыл бұрын
open CMD, type Sudo apt-get update. no more DLL Hell
@ktk1001
@ktk1001 6 жыл бұрын
What language is used to write dll files ?
@muabyt7333
@muabyt7333 6 жыл бұрын
c++
@2arx992
@2arx992 6 жыл бұрын
any language that compiles to assembly
@dumpmuch
@dumpmuch 3 жыл бұрын
When you try to crack GTA IV and every dll file is missing
@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.
@Sam_420
@Sam_420 6 жыл бұрын
If you use "Ctrl" + "Shit" and then click on the program it will execute as Administrator
@davidmarquez2821
@davidmarquez2821 3 жыл бұрын
cd %userprofile%/desktop
@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 5 жыл бұрын
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?
@markusTegelane
@markusTegelane 6 жыл бұрын
Face reveal?
@piggylongsnout4549
@piggylongsnout4549 6 жыл бұрын
Oooooh My brain hurt. Too much hard words.
@juliusreycalderon7025
@juliusreycalderon7025 5 жыл бұрын
- Hos Process for Windows Tasks - KMS Connection Broker
@Napert
@Napert 6 жыл бұрын
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
@Mario583a
@Mario583a 6 жыл бұрын
kzbin.info/www/bejne/mInRo2WvbLiDqJI
@chessemchesse3676
@chessemchesse3676 6 жыл бұрын
Exe duh
@akoliver2712
@akoliver2712 6 жыл бұрын
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
@DTE305
@DTE305 2 жыл бұрын
? C:
@knibhah4633
@knibhah4633 5 жыл бұрын
i only know that dlls are for my csgo hack!1!!1
@leventkuru8488
@leventkuru8488 5 жыл бұрын
I hope you got banned
@IIGrayfoxII
@IIGrayfoxII 6 жыл бұрын
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 жыл бұрын
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 жыл бұрын
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.
@sc4rydude277
@sc4rydude277 5 жыл бұрын
I know what is a exe file now It is a virus of fortnite