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.
@travetto/registry
Advanced tools
Patterns and utilities for handling registration of metadata and functionality for run-time use
This module is the backbone for all "discovered" and "registered" behaviors within the framework. This is primarily used for building modules within the framework and not directly useful for application development.
Registration, within the framework flows throw two main use cases:
The primary flow occurs on initialization of the application. At that point, the module will:
RootRegistry
and will automatically register/load all relevant filesRootRegistry
is finished, and it will signal to anything waiting on registered data that its free to use it.At runtime, the registry is designed to listen for changes and to propagate the changes as necessary. In many cases the same file is handled by multiple registries.
As the Compiler
notifies that a file has been changed and recompiled, the RootRegistry
will pick it up, and process it accordingly.
For the registries to work properly, metadata needs to be collected about files and classes to uniquely identify them, especially across file reloads for the live flow. To achieve this, every class
is decorated with additional fields. The data that is added is:
__filename
denotes the fully qualified path name of the class__id
represents a computed id that is tied to the file/class combination__hash
a quick and dirty hash of the contents of the class to be able to quickly determine if a class has changed or not__methodHashes
a map of hashes for each class method to be able to determine if the method contents have changedFAQs
Patterns and utilities for handling registration of metadata and functionality for run-time use
The npm package @travetto/registry receives a total of 68 weekly downloads. As such, @travetto/registry popularity was classified as not popular.
We found that @travetto/registry demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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.