![Malicious PyPI Package ‘pycord-self’ Targets Discord Developers with Token Theft and Backdoor Exploit](https://cdn.sanity.io/images/cgdhsj6q/production/87f552a1c62a48cf417637353ef8469746624a66-1024x1024.webp?w=400&fit=max&auto=format)
Research
Security News
Malicious PyPI Package ‘pycord-self’ Targets Discord Developers with Token Theft and Backdoor Exploit
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
yarn add jdefer
import makeDefer from 'jdefer'
// or
const makeDefer = require('jdefer')
const defer = makeDefer()
// to reject
defer.reject(new Error('foo'))
// to resolve
defer.resolve('bar')
// to wait
await defer.promise
import {makeBroadcastStream} from 'jdefer'
// or
const {makeBroadcastStream} = require('jdefer')
const stream = makeBroadcastStream()
// to listen
const removeListener = stream.listen(
(value) => {
console.log(value)
}, {
onDone() {
console.log('done')
},
onError(error) {
console.error(error)
},
})
// to stop listening
removeListener()
// to broadcast
stream.next('foo')
// to broadcast error
stream.throw(new Error('bar'))
// to broadcast done
stream.done()
// iterate
for await (const value of stream) {
console.log(value)
}
FAQs
# Install
The npm package jdefer receives a total of 25 weekly downloads. As such, jdefer popularity was classified as not popular.
We found that jdefer demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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 researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.
Security News
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.