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 library transfers BI data from an application to a BIME-server.
Via a config/bi.yml
file in YAML like so:
---
production:
update: yes
auth:
username: bi
password: secret
clear: http://localhost:1234/api/v1/all/:id
endpoints:
BI::TestModelValue:
POST: http://localhost:1234/api/v1/tests
DELETE: http://localhost:1234/api/v1/test/:id
bime_dir:
<%= Pathname.pwd.join('../bime') %>
For every Rails model TestModel
define a class named
BI::TestModelValue
like this:
class BI::TestModelValue
include BI::SharedValue
def self.update_class
::TestModel
end
field type: 'string', db: 'gorm:"type:uuid;primary_key"'
def id
@object.id
end
field type: '*int64', db: 'gorm:"type:bigint"'
def number
10 ** 10
end
field type: '*time.Time', db: bp_timestamp # ISO timestamp string, e. g. "2018-11-05T15:40:14.362219+01:00"
def created_at
iso_timestamp(@object.created_at)
end
end
Compute the values to be transfered by accessing @object and define GO types and GORM struct tags for these values.
Also include BI::Updater
in TestModel
like so:
class TestModel < ApplicationRecord
include BI::Updater
has_one :dependent
def trigger_dependent_updates
dependent.schedule_bi_update_job(true)
end
end
This software is licensed under the Apache 2.0 license.
FAQs
Unknown package
We found that betterplace-bi 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.