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.
@trinitymirrordigital/deep_equals
Advanced tools
@trinitymirrordigital/deep_equals
Function to deep compare two objects or arrays for changes
import deepEquals from '@trinitymirrordigital/deep_equals';
const obj1 = {
test: 'foo',
test2: [1, 2, 3]
}
const obj2 = {
test: 'foo',
test2: [1, 2, 3]
}
const obj3 = {
test: 'foo',
test2: [1, 2, 2]
}
obj1 === obj2 // returns false
deepEquals(obj1, obj2); // return true
obj1 === obj3 // returns false
deepEquals(obj1, obj3); // return false
const array1 = [{
test: 'foo',
test2: [1, 2, 3]
}]
const array2 = [{
test: 'foo',
test2: [1, 2, 3]
}]
const array3 = [{
test: 'foo',
test2: [1, 2, 2]
}]
array1 === array2 // returns false
deepEquals(array1, array2); // return true
array1 === array3 // returns false
deepEquals(array1, array3); // return false
FAQs
To deep compare objects
We found that @trinitymirrordigital/deep_equals demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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
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.