Author Topic: Viruses in pictures?  (Read 1579 times)

0 Members and 1 Guest are viewing this topic.

Xedafen

  • Guest
Viruses in pictures?
« on: October 21, 2014, 06:07:59 am »
Large antivirus software like Norton and reliable sites for reporting malicious files such as kapersky have been warning people of new viruses and backdoors in bmp. Now, I can make a virus LOOK like a bmp, but is it just me or does this just sound like bullsh!t? bmp, jpg, gif, etc. are NOT executables, so by my understanding, this is impossible, because when ran it will not run as an executable but be run as a picture file. I know there can be secret text and hidden pictures and links inside pictures, but a virus? I dont think its possible. What are your thoughts on this and do you think its possible? Mabye some examples?
« Last Edit: October 21, 2014, 08:36:06 am by ande »

Offline Architect

  • Sir
  • ***
  • Posts: 428
  • Cookies: 56
  • STFU
    • View Profile
    • Rootd IRC
Re: Viruses in PICTURES!?!?!
« Reply #1 on: October 21, 2014, 06:26:04 am »
Anybody remember the days when you could embed batch code into JPEGS and archives into PNGs? Oh wait. You still can..

Xedafen

  • Guest
Re: Viruses in PICTURES!?!?!
« Reply #2 on: October 21, 2014, 06:29:22 am »
Anybody remember the days when you could embed batch code into JPEGS and archives into PNGs? Oh wait. You still can..


How? That information would be greatly apprecieated

Offline Architect

  • Sir
  • ***
  • Posts: 428
  • Cookies: 56
  • STFU
    • View Profile
    • Rootd IRC
Re: Viruses in PICTURES!?!?!
« Reply #3 on: October 21, 2014, 06:35:36 am »

How? That information would be greatly apprecieated
Code: [Select]
copy /b Image.png + Compressed.rar Secretimage.png then just Google how to make it self extracting. Same thing works with any files. Just copy the virus and an .ini for auto run and put it into a meme image. Then spread it.

Xedafen

  • Guest
Re: Viruses in PICTURES!?!?!
« Reply #4 on: October 21, 2014, 07:06:02 am »
Code: [Select]
copy /b Image.png + Compressed.rar Secretimage.png then just Google how to make it self extracting. Same thing works with any files. Just copy the virus and an .ini for auto run and put it into a meme image. Then spread it.


Yes that will hide the image but doesnt solve the problem of the user still having to run the program, or maybe Im not understanding something. You should make a tutorial.
« Last Edit: October 21, 2014, 07:06:17 am by Xedafen »

Offline ande

  • Owner
  • Titan
  • *
  • Posts: 2664
  • Cookies: 256
    • View Profile
Re: Viruses in pictures?
« Reply #5 on: October 21, 2014, 08:52:12 am »

Yes that will hide the image but doesnt solve the problem of the user still having to run the program, or maybe Im not understanding something. You should make a tutorial.

No, you understand correctly. This is about as useful as any other file merger. It simple puts one file on the end of the other. Nothing more. Wont run, wont do anything.

There are only two ways malware could be hidden (and executed) in images. Either by feature or by flaw. And by flaw I mean (most of the time?) a buffer overflow vulnerability.

By feature
Code could be executed by a image viewer if the image viewer actually had this as a feature. Not as likely with image files, but there have been nemours examples of other file formats that have allowed things like javascript or VBscript to run as a feature. Pretty sure PDF had this a while back(maybe still?), Microsoft office files had(have?) this and so on.

