
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.
@cryptoscamdb/api
Advanced tools
A Javascript wrapper for the CryptoScamDB API for Node.js and browser applications.
npm i -P @cryptoscamdb/api
MemoryCacheProvider
, in-memory caching) - Set the cache providerAll methods return a promise.
You can use the CacheProvider
interface to implement your own caching method (e.g. filesystem or Redis).
interface CacheProvider {
get<T = any>(key: string): Promise<T | undefined>;
getTimestamp(key: string): Promise<number>;
set<T = any>(key: string, result: T): Promise<boolean>;
has(key: string): Promise<boolean>;
remove(key: string): Promise<boolean>;
}
See cache.ts
for an example (in-memory) implementation.
import CryptoScamDBAPI from '@cryptoscamdb/api';
const options = {
cache: {
enable: true
}
};
const api = new CryptoScamDBAPI(options);
// Equal to https://cryptoscamdb.org/api/check/example.com
api.check('example.com')
.then(result => {
// Do something with the result
console.log(result.entries);
})
// Handle error
.catch(console.error);
// API is available as `window.csdbapi`
const api = new window.csdbapi();
// Equal to https://cryptoscamdb.org/api/check/example.com
api.check('example.com')
.then(result => {
// Do something with the result
console.log(result.entries);
})
// Handle error
.catch(console.error);
FAQs
A Javascript wrapper for the CryptoScamDB API
The npm package @cryptoscamdb/api receives a total of 0 weekly downloads. As such, @cryptoscamdb/api popularity was classified as not popular.
We found that @cryptoscamdb/api 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.
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.