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.
@mediamonks/self-xss-console-banner
Advanced tools
This module will log a self-xss banner to warn users about the self-xss security risk. This banner should be used for projects that have data behind a login.
npm i @mediamonks/self-xss-console-banner
Displaying the default warning:
import xssBanner from '@mediamonks/self-xss-console-banner';
xssBanner();
Displaying a custom warning:
import xssBanner from '@mediamonks/self-xss-console-banner';
xssBanner(false, 'Stop!', 'Do not paste anything here, close this window!', 'Please contact us via security@example.com');
When using SSR make sure that this module is not included. It's possible to use a dynamic import to execute it only on client side.
const selfXssBanner = (await import('@mediamonks/self-xss-console-banner')).default;
selfXssBanner();
git clone git@github.com:mediamonks/self-xss-console-banner.git
After cloning run npm i; npm run postinstall
FAQs
Self XSS warning module
The npm package @mediamonks/self-xss-console-banner receives a total of 2 weekly downloads. As such, @mediamonks/self-xss-console-banner popularity was classified as not popular.
We found that @mediamonks/self-xss-console-banner demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 10 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.