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.
A JavaScript model of the Normal (or Gaussian) distribution.
var gaussian = require('gaussian');
var distribution = gaussian(mean, variance);
// Take a random sample using inverse transform sampling method.
var sample = distribution.ppf(Math.random());
mean
: the mean (μ) of the distributionvariance
: the variance (σ^2) of the distributionstandardDeviation
: the standard deviation (σ) of the distributionpdf(x)
: the probability density function, which describes the probability
of a random variable taking on the value xcdf(x)
: the cumulative distribution function, which describes the
probability of a random variable falling in the interval (−∞, x]ppf(x)
: the percent point function, the inverse of cdfmul(d)
: returns the product distribution of this and the given distribution; equivalent to scale(d)
when d is a constantdiv(d)
: returns the quotient distribution of this and the given distribution; equivalent to scale(1/d)
when d is a constantadd(d)
: returns the result of adding this and the given distribution's means and variancessub(d)
: returns the result of subtracting this and the given distribution's means and variancesscale(c)
: returns the result of scaling this distribution by the given constantrandom(n)
: returns an array of generated n
random samples correspoding to the Gaussian parameters.FAQs
A JavaScript model of a Gaussian distribution
We found that gaussian 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.