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.
Replace unicode characters with visually similar ones.
Be sure to use python >= 3.7
pip install unicode_obfuscate
Simple usage:
>>> from unicode_obfuscate import Obfuscator
>>> text = "And Now for Something Completely Different"
>>> obfuscator = Obfuscator()
>>> new_text = obfuscator.obfuscate(text)
>>> new_text
'Αnd Νοw fοr Ѕοmеtһіng Сοmрlеtеlу Dіffеrеnt'
>>> text == new_text
False
# You can also pass a probability to change only some characters.
>>> obfuscator.obfuscate(text, prob=0.3)
'And Νow for Ѕomething Сompletely Different'
There are two different datasets to map the characters:
By default, intencional
is used but it can change with keyword kind
:
# this uses the dataset 'intencional'
>>> obfuscator = Obfuscator()
# this uses the dataset 'confusables'
>>> obfuscator = Obfuscator(kind="confusables")
FAQs
Replace unicode characters with visually similar ones.
We found that unicode-obfuscate demonstrated a healthy version release cadence and project activity because the last version was released less than 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.