Author Topic: [Fixed] Non-english named files in zip archive cannot be deleted  (Read 10476 times)

0 Members and 1 Guest are viewing this topic.

Online NON

  • Japanese User
  • Avast Überevangelist
  • Ultra Poster
  • *****
  • Posts: 5489
  • Whatever will be, will be.
Hello,

An infected Japanese-named file in zip archive cannot be moved-to-chest or deleted. Avast returns error code 18.

Attached archive has eicar file named "テスト.com" (Japanese Katakana). Password is "virus".
Please change ".txt" into ".zip".
« Last Edit: July 09, 2010, 04:10:26 PM by NON »
Desktop: Win10 Pro 22H2 64bit / Core i5-7400 3.0GHz / 32GB RAM / Avast 23 Premium Beta(Icarus) / Comodo Firewall
Notebook: Win10 Pro 22H2 64bit / Core i5-3340M 2.7GHz / 12GB RAM / Avast 23 Free / Windows Firewall Control
Server: Win11 Pro 23H2 64bit / Core i3-4010U 1.7GHz / 12GB RAM / Avast One 23 Essential

Avast の設定について解説しています。よろしければご覧ください。

Eric March

  • Guest
Re: Non-english named files in zip archive cannot be deleted
« Reply #1 on: July 03, 2010, 04:31:44 PM »
Hello!

To my opinion, it's always not a good idea to cut out an infected file from an archive (from any kind of archive). An possibly, the compression generates a code sequence which is recognized as viral…
If you can unzip that archive (to a new created folder), ignoring the alert, and then scan this folder - is there still a virus, and still in that file?
When unzipped, why not simply delete any infected file and zip the rest again (and discard that folder)? Or should it be better to discard the entire archive immediately? (…since we do not know anything about this archive.)

Eric March

Online NON

  • Japanese User
  • Avast Überevangelist
  • Ultra Poster
  • *****
  • Posts: 5489
  • Whatever will be, will be.
Re: Non-english named files in zip archive cannot be deleted
« Reply #2 on: July 03, 2010, 04:49:26 PM »
Thanks for the reply.

If you can unzip that archive (to a new created folder), ignoring the alert, and then scan this folder - is there still a virus, and still in that file?
Actually, this isuue is reported from one of my acquaintances, so I don't have original archive...  :-\
But I confirmed this happens when I use eicar files, and I hear avast4 can do this thing, so I reported.


Quote
When unzipped, why not simply delete any infected file and zip the rest again (and discard that folder)? Or should it be better to discard the entire archive immediately? (…since we do not know anything about this archive.)
You are right,  I would do so when it happens to me. :)
« Last Edit: July 03, 2010, 04:51:22 PM by NON »
Desktop: Win10 Pro 22H2 64bit / Core i5-7400 3.0GHz / 32GB RAM / Avast 23 Premium Beta(Icarus) / Comodo Firewall
Notebook: Win10 Pro 22H2 64bit / Core i5-3340M 2.7GHz / 12GB RAM / Avast 23 Free / Windows Firewall Control
Server: Win11 Pro 23H2 64bit / Core i3-4010U 1.7GHz / 12GB RAM / Avast One 23 Essential

Avast の設定について解説しています。よろしければご覧ください。

Offline igor

  • Avast team
  • Serious Graphoman
  • *
  • Posts: 11849
    • AVAST Software
Re: Non-english named files in zip archive cannot be deleted
« Reply #3 on: July 03, 2010, 05:15:03 PM »
What did you use to create the ZIP? This sample is not very useful because it is in "one layer", i.e. it cannot be tested without repacking.
(It would be better to pack the Eicar into a non-encrypted ZIP first, then this ZIP into another password-encrypted ZIP and attach that file here.)

Thanks.

Online NON

  • Japanese User
  • Avast Überevangelist
  • Ultra Poster
  • *****
  • Posts: 5489
  • Whatever will be, will be.
Re: Non-english named files in zip archive cannot be deleted
« Reply #4 on: July 03, 2010, 05:22:46 PM »
Repacked.

