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.
voltronic_power_interface
Advanced tools
A library to communicate with Voltronic Power inverter/PV products.
NOTE: The author of this library has no association with the above mentioned company
Some public documentation exists of supported commands and how to interpret the output.
Not all commands are supported by all devices
NOTE: Only Ruby Gem serialport
is currently supported
Linux/Mac OS X/BSD
Serial ports are typically found in /dev/tty* These devices may require root privilege in which case it is recommended to add a udev rule with less restrictive permissions.
Example udev rule for Prolific devices:
echo 'ATTRS{idVendor}=="067b", ATTRS{idProduct}=="2303", MODE="0666", SYMLINK+="ttyProlific"' > /etc/udev/rules.d/37-prolific.rules
require 'voltronic/protocol'
# => true
proto = Voltronic::Protocol.for_serialport('/dev/tty_usbserial')
# => Protocol(IO)
proto.execute 'QPI'
#=> '(PI30'
timeout = 0.5 # 500 milliseconds
proto.execute 'QPI', timeout
#=> '(PI30'
Windows
require 'voltronic/protocol'
# => true
proto = Voltronic::Protocol.for_serialport('COM1')
# => Protocol(IO)
proto.execute 'QPI'
#=> '(PI30'
timeout = 0.5 # 500 milliseconds
proto.execute 'QPI', timeout
#=> '(PI30'
The implementation currently only support Linux using HIDRaw
To avoid running as root, execute the following to add a symlink with less restricted privileges
echo 'ATTRS{idVendor}=="0665", ATTRS{idProduct}=="5161", SUBSYSTEMS=="usb", ACTION=="add", MODE="0666", GROUP="root", SYMLINK+="hidVoltronic"' > /etc/udev/rules.d/35-voltronic.rules
require 'voltronic/protocol'
# => true
proto = Voltronic::Protocol.for_usb('/dev/hidVoltronic')
# => Protocol(IO)
proto.execute 'QPI'
#=> '(PI30'
timeout = 0.5 # 500 milliseconds
proto.execute 'QPI', timeout
#=> '(PI30'
FAQs
Unknown package
We found that voltronic_power_interface 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.
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.