Windows Defender reports trojan in NPM package
Environment Information
- Package version(s): 6.158.0 (older had this issue too)
- Browser and OS versions: Windows 10.0.17763
Actual behavior:
After installing the office-ui-fabric-react package (npm install --save office-ui-fabric-react), Windows Defender complains about a trojan in some of the files:

This has affected me and several colleagues starting yesterday afternoon (PST).
Expected behavior:
No trojans found 😃
Priorities and help requested:
Are you willing to submit a PR to fix? n/a, willing to help
Requested priority: Blocking development
I just saw this as well. I'm using 6.150.0
Thanks for raising awareness on this! We're investigating the issue right now working with the Windows Defender team to see what's happening since we believe this to be a false positive.
If anyone would like to inspect the code for themselves, here are some links for convenience. (Definitely no trojans, just standard boring code.)
https://unpkg.com/[email protected]/lib/components/ExtendedPicker/PeoplePicker/ExtendedPeoplePicker.doc.js https://unpkg.com/[email protected]/lib-amd/components/ExtendedPicker/PeoplePicker/ExtendedPeoplePicker.doc.js https://unpkg.com/[email protected]/lib/components/Nav/Nav.doc.js https://unpkg.com/[email protected]/lib-amd/components/Nav/Nav.doc.js
Engaging with the Windows Defender team.
They have resolved on their side. We are following up on an ETA of how soon customers should see the fix.
Ok, this should be resolved now. If you continue to experience the error, try clearing the Defender's cache:
- Open command prompt as administrator and change directory to c:\Program Files\Windows Defender
- Run “MpCmdRun.exe -removedefinitions -dynamicsignatures”
- Run “MpCmdRun.exe -SignatureUpdate”
Can the OP please confirm this is working for them?
@micahgodbolt that works! Thank you all for the quick turnaround on this.