
Security Fundamentals
Turtles, Clams, and Cyber Threat Actors: Shell Usage
The Socket Threat Research Team uncovers how threat actors weaponize shell techniques across npm, PyPI, and Go ecosystems to maintain persistence and exfiltrate data.
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
The npm package gaussian receives a total of 17,262 weekly downloads. As such, gaussian popularity was classified as popular.
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.
Security Fundamentals
The Socket Threat Research Team uncovers how threat actors weaponize shell techniques across npm, PyPI, and Go ecosystems to maintain persistence and exfiltrate data.
Security News
At VulnCon 2025, NIST scrapped its NVD consortium plans, admitted it can't keep up with CVEs, and outlined automation efforts amid a mounting backlog.
Product
We redesigned our GitHub PR comments to deliver clear, actionable security insights without adding noise to your workflow.