Forums
New posts
Search forums
News
Security News
Technology News
Giveaways
Giveaways, Promotions and Contests
Discounts & Deals
Reviews
Users Reviews
Video Reviews
Support
Windows Malware Removal Help & Support
Inactive Support Threads
Mac Malware Removal Help & Support
Mobile Malware Removal Help & Support
Blog
Log in
Register
What's new
Search
Search titles only
By:
Search titles only
By:
Reply to thread
Menu
Install the app
Install
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Forums
Software
Security Apps
Microsoft Defender
How the hell WD works on Windows Home & Pro?
Message
<blockquote data-quote="Andy Ful" data-source="post: 935162" data-attributes="member: 32260"><p><strong><span style="font-size: 18px">Managing script false positive detections (antimalware, AMSI, ASR).</span></strong></p><p></p><p>Defender can detect/block scripts by several different security layers, for example:</p><ol> <li data-xf-list-type="ol">Antimalware (<span style="color: rgb(0, 168, 133)"><strong>pre-execution</strong></span>) detection.</li> <li data-xf-list-type="ol">AMSI-paired machine models (<span style="color: rgb(0, 168, 133)"><strong>pre-execution</strong></span>) detection.</li> <li data-xf-list-type="ol">AMSI-paired machine models (<strong><span style="color: rgb(184, 49, 47)">post-execution</span></strong>) detection.</li> <li data-xf-list-type="ol">ASR rules.</li> </ol><p>False detections from points 1, 2, and 3 can be separately excluded via Security Center. The false positive ASR blocks can be excluded by using PowerShell, GPO, or ConfigureDefender.</p><p></p><p><strong>Please note:</strong><em> Post-execution AMSI-based detections cannot be avoided by adding path exclusions for scripts via Add-MpPreference PowerShell cmdlet (or Defender Policy via GPO)!</em></p><p></p><p>AMSI-based detections are similar to other behavior-based detections. AMSI is used to supply machine learning models with code in clear text to avoid string obfuscation.</p><p>In the pre-execution case, the code is scanned and the script is blocked if recognized as malicious by behavior models.</p><p>In the post-execution case, the code execution is monitored at the runtime and analyzed by dynamic behavior models. The execution is interrupted when the suspicious actions exceed the detection threshold.</p><p></p><p>Malicious scripts blocked by AMSI-paired machine models are reported in Microsoft Defender Security Center as follows (one year old classification):</p><ul> <li data-xf-list-type="ul">Trojan:JS/Mountsi.?!ml</li> <li data-xf-list-type="ul">Trojan:Script/Mountsi.?!ml</li> <li data-xf-list-type="ul">Trojan:O97M/Mountsi.?!ml</li> <li data-xf-list-type="ul">Trojan:VBS/Mountsi.?!ml</li> <li data-xf-list-type="ul">Trojan;PowerShell/Mountsi.?!ml</li> </ul><p><strong>[URL unfurl="true"]https://www.microsoft.com/en-us/wdsi/threats/threat-search?query=mountsi[/URL]</strong></p><p></p><p>Some scripts can be blocked by more than one detection.</p><p></p><p>Microsoft uses many other interesting script detections, for example:</p><p>[URL unfurl="false"]https://www.microsoft.com/en-us/wdsi/threats/threat-search?query=Script[/URL]</p><p>[URL unfurl="false"]https://www.microsoft.com/en-us/wdsi/threats/threat-search?query=powershell[/URL]</p><p>[URL unfurl="false"]https://www.microsoft.com/en-us/wdsi/threats/threat-search?query=amsi[/URL]</p><p>[URL unfurl="false"]https://www.microsoft.com/en-us/wdsi/threats/threat-search?query=ams[/URL]</p><p>[URL unfurl="false"]https://www.microsoft.com/en-us/wdsi/threats/threat-search?query=:js/[/URL]</p><p>[URL unfurl="false"]https://www.microsoft.com/en-us/wdsi/threats/threat-search?query=:vbs/[/URL]</p><p>[URL unfurl="false"]https://www.microsoft.com/en-us/wdsi/threats/threat-search?query=bat[/URL]</p><p></p><p>Detecting Office macros:</p><p>[URL unfurl="false"]https://www.microsoft.com/en-us/wdsi/threats/threat-search?query=w97m[/URL]</p><p>[URL unfurl="false"]https://www.microsoft.com/en-us/wdsi/threats/threat-search?query=o97m[/URL]</p><p></p><p><span style="color: rgb(0, 168, 133)"><strong>Post updated.</strong></span></p><p>The problems with whitelisting and exclusions of AMSI-based detections were finally solved by Microsoft:</p><p>[URL unfurl="false"]https://malwaretips.com/threads/how-to-prevent-efficiently-defender-from-considering-a-given-vbs-script-as-containing-a-threat.107234/post-935955[/URL]</p></blockquote><p></p>
[QUOTE="Andy Ful, post: 935162, member: 32260"] [B][SIZE=5]Managing script false positive detections (antimalware, AMSI, ASR).[/SIZE][/B] Defender can detect/block scripts by several different security layers, for example: [LIST=1] [*]Antimalware ([COLOR=rgb(0, 168, 133)][B]pre-execution[/B][/COLOR]) detection. [*]AMSI-paired machine models ([COLOR=rgb(0, 168, 133)][B]pre-execution[/B][/COLOR]) detection. [*]AMSI-paired machine models ([B][COLOR=rgb(184, 49, 47)]post-execution[/COLOR][/B]) detection. [*]ASR rules. [/LIST] False detections from points 1, 2, and 3 can be separately excluded via Security Center. The false positive ASR blocks can be excluded by using PowerShell, GPO, or ConfigureDefender. [B]Please note:[/B][I] Post-execution AMSI-based detections cannot be avoided by adding path exclusions for scripts via Add-MpPreference PowerShell cmdlet (or Defender Policy via GPO)![/I] AMSI-based detections are similar to other behavior-based detections. AMSI is used to supply machine learning models with code in clear text to avoid string obfuscation. In the pre-execution case, the code is scanned and the script is blocked if recognized as malicious by behavior models. In the post-execution case, the code execution is monitored at the runtime and analyzed by dynamic behavior models. The execution is interrupted when the suspicious actions exceed the detection threshold. Malicious scripts blocked by AMSI-paired machine models are reported in Microsoft Defender Security Center as follows (one year old classification): [LIST] [*]Trojan:JS/Mountsi.?!ml [*]Trojan:Script/Mountsi.?!ml [*]Trojan:O97M/Mountsi.?!ml [*]Trojan:VBS/Mountsi.?!ml [*]Trojan;PowerShell/Mountsi.?!ml [/LIST] [B][URL unfurl="true"]https://www.microsoft.com/en-us/wdsi/threats/threat-search?query=mountsi[/URL][/B] Some scripts can be blocked by more than one detection. Microsoft uses many other interesting script detections, for example: [URL unfurl="false"]https://www.microsoft.com/en-us/wdsi/threats/threat-search?query=Script[/URL] [URL unfurl="false"]https://www.microsoft.com/en-us/wdsi/threats/threat-search?query=powershell[/URL] [URL unfurl="false"]https://www.microsoft.com/en-us/wdsi/threats/threat-search?query=amsi[/URL] [URL unfurl="false"]https://www.microsoft.com/en-us/wdsi/threats/threat-search?query=ams[/URL] [URL unfurl="false"]https://www.microsoft.com/en-us/wdsi/threats/threat-search?query=:js/[/URL] [URL unfurl="false"]https://www.microsoft.com/en-us/wdsi/threats/threat-search?query=:vbs/[/URL] [URL unfurl="false"]https://www.microsoft.com/en-us/wdsi/threats/threat-search?query=bat[/URL] Detecting Office macros: [URL unfurl="false"]https://www.microsoft.com/en-us/wdsi/threats/threat-search?query=w97m[/URL] [URL unfurl="false"]https://www.microsoft.com/en-us/wdsi/threats/threat-search?query=o97m[/URL] [COLOR=rgb(0, 168, 133)][B]Post updated.[/B][/COLOR] The problems with whitelisting and exclusions of AMSI-based detections were finally solved by Microsoft: [URL unfurl="false"]https://malwaretips.com/threads/how-to-prevent-efficiently-defender-from-considering-a-given-vbs-script-as-containing-a-threat.107234/post-935955[/URL] [/QUOTE]
Insert quotes…
Verification
Post reply
Top