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.
Melisa is a Ruby gem that wraps the very efficient Marisa Trie C++ library. See also Marisa Trie's README.
A "trie" is a useful data structure for storing strings, especially ngrams.
gem install melisa
require 'melisa'
trie = Melisa::Trie.new
trie.add('snow')
trie.add('snow cone')
trie.add('ice')
trie.add('ice cream')
trie.search('ice').keys
# => ["ice", "ice cream"]
You can also save and load complete tries. Marisa Tries are space efficient, often achieving significant compression over regular string or hash storage.
trie = Melisa::Trie.new(['snow', 'snow cone'])
trie.save('winter.trie')
trie = Melisa::Trie.new
trie.load('winter.trie')
trie.include? 'snow'
# => true
Melisa includes an IntTrie type that can be used to time- and space-efficiently store integer values in association with a string:
trie = Melisa::IntTrie.new "one" => 1, "two" => 2, "onetwo" => 3
trie['one']
# => 1
trie.get_all('one')
# => [3, 1]
(c) 2014 Duane Johnson License: MIT
FAQs
Unknown package
We found that melisa 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.