test.txt (Encrypted ZIP) -> test.zip (Non-encrypted ZIP) -> テスト.com
Password is "virus".

Thanks for your support.

Edit: Uploaded to mediafire.
« Last Edit: July 03, 2010, 05:47:46 PM by NON »
Desktop: Win10 Pro 22H2 64bit / Core i5-7400 3.0GHz / 32GB RAM / Avast 23 Premium Beta(Icarus) / Comodo Firewall
Notebook: Win10 Pro 22H2 64bit / Core i5-3340M 2.7GHz / 12GB RAM / Avast 23 Free / Windows Firewall Control
Server: Win11 Pro 23H2 64bit / Core i3-4010U 1.7GHz / 12GB RAM / Avast One 23 Essential

Avast の設定について解説しています。よろしければご覧ください。

Offline DavidR

  • Avast Überevangelist
  • Certainly Bot
  • *****
  • Posts: 89029
  • No support PMs thanks
Re: Non-english named files in zip archive cannot be deleted
« Reply #5 on: July 03, 2010, 05:34:56 PM »
There are always going to be problems when you change the file type as first the avast forum is going to save the attachment as a text file, which may be what Igor is on about (one layer, a flat text file). So when you download it, change the file type back to .zip and try to open/unpack it you get an error, see image.

So it may be best to place this on an on-line storage media, like mediafire as a .zip file so it can be downloaded as it was saved and then they should be able to test.

Mediafire.com - Upload to http://www.mediafire.com/ and post the sharing link.
Windows 10 Home 64bit/ Acer Aspire F15/ Intel Core i5 7200U 2.5GHz, 8GB DDR4 memory, 256GB SSD, 1TB HDD/ avast! free 24.3.6108 (build 24.3.8975.762) UI 1.0.801/ Firefox, uBlock Origin, uMatrix/ MailWasher Pro/ Avast! Mobile Security

Online NON

  • Japanese User
  • Avast Überevangelist
  • Ultra Poster
  • *****
  • Posts: 5489
  • Whatever will be, will be.
Re: Non-english named files in zip archive cannot be deleted
« Reply #6 on: July 03, 2010, 05:45:44 PM »
There are always going to be problems when you change the file type as first the avast forum is going to save the attachment as a text file, which may be what Igor is on about (one layer, a flat text file). So when you download it, change the file type back to .zip and try to open/unpack it you get an error, see image.

So it may be best to place this on an on-line storage media, like mediafire as a .zip file so it can be downloaded as it was saved and then they should be able to test.

Mediafire.com - Upload to http://www.mediafire.com/ and post the sharing link.

I'm sorry, I didn't notice that.

Uploaded here:
http://www.mediafire.com/?lyn5z2tjgn5
Desktop: Win10 Pro 22H2 64bit / Core i5-7400 3.0GHz / 32GB RAM / Avast 23 Premium Beta(Icarus) / Comodo Firewall
Notebook: Win10 Pro 22H2 64bit / Core i5-3340M 2.7GHz / 12GB RAM / Avast 23 Free / Windows Firewall Control
Server: Win11 Pro 23H2 64bit / Core i3-4010U 1.7GHz / 12GB RAM / Avast One 23 Essential

Avast の設定について解説しています。よろしければご覧ください。

Offline DavidR

  • Avast Überevangelist
  • Certainly Bot
  • *****
  • Posts: 89029
  • No support PMs thanks
Re: Non-english named files in zip archive cannot be deleted
« Reply #7 on: July 03, 2010, 06:50:58 PM »
OK, that works I was able to download it and open it with 7zip. I was able to extract the internal zip file (using the virus password). I was then able to scan the inner text.zip using the right click ashQuick.exe scan, image 1 (shows alert).

I then clicked the Show results, which shows the non-English file name inside test.zip as infected, image 2 and the default selection of Move to chest.

I then clicked the Apply button and checked the avast chest, image 3 and that showed the complete test.zip file had been moved to the chest.

