
Research
/Security News
Toptal’s GitHub Organization Hijacked: 10 Malicious Packages Published
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.
Sorted at it's core is a set of objects that let you sort many different attributes in weird and wonderful ways.
The secret sauce is the Sorted::Set
object, in this example we 'toggle' email:
require 'sorted/set'
a = Sorted::Set.new([['email', 'asc'], ['name', 'asc']])
b = Sorted::Set.new([['email', 'asc'], ['phone', 'asc']])
s = a.direction_intersect(b)
s.to_a #=> [['email', 'desc'], ['phone', 'asc'], ['name', 'asc']]
The best way to think about this is to imagine a spreed sheet and what happens
when you sort by various columns, Sorted::Set
pretty much just does that.
Parsers return a Sorted::Set
that can then be used by an encoder:
require 'sorted/uri_query'
set = Sorted::URIQuery.parse('name_asc!email_asc')
Sorted::SQLQuery.encode(set) #=> 'name ASC email ASC'
Currently implemented:
Sorted::SQLQuery
Sorted::URIQuery
Sorted::JSONQuery
Sorted::ElasticsearchQuery
Sorted::ParamsQuery
FAQs
Unknown package
We found that sorted 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
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.
Research
/Security News
Socket researchers investigate 4 malicious npm and PyPI packages with 56,000+ downloads that install surveillance malware.
Security News
The ongoing npm phishing campaign escalates as attackers hijack the popular 'is' package, embedding malware in multiple versions.