Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
windows:rigutils:windows_tuning:antivirustest.bat [2019/01/19 19:07]
wikiadmin
windows:rigutils:windows_tuning:antivirustest.bat [2019/02/18 10:41] (current)
wikiadmin
Line 1: Line 1:
-<​bootnote>​This script is a part of [[windows:​rigutils:​install|Rigutils]] tool set. GitHub: [[https://​github.com/​vegaminer/​rigutils/​blob/​master/​windows/​AntiVirusTest.bat|AntiVirusTest.bat]]</​bootnote>​+<​bootnote>​This script is a part of [[windows:​rigutils:​install|Rigutils]] tool set. GitHub: [[https://​github.com/​vegaminer/​rigutils/​blob/​master/​windows_tuning/​AntiVirusTest.bat|AntiVirusTest.bat]]</​bootnote>​
  
 ---- ----
Line 39: Line 39:
 After finishing the above text an idea came to my mind: Hey, let's try to fool Windows Defender by a simple trick - copy mstha.exe with a different name... And it turns out that this method works perfectly! So [[windows:​rigutils:​windows_tuning:​antivirustest.bat|AntiVirusTest.bat]] was born. Get a copy of it and run from [[:​windows:​rigutils:​windows_tuning:​cmd_rigutils.exe|cmd.exe]] shell. After finishing the above text an idea came to my mind: Hey, let's try to fool Windows Defender by a simple trick - copy mstha.exe with a different name... And it turns out that this method works perfectly! So [[windows:​rigutils:​windows_tuning:​antivirustest.bat|AntiVirusTest.bat]] was born. Get a copy of it and run from [[:​windows:​rigutils:​windows_tuning:​cmd_rigutils.exe|cmd.exe]] shell.
  
-To my mind, such a Windows Defender bypass method is clearly a bug (not critical, but bug), feel free to submit it to [[https://​www.microsoft.com/​en-us/​msrc/​bounty|MS bug bounty program]] and share with me your reward 8-)+To my mind, such a Windows Defender bypass method is clearly a bug (not critical, but bug), feel free to submit it to [[https://​www.microsoft.com/​en-us/​msrc/​bounty|MS bug bounty program]] and share your reward ​with me 8-)
  
 Seriously speaking, this trick may stop working in future. But luckily, Windows Defender has an [[https://​support.microsoft.com/​en-us/​help/​4028485/​windows-10-add-an-exclusion-to-windows-security|exclusions list]] for trusted files and folders. If you ever got a message from Defender that //​mshta.exe//​ pose a security risk to your system and block it from execution then you have to (re)enable it. After adding //​mstha.exe//​ to the whitelist (see instruction below) of Windows Defender you may once again test your setup with [[windows:​rigutils:​windows_tuning:​antivirustest.bat|AntiVirusTest.bat]] Seriously speaking, this trick may stop working in future. But luckily, Windows Defender has an [[https://​support.microsoft.com/​en-us/​help/​4028485/​windows-10-add-an-exclusion-to-windows-security|exclusions list]] for trusted files and folders. If you ever got a message from Defender that //​mshta.exe//​ pose a security risk to your system and block it from execution then you have to (re)enable it. After adding //​mstha.exe//​ to the whitelist (see instruction below) of Windows Defender you may once again test your setup with [[windows:​rigutils:​windows_tuning:​antivirustest.bat|AntiVirusTest.bat]]
Line 47: Line 47:
 === Instruction === === Instruction ===
  
-**STEP 1.** Launch command prompt.  +**STEP 1.** Launch command prompt ​via [[windows:​rigutils:​windows_tuning:​cmd_rigutils.bat|cmd_rigutils.bat]]
-See [[windows:​rigutils:​windows_tuning:​cmd_rigutils.bat|cmd_rigutils.bat]]+
  
 **STEP 2.** Run //​AntiVirusTest.bat//​ **STEP 2.** Run //​AntiVirusTest.bat//​
Line 54: Line 53:
 <WRAP half column> <WRAP half column>
  
- 1. Type ''​AntiVirusTest.bat''​ (case of letters doesn'​t matter) +~~#SA~~. Type ''​AntiVirusTest.bat''​ (case of letters doesn'​t matter) 
- 2. Press ''​Enter'' ​  + 
- <color #​ffffff>​.</​color>​ +~~#SA~~. Press ''​Enter'' ​  
- <​WRAP center round tip 90%>+ 
 +<WRAP center round tip 90%>
 You may start typing ''​Anti''​ and then press the ''​Tab''​ key on your keyboard. //cmd.exe// will search for commands in current directory starting with //Anti// and expand it to it's full name automatically. You may start typing ''​Anti''​ and then press the ''​Tab''​ key on your keyboard. //cmd.exe// will search for commands in current directory starting with //Anti// and expand it to it's full name automatically.
 </​WRAP>​ </​WRAP>​
    
 +~~#SA~~. Confirm your action in this User Account Control dialog by clicking the ''​Yes''​ button. We will [[windows:​tuning:​disable_uac|disable]] this annoying ''​User Account Control''​ messages later.
  
-3. Confirm your action in this User Account Control dialog by clicking the ''​Yes''​ button. We will [[windows:​tuning:​disable_uac|disable]] this annoying ''​User Account Control''​ messages later. +~~#SA~~. If you see a popup windows with the message ''​Hello,​ this is admin speaking!''​ then it means that //​AntiVirusTest//​ passed successfully and you don't have to do anything special about Windows Defender at the moment. Just click ''​OK''​ and that's it. 
- +
- 4. If you see a popup windows with the message ''​Hello,​ this is admin speaking!''​ then it means that //​AntiVirusTest//​ passed successfully and you don't have to do anything special about Windows Defender at the moment. Just click ''​OK''​ and that's it. +
  
 If you see something different please continue to the next [[#​step3|Step 3 "​Troubleshooting"​]] If you see something different please continue to the next [[#​step3|Step 3 "​Troubleshooting"​]]
Line 83: Line 82:
 <wrap lo>​{{material>​attachment}}{{:​windows:​rigutils:​antivirustest_09.pdn|antivirustest_09.pdn}}</​wrap>​ <wrap lo>​{{material>​attachment}}{{:​windows:​rigutils:​antivirustest_09.pdn|antivirustest_09.pdn}}</​wrap>​
  
-{{:​windows:​rigutils:​antivirustest_10.png?​direct&​400|AntiVirusTest.bat}}+{{:​windows:​rigutils:​windows_tuning:​antivirustest_10.png?​direct&​400|AntiVirusTest.bat}}
  
-<wrap lo>​{{material>​attachment}}{{:​windows:​rigutils:​antivirustest_10.pdn|antivirustest_10.pdn}}</​wrap>​+<wrap lo>​{{material>​attachment}}{{:​windows:​rigutils:​windows_tuning:​antivirustest_10.pdn|antivirustest_10.pdn}}</​wrap>​
  
 </​WRAP>​ </​WRAP>​
Line 98: Line 97:
  
 <WRAP half column> <WRAP half column>
-{{:​windows:​rigutils:​antivirustest_01.png?​direct&​400|AntiVirusTest.bat}}+{{:​windows:​rigutils:​windows_tuning:​antivirustest_01.png?​direct&​400|AntiVirusTest.bat}}
  
-<wrap lo>​{{material>​attachment}}{{:​windows:​rigutils:​antivirustest_01.pdn|antivirustest_01.pdn}}</​wrap>​+<wrap lo>​{{material>​attachment}}{{:​windows:​rigutils:​windows_tuning:​antivirustest_01.pdn|antivirustest_01.pdn}}</​wrap>​
  
 </​WRAP>​ </​WRAP>​
Line 151: Line 150:
 <WRAP group> <WRAP group>
 <WRAP half column> <WRAP half column>
 +5<color #​00>​.</​color>​ Verify that //​mshta.exe//​ present in ''​Affected items''​ section.
  
-* 5Verify that //​mshta.exe//​ present in ''​Affected items''​ section. +6<color #00>.</color> ​Click the ''​OK''​ button
-* 6. Click the ''​OK''​ button+
  
 </​WRAP>​ </​WRAP>​
Line 196: Line 195:
  
 ---- ----
-GitHub: [[https://​github.com/​vegaminer/​rigutils/​blob/​master/​windows/​AntiVirusTest.bat|AntiVirusTest.bat]]+GitHub: [[https://​github.com/​vegaminer/​rigutils/​blob/​master/​windows_tuning/​AntiVirusTest.bat|AntiVirusTest.bat]]

This topic does not exist yet

You've followed a link to a topic that doesn't exist yet. If permissions allow, you may create it by clicking on “Create this page”.