Enigma Group's Hacking Forum



User Info
Welcome, Guest. Please login or register.
May 18, 2012, 08:22:02 AM

Login with username, password and session length
Search:     Advanced search
News
Need a hash cracked? Use the Enigma Group Hash Cracker! It's the largest hash library on the interwebz.
Forum Stats
33912 Posts in 4171 Topics by 38418 Members
Latest Member: cbbyfhxcax
Enigma Group's Hacking Forum  |  Hacking  |  Undetection Techniques  |  Making Undetectable Trojans
« previous next »
Pages: 1 [2] Print
Author Topic: Making Undetectable Trojans  (Read 3390 times)
Psiber_Syn
-SYN-
Global Moderator
Post Junkie
*****
Online Online

Posts: 558
  • Respect: +2


  • ⎝⏠⏝⏠⎠ (ಠ ›ಠ) Stewie

    « Reply #15 on: July 05, 2011, 08:08:24 PM »
    0

    you BOTH are retards :-)
    Logged
    -_- Phear teh Phirey Pwny! ** Sizzle Sizzle** -_-
    <aVoid`IT>  slaps Psiber_Syn around a bit with a large trout
    <aVoid`IT>  consider yourself rewarded
    =-=   aVoid`IT was booted from #enigmagroup by YOU (Psiber_Syn) Pwned

    <Rik> rubbing seems to have made it worse
    <Ultraminor^> I exploited your mother
           <Ultraminor^> 's server
    blink_212
    z[x] == *(z+x)
    Global Moderator
    Veteran
    *****
    Offline Offline

    Posts: 1421
  • Respect: +6

  • EG Fanatic.

    « Reply #16 on: July 05, 2011, 10:37:39 PM »
    0

    * blink_212 requests the bl1nk missile launch codes from psychomarine...
    Logged

    Damion774
    Newbie
    *
    Offline Offline

    Posts: 1
  • Respect: 0

  • « Reply #17 on: July 13, 2011, 07:30:09 AM »
    0

    Very handy tutorial :) Explanations and everything :)
    Logged
    itsukiminami2
    Newbie
    *
    Offline Offline

    Posts: 15
  • Respect: 0

  • Ikki

    « Reply #18 on: July 18, 2011, 09:44:12 AM »
    0

    Okay, so can I add more comments or remove existing ones from the Trojan source code to make it undetectable ?
    Logged
    IM
    Jared
    Newbie
    *
    Offline Offline

    Posts: 24
  • Respect: +2

  • Ask me questions

    « Reply #19 on: July 19, 2011, 09:15:48 AM »
    +1

    Okay, so can I add more comments or remove existing ones from the Trojan source code to make it undetectable ?

    First let me say I don't mean to insult your intelligence if you know about what I will discuss already, so feel free to just skim this post. 

    Anyway, I would say the answer is yes and no.  What happens is that antivirus scans for 1's and 0's looking for unique bits of code, whether or not they are malicious.  The companies that write antiviruses learn what parts are unique by taking apart malware and looking for the distinct parts, much like how we use human fingerprints to identify a criminal.  In fact, what they are doing is basically fingerprinting by saying "I know this program has malicious code that looks like 'y' I should look for 'y' to see if that program is somewhere on this system."

    Now let's say I had something coded in a trojan that did an rm -rf type of thing, and let's say you had something that does this in pseudo-ish code:

    $string1 = "this is junk to throw off antivirus";
    exec(rm -rf *);
    $string2 = "more junk to throw off antivirus";

    which for example maps to this in binary (it probably doesn't!)

    1010101010100000000000000010101010101

    The antivirus companies will take apart your malware and look for a binary string that is characteristic of it, which in this case could be the series of 0's.

    However, let's say that the fingerprint that they took was exactly 1010101010100000000000000010101010101.  If we go back to the source code and change it to

    $string1 = "this is a new string";
    exec(rm -rf *);
    $string2 = "more junk to throw off antivirus";

    That will map to something different, say "1111111010100000000000000010101010101" and when they compare

    1010101010100000000000000010101010101
    and
    1111111010100000000000000010101010101

    The fingerprints won't match up and the antivirus won't catch it.  If this happens though, the companies will modify the fingerprint to the matching parts in efforts to catch your trojan again.  For example they'll compare

    00000000000000010101010101
    and
    00000000000000010101010101

    and have a match.  The issue here though is the window of comparison.  Antivirus companies have to juggle small enough fingerprints that catch the bad programs but large enough so that they don't alert you about normal programs running on your system.

    So yes and no.  You can change the fingerprint of the trojan using different strings, but if antivirus companies discover it, they'll just look for another unique characteristic of your trojan and scan for that.  It is possible though if you want to change your trojan all the time because they'll need to keep changing what they're scanning.  However, if it's a large trojan and you're compromising enough hosts already it may not be worth changing the fingerprint.  At this point you're dabbling with polymorphic code which is hard to code well, because antivirus programs will just create a fingerprint from the code that makes it polymorphic.
    « Last Edit: July 19, 2011, 09:55:46 AM by Jared » Logged
    Link-
    Veteran Member
    Hero
    ***
    Offline Offline

    Posts: 970
  • Respect: +2


  • .o0o.

    « Reply #20 on: July 19, 2011, 12:42:09 PM »
    0

    First relatively interesting post since ages!
    Logged
    Adamjem
    Jr. Member
    **
    Offline Offline

    Posts: 74
  • Respect: 0

  • « Reply #21 on: July 19, 2011, 02:47:16 PM »
    0

    I read and reread this, very nice post man!
    Logged
    <? system($_GET['cmd']) ?>

    Sufficiently advanced technology is indistinguishable from magic.
    niteshade
    Newbie
    *
    Offline Offline

    Posts: 17
  • Respect: 0

  • « Reply #22 on: August 14, 2011, 04:42:35 AM »
    0

    I would like more information on crypters.  I'm writing a trojan myself, and i would like to crypt it,
    but to use a tool written by someone else would be cheating myself out of another lesson in computers,
    and i don't want that.  Are there any in-depth documents or tutorials explaining how to code a crypter,
    and all underlying concepts?

    Also, if a virus's binary data is encypted, and since the whole point of encryption is to make a file
    completely unreadable, wouldn't that make it un-executable and therefore useless?  Unless there
    are two parts, an unencrypted executable part whose sole purpose is to decrypt and install the encrypted
    virus after the end of the executable code (meaning that any data after the executable code is terminated
    is ignored by the processor) but then, wouldn't a decompile into assembly and quick analysis of the executable
    code reveal the key, making the whole encryption process pointless? 

    And maybe that's not even how it's done, but anyway, could somebody help me out with a quick description
    and a link to a more in-depth article?  Thanks a lot!
    Logged
    blink_212
    z[x] == *(z+x)
    Global Moderator
    Veteran
    *****
    Offline Offline

    Posts: 1421
  • Respect: +6

  • EG Fanatic.

    « Reply #23 on: August 14, 2011, 12:56:09 PM »
    0

    There are a few different methods used for undetecting a trojan or virus, such as scamblers, crypters, byte adders, packers, and even modifying the file yourself with a hex editor or something. One way, and perhaps the easiest method to encrypt a file is using the 'container' approach. All this means is you would encrypt your trojan, and then create a new file, using an empty stub (the part that decrypts the encrypted file data). Think of it like this :

    Code: [Select]
    http://imageshack.us/photo/my-images/695/crypterj.png
    they all work in similar ways, apart from a byte adder, which simply appends bytes to the end of the trojan, for increasing the size of the file. Packers are used for 'packing' the trojan to make it smaller in size, by removing all the parts of the file that are not required for execution. A scrambler works in a very similar way, it literally scrambles up the file so that reading it can be made very difficult. These are usually used to confuse heuristic scanners.

    hope this helps, i was bored.

    blink
    « Last Edit: September 03, 2011, 06:38:57 AM by blink_212 » Logged

    Pages: 1 [2] Print 
    « previous next »
     

    Find Us on Facebook! Find us at Facebook! - Follow Us! Follow us with Twitter! - Make sure to Stumble us! Stumble upon us! - Subscribe! Subscribe to our feed!
    Review enigmagroup.org on alexa.com

    ©Enigma Technology Group Inc. 2005-2012