
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.
card-connect-api
Advanced tools
yarn add card-connect-api
const CardConnectApi = require("card-connect-api");
this.api = new CardConnectApi({
baseUrl: process.env.BASE_URL,
merchantId: process.env.MERCHANT_ID,
authorizationHeader: process.env.AUTHORIZATION
});
await this.api.listTerminals()
await this.api.connectTerminal({
hsn: process.env.TESTABLE_TERMINAL,
force: true
});
await this.api.connectTerminal({
hsn: process.env.TESTABLE_TERMINAL,
force: true
});
await this.api.ping({
hsn: process.env.TESTABLE_TERMINAL
});
await this.api.connectTerminal({
hsn: process.env.TESTABLE_TERMINAL,
force: true
});
await this.api.readCard({
hsn: process.env.TESTABLE_TERMINAL,
amount: 1
});
await this.api.connectTerminal({
hsn: process.env.TESTABLE_TERMINAL,
force: true
});
await this.api.readManual({
hsn: process.env.TESTABLE_TERMINAL,
amount: 1
});
{
token: '<redacted 16 digit number>',
expiry: '<redacted 4 digit expiry date>',
name: '<redacted company name? maybe?>'
}
await this.api.connectTerminal({
hsn: process.env.TESTABLE_TERMINAL,
force: true
});
await this.api.sendMessage({
hsn: process.env.TESTABLE_TERMINAL,
text: "hacked bro"
});
await this.api.connectTerminal({
hsn: process.env.TESTABLE_TERMINAL,
force: true
});
await this.api.sendMessage({
hsn: process.env.TESTABLE_TERMINAL,
text: ""
});
This wrapper returns errors for
User cancelled
Terminal is offline
Terminal is in use
Something went wrong
more information can be found here
FAQs
Node Wrapper for CardConnectApi
The npm package card-connect-api receives a total of 2 weekly downloads. As such, card-connect-api popularity was classified as not popular.
We found that card-connect-api demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.