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.
check-my-secrets
Advanced tools
NodeJS script checking whether any of the passwords used online are compromised.
NodeJS script checking whether any of the passwords used online are compromised.
It uses the ';--have i been pwned?
V3 API, specifically the GET
https://api.pwnedpasswords.com/range/{first 5 hash chars}
to determine if a password is compromised.
v17
git clone https://github.com/koalyptus/check-my-secrets.git
npm install
.env
file at same location of this README with following definitions:# Replace the curly brackets too!
# Encryption key used by Keyring
ENCRYPTION_KEY={your-encryption-key-here}
# Symbol used to separate passwords, defaults to `,`
PWDS_SEPARATOR={separator_here}
# Key used by Keyring to store the comma (or symbol of your choice) separated passwords
PWDS_KEY=checkmysecrets.{your-key-for-passwords}
:warning: If env file is not present the script will default to following values in same order of appearance in .env
file:
hello-world-123
,
checkmysecrets.pwds
Please note that failing to provide a .env
poses obvious security risks as the encryption key is publicly disclosed here.
keyring store -k checkmysecrets.{PWDS_KEY HERE} -v 'my-password,another-password' -e -p {ENCRYPTION_KEY HERE}
:warning: the command even when executed successfully outputs some warnings related to deprecated dependencies. Disregard these for the time being.
To list the passwords use the following command:
keyring retrieve -k 'checkmysecrets.{PWDS_KEY HERE}' -d -p '{ENCRYPTION_KEY HERE}'
npm start
command to check the integrity of your passwords, alternatively node bin/check-my-secrets
. Depending on the OS a notification similar to below should pop-out:FAQs
NodeJS script checking whether any of the passwords used online are compromised.
We found that check-my-secrets 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.