Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

extension.bundle.js detects as Trojan #4967

Closed
intervisionlord opened this issue Oct 16, 2023 · 9 comments
Closed

extension.bundle.js detects as Trojan #4967

intervisionlord opened this issue Oct 16, 2023 · 9 comments

Comments

@intervisionlord
Copy link

Related to #2045 (new question because those issue was closed with suggestions to create a new one)

file: .vscode\extensions\ms-python.vscode-pylance-2023.10.20\dist\extension.bundle.js
sig: Trojan.Script.QBot.kblikv; Riskware.Script.Obfuscated.kcdfgx

file: .vscode\extensions\.5535db6a-7490-40c1-9942-044aa4c537ed\dist\sync.bundle.js
sig: Trojan.Script.QBot.kblikv; Riskware.Script.Obfuscated.kcdfgx

file: .vscode\extensions\ms-python.vscode-pylance-2023.10.10\dist\server.bundle.js
sig: Trojan.Script.QBot.kblikv; Riskware.Script.Obfuscated.kcdfgx

file: .vscode\extensions\ms-python.vscode-pylance-2023.10.10\dist\extension.bundle.js
sig: Trojan.Script.QBot.kblikv; Riskware.Script.Obfuscated.kcdfgx
@github-actions github-actions bot added the needs repro Issue has not been reproduced yet label Oct 16, 2023
@heejaechang heejaechang added triage-needed and removed needs repro Issue has not been reproduced yet labels Oct 17, 2023
@judej judej assigned judej and unassigned heejaechang Oct 18, 2023
@intervisionlord
Copy link
Author

A new alerts today after removing previous files by AV:

.vscode\extensions\.bed44996-5aa2-4754-9049-f4f8f231b4ba\dist\sync.bundle.js
Riskware.Script.Obfuscated.kcdfgx

.vscode\extensions\.bed44996-5aa2-4754-9049-f4f8f231b4ba\dist\server.bundle.js
Riskware.Script.Obfuscated.kcdfgx

.vscode\extensions\.bed44996-5aa2-4754-9049-f4f8f231b4ba\dist\extension.bundle.js
Riskware.Script.Obfuscated.kcdfgx

@judej
Copy link
Contributor

judej commented Oct 23, 2023

One option to fix this is to

@intervisionlord
Copy link
Author

It’s not entirely clear how running the action on the GitHub platform will help fix the problem that when you try to update an extension, the antivirus complains about the downloaded files of this extension

@rchiodo
Copy link
Contributor

rchiodo commented Oct 23, 2023

Jude was talking about how we're going to fix the problem. The bytes in our obfuscated output are matching the signature used to identify the trojan. Obfuscation generates random hex values for the names of functions and occasionally we end up matching some series of bytes for a virus. One solution would be for us to check for this scenario and if it happens, redo the obfuscation.

@intervisionlord
Copy link
Author

Thanks a lot for the explanation

@rocka0
Copy link

rocka0 commented Oct 24, 2023

I just wanted to add on about my experience. I recently performed a full scan on my system and it seems pylance was somehow involved in what got flagged as a trojan:

image

Should I be worried or was this just a false positive?

@rchiodo
Copy link
Contributor

rchiodo commented Oct 24, 2023

It should be a false positive. We believe the obfuscated code is generating a byte pattern that matches some trojan. You can double check that you have the released version by installing it directly from the marketplace .

@intervisionlord
Copy link
Author

intervisionlord commented Oct 25, 2023

I tried to completely remove the extension from vscode and install the latest version from the store, and upon installation the antivirus complaint occurs again

Name: c:\users\*****\.vscode\extensions\ms-python.vscode-pylance-2023.10.40\dist\extension.bundle.js
Process: c:\users\*****\appdata\local\programs\microsoft vs code\code.exe(19416)
Signature: Riskware.Script.Obfuscated.kcdfgx

It should be a false positive. We believe the obfuscated code is generating a byte pattern that matches some trojan. You can double check that you have the released version by installing it directly from the marketplace .

I believe this could potentially be a false positive. But I believe even more that I installed the antivirus for a reason. And trusting this or that application without a reason, based only on the promises of the developers, is not the smartest idea.
Try to understand my concerns.

@judej judej assigned bschnurr and unassigned judej Oct 27, 2023
@bschnurr bschnurr removed their assignment Jan 4, 2024
@debonte
Copy link
Contributor

debonte commented Oct 7, 2024

This was fixed by https://github.com/microsoft/pyrx/pull/5467/files#r1676259192. Our build will now fail (and need to be re-run) if Windows Defender finds a threat in our VSIX.

@debonte debonte closed this as completed Oct 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants