Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
node-red-contrib-hdl
Advanced tools
HDL nodes for node-red.
HDL for node-red, utilizing pure JavaScript HDL Buspro driver (working in tunneling mode). Based on https://github.com/caligo-mentis/smart-bus.
From inside your node-red directory:
npm install node-red-contrib-hdl
It includes three nodes:
hdl-controller
: a unique CONFIG node that holds connection configuration for hdl and will acts as the encapsulator for HDL access. As a node-red 'config' node, it cannot be added to a graph, but it acts as a singleton object that gets created in the the background when you add an 'hdl-in' or 'hdl-out' node and configure it accordingly.
hdl-out
: HDL output node that can send HDL commands to a HDL network.
hdl-in
: HDL listener node, who emits flow messages based on activity on the HDL bus.
Example of msg ready to be sent into the hdl-out node:
{
"topic": "1.3",
"payload": {
"code": 39,
"data": {
"channel": 5,
"level": 100
}
}
}
topic
can contain target address, for example 1.3
, where 1
is subnet number and 3
is device number.payload
must be a JavaScript object or a string in JSON format, which contains fields:
- device
- device number of target (example: 1.3
). It can be empty, then msg.topic
field will be handled as target device number
- code
(alias: cmd
and command
) - command code (example: 39
). Full list of operation codes take here: https://raw.githubusercontent.com/estbeetoo/node-red-contrib-hdl/master/doc/HDL-BUS%20Pro%20operation%20codes(Eng)%20Jan%2008%202013.pdf
- data
(aliases: params
and args
) - object with different fields for specified operation code.
0x0031
(decimal 49
):
data.channel
- integer, channel number of DMX dimmer, for example.data.level
- integer, level of luminosity to be set to the channel.data.time
- integer, how many time level change should take[TODO: write the number range here].0x0032
(decimal 50
):
data.channel
- integer, channel number of DMX dimmer, for example.data.success
- any type, if it can be interpreted as Boolean true
, value of 0xF8
will be sent. Otherwise, 0xF5
will be sent.data.value
- integer, value to be set to the channel.0xE01C
(decimal 57372
):
data.switch
- integer, number of switch.
data.status
- any type, if it can be interpreted as Boolean true
integer value 255
will be sent to the switch. Otherwise, 0
will be sent.
###'hdl-in' and 'hdl-out' node configuration:
###'hdl-controller' CONFIG node configuration:
According to official documentation: http://nodered.org/docs/getting-started/adding-nodes.html
FAQs
HDL for Node-RED, utilizing pure JavaScript HDL Buspro driver
The npm package node-red-contrib-hdl receives a total of 3 weekly downloads. As such, node-red-contrib-hdl popularity was classified as not popular.
We found that node-red-contrib-hdl demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.