Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@thorswap-lib/cross-chain-api-sdk
Advanced tools
BETA and internal-use only. This is not fully tested you may lose funds!
import CrossChainAPI, { Environment } from '../../../lib/index.js';
const api = new CrossChainAPI({ environment: Environment.DEV, port: 3000 });
const providers = await api.getSupportedProviders();
const txDetails = await api.quote({
sellToken: 'ETH.UNI-0x1f9840a85d5af5bf1d1762f925bdaddc4201f984',
buyToken: 'BTC.BTC',
sellAmount: '5',
slippage: 3, // optional
providers: ['UNISWAPV2', 'SUSHISWAP', 'ZEROX'], // optional
senderAddress: '0x681B29a3f3230Cb9Ad1247922BAA8E6a983466Eb', // optional
recipientAddress: 'bc1q24gf7lf88dzlev0cra79lxshsk407xqj3v0npr'
});
senderAddress & recipientAddress should be matching the sellToken chain and buyToken chain respectively.
Documentation for releases: https://docs.github.com/en/repositories/releasing-projects-on-github/managing-releases-in-a-repository
FAQs
Cross-Chain API client SDK
We found that @thorswap-lib/cross-chain-api-sdk demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 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
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.