Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@monerium/snap
Advanced tools
yarn install
yarn dev
- Will launch a watcher for snaps and the Next.js development environment.
Visit localhost:3000
.
This repository demonstrates how to develop a Snap with TypeScript.
The "Hello, world!" of MetaMask Snaps, and also a GitHub template repository. For instructions, see the MetaMask documentation.
This repository contains the files you need to start your snap project. First, log into GitHub, then click the "Use this template" button to clone this repository into a new project. Once your new repository is created, you can modify the source code to make it your own. For a step by step guide, read The 5-Minute Snap Tutorial.
If you clone or create this repository outside the MetaMask GitHub organization, you probably want to run ./scripts/cleanup.sh
to remove some files that will not work properly outside the MetaMask GitHub organization.
This repository contains other GitHub Actions that you may find useful, see .github/workflows
and Releasing & Publishing below for more information.
Note that the action-publish-relase.yml
workflow contains a step that publishes the frontend of this snap (contained in the public/
directory) to GitHub pages.
If you do not want to publish the frontend to GitHub pages, simply remove the step named "Publish to GitHub Pages" in that workflow.
If you don't wish to use any of the existing GitHub actions in this repository, simply delete the .github/workflows
directory.
yarn install
Run yarn test
to run the tests once.
Run yarn lint
to run the linter, or run yarn lint:fix
to run the linter and fix any automatically fixable issues.
The project follows the same release process as the other libraries in the MetaMask organization. The GitHub Actions action-create-release-pr
and action-publish-release
are used to automate the release process; see those repositories for more information about how they work.
1.x
for a v1
backport release).v1.0.2
release, you'd want to ensure there was a 1.x
branch that was set to the v1.0.1
tag.workflow_dispatch
event manually for the Create Release Pull Request
action to create the release PR.action-create-release-pr
workflow to create the release PR.yarn auto-changelog validate --rc
to check that the changelog is correctly formatted.action-publish-release
workflow to tag the final release commit and publish the release on GitHub.npm publish --dry-run
to examine the release contents to ensure the correct files are included. Compare to previous releases if necessary (e.g. using https://unpkg.com/browse/[package name]@[package version]/
).npm publish
.transpilationMode
must be set to localOnly
(default) or localAndDeps
.wallet
type to work, you have to add the following to your tsconfig.json
:
{
"files": ["./node_modules/@metamask/snap-types/global.d.ts"]
}
FAQs
Be your own bank.
We found that @monerium/snap demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.