Forums: How To Trick Anti-virus Systems .... - Forums

Jump to content

  • (5 Pages)
  • +
  • 1
  • 2
  • 3
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic

How To Trick Anti-virus Systems .... Makeing things undetectable...

#1 User is offline   --Elite-- 

  • Private First Class
  • Icon
  • Group: Members
  • Posts: 90
  • Joined: 09-August 03

Post icon  Posted 23 December 2003 - 04:49 PM

How to bypass Anti-Virus systems...

well , as i saw there r so many newbie hackers there ,donnow
how to UNDETECT their BAD-THINGS ;) , i decided to tell them
how to do that ?


As u know , AV systems or alike softwares ( Not those works/watch network status...)
detect viruses, trojans ,etc. with some methods such as
file size , file-name , and the most important one : File Header

so ?

when we have a detected file ( imagine trojan-server.exe ) . our AV detect it as
a "backdoor/Trojan xxx "

but how it does the detection ?

the most proces it do is checking the file header .and here we have a EXE file.
and how AV detect thatit`s a dangerous header ? it simply compare the file header with
those ,it have in it`s included virus-defenition database . so the only thing we have
to do , it to CHANGE THE FILE HEADER . if we do well , the AV would face to a new
header , wich is NOT avalable in it`s DB ! so it won`t detect it anymore . cus it see
something different than those ,exist in virus-defenition file of AV .


How to change a Executeable file header ?

There so many ways to do ! but most of these methos needs u to be a
good programer , or a pro. ... . but still there is a simple and
really easy methos FOR U ;)

Do u know any about "ZIP " ?
I mean the most common method/extencion of file comprestion...
the role is that our compressor , take a look at our file , review it
and replace it`s entire data , with something else ( but same ) ....
here i won`t explain how a file goes compressed ! learn it urself ;)
the thing i wanna mention is that ,after all of compressing proces
the files header would change ! <~~

some of stupied ppl may think like this :
OK ! I got . i`ll zip the file and send/copy it .
it may works , BUT till we only try to send/copy it .
what about the execution time ????
AV eat ur file as soon as u think :-x

so we`re goeing to compress the EXE-File !
we wont chane the extension to .zip or anything else...
we just compress the file`s entire data ...
and after that , we have a new header wich have SOME different parametrs
.


we begin with introducing a cute tool : UPX



Ultimate Packer for eXecutables
Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002
UPX 1.24w Markus F.X.J. Oberhumer & Laszlo Molnar Nov 7th 2002

Usage: upx [-123456789dlthVL] [-qvfk] [-o file] file..

Commands:
-1 compress faster -9 compress better
-d decompress -l list compressed file
-t test compressed file -V display version number
-h give more help -L display software license
Options:
-q be quiet -v be verbose
-oFILE write output to `FILE'
-f force compression of suspicious files
-k keep backup files
file.. executables to (de)compress

This version supports: dos/exe, dos/com, dos/sys, djgpp2/coff, watcom/le,
win32/pe, rtm32/pe, tmt/adam, atari/tos, linux/386

UPX comes with ABSOLUTELY NO WARRANTY; for details type `upx -L'.



==========================


as u can see , it`s a "Packer for eXecutables " files . the exact thing we need ;)
I know how much lasy u r ! so i`ll go to explain how to use it ...


Assume we have a back-door wich AV detect it .

Directory of C:\

11/07/2002 02:13 PM 94,208 UPX.EXE
12/15/2003 11:50 PM 190,464 bd.exe


we`re gonna pack this file ( some way we zip the data INSIDE the file ).
we type:



What happened ?

C:\>upx -9 bd.exe
Ultimate Packer for eXecutables
Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002
UPX 1.24w Markus F.X.J. Oberhumer & Laszlo Molnar Nov 7th 2002

File size Ratio Format Name
-------------------- ------ ----------- -----------
190464 -> 67072 35.21% win32/pe bd.exe

Packed 1 file.


If u try to learn how the stuff works , u`ll see that the parametr i used ( -5 )
is the comprestion rate . there r 9 rates avalable for u to use .
UPX packed my file .
and as u can see , the file size have been changed !
and hopefully the header too ;)
we still have our BD.exe wich works 100% same as the orginal BD.exe
but with a different size and a changed header .
so up to now , u`ve tricked AV 2 times :
1-AV may detect BD.exe by it`s size wich u changed it.
2-AV may detect BD.exe by it`s executeable header ,and u changed it too !

40% of the times ur done here .

hey man ! only 40% ??????????
don`t worry . i`ll increase our chance to 75% .... ;) just be patient...

Now i`ll give u some useful tricks about files too....

1-=) Some files may still tay detected after this method ! :D
How2 prevent this ?
as u see we used the maximum rate ( -9 ) for this file ,
but AV still warn us ! why ?
Cus AV know both , the orginal header and the compressed header.
BUT , if u pay attention u`ll see that most of the times AV`s
have only the orginal header , not the compressed one ,and after all
if they included the compressed header , they usually include the
Max.rate compressed header ... !;) yeah...not ALL possible rates...
so we found a way to escape :)
in such cases ,we try different rates of UPX againts out file ( BD.exe ).
let`s try...

C:\>upx -5 bd.exe
Ultimate Packer for eXecutables
Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002
UPX 1.24w Markus F.X.J. Oberhumer & Laszlo Molnar Nov 7th 2002

File size Ratio Format Name
-------------------- ------ ----------- -----------
190464 -> 71680 37.63% win32/pe bd.exe

Packed 1 file.


Now ,usually our AV won`t detect it . u should try other rates if it didn`t worked.
don`t worry , we have 9 rates here . one would works for ur file ;)



2-=)Second trick maybe have more importance !
ans it`s when u get this error ,when u try to UPX ur file.
look :

