
Research
/Security News
Malicious npm Packages Target WhatsApp Developers with Remote Kill Switch
Two npm packages masquerading as WhatsApp developer libraries include a kill switch that deletes all files if the phone number isn’t whitelisted.
@pushprotocol/frames-validator
Advanced tools
Validator package to validate trustedData from Push Clients.
This package can be used by a frame server to validate incoming requests from a Push Chat Client and get the trustedData from it.
npm i @pushprotocol/frames-validator
import verifyFrameMessage from "@pushprotocol/frames-validator";
const {isValid, trustedData} = await verifyFrameMessage(trustedData);
isValid
as true
if the user originally made this frame interaction, otherwise return isValid
as false
.{
isValid: true,
trustedData: {
url: 'frame_url',
unixTimestamp: timestamp,
buttonIndex: 3,
inputText: '',
state: '',
transactionId: 'undefined',
address: 'user_address',
messageId: 'previous:v2:11bce1cdfdd3ce9c05b6aeb564be993e2176f2e823c9f16aa361aa67d8fb7883',
chatId: 'chatid:c3ea478558ffcea3dc0d08f4d52629af1125b1577490d2c95c9f56d771c8186a',
clientProtocol: 'push',
env: 'staging'
}
}
FAQs
Validator package to validate trustedData from Push Clients.
The npm package @pushprotocol/frames-validator receives a total of 1 weekly downloads. As such, @pushprotocol/frames-validator popularity was classified as not popular.
We found that @pushprotocol/frames-validator 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
Two npm packages masquerading as WhatsApp developer libraries include a kill switch that deletes all files if the phone number isn’t whitelisted.
Research
/Security News
Socket uncovered 11 malicious Go packages using obfuscated loaders to fetch and execute second-stage payloads via C2 domains.
Security News
TC39 advances 11 JavaScript proposals, with two moving to Stage 4, bringing better math, binary APIs, and more features one step closer to the ECMAScript spec.