
Research
Namastex.ai npm Packages Hit with TeamPCP-Style CanisterWorm Malware
Malicious Namastex.ai npm packages appear to replicate TeamPCP-style Canister Worm tradecraft, including exfiltration and self-propagation.
huaweicloud-iot-device-sdk
Advanced tools
Huawei IoT SDK MQTT client for Node.js
You can install it as dependency with npm.
$ # save into package.json dependencies with -S
$ npm install huaweicloud-iot-device-sdk -S
Huawei IoT mqtt client with authrozied by deviceId & deviceSecret.
const path = require('path');
const huaweiIoT = require('huaweicloud-iot-device-sdk');
const options = {
deviceId: "your deviceId",
deviceSecret: "your deviceSecret",
caFilePath: path.join(__dirname, 'hw-iot-root.pem'),
host:'your iot host'
}
//建立连接
var client = huaweiIoT.getHuaweiIoTClient(options);
client.on('message', function(topic, message) {
console.log("topic " + topic)
console.log("message " + message)
})
client.subscribe(`/huawei/v1/devices/${options.deviceId}/command/json`)
var topic = `/huawei/v1/devices/${options.deviceId}/data/json`
var postJson = {
msgType: "deviceReq",
data: [
{
serviceId: "pop",
serviceData: {
stackId:4
}
}
]
}
client.publish(topic, JSON.stringify(postJson))
client.end(function (){
console.log("end")
})
client.subscribe(topic)
client.publish(topic, 'Hello mqtt')
client.publish(topic, 'Hello mqtt', { qos: 1 })
client.on('message', function(topic, message) {
console.log(topic+"," + message.toString())
})

FAQs
华为云IoT物联网平台户端
The npm package huaweicloud-iot-device-sdk receives a total of 1 weekly downloads. As such, huaweicloud-iot-device-sdk popularity was classified as not popular.
We found that huaweicloud-iot-device-sdk 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
Malicious Namastex.ai npm packages appear to replicate TeamPCP-style Canister Worm tradecraft, including exfiltration and self-propagation.

Product
Explore exportable charts for vulnerabilities, dependencies, and usage with Reports, Socket’s new extensible reporting framework.

Product
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.