Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
usage: textgrep [OPTIONS] PATTERN [FORMAT] [FLAGS]
textgrep can be used to extract regex matches from a string.
Unless -f is specified the text will be read from stdin.
PATTERN
Specifies the regex you wish to match and capture.
Follows the JavaScript RegExp syntax, see
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp
Use [^]*? to match any character over multiple lines.
FORMAT
Specifies the format to output the captured groups.
You can use {#} to reference a group where # is the index.
Escapes (like \n, \t) are allowed.
Default: {1}\n
FLAGS
Specifies the regex flags (see MDN).
Default: gm
OPTIONS
-f=FILE: will read the text from the given file.
--: stops evaluation of options
(allows the PATTERN to start with -)
--?|--help: shows this help screen.
Sample:
man ls | col -bx | textgrep '^ -(\w+)\s+([^]*?)^$' ' -{1} means: {2}\n\n'
npm install textgrep -g
FAQs
Extract multiline regex matches from text.
The npm package textgrep receives a total of 0 weekly downloads. As such, textgrep popularity was classified as not popular.
We found that textgrep 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.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.