
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.
@zerodev/cab-sdk
Advanced tools
Chain Abstraction SDK for ZeroDev, built on top of @zerodev/sdk.
bun add @zerodev/cab-sdk
import { createCabClient } from '@zerodev/cab-sdk'
import { mainnet } from 'viem/chains'
const client = createCabClient({
chain: mainnet,
bundlerTransport: http(),
// Optional transports
intentTransport: http(),
relayerTransport: http(),
})
// Flow 1: Direct send
const result1 = await client.sendUserIntent({
calls: [{
to: '0x...',
value: 0n,
data: '0x...'
}],
inputTokens: [{
address: '0x...',
chainId: 1
}],
outputTokens: [{
address: '0x...',
amount: 900000n,
chainId: 10
}]
})
// Flow 2: Prepare then send
// First prepare the intent
const intent = await client.prepareUserIntent({
calls: [{
to: '0x...',
value: 0n,
data: '0x...'
}],
inputTokens: [{
address: '0x...',
chainId: 1
}],
outputTokens: [{
address: '0x...',
amount: 900000n,
chainId: 10
}]
})
// Then send the prepared intent
const result2 = await client.sendUserIntent({
intent
})
// Wait for the intent to be opened (works for both flows)
const openReceipt = await client.waitForUserIntentOpenReceipt({
uiHash: result1.uiHash, // or result2.uiHash
});
// Wait for the intent to be executed (works for both flows)
const executionReceipt = await client.waitForUserIntentExecutionReceipt({
uiHash: result1.uiHash, // or result2.uiHash
});
# Install dependencies
bun install
# Build
bun run build
# Test
bun test
# Lint
bun run lint
# Format
bun run format
MIT
FAQs
Chain Abstraction SDK for ZeroDev, built on top of @zerodev/sdk.
The npm package @zerodev/cab-sdk receives a total of 0 weekly downloads. As such, @zerodev/cab-sdk popularity was classified as not popular.
We found that @zerodev/cab-sdk 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
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.