
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
@mountainpass/eth-sign
Advanced tools
A wrapper for performing eth based sign and verify (client and server side).
A wrapper for performing eth based sign and verify (client and server side).
When providing a message to sign, you should explain "why they need to sign, and what will happen"
For example:
Hi there from {firstName}! Press "Sign this message" to prove you have access to this wallet and we’ll log you in. This won’t cost you anything! To scuttle the plans of would-be wrong doers, here’s a one time message that is hard to guess (no need to save this): d458fa15-dcab-4d85-a477–004d6febca12
What this message does:
Provide user actions, to connect a wallet and sign a message:
Typescript
import ProviderWrapper from '@mountainpass/eth-sign'
const provider = new ProviderWrapper(new ethers.providers.Web3Provider(ethereum))
// state
const [accounts, setAccounts] = React.useState([] as string[])
const [signature, setSignature] = React.useState('-')
// actions
const doConnect = () => provider.connect(setAccounts)
const doSign = (msg: string) => provider.signMessage(msg).then(setSignature)
React.useEffect(() => provider.onAccountsChanged(setAccounts), [])
On the backend, determine the wallet that signed the message (based on having the original unsigned message):
Javascript
const ProviderWrapper = require('@mountainpass/eth-sign').default
const signerWallet = await new ProviderWrapper().verifyMessage(originalMessageSlashSalt, theSignedMessage)
Apache 2.0 © nickgrealy
FAQs
A wrapper for performing eth based sign and verify (client and server side).
We found that @mountainpass/eth-sign 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
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.