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.
@metamask/ethereum-provider-example-snap
Advanced tools
MetaMask example snap demonstrating the use of the Ethereum Provider API and `endowment:ethereum-provider` permission.
@metamask/ethereum-provider-example-snap
This snap demonstrates the use of the endowment:ethereum-provider
permission
and the corresponding ethereum
global. This is similar to the
window.ethereum
API, but it does not have access to all methods.
Note: Using
ethereum
requires theendowment:ethereum-provider
permissions. Refer to the documentation for more information.
Along with other permissions, the manifest of this snap includes the
endowment:ethereum-provider
permission:
{
"initialPermissions": {
"endowment:ethereum-provider": {}
}
}
This permission does not require any additional configuration.
This snap exposes an onRpcRequest
handler, which supports the following
JSON-RPC methods:
getGasPrice
: Get the current recommended gas price from an Ethereum
provider.getVersion
: Get the Ethereum network version from an Ethereum provider.getAccounts
: Get the Ethereum accounts made available to the snap from an
Ethereum provider.For more information, you can refer to the end-to-end tests.
FAQs
MetaMask example snap demonstrating the use of the Ethereum Provider API and `endowment:ethereum-provider` permission.
We found that @metamask/ethereum-provider-example-snap demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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.