Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
This gem provides some set classes based on Redis sorted set. So a set may have scores for each elements.
By using them, it is possible to implement fast ranking system, search system, or filtering system based on coherent cache management of Redis.
Please suppose that there are some tagged documents and we want to provide search system. A user can full-text search, and filter by the tags.
For example, to implement the following query:
We construct the follwoing set:
keyword_set = KeywordSet.new("Ruby") # Each elements have score based on full-text serach.
tagged_set_1 = TaggedSet.new(:new)
tagged_set_2 = TaggedSet.new(:starred)
set = IntersectionSet.new([
keyword_set,
UnionSet.new([tagged_set_1, tagged_set_2]),
], cache_time: 3.minutes)
set.ids #=> [3, 4, 8, 9, 1]
The result is order by the score of keyword set, because each scores of elements are summed on intersection, or union by default.
This is a simple example, and it is possible to apply this pattern to construct more complex system which has small latency. For example, if you want to personalize the result, you have to prepare a personalized ranking and use it as a base set.
In general, there are some advantages by using RedBlocks.
gem 'red_blocks'
This entry and this slide describe the usage of RedBlocks (in japanese).
FAQs
Unknown package
We found that red_blocks 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.