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.
@inlang/cross-sell-sherlock
Advanced tools
.vscode/extensions.json
file..vscode/extensions.json
file if they are not already present.Put this one into your dependencies
in package.json
& install it with pnpm install
:
"@inlang/cross-sell-sherlock": "workspace:*"
The module exports two main asynchronous functions:
isAdopted(fs: NodeishFilesystem, workingDirectory?: string): Promise<boolean>
Checks whether the inlang.vs-code-extension
is recommended in the workspace.
fs
: A NodeishFilesystem
object to interact with the file system.workingDirectory
: (Optional) The working directory path.Promise<boolean>
: true
if the extension is recommended, false
otherwise.add(fs: NodeishFilesystem, workingDirectory?: string): Promise<void>
Adds the inlang.vs-code-extension
recommendation to the workspace if it's not already present.
fs
: A NodeishFilesystem
object to interact with the file system.workingDirectory
: (Optional) The working directory path.import { isAdopted, add } from '@inlang/cross-sell-sherlock';
import { NodeishFilesystem } from '@lix-js/fs';
async function addSherlock(fs: NodeishFilesystem) {
const isExtensionAdopted = await isAdopted(fs);
if (!isExtensionAdopted) {
// prompt for user confirmation
const userConfirmed = await promptUser();
if (userConfirmed) {
await add(fs);
console.log('Extension recommendation added.');
} else {
console.log('User declined to add extension recommendation.');
}
}
}
Contributions are welcome! If you have a feature request, bug report, or proposal, please open an issue or submit a pull request. Our Discord can be found here.
FAQs
A package to cross-sell Sherlock
The npm package @inlang/cross-sell-sherlock receives a total of 1 weekly downloads. As such, @inlang/cross-sell-sherlock popularity was classified as not popular.
We found that @inlang/cross-sell-sherlock demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers 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.