C:\>upx -5 bd.exe
Ultimate Packer for eXecutables
Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002
UPX 1.24w Markus F.X.J. Oberhumer & Laszlo Molnar Nov 7th 2002

File size Ratio Format Name
-------------------- ------ ----------- -----------
upx: bd.exe: AlreadyPackedException

Packed 1 file: 0 ok, 1 error.


Damn !.....
hey...i told u be patient ;)
nothing bad happened . UPX is just telling that the file ur trying to
compress is already packed ::: upx: bd.exe: AlreadyPackedException :::
in this case ( executeable files ) we can`t re-compress a file ,
but in normal caces ( .zip .rar ... ) we haven`t such problem.
so what should we do ???? :|
and as i`m again sure wich ur lasy and didn`t read the HELP of UPX
carefully , i`ll tell u what to do ....

We have a " -d " switch in UPX .
The job it do is Decompress , already compressed file . like the one we have.
Found what to do ? i don`t think so !!!
ok
Fisrt u decompress ur file with -d :

C:\>upx -d bd.exe
Ultimate Packer for eXecutables
Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002
UPX 1.24w Markus F.X.J. Oberhumer & Laszlo Molnar Nov 7th 2002

File size Ratio Format Name
-------------------- ------ ----------- -----------
190464 <- 71680 37.63% win32/pe bd.exe

Unpacked 1 file.


As u see , u changed the file a lot ;)
size/header changed again . it may be enough to trick the AV itself.
but if AV warned again , try to compress the file with different rates...
Don`t forget we have 9 rates ....so try the one ,trick ur av ;)

Now u have a 75% chance to make ur file UNDETECTED !

where can it be usefull ?
The time u wanna install a backdoor ans specuially a rootkit
on a compromised system ;)

The only thing i forgot to mention is that we have same thing on
Unix/Linux too ! ;)
and sorry about my bad english wich sucks,,,



Happy packing

--Elite--
0

#2 User is offline   agamemnon 

  • Sergeant
  • Icon
  • Group: Members
  • Posts: 200
  • Joined: 26-August 03

Posted 23 December 2003 - 04:57 PM

Great stuff!

Lovely to know that people are still willing to take the time to write nice long informative posts. :)

Though I'm not sure as I quite understand the need to post three of them...

-ed.
0

#3 User is offline   --Elite-- 

  • Private First Class
  • Icon
  • Group: Members
  • Posts: 90
  • Joined: 09-August 03

Post icon  Posted 23 December 2003 - 05:19 PM

Here is the link to get the latest version of explained utility : UPX

UPX Home-page
0

#4 User is offline   taktau 

  • Private
  • Icon
  • Group: Members
  • Posts: 6
  • Joined: 17-December 03

Posted 23 December 2003 - 05:32 PM

yea, use upx! undetectable for detectable trojan :D
0

#5 Guest_yuliang11_*

  • Group: Guests

Posted 23 December 2003 - 05:46 PM

thanks mate. this is a good tutorial
0

#6 Guest_dreedz_*

  • Group: Guests

Posted 23 December 2003 - 06:26 PM

great information indeed! cheers :P
0

#7 User is offline   ssj4conejo 

  • Sergeant
  • Icon
  • Group: Members
  • Posts: 239
  • Joined: 11-August 03

Posted 23 December 2003 - 09:54 PM

Nice info, another good util for this is morphine. It worked perfectly = ).
0

#8 Guest_daguilar01_*

  • Group: Guests

Posted 23 December 2003 - 10:19 PM

ssj4conejo, on Dec 23 2003, 10:54 PM, said:

Nice info, another good util for this is morphine. It worked perfectly = ).

and even better is a combination of both, ;)
0

#9 User is offline   Fractured 

  • Private First Class
  • Icon
  • Group: Members
  • Posts: 77
  • Joined: 16-December 03

Posted 23 December 2003 - 11:29 PM

Thank you, finally someone took the time to write out step by step what should be tried to make a file undetectable. Very useful, should help a lot of new people to the scene.
0

#10 User is offline   thotho 

  • Private First Class
  • Icon
  • Group: Members
  • Posts: 27
  • Joined: 29-November 03

Posted 23 December 2003 - 11:50 PM

UPX GUI

http://www.balpoint....y.darklordz.exe
0

#11 User is offline   neoragexxx 

  • Private First Class
  • Icon
  • Group: Members
  • Posts: 56
  • Joined: 05-October 03

Posted 24 December 2003 - 01:49 AM

thx for the info elite , didn't know bout upx :)
0

#12 Guest_liquidSilver_*

  • Group: Guests

Posted 24 December 2003 - 01:56 AM

This was a great explaination.. All thou, I knew quite much of it... Well thank you anyways!
0

#13 User is offline   zero-maitimax 

  • Sergeant First Class
  • Icon
  • Group: Members
  • Posts: 309
  • Joined: 16-December 03

Posted 24 December 2003 - 02:38 AM

upx is good but i have seen some trojan even with upx they where detected...

aphex had made a loot that is the best i know fcp 1.0

the nice thing about it (it's olso the bad thing) it ad's a random byte's in it . and then pack it..

but you can be 101%sure it is undectedet..
0

#14 User is offline   sir|nfs 

  • Private
  • Icon
  • Group: Members
  • Posts: 16
  • Joined: 14-September 03

Posted 24 December 2003 - 02:45 AM

Thanks a lot very usefull tut!

Sir NFS
0

#15 Guest_X-FloppY_*

  • Group: Guests

Posted 24 December 2003 - 03:30 AM

Thank's For the info m8
nice work
i need it :D
0

  • (5 Pages)
  • +
  • 1
  • 2
  • 3
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users

  • Share



Our Sponsors:


SwiftLayer Affiliate Web Hosting