Coder Social home page Coder Social logo

Comments (52)

medikoo avatar medikoo commented on May 28, 2024 77

@Rush this package will never do more, than showing a simple message (manifest) if some installs it in Russia. Reasoning for that was elaborated extensively at #116, so let's not dive into unconstructive discussions here, this is not in the scope of this issue.

from es5-ext.

medikoo avatar medikoo commented on May 28, 2024 74

@andrey-helldar yes, Kaspersky is Russian-based and no longer a credible anti-virus resource.

There's widespread advice to not rely on it anymore (e.g. https://www.komando.com/security-privacy/kaspersky-antivirus-dangers/830542/).

So if you're affected by the fact that Kaspersky reports this package, ensure to not rely on Kaspersky in the first place.

from es5-ext.

medikoo avatar medikoo commented on May 28, 2024 73

@aviramha there's no virus in this package. Please report the issue to the VS Code.


Added later:

I'll be happy to report this issue to any anti-virus or security service, yet I need precise instructions from you on where I can do it?

I'm not aware of any reports on my own (my work and my personal digital life are not affected by it).

Please post instructions as comments in this thread. Thank you!

from es5-ext.

medikoo avatar medikoo commented on May 28, 2024 72

@aviramha thanks for emailing them.

AFAIK it's Kaspersky (Russian anti-virus) that does this kind of thing, but it's also discouraged to rely on this antivirus now (many sources warn against using it). So I guess VS Code might have fallen in to trap of relying on it (or on the antivirus that uses its database).

They really should fix it.

from es5-ext.

Rush avatar Rush commented on May 28, 2024 68

The problem is that this package is doing more than it advertises. It not only extends es5 with extra methods and shims, it also implements a "Call for peace" message. I think it's an unacceptable practice that slows done installation process.

https://github.com/medikoo/es5-ext/blob/main/_postinstall.js

I discovered it as yarn started printing that es5-ext is "building" while in fact it's processing the anti-war script.

Send more weapons to Ukraine and beat the Ruskis but do not pollute my dev environment. And I am saying this with a complete recognition that Russia is the warmonger.

from es5-ext.

medikoo avatar medikoo commented on May 28, 2024 61

Note that I will delete any off-topic responses.

The topic here is that some anti-virus software (such as Kaspersky) are reporting as if the package is containing a "virus" which is not the case. This package, in certain scenarios, just prints a short message on installation.

Respond only if you have information on other anti-virus software that reports it, or have success stories on removing dependency on that specific anti-virus software.

from es5-ext.

Rush avatar Rush commented on May 28, 2024 36

So the real reason this is a virus is that it's doing needless postinstall actions that depend on the location of the user. What next? If somebody is in Russia, maybe delete all of their files? How much more evil do Ruskis need to do for this to become OK?

from es5-ext.

DigitalNaut avatar DigitalNaut commented on May 28, 2024 24

Respond only if you have information on other anti-virus software that reports it, or have success stories on removing dependency on that specific anti-virus software.

I don't have any more information, just wanted to point out that all of the accounts that are downvoting you are very suspicious. Most don't even have more than 3 contributions. This is crazy.

from es5-ext.

medikoo avatar medikoo commented on May 28, 2024 11

Trend antivirus has started to detect this as a Trojan now!

@scotty6435 if that's the case, it's a clear abuse from antivirus software. You should report it over there, and avoid using it.

from es5-ext.

confused-Techie avatar confused-Techie commented on May 28, 2024 9

Without commenting on the message itself, since at the end of the day, this is the maintainers repo.

If anyone else is being negatively affected by usage of this repo, such as my team and I were, with many many user reports and accusations of our code being malicious, one thing that can be done to resolve it, is to fork this repo, and remove the offending code like seen here, then in whatever repo you are concerned about you can set a resolution in your package.json to install your forked repository instead of what any dependency or child dependency specifies, like done here.

"resolutions": {
    "es5-ext": "https://github.com/YOUR_ORG/es5-ext"
}

Again, I want to clarify, this isn't meant to attack or disagree with the maintainers of this repository, this is simply educational. Since while in this issue the stated answer is to not trust Kapersky, that isn't something that could potentially be told to users who won't install or use software because of this. Additionally, if any software relies on this package and is being flagged via Google Chromes Advanced Protection, there's evidence to support that this is also the cause of it. In which case Google Chrome will stop the download entirely.

