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.
wh-wrapper
Advanced tools
Please Note: This library is currently under active development and the code is unfinished/unstructured. Breaking changes should be expected in upcoming days as the library evolves.
wh-wrapper is a library that is being developed to wrap and simplify access to the WhatsApp Cloud API from JavaScript/TypeScript applications.
npm i wh-wrapper
import Client from "wh-wrapper";
const wh = new Client(phoneNumberId, TOKEN, verifyToken);
wh.on("messages", async (message) => {
console.log(message);
await message.markMessageAsRead();
await message.replyText("Welcome from wh-wrapper");
});
wh.on("statuses", async (status) => {
console.log(status);
});
The code for this library was originally some unpublished wrapper code I had written for my own use. I have now open-sourced it to build out into a full-fledged library for public use.
Over the next few days, I will be restructuring the code and organizing it properly as the library takes shape. Please excuse any messiness or lack of coherence for now!
If you'd like to contribute to wh-wrapper as the code takes form, pull requests are welcome! Just be aware the structure and APIs may change rapidly in the short term.
If you have any questions, feel free to open a GitHub issue!
FAQs
JavaScript wrapper for the WhatsApp Cloud API
The npm package wh-wrapper receives a total of 3 weekly downloads. As such, wh-wrapper popularity was classified as not popular.
We found that wh-wrapper demonstrated a healthy version release cadence and project activity because the last version was released less than 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
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.