By flaw
As with any other program, a image viewer can have flaws/bugs. And sometimes those flaws/bugs can be exploited. In most cases we are talking about a buffer overflow exploit. This could allow you to add malicious code to an image that would be executed when viewing the image. There are way too many details to go into here and now so I will not explain further. Know this tho, most image formats have been around for a loooong time and so thousends of people have tried finding these flaws already.
« Last Edit: October 21, 2014, 08:54:40 am by ande »
if($statement) { unless(!$statement) { // Very sure } }
https://evilzone.org/?hack=true

Xedafen

  • Guest
Re: Viruses in pictures?
« Reply #6 on: October 21, 2014, 04:47:08 pm »
No, you understand correctly. This is about as useful as any other file merger. It simple puts one file on the end of the other. Nothing more. Wont run, wont do anything.

There are only two ways malware could be hidden (and executed) in images. Either by feature or by flaw. And by flaw I mean (most of the time?) a buffer overflow vulnerability.

By feature
Code could be executed by a image viewer if the image viewer actually had this as a feature. Not as likely with image files, but there have been nemours examples of other file formats that have allowed things like javascript or VBscript to run as a feature. Pretty sure PDF had this a while back(maybe still?), Microsoft office files had(have?) this and so on.

By flaw
As with any other program, a image viewer can have flaws/bugs. And sometimes those flaws/bugs can be exploited. In most cases we are talking about a buffer overflow exploit. This could allow you to add malicious code to an image that would be executed when viewing the image. There are way too many details to go into here and now so I will not explain further. Know this tho, most image formats have been around for a loooong time and so thousends of people have tried finding these flaws already.




Thank you.

Offline Deque

  • P.I.N.N.
  • Global Moderator
  • Overlord
  • *
  • Posts: 1203
  • Cookies: 518
  • Programmer, Malware Analyst
    • View Profile
Re: Viruses in pictures?
« Reply #7 on: October 21, 2014, 04:51:15 pm »
Since you are looking for examples, here is a paper about one recent Android image exploit by Albertini and Apvrille:
https://www.blackhat.com/docs/eu-14/materials/eu-14-Apvrille-Hide-Android-Applications-In-Images-wp.pdf

Offline p_2001

  • Royal Highness
  • ****
  • Posts: 684
  • Cookies: -64
    • View Profile
Re: Viruses in pictures?
« Reply #8 on: October 21, 2014, 04:55:37 pm »
No, you understand correctly. This is about as useful as any other file merger. It simple puts one file on the end of the other. Nothing more. Wont run, wont do anything.

There are only two ways malware could be hidden (and executed) in images. Either by feature or by flaw. And by flaw I mean (most of the time?) a buffer overflow vulnerability.

By feature
Code could be executed by a image viewer if the image viewer actually had this as a feature. Not as likely with image files, but there have been nemours examples of other file formats that have allowed things like javascript or VBscript to run as a feature. Pretty sure PDF had this a while back(maybe still?), Microsoft office files had(have?) this and so on.

By flaw
As with any other program, a image viewer can have flaws/bugs. And sometimes those flaws/bugs can be exploited. In most cases we are talking about a buffer overflow exploit. This could allow you to add malicious code to an image that would be executed when viewing the image. There are way too many details to go into here and now so I will not explain further. Know this tho, most image formats have been around for a loooong time and so thousends of people have tried finding these flaws already.


There is a third way,  polyglots. You make a hybrid file of two different languages and send them.  An example would be gifar attacks where the gif file was both a valid gif and jar file.
"Always have a plan"

Offline rocketballz

  • /dev/null
  • *
  • Posts: 17
  • Cookies: -3
    • View Profile
Re: Viruses in pictures?
« Reply #9 on: November 03, 2014, 06:15:34 am »
You can make a virus in say python for example and use a program like aegis to spoof the extension as well as compress the size so it looks like a normal jpeg file or whatever

~APH ADMIN~


Offline ande

  • Owner
  • Titan
  • *
  • Posts: 2664
  • Cookies: 256
    • View Profile
Re: Viruses in pictures?
« Reply #10 on: November 03, 2014, 08:53:03 am »
You can make a virus in say python for example and use a program like aegis to spoof the extension as well as compress the size so it looks like a normal jpeg file or whatever

~APH ADMIN~

No you cannot. At least not the spoofing part. The file ending is the file ending. You can call your file abc.exe.gif or abc.gif.exe. But onle one of those will apply. Even tho the last one will get hidden in a default Windows vista(and above) system, it will not execute because it has .exe in the name.

PS: If you want that signature in all your posts, add it to your SIGNATURE. Not every single post. Check your profile settings page.
« Last Edit: November 03, 2014, 08:53:33 am by ande »
if($statement) { unless(!$statement) { // Very sure } }
https://evilzone.org/?hack=true

Offline rocketballz

  • /dev/null
  • *
  • Posts: 17
  • Cookies: -3
    • View Profile
Re: Viruses in pictures?
« Reply #11 on: November 03, 2014, 08:58:51 am »
Actually that's not completly accurate.   It is still an exe file, it just spoofs the extension to look like a jpeg or gif.   The only exempt I can give you is one they I made...?

~APH ADMIN~


Offline ande

  • Owner
  • Titan
  • *
  • Posts: 2664
  • Cookies: 256
    • View Profile
Re: Viruses in pictures?
« Reply #12 on: November 03, 2014, 09:19:13 am »
Actually that's not completly accurate.   It is still an exe file, it just spoofs the extension to look like a jpeg or gif.   The only exempt I can give you is one they I made...?

~APH ADMIN~

I dont think you understand. You cannot actually spoof (trick, hoax, prank) the file ending, that would make no sense. You can change the exe icon and name it virus.gif.exe but the file ending would still be .exe. I guess it might work with some end-users, but anyone with a little bit of brains would not touch that.
if($statement) { unless(!$statement) { // Very sure } }
https://evilzone.org/?hack=true

Offline rocketballz

  • /dev/null
  • *
  • Posts: 17
  • Cookies: -3
    • View Profile
Re: Viruses in pictures?
« Reply #13 on: November 03, 2014, 09:22:32 am »
I'll make a video tutorial if you'd like? 

~APH ADMIN~


Offline ande

  • Owner
  • Titan
  • *
  • Posts: 2664
  • Cookies: 256
    • View Profile
Re: Viruses in pictures?
« Reply #14 on: November 03, 2014, 09:30:35 am »
I'll make a video tutorial if you'd like? 

~APH ADMIN~

Dont think that would be necessary. I understand what you probably have done, but im telling you its not as fantastic as you sell it to be. You could upload the file as an attachment?
if($statement) { unless(!$statement) { // Very sure } }
https://evilzone.org/?hack=true