from es5-ext.

andrey-helldar avatar andrey-helldar commented on May 28, 2024 8

Kaspersky Anti-Virus also detects the package as a virus:

Event: Object deleted
Program name: node.exe
Program path: C:\Users\Helldar\AppData\Local\nvs\node\16.16.0\x64
Component: File Anti-Virus
Result Description: Removed
Type: Program that can harm
Name: Hoax.JS.ExtMsg.a
Accuracy: Precise
Threat Level: Medium
Object type: File
Object name: _postinstall.js
Object Path: D:\domains\volunteers\web\node_modules\es5-ext
MD5: CF2BB0D501167A2D3A0764227C3D7E16

Original:

Событие: Объект удален
Имя программы: node.exe
Путь к программе: C:\Users\Helldar\AppData\Local\nvs\node\16.16.0\x64
Компонент: Файловый Антивирус
Описание результата: Удалено
Тип: Программа, которая может нанести вред
Название: Hoax.JS.ExtMsg.a
Точность: Точно
Степень угрозы: Средняя
Тип объекта: Файл
Имя объекта: _postinstall.js
Путь к объекту: D:\domains\volunteers\web\node_modules\es5-ext
MD5: CF2BB0D501167A2D3A0764227C3D7E16

I think it's because of this text: https://github.com/medikoo/es5-ext/blob/main/_postinstall.js#L31-L72

Released in 0.10.54: 28de285

from es5-ext.

medikoo avatar medikoo commented on May 28, 2024 8

TBQH just emit a multilingual message everywhere and drop the timezone checking, since that's clearly what's setting off the virus alerts, and not Russian bias in Russian security software. Sure, let's just believe that for a hot minute.

@kode54 this message is intended only for russians in Russia, showing it to everyone everywhere will make not much sense, it'll be just annoying to those to whom it is not addressed

from es5-ext.

rlyonbox avatar rlyonbox commented on May 28, 2024 6

This is a problem for OSX as well without any 3rd-party AV - please stop deflecting the issue because it is happening across multiple environments and is breaking installs for many many people.

It is not our responsibility to fix your broken project. It is not a problem with specific AV suites.

from es5-ext.

andrey-helldar avatar andrey-helldar commented on May 28, 2024 5

I would like to add on my own: there are two ways to solve the problem:

First way: to do this, go to the "Exceptions" section in the settings and add four entries:

  • Directory: <path_to_node.exe> (for me is %USERPROFILE%\AppData\Local\nvs\) (dir, not file) + Object Hoax.JS.ExtMsg.a
  • Directory: %USERPROFILE%\AppData\Roaming\npm-cache\ + Object Hoax.JS.ExtMsg.a
  • Directory: %USERPROFILE%\AppData\Local\node-gyp\ + Object Hoax.JS.ExtMsg.a
  • Directory of your sites. For me is D:\domains\ + Object Hoax.JS.ExtMsg.a

In all points, I selected "Scan area" - "everything" (*).

After that, the antivirus stopped responding to this error.

Second way: delete Kaspersky from PC.

PS: This file does not contain any virus, and the antivirus reacts because it belongs to a Russian company. In Russia, any anti-war statements are punishable by law. In addition, it has long been known that Kaspersky Anti-Virus works for the government.

from es5-ext.

Shotman avatar Shotman commented on May 28, 2024 5

Just want to point out that I've had recently McAfee report the _postinstall.js file as JS/Hoax.gen.a from my internal company monitoring system

As seen on those 2 virustotal reports :

https://www.virustotal.com/gui/file/5dd190b1792cb7ac5623c74fb28f34e3753b3a66b2fc28dc11c2e60bf3227979
https://www.virustotal.com/gui/file/a4d97b74a47ac8a9364330e304949af6193537794f83005fc6e0776d0a577a77

I just went off a call with head of security asking me questions on what es5-ext actually was etc.

from es5-ext.

PeterDaveHello avatar PeterDaveHello commented on May 28, 2024 5

Just for your reference, Check Point Reputation Service also reports it as Malware.

