os code, dectede as virus ??

Programming, for all ages and all languages.
User avatar
kmtdk
Member
Member
Posts: 263
Joined: Sat May 17, 2008 4:05 am
Location: Cyperspace, Denmark
Contact:

os code, dectede as virus ??

Post by kmtdk »

Well
when i compile some of my code, avg 8 dectede is as a virus, and a exe head ???
but the code is far from a virus, and a exe.
avg 8 ignore when i tell it not to tjek that file (kernel16.bin), but that dont help

since it dectede it, can it be due to the "cpu" chek i do in the beginning ??
secound: have any other tried that ??


KMT dk
well, what to say, to much to do in too little space.
when it goes up hill, increase work, when it goes straight, test yourself but when going down, slow down.
User avatar
inflater
Member
Member
Posts: 1309
Joined: Thu Sep 28, 2006 10:32 am
Location: Slovakia
Contact:

Re: os code, dectede as virus ??

Post by inflater »

My boot sector (and therefore,the whole floppy image - since boot sector starts at ofs 0 and ends 0x200 in the image) was unfriendly to NOD32, so I have send them the asm code of the sector and compiled binary to report as false alarm, and I'm no more getting the "virus" warning.

Maybe you should e-mail Grisoft (the creator of AVG) with your code [firstly try to smoothen your English a bit], and if that wouldn't help, try a better anti virus program (e.g. nod32 :twisted:).

Regards
inflater
My web site: http://inflater.wz.cz (Slovak)
Derrick operating system: http://derrick.xf.cz (Slovak and English :P)
User avatar
suthers
Member
Member
Posts: 672
Joined: Tue Feb 20, 2007 3:00 pm
Location: London UK
Contact:

Re: os code, dectede as virus ??

Post by suthers »

Never had any problems with my anti-virus detecting my OS as a virus, but I used to used AVG and it has a load of problems...
Jules
User avatar
01000101
Member
Member
Posts: 1599
Joined: Fri Jun 22, 2007 12:47 pm
Contact:

Re: os code, dectede as virus ??

Post by 01000101 »

I use avg8 and I've never had any problems like that. Very intersting. You should try removing the one peice of code temporarily and see what it is, and if you find the exact issue, submit it to AVG and see if they can alter the signature a bit to weed-out the harmess.
User avatar
Telgin
Member
Member
Posts: 72
Joined: Thu Dec 20, 2007 1:45 pm

Re: os code, dectede as virus ??

Post by Telgin »

Wow, the odds of your code compiling to something that is recognized as a virus seems astronomical. Does AVG check file names too to detect viruses? Perhaps it recognizes kernel16.bin as the name of a known virus file.
Osbios
Member
Member
Posts: 116
Joined: Fri Jun 10, 2005 11:00 pm

Re: os code, dectede as virus ??

Post by Osbios »

I once hat that problem with my code. I used AVG, too. But that was more then two years ago.

Perhaps it is some kind of boot viruses detection... or its some sort of marketing gag to find some viruses from time to time. :P
User avatar
Omega
Member
Member
Posts: 250
Joined: Sun May 25, 2008 2:04 am
Location: United States
Contact:

Re: os code, dectede as virus ??

Post by Omega »

It is probably detecting a signature like a known virus, does it tell you which virus it thinks it is? You can try to get its signature and compare bit for bit.
Free energy is indeed evil for it absorbs the light.
User avatar
kmtdk
Member
Member
Posts: 263
Joined: Sat May 17, 2008 4:05 am
Location: Cyperspace, Denmark
Contact:

Re: os code, dectede as virus ??

Post by kmtdk »

well
it happend after i removede some code, and add some.
well it aint a bootloader, it is a file betwen 32 bit protected mode, and the 16 bit.
my own therio was a call to 0x5000, since this is out of the program ,witch begins at 0x8000.
I first got home now som im testing it now ..

edit:
test results:
it is becase of the first part of the code.
It must be seen as a exe file .. wird :? .
reason:
i add a nop in the top of the code, and then it dont saw it as a virus ..


