
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
@arcsine/glob
Advanced tools
A light-weight, simple globbing library that shares an API with picomatch.
The code, when compressed is about 1.1kb. Additionally, the source is small and is fairly straightforward to read through.
Primary differences are limited support for vague regex patterns that picomatch supports, as well as limited support for group negation. Consequently, there are also many edge cases that this library does not take into consideration (as of yet), and should be used for fairly standard globbing usages.
Primary features:
*
matches any characters except for /
?
matches zero or one characters.
matches one character**
matches zero or more folder depths{a,b}
matches a
or b
@(a|b)
matches a
or b
, one time+(a|b)
matches a
or b
, one or more times?(a|b)
matches a
or b
, zero or one times*(a|b)
matches a
or b
, zero or more times[ab]
matches a
or b
, once[a-z]
matches a
through z
, once[!ab]
or [^ab]
matches anything other than a
or b
, onceIn addition to simple character class, support, there is also support for POSIX character classes:
[[:alnum:]]
alpha-numeric values[[:alpha:]]
alpha values[[:ascii:]]
ascii values[[:blank:]]
simple whitespace[[:cntrl:]]
control characters[[:digit:]]
numbers[[:lower:]]
lower case letters[[:print:]]
printable characters[[:punct:]]
punctuation[[:space:]]
whitespace characters[[:upper:]]
upper case characters[[:word:]]
alpha-numeric as well as _[[:xdigit:]]
hexidecimal charactersconst {isMatch} = require('@arcsine/glob');
isMatch('folder/level/two/ab', '**/+([ab])') === true
FAQs
Lightweight Globbing Package
The npm package @arcsine/glob receives a total of 3 weekly downloads. As such, @arcsine/glob popularity was classified as not popular.
We found that @arcsine/glob 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
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.