{
  "response": [
    {
      "status": {
        "code": 2001,
        "label": "SUCCESS",
        "message": "Succeeded to generate reputation"
      },
      "resource": "a79b7495fe78235cc215b79736080fee8bc3ef0c5aa04acbd8926d0b4aaf1397",
      "reputation": {
        "classification": "Malware",
        "confidence": "High",
        "severity": "High"
      },
      "risk": 100,
      "context": {
        "malware_family": "4cc5ylty",
        "protection_name": "Malicious Binary.TC.4cc5ylty",
        "malware_types": [
          "Malicious Binary"
        ]
      },
      "findings": {
        "total": 61,
        "positives": 3,
        "file_type": "Script",
        "file_size": 3318,
        "first_seen": "2022-08-03 10:57:37"
      }
    }
  ]
}

from es5-ext.

n8-dev avatar n8-dev commented on May 28, 2024 4

I think it's because of this text: https://github.com/medikoo/es5-ext/blob/main/_postinstall.js#L31-L72

Released in 0.10.54: 28de285

@medikoo Firstly, I support your point. However truly, have you thought about changing the text in here ever so slightly to get around the blocking? If anything that would be cool to have a package that is smart about sticking it to the man

I mean wouldn't you think that allowing Russians to actually see your anti war message is a better tactic then it just getting removed as a dependency or locked to a lower version?

As you said, dont use Kaspersky but:

  • A: not everyone can change their corporate environments at the drop of a hat.
  • B: getting your message straight up removed in favor of a fork is more of a failure is it not?
  • C: Its not just Kaspersky, its McAfee, Moysle and probably more others...

Honestly, update your readme with information of how to HELP you report this as a valid non-malicious package to any antivirus vendors that will listen, and get an issue template to work out why ones that aren't trustworthy are blocking and get around it.

As many have already called you out on it.

It is not our responsibility to fix your broken project

This is something you can fix, it can no longer be your responsibility you do wish by ceding the ownership to some others, otherwise you'll just get forked all over the show and the message won't be shared :/

from es5-ext.

salemshah avatar salemshah commented on May 28, 2024 4

kaspersky detects it as a virus
virus

from es5-ext.

rlyonbox avatar rlyonbox commented on May 28, 2024 3

I don't see how naming of OSX or macOS is relevant to the discussion. We both understand what i mean, as would anyone else reading this comment thread.

The issue is presenting as a failure to copy the file from the yarn cache. The file is entirely unreadable on macOS 12.6, as it's blocked by the OS:

sudo cat /Users/XXX/Library/Caches/Yarn/v6/npm-es5-ext-0.10.60-e8060a86472842b93019c31c34865012449883f4-integrity/node_modules/es5-ext/_postinstall.js
cat: /Users/XXX/Library/Caches/Yarn/v6/npm-es5-ext-0.10.60-e8060a86472842b93019c31c34865012449883f4-integrity/node_modules/es5-ext/_postinstall.js: Operation not permitted

Or when installing with yarn:

error An unexpected error occurred: "EPERM: operation not permitted, copyfile '/Users/XXX/Library/Caches/Yarn/v6/npm-es5-ext-0.10.60-e8060a86472842b93019c31c34865012449883f4-integrity/node_modules/es5-ext/_postinstall.js' -> '/Users/XXX/Development/Box/notes/box-etherpad-lite2/node_modules/es5-ext/_postinstall.js'".

from es5-ext.

pikelet avatar pikelet commented on May 28, 2024 3

I'm also getting this issue where Moysle Security (macOS) is detecting the file as malware (Threat: MacOS_Script_ExtMsg). This is embarrassing to explain to clients in corporate environments - I can't just mark it as a false flag and move on. I've reached out to Mosyle myself, but imo you as the owner of the package should be the one reaching out to AV vendors and sorting this out.

from es5-ext.

PeterDaveHello avatar PeterDaveHello commented on May 28, 2024 3

Information from Doctor Web and Kaspersky is kind of clear, so besides the warning, users can decide to use it or not. Just FYR.

https://vms.drweb.com/virus/?i=25072341

Malicious code added to the es5-ext-main public JavaScript library. It shows a specific message if the package is installed on a server with a time zone of Russian cities.

