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.
WebAssembly bindings for the GiNaC computer algebra system
Demo frontend: https://daninet.github.io/ginac-wasm
const { initGiNaC, getFactory } = require('ginac-wasm');
(async () => {
const GiNaC = await initGiNaC('ginac-wasm/dist/ginac.wasm');
const g = getFactory();
console.log(
GiNaC([
// 2 * 3 = 6
g.mul(g.numeric('2'), g.numeric('3')),
// x + 2x = 3x
g.add(g.symbol('x'), g.mul(g.numeric('2'), g.symbol('x'))),
// (2*sin(x))' = 2*cos(x)
g.diff(g.mul(g.numeric('2'), g.sin(g.symbol('x'))), g.symbol('x')),
// internal parser of GiNaC
g.parse('x^3 + 3*x + 1')
]),
);
console.log(
GiNaC([
g.numeric('2'),
g.numeric('3'),
// reference first and second items from the array => 2*3 = 6
g.mul(g.ref(0), g.ref(1))
]),
);
// besides the string output format,
// it can also generate traversable json structures
console.dir(
GiNaC([
// 2*sin(x)
g.mul(g.numeric('2'), g.sin(g.symbol('x'))),
], { json: true }),
{ depth: null }
);
})();
For more details, see the source code of the demo frontend app.
FAQs
WebAssembly bindings for the GiNaC computer algebra system
The npm package ginac-wasm receives a total of 15 weekly downloads. As such, ginac-wasm popularity was classified as not popular.
We found that ginac-wasm 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.