
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
@magic-ext/connect
Advanced tools
Magic Connect JavaScript SDK extension.
License · Changelog · Contributing Guide
See the developer documentation to learn how to get started with Connect in Magic SDK.
Integrating your app with Magic will require our client-side NPM package and the Connect extension:
# Via NPM:
npm install --save magic-sdk @magic-ext/connect
# Via Yarn:
yarn add magic-sdk @magic-ext/connect
Alternatively, you can load via CDN with by adding a script tag to your app’s <head>
:
<script src="https://cdn.jsdelivr.net/npm/magic-sdk/dist/magic.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@magic-ext/connect/dist/extension.js"></script>
# Via NPM:
npm install --save @magic-sdk/react-native-bare @magic-ext/connect
# Via Yarn:
yarn add @magic-sdk/react-native-bare @magic-ext/connect
# Via NPM:
npm install --save @magic-sdk/react-native-expo @magic-ext/connect
# Via Yarn:
yarn add @magic-sdk/react-native-expo @magic-ext/connect
Sign up or log in to the developer dashboard to receive API keys that will allow your application to interact with Magic's APIs.
From your login page:
import Web3 from 'web3';
import { Magic } from 'magic-sdk'; // web browsers
import { Magic } from '@magic-sdk/react-native-bare'; // Bare React Native
import { Magic } from '@magic-sdk/react-native-expo'; // Expo React Native
import { ConnectExtension } from '@magic-ext/connect';
const magic = new Magic('YOUR_API_KEY', {
extensions: [new ConnectExtension()],
network: 'mainnet' // 'mainnet' or 'testnet'
});
const web3 = new Web3(magic.rpcProvider);
await web3.eth.getAccounts();
FAQs
Magic SDK Connect Extension for Web environments.
The npm package @magic-ext/connect receives a total of 4,071 weekly downloads. As such, @magic-ext/connect popularity was classified as popular.
We found that @magic-ext/connect demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 19 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.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.