How Does Malware Know It's Being Monitored?

Поделиться
HTML-код
  • Опубликовано: 10 дек 2024

Комментарии • 94

  • @psr9289
    @psr9289 Год назад +111

    "hippity hoppity your code is now my property" 😂

    • @会供価
      @会供価 Год назад +6

      Is that a Dani reference?

    • @sleepyyui
      @sleepyyui Год назад +1

      ​@@会供価probably

    • @ReligionAndMaterialismDebunked
      @ReligionAndMaterialismDebunked Год назад

      Nice. :3😊

    • @ReligionAndMaterialismDebunked
      @ReligionAndMaterialismDebunked Год назад

      Out a day ago. I'm watching it rn. Hell yeah to try to hide it. XD 💀😅🐀👨‍💻🤝🤓💪🏻👁️🔥 Polymorphic malware. Encrypted malware. Etc.
      Red teams. Blue teams. Fighting corrupt government. Etc.

    • @CuchulainZA
      @CuchulainZA Год назад +1

      His videos tend to be so good and informative that I am able to reuse some of the concepts for CTF challenges and training for our staff. He makes everything so easily accessible

  • @blinking_dodo
    @blinking_dodo Год назад +26

    One extra trick: check for a file you placed somewhere else on the filesystem.
    If it does not exist, your executable is running on another computer or inside a sandbox.
    (But it does NOT protect against debugging though. You need something else for that)

    • @fuckit563
      @fuckit563 Год назад +3

      this would require the program to be launched twice

    • @blinking_dodo
      @blinking_dodo Год назад +2

      @@fuckit563 No?
      If you have initial access to a system, you place the executable and schedule it, then you create the canary file and just wait.
      When your program can't find the file, you know *for sure* that you aren't running on the system you wanted to run on and should nope the hell out.
      Any AV that doesn't do in-place analysis or copies the canary file too would have a hard time doing any run-time analysis.
      This would obstruct any external analysis, including virustotal or similar services.

    • @fredwright4423
      @fredwright4423 Год назад +3

      Problem is the windows api calls CreateFile for not just creating files and is signatured and looked for: Ransomware note or to write obfuscated code to a file.

    • @fredwright4423
      @fredwright4423 Год назад +1

      MalwareJake's red team village 101 malware analysis cover this and other api calls

    • @blinking_dodo
      @blinking_dodo Год назад +1

      @@fredwright4423 You don't need windows API or anything like that. You could even make this in Java.
      Point is that a file somewhere else on the filesystem won't get copied for external analysis. Especially if they are in a totally different directory.

  • @nonyabizz6992
    @nonyabizz6992 Год назад +9

    Very informative thanks, I have been interested in learning how to craft shellcode recently.

  • @hydroponicgard
    @hydroponicgard Год назад +4

    You n danooct1 have been an inspiration for me to do CySec, still going through what I wanna focus mainly on, but I love both red/blue team jazz, so time will tell, mby I go purple team c:
    Thank you again, John, hope all good happens in your life

  • @Radical9535
    @Radical9535 Месяц назад +1

    Love there is a lifetime access option! usually go right past the sponsor this is one time i'm glad I did not.

  • @ThisIsJustADrillBit
    @ThisIsJustADrillBit Год назад +3

    The GOAT strikes again ❤

  • @argentiignis
    @argentiignis 5 месяцев назад

    Love it, great video. I think you talk at an excellent pace lol

  • @vnc.t
    @vnc.t Год назад +2

    9:00 remember, if you've got procmon rename it to prankmin or something, same for x64dbg, make it x69dgb or something, ida can be ide, something you'll remember but won't match a blacklist.

  • @laurenlewis4189
    @laurenlewis4189 Год назад +4

    It strikes me that checking the time delta as a quick way of determining if the software is sandboxed would lead to a perverse incentive, where old and slow computers (and VMs or containers without many resources) can't get infected because the shellcode stager thinks it's a sandbox

  • @LoneWolf-dj7so
    @LoneWolf-dj7so Год назад +3

    Always got great videos

  • @gaminganup3148
    @gaminganup3148 Год назад

    From India love you sir❤❤❤

  • @quaniypw3
    @quaniypw3 Год назад

    thanks cuz of u i bring some 66G db logs u deserve that ❤️

  • @manny9639
    @manny9639 Год назад

    This is amazing man, what a great video

  • @negrastormentas2865
    @negrastormentas2865 Год назад +4

    Is your correction in 14:07, correct? Previously in the video, at 12:06 it says "__readfsdword" for 32 bit.

    • @_JohnHammond
      @_JohnHammond  Год назад +4

      Ah! I apparently missed that too. Good catch!

  • @naseerahmadayan199
    @naseerahmadayan199 Год назад

    John The way i see you
    You are one in a million ❤❤

  • @m.gredemptor2610
    @m.gredemptor2610 Год назад +2

    8:10 - Nice, mine did the same too, but I think it's because you have submitted a debug build, cause if I compile it with “-s -O3” options the detection falls to just 1.
    Edit 1:
    I also tried submitting unoptimized bin with just “puts” and other stdio functions - and virus-total seems to flag it with the same 6 flags, so most of the problem are from submitting debug builds.

  • @trishulsingh01
    @trishulsingh01 Год назад +11

    Let’s make a malware just for fun 😂

    • @nekosalad8308
      @nekosalad8308 Год назад +6

      for science

    • @LittleRainGames
      @LittleRainGames Год назад +2

      Or to attack tech support scammers

    • @6digitzz
      @6digitzz Год назад

      ​@@LittleRainGames if u think its a big threat stop youtube, just try to post content of world in north korea intranet it will be more usefull

  • @georgiosroumeliotis4383
    @georgiosroumeliotis4383 Год назад +2

    Hey John, How it's going with OSEE, can you make a video about it?

  • @kashoo_1
    @kashoo_1 Год назад +1

    Sounds good 💯

  • @pavi013
    @pavi013 Год назад

    Good to know about new tools and techniques

  • @Kittingiittung
    @Kittingiittung Год назад

    Damn Grey hats I love you

  • @khaledijbariye5809
    @khaledijbariye5809 Год назад +1

    Can you do full course about sliver c2 framework from zero? Thank you❤

  • @patrickslomian7423
    @patrickslomian7423 Год назад

    Thank You John !! :)

  • @dunk32767
    @dunk32767 Год назад

    john please stop looking at me so scarily in these thumbnails

  • @ajaykumar1
    @ajaykumar1 Год назад

    Which is the best course for malware development
    Sector7 OR MalDevAcademy

  • @DamianRyse
    @DamianRyse Год назад +1

    Well, if I would be a blue-teamer, I'd just Ghidra into the binary and reverse the If statement. I can run it with a debugger attached but it can't run standalone. ^^

    • @kopuz.co.uk.
      @kopuz.co.uk. Год назад

      What is the lib is loaded dynamically with loadliba using obfuscated strings

  • @ricseeds4835
    @ricseeds4835 Год назад

    Anyone got resource recommendations for learning the Sysinternals tools and WinDbg? Maybe John can start a series on them.

  • @georgehammond867
    @georgehammond867 Год назад

    I like to hear that out track song fearless.

  • @tebogobrooks7844
    @tebogobrooks7844 Год назад +1

    Hey John I enjoy watching your videos. They are informative. There's a new malware called whiffy recon which infects vulnerable windows devices by wi-fi access point by scanning every 60 seconds and tries to triangulate a device's location.
    if you can find a sample code could you please do some analysis

  • @aspacegamer92
    @aspacegamer92 Год назад +4

    could you not use this kind of behavior to spoof and make believe maleware that its inside a debug enviroment so it doesn‘t fire on a regular system?

    • @johndeaux8815
      @johndeaux8815 Год назад

      If you want malware to not fire on a regular system, the same rules apply as when you are debugging it. Just don’t run the fully compiled program or any malicious code with administrator privileges if you don’t know EXACTLY what it does 😂

    • @johndeaux8815
      @johndeaux8815 Год назад

      Idiotproofing is impossible, as long as there is malicious code that can be run, there will be someone dumb enough to run it, regardless of any failsafes. If you made a malware that tries to avoid execution, someone will find a way to get it to run 😂

    • @aspacegamer92
      @aspacegamer92 Год назад +3

      @@johndeaux8815 true i was thinking of this in a similar way of some russian ransomeware a while ago that would not fire if you had the russian language pack installed on your system 😂

    • @aspacegamer92
      @aspacegamer92 Год назад

      just some extra safety net that also abuses the fact that most malware devs want to keep their code hidden / hard to analyse but i agree that you can‘t protect against the human factor and thats usually the weakest point in any security anyway😅

    • @johndeaux8815
      @johndeaux8815 Год назад

      @@aspacegamer92 ah true, that reminds me of an idea I had a while back where you make a virus that swaps the code for i to the cyrillic i in someones language pack so they cant code lol

  • @pr0tagnist
    @pr0tagnist Год назад +4

    YEA BOOOOOIIIII!!!!

  • @kasemsh7583
    @kasemsh7583 Год назад +3

    Hi John I'm I want get the maldev academy course but they don't have account security 2fa or any paying 500$ with no account security
    I sent them a massage with no response

  • @PGW90RU14
    @PGW90RU14 4 месяца назад

    I feel that runnung windbg may be a good method to sabotage malware.

  • @kallekivimaki7825
    @kallekivimaki7825 6 месяцев назад

    this is so simple that it is scary

  • @MasterCraft_48
    @MasterCraft_48 Год назад +4

    I hope we don't get put on a list by watching these sort of videos...

    • @racecar_johnny
      @racecar_johnny Год назад

      If ur watching these kind of videos, it’s likely that your already on some kind of watchlist. For example, just for downloading and using TOR. But it doesn’t matter, because with all the data they have, they are able to differentiate between someone who’s doing it for education, and one who has malicious intends.

  • @Dahlah.FightMe
    @Dahlah.FightMe Год назад +1

    Nice :D

  • @gniteeshreddy5078
    @gniteeshreddy5078 Год назад

    Hey Mr.John! I am a beginner in the field of cybersecurity. Could you please help me with some resources which help to start my career in offensive security. Thanks in advance!

    • @zaccampa4055
      @zaccampa4055 Год назад

      There is so many free resources available on RUclips and the internet. Just do some research and you’ll definitely find something that suits your needs.

  • @RandomytchannelGD
    @RandomytchannelGD Год назад +1

    NICEE

  • @RandomGeometryDashStuff
    @RandomGeometryDashStuff Год назад

    try all debug detction methods in virustotal (don't include malware, just `if(isdebugged())puts("debugged");`)

  • @asldkfjzopiuqea
    @asldkfjzopiuqea Год назад +3

    How to convert it to useable shell code?

  • @neilmeich
    @neilmeich 9 месяцев назад

    6:56 9:10

  • @RS6Showtime
    @RS6Showtime Год назад

    Do you also have a casio clock? Same as me if you say yes :P

  • @HxN0n3
    @HxN0n3 Год назад

    good

  • @RoninAuron
    @RoninAuron Год назад

    Your thumbnail predicted the Trump mugshot
    insider info?? 😂

  • @justingreen6561
    @justingreen6561 Год назад

    K, this has nothing to do with this video but figured this was the community to help answer a question.
    Seems Facebook has a phishing scam circulating thats proposed as a post on someones wall with a "guess whose died" car crash headline thats provides a link. Apparently, as John has shown/demoed, its the whole fake signin spoof workflow where your creds will then go to 💀. My question though is, all times Ive seen this the link has clearly been a vercel application which A) makes me think the jerkoff mastermind apparently has backend skills about as sophisticated as mine but more importantly B) wouldnt/shouldnt Vercel sniff this transparent nonsense out and put a quick rm -rf on things?
    And certainly, if anyone reads this and decides to phish the phisher, well, i applaud and respect da skills. But ya, mainly just seems weirder an apparent 'prod' malware thats breached FB would still carry a transparent vercel domain.

  • @FalcoGer
    @FalcoGer Год назад +2

    c and c++ can determine the array size if you initialize it in the same line. that said, bare arrays are deprecated. Use std:array.
    Why are you using boolean macros instead of the proper types? And why don't you just "return pPeb->BeingDebugged == 1;"

  • @SumanRoy.official
    @SumanRoy.official Год назад +1

    This won't work, exe files are always checked if they are from a trusted publisher or not, UAC will probably block it if it runs on a different machine, even if the defender is turned off.

  • @Ruhgtfo
    @Ruhgtfo Год назад

    lmao when malware know to make blacklist on its own

  • @catharperfect7036
    @catharperfect7036 Год назад

    \tell us how to hack the Fed

  • @webdev-ij5hp
    @webdev-ij5hp Год назад

    i clearly dont know what is going on

  • @aadhiseshandc7260
    @aadhiseshandc7260 Год назад

    If john notices this comment [heart or comment]. Im convincing my mom to give my laptop back for cybersecurity and personally loves these videos. I regret using a chromebook. Luckily i have linux

  • @saltedhash6467
    @saltedhash6467 Год назад

    You often talk too quickly.

  • @kashoo_1
    @kashoo_1 Год назад +1

    Sounds good 💯