
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.
@santiment-network/sanr-api-js
Advanced tools
You can either use npm or yarn to install it:
npm i --save @santiment-network/sanr-api-js
yarn add @santiment-network/sanr-api-js
In Sanr Participant, but in API - Issuer In Sanr Signal, but in API - Forecast
// ES Modules syntax
import Sanr from 'sanr-api-js';
// require syntax
const Sanr = require("sanr-api-js").default;
const sanr = new Sanr({
token: "YOUR_TOKEN",
refreshToken: "YOUR_REFRESH_TOKEN"
});
// Use api here
;(async () => {
await api.refreshAccessToken()
// Get stats about amount of sanr competitions
// or sanr participants
const worldstate: Worldstate = await api.getWorldstate()
console.log(worldstate)
// Get all competitions
const competitions = await api.getCompetitions()
const latestCompetition = competitions.data[competitions.total - 1].id
console.log(latestCompetition);
const issuers: SanrResponse<Issuer> = await api.getCompetition(latestCompetition)
console.log("Participants in latest competition: " + issuers.total)
// Show all latest forecasts
const signals = await api.getSignals()
console.log(signals)
})()
FAQs
Sanr API JS Wrapper
We found that @santiment-network/sanr-api-js demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 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
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.