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.
hiddencoder
Advanced tools
Encode ASCII strings into zero-width unicode characters, and decode back into ASCII
Encode ASCII strings into zero-width unicode characters, and decode back into ASCII
A simple encode-decode tool. Got the idea from @FakeUnicode's tweet.
This tool takes an ASCII string and encodes it into zero-width unicode characters, which won't show up when printing the unescaped string. A decode operation is also available.
const {a2h, h2a} = require('hiddencoder');
const hiddenString = a2h("Hidden string");
console.log(`Hidden: ${hiddenString}`);
console.log(`Actual: ${h2a(hiddenString)}`);
// Output:
// Hidden: 󠄳
// Actual: Hidden message
Use the example files to encode a file in order to hide its content:
Encode the code in encode.js
file by using it on itself
node encode.js encode.js
This will save the encoded output into encode.js.enc
, and will seem empty
Decode the content back into readable form by using decode.js
node decode.js encode.js.enc
This will save the decoded output into encode.js.enc.dec
FAQs
Encode ASCII strings into zero-width unicode characters, and decode back into ASCII
The npm package hiddencoder receives a total of 1 weekly downloads. As such, hiddencoder popularity was classified as not popular.
We found that hiddencoder 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.