
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.
## 开发 ``` // 引入 TRTC 以及加密模块 [注意, 整个应用都需要使用该 TRTC 模块, 不可使用官方提供的TRTC] import { TRTC, useClientCrypto } from 'trtc-sm'
// 引入 TRTC 以及加密模块 [注意, 整个应用都需要使用该 TRTC 模块, 不可使用官方提供的TRTC]
import { TRTC, useClientCrypto } from 'trtc-sm'
// 初始化 TRTC, 配置功能. 具体参考官方文档
const client = TRTC.createClient({
mode: this.mode,
// mode: 'live',
sdkAppId: SDKAPPID,
userId: userID,
userSig: userSig,
useStringRoomId: useStringRoomID,
});
// 加密 [key 是后端提供的国密对称加密key]
useClientCrypto(client, key)
FAQs
## 开发 ``` // 引入 TRTC 以及加密模块 [注意, 整个应用都需要使用该 TRTC 模块, 不可使用官方提供的TRTC] import { TRTC, useClientCrypto } from 'trtc-sm'
The npm package trtc-sm receives a total of 0 weekly downloads. As such, trtc-sm popularity was classified as not popular.
We found that trtc-sm 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.