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 gem provides a very lightweight API to specify dependencies between objects. The key concepts behind it are:
gem install untangle
explicit
Explicit definitions contain a direct reference to the actual dependency. The reference can either be a String:
class Person
extend Untangle
dependency :translator, 'I18n'
end
or a block:
class Person
extend Untangle
dependency(:translator) { I18n }
end
implicit
Implicit definitions have no reference to the actual dependency. The
implementation will be inferred from the name. In the following
example, the dependency would resolve to Translator
.
class Person
extend Untangle
dependency :translator
end
If you have global dependencies, which are used throughout your app,
you can register them globally. This way you can use dependency
implicit definitions without a name that corresponds to the implementation.
Untangle.register :translator, 'I18n'
class Blog
extend Untangle
dependency :translator
end
You can also use these registered dependencies to inject them into a
constructor. This technique does not require that the object under
construction knows about explicit_dependencies
Untangle.register :translator, 'I18n'
ExplicitDependencies.register :people_repository, 'PeopleRepository'
class MyPrcoess
# The argument names must match the registered dependencies
def initialize(translator, people_repository)
end
end
Untangle.inject(MyProcess, :new)
FAQs
Unknown package
We found that untangle 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.