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.
better-buffer-inspect
Advanced tools
Monkeypatch Buffer.prototype.inspect to show size and also text content if UTF-8
better-buffer-inspect makes util.inspect(aBuffer)
show the size of
a node Buffer, as well as its text content if it is <= 512 bytes and
decodes as UTF-8.
In your project, run:
npm install better-buffer-inspect --save
or install from the GitHub repo:
npm install ludios/better-buffer-inspect --save
Requiring better-buffer-inspect
will override Buffer.prototype.inspect
.
> require('better-buffer-inspect');
> new Buffer(4).fill(255)
<Buffer size=4: ff ff ff ff>
> new Buffer("hello world\n")
<Buffer size=11: utf8 'hello world\n'>
> new Buffer("\ucccc")
<Buffer size=3: utf8 '쳌'>
FAQs
Monkeypatch Buffer.prototype.inspect to show size and also text content if UTF-8
The npm package better-buffer-inspect receives a total of 5 weekly downloads. As such, better-buffer-inspect popularity was classified as not popular.
We found that better-buffer-inspect 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.