https://threats.kaspersky.com/en/threat/Hoax.JS.ExtMsg/?orig=Hoax.JS.ExtMsg.a

Script that is added to the es5-ext-main public JavaScript library. Includes an undeclared functionality that displays certain messages, which is triggered depending on the time zone.

from es5-ext.

rlyonbox avatar rlyonbox commented on May 28, 2024 2

Correction, sorry I didn't spot it before. Corporate machine. There is a 3rd-party AV "Carbon Black Cloud" that blocked the file.

from es5-ext.

kode54 avatar kode54 commented on May 28, 2024 2

TBQH just emit a multilingual message everywhere and drop the timezone checking, since that's clearly what's setting off the virus alerts, and not Russian bias in Russian security software. Sure, let's just believe that for a hot minute.

from es5-ext.

azerum avatar azerum commented on May 28, 2024 2

As an aside, the fact that Kaspersky reports the virus as 'Hoax.JS.ExtMsg.a' makes me wonder about how apolitical and trustworthy it is. Practically speaking, it would be hard to replace it at lots of existing software at this point. Perhaps using their viruses DB is OK, but, just as my opinion, I would avoid using it directly

from es5-ext.

scotty6435 avatar scotty6435 commented on May 28, 2024 2

Trend antivirus has started to detect this as a Trojan now!

I've donated substantial amounts to the fight in Ukraine but this kind of approach in the face of significant disruption to your userbase just means that we will move away ASAP to another tool

from es5-ext.

robert-gdv avatar robert-gdv commented on May 28, 2024 2

My request to Sonatype to remove this malicious flag was denied. I will not follow up on that. It is just not important enough.

from es5-ext.

medikoo avatar medikoo commented on May 28, 2024 1

@pgsandstrom please report it upstream, as it's a problem with McAfee not this package

from es5-ext.

Oliniusz avatar Oliniusz commented on May 28, 2024 1

Hi guys,

I have sent plenty of private money to my friends in Ukraine and to student organisations etc. I pray for a better world.

But at the moment I am writing explanation notes to our client explaining why wiz.io is detecting malware in the yarn cache on our Jenkins server. I am literally quoting this github issue.

from es5-ext.

unional avatar unional commented on May 28, 2024 1

Hi, I honor the cause for the action. We are living in a special time and hopefully this will not be a problem anymore soon.

For the time being, if you want a remedy to the problem, you can use the overrides mechanism of your package manager of choice.

I have created a video to describe what you need to do: https://youtu.be/dh9UUqsJLok

from es5-ext.

ntedgi avatar ntedgi commented on May 28, 2024 1

This post install file also reported as malware at wizz container scans
image

from es5-ext.

kolonuk avatar kolonuk commented on May 28, 2024 1

Just a suggestion, but shouldn't changing some text of the file or filename confuse the scanners? Some go by filename, some by hash, some by heuristics on the language... Mixing things up might be enough to get through.

I know it's not a solution, and I don't personally consider this malware, but making a change should mean we're all OK for a couple of months or so - I doubt this is high on any virus scanners target list!

from es5-ext.

robert-gdv avatar robert-gdv commented on May 28, 2024 1

Sonatype refuses to remove this issue from their malicious list

You're correct that the es5-ext package is being flagged as malicious due to the presence of a "political protest message" in the package. This is specifically found in the _postinstall.js file, which displays a message to users within specific time zones es5-ext/_postinstall.js at main · medikoo/es5-ext (github.com).

While this may not impact the running code, it's considered "malicious" because it performs an operation that was not intended by the users who installed the package. This falls under the category of "Unintended Behavior", which is a type of security vulnerability.

If you believe that this package is not malicious and is essential for your development, you have a couple of options:

  1. Use the Vulnerability Lookup: You can use the Vulnerability Lookup feature in the IQ Server to search for the specific vulnerability ID (sonatype-2022-2248). This will provide more details about why the package was flagged as malicious.
  2. Apply a Waiver: If you believe that the risk is acceptable for your specific use case, you can apply a waiver to this security vulnerability. This will allow you to use the package while acknowledging the risk.

Using the Waiver is a good solution in this case, because the ID sonatype-2022-2248 covers this issue with the packet. The Waiver would not hide other issues with this package.

from es5-ext.