So for me it was able to deal with the detection and move to the chest of the whole archive, it didn't try to extract the infected file within the test.zip archive. It may depend on what your settings are for the ashQuick scan settings (Scan Computer, Scan Now, Scan from Windows Explorer, Settings) are but I believe the default is Try to remove only the packed file from the archive; if it fails, do nothing. Or if you have the if it fails, remove the containing archive.

Interestingly enough I have the default setting, image 4, which should do nothing if it isn't able to extract the file, but it obviously didn't do that, but it went ahead and removed the archive file (test.zip).

The windows File System error 18 = There are no more files. So I'm not sure why you got that error.
Windows 10 Home 64bit/ Acer Aspire F15/ Intel Core i5 7200U 2.5GHz, 8GB DDR4 memory, 256GB SSD, 1TB HDD/ avast! free 24.3.6108 (build 24.3.8975.762) UI 1.0.801/ Firefox, uBlock Origin, uMatrix/ MailWasher Pro/ Avast! Mobile Security

Online NON

  • Japanese User
  • Avast Überevangelist
  • Ultra Poster
  • *****
  • Posts: 5489
  • Whatever will be, will be.
Re: Non-english named files in zip archive cannot be deleted
« Reply #8 on: July 04, 2010, 01:21:58 AM »
Thanks for testing and sorry for late response.

I have same settings as yours, but in my case avast doesn't move-to-chest whole archive nor eicar file, just returns error 18.
I don't know why avast behavior is different... ???
Desktop: Win10 Pro 22H2 64bit / Core i5-7400 3.0GHz / 32GB RAM / Avast 23 Premium Beta(Icarus) / Comodo Firewall
Notebook: Win10 Pro 22H2 64bit / Core i5-3340M 2.7GHz / 12GB RAM / Avast 23 Free / Windows Firewall Control
Server: Win11 Pro 23H2 64bit / Core i3-4010U 1.7GHz / 12GB RAM / Avast One 23 Essential

Avast の設定について解説しています。よろしければご覧ください。

Offline DavidR

  • Avast Überevangelist
  • Certainly Bot
  • *****
  • Posts: 89029
  • No support PMs thanks
Re: Non-english named files in zip archive cannot be deleted
« Reply #9 on: July 04, 2010, 01:37:42 AM »
I hate mysteries and inconsistencies like this, so hard to track down.

In your image 2 you had the option to Move to the Chest, my image 2 and finally did you Click the Apply button ?
If so was that where the error came from in your image 2 ?

If you didn't but just closed that window using the Close button at the bottom of my image 2 (or X in top right corner), then no action will be taken ?
« Last Edit: July 04, 2010, 01:39:51 AM by DavidR »
Windows 10 Home 64bit/ Acer Aspire F15/ Intel Core i5 7200U 2.5GHz, 8GB DDR4 memory, 256GB SSD, 1TB HDD/ avast! free 24.3.6108 (build 24.3.8975.762) UI 1.0.801/ Firefox, uBlock Origin, uMatrix/ MailWasher Pro/ Avast! Mobile Security

Online NON

  • Japanese User
  • Avast Überevangelist
  • Ultra Poster
  • *****
  • Posts: 5489
  • Whatever will be, will be.
