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.
@gasnow/inpage-provider
Advanced tools
A JavaScript Ethereum provider that connects to the wallet over a stream.
The inpage Ethereum provider object injected by Gasnow into web pages. Contains a lot of implementation details specific to Gasnow, and is probably not suitable for out-of-the-box use with other wallets.
Implements the Ethereum JavaScript provider specification, EIP-1193.
yarn add @gasnow/inpage-provider
import { initializeProvider } from '@gasnow/inpage-provider';
// Create a stream to a remote provider:
const gasnowStream = new LocalMessageDuplexStream({
name: 'inpage',
target: 'contentscript',
});
// this will initialize the provider and set it as window.ethereum
initializeProvider({
connectionStream: gasnowStream,
});
const { gasnow } = window;
Types are exposed at index.d.ts
.
They require Node.js EventEmitter
and Duplex
stream types, which you can grab from e.g. @types/node
.
The Provider object should not be mutated by consumers under any circumstances. The maintainers of this package will neither fix nor take responsbility for bugs caused by third parties mutating the provider object.
yarn test
FAQs
A JavaScript Ethereum provider that connects to the wallet over a stream.
We found that @gasnow/inpage-provider demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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.