Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Minimalistic NodeJS VK API
npm i minvk
// Create new instance of vk.community
const vk = new VK.community({
access_token, // access_token for community with at least manage and messages rights
group_id, // id of group
url, // web-hook url
server_id, // server id from vk interface
port, // port of callback server
secret_key // secret key
});
// Create new instance of vk.user
const vk = new VK.user({
username,
password,
// OR
access_token // access_token for user
});
// Initialize api
await vk.init();
// Make vk api call
await vk.call('messages.send', {/* ... */});
await vk.call('user.getInfo');
// Listen to new messages
// works for both users and communities!
vk.on('message_new', (message) => {/* https://vk.com/dev/objects/message */)); // new messages
vk.on('message_reply', (message) => {/* https://vk.com/dev/objects/message */)); // new replies
// Listen to community events
vk.on('some_event_from_callback_api', () => false);
FAQs
Minimalistic NodeJS VK API
We found that minvk 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
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.