Esscapesrc infected with MacOS:Agent-AJQ [Trj]

Just tried to build the webvm on my local mac and got this warning. So it gets quarantined and not built.
No description
24 Replies
apignotti
apignotti4w ago
What are you trying to build? The webvm repository does not contain any binary, how to you get to this message?
Apivis
ApivisOP4w ago
The wbvm. I have now scanned my local .tea folder and Avast found a trojan. Don't know if it's true. But will try to reinstall .tea
apignotti
apignotti4w ago
Please share all the instructions you have executed so far What is .tea? That is not part of WebVM
Apivis
ApivisOP4w ago
It's a local package manager
apignotti
apignotti4w ago
It's not connected with WebVM at all
Apivis
ApivisOP4w ago
I followed this: From a local git clone Download the debian_mini Ext2 image from https://github.com/leaningtech/webvm/releases/ You can also build your own by selecting the "Upload GitHub release" workflow option Place the image in the repository root folder Edit config_github_terminal.js Uncomment the default values for CMD, ARGS, ENV and CWD Replace IMAGE_URL with the URL (absolute or relative) for the Ext2 image. For example "/debian_mini_20230519_5022088024.ext2" Build WebVM using npm, output will be placed in the build directory npm install npm run build Start NGINX, it automatically points to the build directory just created nginx -p . -c nginx.conf Visit http://127.0.0.1:8081 and enjoy your local WebVM And during the npm run build Avast found a trojan
apignotti
apignotti4w ago
WebVM uses just NPM, and does not interact with this Tea system at all. I am cannot provide better support since there must be an issue with your local system If you want to inspect the list of NPM packages you can do so, it's available in the package-lock.json file
Apivis
ApivisOP4w ago
Ah, yes I am now trying to find out why it's using .tea and how to remove it Find an article from 2022: tea is the new project of Max Howell, original creator of brew, the macOS package manager.
apignotti
apignotti4w ago
What is your $PATH? echo $PATH
Apivis
ApivisOP4w ago
ECHO $PATH /Users/moset/.tea/openssl.org/v1.1.1v/bin:/Users/moset/miniconda3/bin:/Users/moset/miniconda3/condabin:/Users/moset/.tea/tea.xyz/v*/bin:/Users/moset/.local/bin:/Users/moset/opt/diode:/opt/homebrew/opt/openssl@3/bin:/Users/moset/.gem/ruby/3.0.0/bin:/usr/local/opt/ruby/bin:/usr/local/lib/ruby/gems/3.0.0/bin:/Users/moset/.rbenv/shims:/Users/moset/.nvm/versions/node/v20.14.0/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/opt/X11/bin:/Library/Apple/usr/bin:/usr/local/go/bin:/Users/moset/.composer/vendor/bin:/Users/moset/flutter/bin:/Users/moset/AndroidSDK/cmdline-tools/latest/bin:/Users/moset/AndroidSDK/tools:/Users/moset/AndroidSDK/tools/bin:/Users/moset/AndroidSDK/platform-tools:/Users/moset/.pub-cache/bin Remarked the .tea path and will try to build again Ok it built. But nginx can't be found when I run nginx -p . -c nginx.conf nginx -p . -c nginx.conf zsh: command not found: nginx
apignotti
apignotti4w ago
You need to of course have nginx installed, it does not come with WebVM
Apivis
ApivisOP4w ago
ah ok
apignotti
apignotti4w ago
It's a standard web server, very powerful
Apivis
ApivisOP4w ago
yes I know used it a lot in the past nginx -p . -c nginx.conf nginx: [emerg] open() "/etc/nginx/mime.types" failed (2: No such file or directory) in ./nginx.conf:15 Hm, it was where the .tea got it's trojan. But npm should have built it after I remarked .tea Time to by some food..
apignotti
apignotti4w ago
I don't see how this is connected to tea, that message just means the mime database for nginx is in another location. You can fix the file to point to the right place. This is a nginx configuration problem, not a WebVM problem
Apivis
ApivisOP4w ago
ok in nginx.conf?
apignotti
apignotti4w ago
Yes, at line 15 as the error says
Apivis
ApivisOP4w ago
where should nginx find the mime.types
apignotti
apignotti4w ago
I don't know, it depends on the methods of installation and the platform. You should check nginx docs for your case
Apivis
ApivisOP4w ago
ok
apignotti
apignotti4w ago
You can also replace the include /etc/nginx/mime.types line with the following block that provides the few required mime types
types {
text/html html htm shtml;
text/css css;
application/javascript js;
application/wasm wasm;
}
types {
text/html html htm shtml;
text/css css;
application/javascript js;
application/wasm wasm;
}
Apivis
ApivisOP4w ago
Ok, that is probably better But I located my local ngnx brew installed mime.types and changed the line to /opt/homebrew/etc/nginx/mime.types; So now it's starting up Wow it's working. Thanks for the help!
apignotti
apignotti4w ago
For further help please use the #cheerpx-webvm channel. I've marked this problem as resolved
Apivis
ApivisOP4w ago
Ok, yes, learning to navigate here..
Want results from more Discord servers?
Add your server