
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.
a little module to parse protocol messages over sockjs. just npm install protomsg.
Server:
var protomsg = require('protomsg');
// given a sockjs Connection object
var conn;
var emitter = protomsg(conn);
emitter.on("message:test", function (data, seq) {
// data = "hi", seq = 1
});
// given a sockjs client connects and sends
var fakeMessage = JSON.stringify({id: "test", data: "hi", seq: 1});
// see listener body comment
Client:
var protomsg = require('protomsg');
var conn = new SockJS("//some/sock/server");
var emitter = protomsg(conn);
emitter.on("message:test", function (data, seq) {
// data = "hi", seq = 1
});
// given the server we connected to sends
var fakeMessage = JSON.stringify({id: "test", data: "hi", seq: 1});
given a sockjs serverside Connection object, or a sockjs client side SockJS object, emit events if messages using the following structure are found:
{
id: String,
data: Object,
seq: Number
}
where the event name will be message:<id> for any id. Also emit malformed if a message is received that doesn't follow that structure.
occurs when a message doesn't follow the structure. argment is the raw data of the message.
occurs when a message is parsed properly, according to the structure. argument is the parsed Object, then the seq.
FAQs
a little module to parse protocol messages over sockjs
We found that protomsg 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.