
Research
Malicious npm Package Brand-Squats TanStack to Exfiltrate Environment Variables
A brand-squatted TanStack npm package used postinstall scripts to steal .env files and exfiltrate developer secrets to an attacker-controlled endpoint.
A Solana blockchain utility for token trading, creation, and interaction with a custom bonding curve mechanism.
Install the required dependencies:
npm install @solana/web3.js @coral-xyz/anchor
const connection = new Connection(clusterApiUrl("devnet"), "confirmed");
const cluster = "devnet"; // or 'mainnet'
const authority = Keypair.generate(); // Optional
const fomo = new Fomo(connection, cluster, authority);
await fomo.buyToken(
wallet.publicKey, // Buyer's wallet
tokenMint, // Token mint address
amount, // Amount to spend
slippage, // Slippage tolerance
priorityFee, // Network priority fee
"sol" // Purchase currency
);
await fomo.sellToken(
wallet.publicKey, // Seller's wallet
tokenMint, // Token mint address
amount, // Amount to sell
slippage, // Slippage tolerance
priorityFee, // Network priority fee
"token" // Sell currency type
);
await fomo.createToken(
wallet.publicKey, // Creator's wallet
"TokenName", // Token name
"Symbol", // Token symbol
"https://metadata.uri", // Metadata URI
priorityFee, // Network priority fee
mintKeypairSecret, // Mint keypair secret
requiredLiquidity // Optional liquidity requirement
);
| Method | Description | Parameters |
|---|---|---|
buyToken() | Purchase tokens | wallet, tokenMint, amount, slippage, priorityFee, purchaseCurrency |
sellToken() | Sell tokens | wallet, tokenMint, amount, slippage, priorityFee, sellCurrency |
createToken() | Launch new token | wallet, name, symbol, uri, priorityFee, mintKeypair, requiredLiquidity |
getGlobalData() | Retrieve global contract data | - |
getBondingCurve() | Get bonding curve details | tokenMint |
@solana/web3.js@coral-xyz/anchortry {
const transaction = await fomo.buyToken(...);
// Send and confirm transaction
} catch (error) {
console.error('Transaction failed:', error);
}
git checkout -b feature/AmazingFeature)git commit -m 'Add some AmazingFeature')git push origin feature/AmazingFeature)Distributed under the [Your License]. See LICENSE for more information.
[Your Name] - [Your Email]
Project Link: [Repository URL]
FAQs
A TypeScript/JavaScript library for interacting with the Fomo Protocol on Solana.
We found that fomo-sdk 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.

Research
A brand-squatted TanStack npm package used postinstall scripts to steal .env files and exfiltrate developer secrets to an attacker-controlled endpoint.

Research
Compromised SAP CAP npm packages download and execute unverified binaries, creating urgent supply chain risk for affected developers and CI/CD environments.

Company News
Socket has acquired Secure Annex to expand extension security across browsers, IDEs, and AI tools.