
Research
Supply Chain Attack on Axios Pulls Malicious Dependency from npm
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.
matchmaker is a VERY simple, perhaps, simplistic matchmaker that creates two-element match sets.
To create a match you need a policy function that takes two elements and returns an integer value. If the integer value is higher than some threshold, it is considered a match and emits 'match'.
Say we want to match people by some rank. we could do the following:
var Matchmaker = require('matchmaker');
var mymatch = new Matchmaker;
mymatch.policy = function(a,b) {
if (Math.abs(a.rank-b.rank) < 20)
return 100
else
return 0
};
mymatch.on('match', function(result) {
console.log(result.a); // match a
console.log(result.b); // match b
});
mymatch.start();
Then we can
mymatch.push({user:'walter',rank:1450});
mymatch.push({user:'skyler',rank:1465});
You can set
mymatch.policy = function(a,b) {
// do some comparisons...
// your logic
// if it satisfies
// return 100 (or threshold)
// else
// return 0 (or below threshold)
}
You can set
mymatch.prefs.checkinterval = 5000; // default
mymatch.prefs.threshold = 100; // default
mymatch.prefs.maxiters = 5; // default
.prefs.checkinterval is the number of milliseconds between insepcting the queue with the policy function
.prefs.threshold is the integer that is compared with the policy function output
.prefs.maxiters is the maximum number of iterations to process the entire queue between checkintervals.
This is the internal queue for storing elements to be matched.
.push allows you to push elements into the queue.
.start starts the service.
.stop stops the service.
node-matchmaker Copyright (c) 2011 David Wee rook2pawn@gmail.com
Free software provided under the MIT License http://opensource.org/licenses/mit-license.php
FAQs
policy free matchmaking to pair objects
We found that matchmaker 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
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.

Security News
TeamPCP is partnering with ransomware group Vect to turn open source supply chain attacks on tools like Trivy and LiteLLM into large-scale ransomware operations.