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.
lang-selector
Advanced tools
lang-selector
can help you select the most suitable language based on the IETF language tag.
npm i lang-selector
const { selectLanguage } = require('lang-selector');
// import { selectLanguage } from 'lang-selector'
// define `languages`
const languages = {
default: 'ja',
supported: [
'ja',
'fr',
'da',
'es',
'wal',
'tr',
'tr-CY',
'en-GB',
'ru-RU',
'pt-PT',
'zh-Hans'
]
}
for (const tag of [
null, // ja
'wal', // wal
'af-ZA', // en-GB
'zh-Hant', // zh-Hans
'pt', // pt-PT
'pt-PT', // pt-PT
'pt-BR', // pt-PT
'it', // ja
'it-CH', // fr
'nob', // da
'tr', // tr
'tur-CY', // tr-CY
'uk', // ru-RU
'ro', // ja
'ro-MD', // ru-RU
'ru', // ru-RU
'rus', // ru-RU
'cu-RU', // ru-RU
'kk-KZ', // ru-RU
'fr', // fr
'ar', // ja
'ar-EG', // ja
'ar-MA', // fr
'en', // en-GB
'ca', // es
'ca-ES-VALENCIA' // es
]) console.log(`${tag} => ${selectLanguage(tag, languages)}`)
Contributions are only allowed in TON:
UQCYqT9-ycmXE3o57Cac1sM5ntIKdjqIwP3kzWmiZik0VU_b
FAQs
language selector
We found that lang-selector 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.