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.
The crypt-fog library is a simple encryption mechanism, but slightly better than Rot13. Its primary goal is to provide a reasonable amount of obfuscation without having to resort to public/private key exchanges, etc.
For truly sensitive data I recommend using a more advanced encryption scheme.
In addition to the module, a stand-alone program is included called "fogenc" that takes both a string and a number as arguments and returns your encrypted string. You can then copy/paste that string to a .rc file. Just remember the number you picked in order to decrypt it.
gem install crypt-fog
fogenc -s "hello" -d 1688
fogenc -f "test.txt" -d 1066
require 'crypt/fog' # or 'crypt-fog'
include Crypt
s = Fog.new("hello",2003)
p s # ";8??B"
p s.decrypt # "hello"
Fog.decrypt(";8??B",2003) # "hello"
Artistic-2.0
(C) 2003-2021 Daniel J. Berger All rights reserved.
Daniel J. Berger
FAQs
Unknown package
We found that crypt-fog 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.