Re: Non-english named files in zip archive cannot be deleted
« Reply #10 on: July 04, 2010, 02:18:04 AM »
In your image 2 you had the option to Move to the Chest, my image 2 and finally did you Click the Apply button ?
If so was that where the error came from in your image 2 ?
I clicked Apply button, then the window shows error 18 as my image2, with no special messages.
When I chose Delete or Repair (of course this doesn't work), same error returned.

Quote
If you didn't but just closed that window using the Close button at the bottom of my image 2 (or X in top right corner), then no action will be taken ?
If I just close the window, no action taken.

I changed my settings to "Always remove the whole archive", then whole archive is moved-to-chest successfully.
When I use other two options, then error 18 appears.


Sorry for unpleasant situations...
Desktop: Win10 Pro 22H2 64bit / Core i5-7400 3.0GHz / 32GB RAM / Avast 23 Premium Beta(Icarus) / Comodo Firewall
Notebook: Win10 Pro 22H2 64bit / Core i5-3340M 2.7GHz / 12GB RAM / Avast 23 Free / Windows Firewall Control
Server: Win11 Pro 23H2 64bit / Core i3-4010U 1.7GHz / 12GB RAM / Avast One 23 Essential

Avast の設定について解説しています。よろしければご覧ください。

Offline DavidR

  • Avast Überevangelist
  • Certainly Bot
  • *****
  • Posts: 89029
  • No support PMs thanks
Re: Non-english named files in zip archive cannot be deleted
« Reply #11 on: July 04, 2010, 03:09:05 AM »
No problem.

I just wonder why mine works and your doesn't and despite what my settings are it removed the whole archive to the chest and that really isn't what I want. So there is some inconsistency there. I would rather that it threw up an error rather than moving the whole archive, at least it is alerting me and I could manually remove the infected file in an archive or personally choose to remove the whole archive.

I don't know if avast has actually been set so that if there is actually only one file in the archive (as in this case) it just move the archive. In which case it would obviously act differently to my settings. So hopefully Igor may grace us with his presence once more ;D
Windows 10 Home 64bit/ Acer Aspire F15/ Intel Core i5 7200U 2.5GHz, 8GB DDR4 memory, 256GB SSD, 1TB HDD/ avast! free 24.3.6108 (build 24.3.8975.762) UI 1.0.801/ Firefox, uBlock Origin, uMatrix/ MailWasher Pro/ Avast! Mobile Security

Online NON

  • Japanese User
  • Avast Überevangelist
  • Ultra Poster
  • *****
  • Posts: 5489
  • Whatever will be, will be.
Re: Non-english named files in zip archive cannot be deleted
« Reply #12 on: July 04, 2010, 11:30:39 AM »
I hope so too. I'll wait for their response (maybe they're on holidays ;D).

Of course, any ideas or suggestions will be appreciated.


Edit: I uploaded new test_set.
http://www.mediafire.com/?3j0mokygk1d

"test_set.zip" (Password: virus)
  - "eicar+eicar.zip" (Japanese filename eicar *2)
  - "eicar+text.zip" (Eicar and innocent text-file)
  - "eicar_only.zip" (Same as first "test.zip")
« Last Edit: July 04, 2010, 11:40:42 AM by NON »
Desktop: Win10 Pro 22H2 64bit / Core i5-7400 3.0GHz / 32GB RAM / Avast 23 Premium Beta(Icarus) / Comodo Firewall
Notebook: Win10 Pro 22H2 64bit / Core i5-3340M 2.7GHz / 12GB RAM / Avast 23 Free / Windows Firewall Control
Server: Win11 Pro 23H2 64bit / Core i3-4010U 1.7GHz / 12GB RAM / Avast One 23 Essential

Avast の設定について解説しています。よろしければご覧ください。

Offline igor

  • Avast team
  • Serious Graphoman
  • *
  • Posts: 11849
    • AVAST Software
Re: Non-english named files in zip archive cannot be deleted
« Reply #13 on: July 04, 2010, 09:22:47 PM »
Seems to happen only with Japanese locale (well, not only Japanese, but somehow related to the characters in the archive).
I think I found the problem... I'll fix it somehow in following few days.

Offline DavidR

  • Avast Überevangelist
  • Certainly Bot
  • *****
  • Posts: 89029
  • No support PMs thanks
Re: Non-english named files in zip archive cannot be deleted
« Reply #14 on: July 04, 2010, 10:37:47 PM »
Any thoughts on why it sent the whole archive (though it only had that one file in it) to the chest, despite my settings saying do nothing if the file can't be extracted ?

Is it as I suggested since there is only one file in the archive it doesn't make sense to extract ?
Windows 10 Home 64bit/ Acer Aspire F15/ Intel Core i5 7200U 2.5GHz, 8GB DDR4 memory, 256GB SSD, 1TB HDD/ avast! free 24.3.6108 (build 24.3.8975.762) UI 1.0.801/ Firefox, uBlock Origin, uMatrix/ MailWasher Pro/ Avast! Mobile Security