KMT DK
well, what to say, to much to do in too little space.
when it goes up hill, increase work, when it goes straight, test yourself but when going down, slow down.
User avatar
JamesM
Member
Member
Posts: 2935
Joined: Tue Jul 10, 2007 5:27 am
Location: York, United Kingdom
Contact:

Re: os code, dectede as virus ??

Post by JamesM »

Solution? Use *nix. ;)

Come on Brynet-inc, you should have been in there before me with that...
Laksen
Member
Member
Posts: 140
Joined: Fri Nov 09, 2007 3:30 am
Location: Aalborg, Denmark

Re: os code, dectede as virus ??

Post by Laksen »

JamesM wrote:Solution? Use *nix. ;)
WARNING: Flamebait detected
Post has been blocked
http://j-software.dk | JPasKernel - My Object Pascal kernel
User avatar
suthers
Member
Member
Posts: 672
Joined: Tue Feb 20, 2007 3:00 pm
Location: London UK
Contact:

Re: os code, dectede as virus ??

Post by suthers »

Laksen wrote:
JamesM wrote:Solution? Use *nix. ;)
WARNING: Flamebait detected
Post has been blocked
That's barely flamebait material, it's just a friendly joke, calm down.
Jules

edit:spellings.
User avatar
Brynet-Inc
Member
Member
Posts: 2426
Joined: Tue Oct 17, 2006 9:29 pm
Libera.chat IRC: brynet
Location: Canada
Contact:

Re: os code, dectede as virus ??

Post by Brynet-Inc »

JamesM wrote:Solution? Use *nix. ;)

Come on Brynet-inc, you should have been in there before me with that...
I'm a harmless observer now, perhaps next time. :)
Image
Twitter: @canadianbryan. Award by smcerm, I stole it. Original was larger.
User avatar
Brendan
Member
Member
Posts: 8561
Joined: Sat Jan 15, 2005 12:00 am
Location: At his keyboard!
Contact:

Re: os code, dectede as virus ??

Post by Brendan »

Hi,
Telgin wrote:Wow, the odds of your code compiling to something that is recognized as a virus seems astronomical. Does AVG check file names too to detect viruses? Perhaps it recognizes kernel16.bin as the name of a known virus file.
Relying on signatures (and file names) would help for viruses you know about, but it's entirely useless for viruses you don't know about.

Good anti-virus programs analyze the contents of the file. If the file starts with a PE header then check if it uses Windows API functions that provide direct disk access. If all the bytes are valid ASCII characters (or UTF-8 characters) separated by linefeed characters then it's probably harmless (text file, HTML, etc). If it contains a valid header for BMP, JPG, MPG, etc then it's probably a BMP, JPG, MPG, etc.

If it's a small binary that begins with a JMP instruction, contains 16-bit code and accesses the BIOS's disk services, then it's probably a boot sector virus. For a normal Windows user, it's unlikely to be anything else...


Cheers,

Brendan
For all things; perfection is, and will always remain, impossible to achieve in practice. However; by striving for perfection we create things that are as perfect as practically possible. Let the pursuit of perfection be our guide.
User avatar
Dex
Member
Member
Posts: 1444
Joined: Fri Jan 27, 2006 12:00 am
Contact:

Re: os code, dectede as virus ??

Post by Dex »

This is a sign of good tight code written in ASM, my OS is also detected as a virus, its a virus to bloatware.
User avatar
Zenith
Member
Member
Posts: 224
Joined: Tue Apr 10, 2007 4:42 pm

Re: os code, dectede as virus ??

Post by Zenith »

But of course, most Windows users (me included) trust our Anti-virus programs, so it's always preferable that your code isn't detected as a virus. An ASM boot sector is likely to be detected as a boot sector virus (because most people don't keep random 512-byte binaries with 16-bit jump instructions and an FAT BPB on their hard drives). :wink:
"Sufficiently advanced stupidity is indistinguishable from malice."
Post Reply