aviramha avatar aviramha commented on May 28, 2024

I know there's no virus. It's also not VS Code probably as more than 1 anti viruses detect it s a virus. I'd assume contacting each anti virus but I'm really pessimistic about Kaspersky not tagging this as a virus.

from es5-ext.

aviramha avatar aviramha commented on May 28, 2024

We emailed the marketplace team BTW, but given past experience, as written before I wouldn't hold my breath.

from es5-ext.

medikoo avatar medikoo commented on May 28, 2024

@Shotman, you should probably ask security to report to McAfee a false positive. "Hoax" means that this package issues a fake warning about potential viruses etc, which is meant to put you on the alert. That's not the case here.

from es5-ext.

pgsandstrom avatar pgsandstrom commented on May 28, 2024

I also ran into problem with my companies McAfee. It automatically deletes es5-ext whenever it is found on the system, making it impossible for me to work with any project that has est5-ext as a dependency.

from es5-ext.

medikoo avatar medikoo commented on May 28, 2024

This is a problem for OSX as well without any 3rd-party AV

Can you elaborate? Also, it's macOS now. btw. I work on macOS extensively and I don't see any reports

from es5-ext.

medikoo avatar medikoo commented on May 28, 2024

@rlyonbox this is totally unrelated issue on your system and has nothing to do with mentioned antivirus reports

from es5-ext.

rlyonbox avatar rlyonbox commented on May 28, 2024

It's very much the same issue. From what I can guess, _postinstall.sh has been (maliciously) added to common virus scanlists and that has now propagated across many AV solutions - both 3rd-party and OS-native.

from es5-ext.

medikoo avatar medikoo commented on May 28, 2024

@pikelet let me know where exactly I can report it, and I'd happily do that.

from es5-ext.

medikoo avatar medikoo commented on May 28, 2024

@n8-dev Thanks for your comment:

have you thought about changing the text in here ever so slightly to get around the blocking?

Which part of the texts you think are responsible for it being "blocked"? Is it the Tor link?

Honestly, update your readme with information of how to HELP you report

I mentioned in above comment that I'd be happy to report all cases in my own capacity, but I need instructions from you

You've posted a lengthy comment, yet still, you provided zero help on that :)

Anyway I've updated my first comment here, with a call for help in providing me with the necessary instructions

from es5-ext.

n8-dev avatar n8-dev commented on May 28, 2024

A one off comment is not that hard to do, and its not that lengthy really, its just clear

I've got my own job man, I shouldn't have to do your homework for your module to help your mission.

As you can see in other references to this people are just dropping your package, that shows that you're failing right?

Again, I don't know what it is exactly being detected but if you change it you might get past.
As most things is a game of cat n mouse trying to stay one step ahead.

Try taking out Tor links, I'd go for dropping region checking cause that could be flagged, try changing words, writing country names with spaces, who knows what they use.

Take a look at the message composer gives perhaps?, still gets the same point across and actively out there and isn't getting flagged everywhere 🤔

from es5-ext.

medikoo avatar medikoo commented on May 28, 2024

@n8-dev removing anything you mentioned is out of the question as it's a core of this manifest.

Again, I'll be happy to send reports to anti-virus vendors, but I need help from you (where it should be reported and what's the id/code of vulnerability I should report as false)

from es5-ext.

robert-gdv avatar robert-gdv commented on May 28, 2024

Sonatype starts flagging the library as "malicious". Sonatype Firewall therefore blocks it.

from es5-ext.

robert-gdv avatar robert-gdv commented on May 28, 2024

Whitelisting the package is risky, because it would create a false negative, when this repo is e.g. hacked and really contains malicious code.

from es5-ext.

medikoo avatar medikoo commented on May 28, 2024

@robert-gdv have you reported the issue to Sonatype? (there's nothing malicious about the package)

from es5-ext.

medikoo avatar medikoo commented on May 28, 2024

Thanks, @robert-gdv, for reaching out to Sonatype.

Interestingly, there are other packages that present welcome messages during installation, which are also not intended by users who install them (e.g., sponsorship ads). Yet, I never saw them being reported by anti-virus software.

Also, in this package case, it targets a specific group. It's not the noise that is presented to everyone.

from es5-ext.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.