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.
trie-loader
Advanced tools
A Webpack loader for tries. The goal of this loader is to bundle a wordlist dependency as a trie for efficient transport and lookup. The bundle may be embedded in the application or stored as an asynchronous chunk, depending on configuration.
Uses the tiny-trie for encoding.
Take a big list of words (or whatever - all characters are welcome here!)
wordlist.text
:
...
treacle
tree
trie
trill
trim
...
Import this wordlist directly into JavaScript. The resultant binding will be
a PackedTrie
(see tiny-trie), which
exposes a lookup
method.
import words from 'trie!./wordlist.txt';
if (words.lookup('trie')) {
console.log('`trie` is in the dictionary!');
} else {
console.log('`trie` is not a real word');
}
FAQs
Trie loader for Webpack
We found that trie-loader 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.