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.
No more cannot read property x of undefined
wih a simple ~200bytes script!
$ yarn add epk-nil
or
$ npm install epk-nil --save
then inport it as a module
ES6
import Nil from 'epk-nil'
ES5
const Nil = require('epk-nil')
1991 fan? JsDelivr to the rescue!
<script src="https://cdn.jsdelivr.net/npm/epk-nil@0.0.3/dist/dist.min.js" type="text/javascript"> </script>
import Nil from 'epk-nil'
const myObject = {
user: {
name: 'John',
surname: 'Doe',
birthday: '1995-01-29',
contacts: {
email: 'foo@bar.com',
phone: '000 0000000'
},
languages: ['english', 'italian']
}
}
const a = Nil(myObject, 'user.name') // => John
const b = Nil(myObject, 'languages[1]') // => italian
const c = Nil(myObject, 'foo.bar.baz') // => false
if (a) {
console.log(a) // => John
}
if (b) {
console.log(b) // => italian
}
if (c) {
console.log(c) // => won't log anything!
}
FAQs
My hate isn't undefined.
The npm package epk-nil receives a total of 0 weekly downloads. As such, epk-nil popularity was classified as not popular.
We found that epk-nil 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.