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.
ruby-hue
is a simple Ruby library and binary for manipulating the Philips Hue
lighting system.
(In a pry
shell... for awesomeness)
require 'hue'
h = Hue::Hue.new # make use of auto-discovery
h.poll_state # fetch and print system status
h.set_bright_color(1, Color::RGB::Red)
h.all_lights.write bri: 255, hue: 40000, sat: 200
# alternate between blue and red
(1..1.0/0).each do |n|
h.all_lights.write hue: n.even? ? 0 : 248 * 182, transitiontime: 1
sleep 0.15
end
It is highly recommended that you read the inline comments in lib/hue.rb
. The
module is very thoroughly documented.
Thanks to this link for figuring out most of the unofficial Hue REST API:
FAQs
Unknown package
We found that ruby-hue 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.