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.
24 Replies
What are you trying to build?
The webvm repository does not contain any binary, how to you get to this message?
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
Please share all the instructions you have executed so far
What is .tea? That is not part of WebVM
It's a local package manager
It's not connected with WebVM at all
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
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
fileAh, 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.
What is your $PATH?
echo $PATH
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
You need to of course have nginx installed, it does not come with WebVM
ah ok
It's a standard web server, very powerful
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..
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
ok in nginx.conf?
Yes, at line 15 as the error says
where should nginx find the mime.types
I don't know, it depends on the methods of installation and the platform. You should check nginx docs for your case
ok
You can also replace the
include /etc/nginx/mime.types
line with the following block that provides the few required mime types
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!
For further help please use the #cheerpx-webvm channel. I've marked this problem as resolved
Ok, yes, learning to navigate here..