
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.
react-native-ssl-websocket
Advanced tools
SSL Pinning capable Websocket library for React Native
A WebSocket library for React Native (Android & iOS) with SSL Pinning support.
npm install react-native-ssl-websocket
or
yarn add react-native-ssl-websocket
import { SSLWebSocket } from 'react-native-ssl-websocket';
const ws = new SSLWebSocket(
'wss://your-server.com:port',
'BASE64_PUBLIC_KEY' // Obtain this using the get_public_key.sh script; use the SHA256(SPKI) Base64 at depth=0
);
ws.onopen = () => {
console.log('WebSocket opened');
ws.send({ hello: 'world' });
};
ws.onmessage = (event) => {
console.log('Received message:', event);
};
ws.onerror = (event) => {
console.error('WebSocket error:', event);
};
ws.onclose = (event) => {
console.log('WebSocket closed:', event);
};
// Connect
ws.connect();
// Close the connection when needed
// ws.close();
scripts/get_public_key.sh
script to obtain the SHA256(SPKI) Base64 of your server certificate (the first base64 line, corresponding to depth=0, i.e., the server/leaf certificate).SSLWebSocket
.See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT
Made with create-react-native-library
FAQs
SSL Pinning capable Websocket library for React Native
The npm package react-native-ssl-websocket receives a total of 12 weekly downloads. As such, react-native-ssl-websocket popularity was classified as not popular.
We found that react-native-ssl-websocket demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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
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.