Forum Moderators: phranque
The virus/trojan called 'js/downloader agent'. anybody have any experience with this?
It sounds as if your situation is likely that you have a compromised server somehow and yes, you now have obfuscated or encoded JavaScript code in one or more of your files. If you have a backup of the file, pre-compromised state, rename the compromised file on your server and send the last good copy back over. You can rename the extension on the compromised file as well, so that JavaScript will not execute if you accidentally attempted to open the file.
If the file itself is already on your hard drive, and you get the message in Windows Explorer, then it does sound like your antivirus program might have locked or quarantined it.
But if you are unable to download the file, it might be because the hack changed the file's owner (on the server) to "nobody". On Linux servers, files are owned by the account that created them, which is usually you, your userID on the server. But on some Linux servers, PHP runs as the "nobody" user, and when it writes a file, that file becomes owned by "nobody" which is not the same user as you, so you are denied access to it. Many website hacks are done by PHP scripts, which would result in the modified files being owned by nobody.
I believe the possible solutions are to use Linux commands (by shell or by cron) to change the ownership on those files, and I think you might also be able to write and upload a PHP script that will change ownership of the files. I think the PHP command is "chown", and the Linux command might be the same.
If this is the problem, those are some things to use as search terms. Sorry I can't be more specific, but I've not had to do this myself.
Edit: I'm not completely sure that even PHP or cron will be able to change ownership. You might have to get help from the webhost.
[edited by: SteveWh at 12:32 am (utc) on May 21, 2009]
Chances are it's just a js iframe that won't cause harm if you just edit the file, but it's best to manipulate the files on a test machine or in a sandbox environment to be sure.