Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
node-match-path
Advanced tools
node-match-path
Matches a URL against the given path.
npm install node-match-path
const { match } = require('node-match-path')
match('/user/:userId', '/user/5')
/*
{
matches: true,
params: {
userId: '5'
}
}
*/
match(path: RegExp | string, url: string): Match
Returns a match data, if any, between a url and a path.
match('/admin', '/admin')
/*
{
matches: true,
params: null
}
*/
match('/admin/:messageId', '/admin/abc-123')
/*
{
matches: true,
params: {
messageId: 'abc-123'
}
}
*/
match('/user/*/inbox', '/user/abc-123/inbox')
/*
{
matches: true,
params: null
}
*/
match(/\/messages\/.+?\/participants/, '/messages/5/participants')
/*
{
matches: true,
params: null
}
*/
FAQs
Dependency-free request URI matcher
We found that node-match-path 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.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.