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.
This is a wrapper for the HomeWizard rest API.
Add this line to your application's Gemfile:
gem 'homewizard'
And then execute:
$ bundle install
Or install it yourself as:
$ gem install homewizard
Before you start making the requests to API provide the endpoint using the configuration wrapping.
require 'homewizard'
require 'logger'
# use do block
HomeWizard.configure do |config|
config.endpoint = ENV['HOMEWIZARD_P1_API_HOST'].downcase
end
# or configure with options hash
client = HomeWizard.client({ logger: Logger.new('debug.log) })
# check api version
return unless if client.device_info.api_version.eql? 'v1'
# get last data
data = client.recent_data
if data.active_power_w < 0
# do something to use energy
end
Endpoint for data related requests
Resource | API endpoint |
---|---|
.recent_data | /api/v1/data |
.socket_state | /api/v1/state |
.telegram | /api/v1/telegram |
.identify | /api/v1/identify |
> rake build
> rake release
## Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/jancotanis/homewizard.
## License
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
FAQs
Unknown package
We found that homewizard demonstrated a healthy version release cadence and project activity because the last version was released less than 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.