Running program files on XP with non-executable extension?

Running program files on XP with non-executable extension?

Secure Home | Search | About
 General Computer Security    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content add this group's latest topics to your Google content
Subject Author Date
Running program files on XP with non-executable extension? JS 11-02-2005
Posted by JS on November 2, 2005, 9:48 am
If you were  Registered and logged in, you could reply and use other advanced thread options
I downloaded a file (let's call it BLUESKY.EXE) which my anti-
virus guard says may be a virus.

I wanted to get more info about this file, so I disabled it by
adding a couple of random letters to the extension.

I renamed BLUESKY.EXE to BLUESKY.EXEHJ.

I figured this would stop my XP Pro from running it if I double
clicked it by mistake. But my antivirus guard 'AntiVir PE' warned
me about it again. Even with the dummy extension letters! Surely
such a program file is now safe enough?

--

I found that if I add the random letters *before* the EXE then
AntiVir PE's guard does not detect it as a virus.

So BLUESKY.HJEXE is ok according to 'AntiVir PE'.

Is this just an oddity in 'AntiVir PE'? Or is this being done
because of something in XP Pro which might truncate the letters in
a file's extension after the first three letters?


Posted by James Egan on November 2, 2005, 11:33 am
If you were  Registered and logged in, you could reply and use other advanced thread options
wrote:

>I figured this would stop my XP Pro from running it if I double
>clicked it by mistake. But my antivirus guard 'AntiVir PE' warned
>me about it again. Even with the dummy extension letters! Surely
>such a program file is now safe enough?
>

Not always.

As an example you might try renaming a MS Word .doc file to (say) .hje
or some other extension which doesn't have a specific association with
another program and then double clicking it. You will see that it
still opens in Word because the file structure is still recognised as
a word document even though you renamed it.


Jim.



Posted by Volker Birk on November 2, 2005, 4:40 pm
If you were  Registered and logged in, you could reply and use other advanced thread options
> I wanted to get more info about this file, so I disabled it by
> adding a couple of random letters to the extension.
> I renamed BLUESKY.EXE to BLUESKY.EXEHJ.
> I figured this would stop my XP Pro from running it if I double
> clicked it by mistake. But my antivirus guard 'AntiVir PE' warned
> me about it again. Even with the dummy extension letters! Surely
> such a program file is now safe enough?
> --
> I found that if I add the random letters *before* the EXE then
> AntiVir PE's guard does not detect it as a virus.
> So BLUESKY.HJEXE is ok according to 'AntiVir PE'.
> Is this just an oddity in 'AntiVir PE'?

Yes. AntiVir PE should find the virus signature wether the file has the
name a or b.

> Or is this being done
> because of something in XP Pro which might truncate the letters in
> a file's extension after the first three letters?

Yes - if AntiVir PE is programmed dumb enough to use the old 16bit API.
I'm hoping, this will _not_ be true...

*ohmyFSM*,
VB.
--
"Ich bin ein freier Mensch und werde jetzt von meinen Freiheitsrechten
Gebrauch machen - und zwar ausgiebig - natürlich nur in dem Rahmen, den
Otto Schily mir noch zur Verfügung stellt."
Wolfgang Clement am 10.10.05 als Noch-Superminister


Posted by Poster 60 on November 3, 2005, 2:12 am
If you were  Registered and logged in, you could reply and use other advanced thread options


JS wrote:
> --
>
> I found that if I add the random letters *before* the EXE then
> AntiVir PE's guard does not detect it as a virus.

This is what an anti-virus program will do if you choose to rename
the file to keep it for observation purposes. If you add a "v" in front
of the exe extension, it is no longer read as an executable. You will
also notice the icon of the file changes.
You could also rename it by a second extension after the exe - exe.abc



>
> So BLUESKY.HJEXE is ok according to 'AntiVir PE'.

The executable is disabled but it is still a malicious file. It can
be reactivated by changing the extension back to exe.

>
> Is this just an oddity in 'AntiVir PE'? Or is this being done
> because of something in XP Pro which might truncate the letters in
> a file's extension after the first three letters?



Posted by Zvi Netiv on November 3, 2005, 7:12 pm
If you were  Registered and logged in, you could reply and use other advanced thread options

> I downloaded a file (let's call it BLUESKY.EXE) which my anti-
> virus guard says may be a virus.
>
> I wanted to get more info about this file, so I disabled it by
> adding a couple of random letters to the extension.
>
> I renamed BLUESKY.EXE to BLUESKY.EXEHJ.

Not the brightest idea.

> I figured this would stop my XP Pro from running it if I double
> clicked it by mistake. But my antivirus guard 'AntiVir PE' warned
> me about it again. Even with the dummy extension letters! Surely
> such a program file is now safe enough?

Not sure at all. See below.

> I found that if I add the random letters *before* the EXE then
> AntiVir PE's guard does not detect it as a virus.
>
> So BLUESKY.HJEXE is ok according to 'AntiVir PE'.
>
> Is this just an oddity in 'AntiVir PE'? Or is this being done
> because of something in XP Pro which might truncate the letters in
> a file's extension after the first three letters?

Nothing to do with XP, particularly, but with how file and extension names are
interpreted by Windows and by various applications.

Here is a little experiment that you can do, that explains the principles
involved: Open the Windows installation directory with Windows Explorer, find
Regedit.exe, and rename it to "Egedit.executable". When still in Explorer's
window, double click the Egedit renamed file and it won't execute, as expected.

Prepare now for a little surprise! Open the CMD shell (by executing CMD from
the desktop 'run' menu), change to XP's base directory (..\WINNT by default) and
issue the command DIR EGEDI* from the command line. The system will return
EGEDIT~1.EXE. Type now just EGEDIT~1, with no extension name, and then press
Enter. REGEDIT will open normally!

What the above experiment shows is that the Explorer and CMD shells, do parse
file and extension names quite differently and whether a file is considered an
executable depends on the parser.

All that your experiment tells is that Antivir PE interprets just the first
three characters of the extension name in order to determine whether the file
type is in the list of extensions that need be verified. Nothing beyond that.

If you want to be safe, then change the extension name to EX~, DL~, SC~ for
castrated exe, dll, and scr, respectively, rather than appending the original
extension name, like you did.

Don't forget to delete Egedit when done with the experiment (Windows will keep
the protected original file, and rename a copy).

Regards, Zvi
--
NetZ Computing Ltd. ISRAEL www.invircible.com www.ivi.co.il (Hebrew)
InVircible Virus Defense Solutions, ResQ and Data Recovery Utilities


Similar ThreadsPosted
CFP: Wireless Applications and Computing 2008 - extension March 19, 2008, 9:07 am
Need simpler encryption program than PGP April 8, 2006, 1:44 pm
Getting rid of a spyware program called "Once Dead" May 9, 2004, 4:55 pm
Program to lock down a Windows XP computer July 21, 2004, 2:17 pm
OTP (One-Time Pad Generator Program) and MD5 signature April 17, 2005, 7:01 am
Re: Seeking simple VOIP program November 18, 2007, 3:39 pm
Update from the LISA '08 Program Chair April 21, 2008, 5:00 pm
Best IT Security professional certification program for Canadians November 26, 2004, 9:13 am
Re: question about Microsoft's Anti-Virus program March 9, 2008, 5:06 pm
Does a security scanning program needs to know the OS's of the machines being scanned? May 24, 2004, 6:59 am

The site map in XML format XML site map

Contact Us | Privacy Policy