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.
@frehner/apphistory
Advanced tools
A polyfill for the appHistory proposal. Not ready for production
⚠️ Not for production. Use at your own risk; there will be breaking changes because the spec is not yet finalized ⚠️
A work-in-progress polyfill for the appHistory proposal.
This polyfill must run in a browser-like environment (e.g. an env that has window.location
and window.history
). If there's time, and demand for it, I think it would be interesting to have a discussion about how this polyfill could work in other environments.
To setup the polyfill so that it will automatically listen for anchor tag clicks, do the following:
import { useBrowerPolyfill } from "@frehner/apphistory";
userBrowserPolyfill();
// appHistory is now on the window
window.appHistory.push();
Alternatively, you can create your own instance of AppHistory:
import { AppHistory } from "@frehner/apphistory";
const appHistory = new AppHistory();
// use your own instance of appHistory, without any events from things like anchor tags
appHistory.push();
AppHistoryEntry
use event.detail.target
instead of event.target
to get access to the AppHistoryEntry that fired the event.FAQs
A polyfill for the appHistory proposal. Not ready for production
We found that @frehner/apphistory 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.