Windows Defender rendered index.html un-editable and un-deletable.
I used SCP to copy my web site $HOME directory to my bash file system. Sadly there seemed to be a header scrip include in my index.html file I didn't know about before and Windows defender has changed the file system state of the file and I cannot delete, mv or edit it.
I don't recall the scrip-kiddy malware but I think I have a 844 byte file I can't get rid of or edit that has it.
Note: after I saw there was a problem with my web site I edited the index.html on the godady server and I can't tell you what the malware was specifically.
-rw-rw-rw- 0 mgross mgross 844 Aug 12 16:53 index.html
- Expected results I expect to be able to delete or edit the file and retry.
- Your Windows build number Build 14901.rs_prerelease.160805-1700
information coped from Windows defender:
Category: Trojan
Description: This program is dangerous and executes commands from an attacker.
Recommended action: Remove this software immediately.
Items: containerfile:C:\Users\mark9\AppData\Local\lxss\home\mgross\marks\thegnar.org\index.html file:C:\Users\mark9\AppData\Local\lxss\home\mgross\marks\thegnar.org\index.html->(ScriptSrc)
Get more information about this item online. https://www.microsoft.com/security/portal/threat/encyclopedia/entry.aspx?name=Trojan%3aHTML%2fScrinject&threatid=2147711194&enterprise=0
@markgross delete it in %localappdata%\lxss\home\username from the Windows side. Don't touch anything else or it will become invisible too.
thanks! FWIW only "shift delete" works to remove the files and then after removal the bash shell shows the files still there until I exit the shell and return.
it took me 2 min before I tried the shift delete wondering why right-click admin delete kept failing.
--mark
On Fri, Aug 12, 2016 at 6:38 PM, fpqc [email protected] wrote:
@markgross https://github.com/markgross delete it in %localappdata%\lxss\home\username from the Windows side.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Microsoft/BashOnWindows/issues/879#issuecomment-239594521, or mute the thread https://github.com/notifications/unsubscribe-auth/AADz5HPPldFFGtFt7ETpC3Vkhd8Xo4zaks5qfSANgaJpZM4JjjlW .
create interesting things.
Did you by chance ask Windows Defender to delete the offending file? It might be interesting to know whether that is another way to get the file deleted.
I suppose in some sense Windows Defender did what it was supposed to do, make the file inaccessible.
I'm not sure. I was clicking all the buttons on the defender and the file in the bash shell wouldn't go away or let me remove it. After I used the file explorer to navigate to the hidden directories for my bash $HOME I was able to remove the file with a "shift-delete".
--mark
On Sat, Aug 13, 2016 at 9:14 AM, rodrymbo [email protected] wrote:
Did you by chance ask Windows Defender to delete the offending file?
I suppose in some sense Windows Defender did what it was supposed to do, make the file inaccessible.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Microsoft/BashOnWindows/issues/879#issuecomment-239628642, or mute the thread https://github.com/notifications/unsubscribe-auth/AADz5M9EyBMfpHPtQWAnhVrZz8Bokttoks5qfe1IgaJpZM4JjjlW .
create interesting things.
I have a similar problem. I cloned a git repository that (apparently) contains malware into my Ubuntu/WSL FS. I let Windows Defender remove the files but now can't delete them. This is true even if I navigate to the "hidden" FS directory in Explorer.