
Research
/Security News
Weaponizing Discord for Command and Control Across npm, PyPI, and RubyGems.org
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
@synonymdev/slashtags-widget-news-feed
Advanced tools
A slashtags widget with recent news.
Copy config/config.example.json
to config/config.json
then edit the relay address.
cp config/config.example.json config/config.json
Start the feed writer
npm start
It will generate a keyPair
and persist that in config/config.json
for future sessions.
It should print: Running Bitcoin news feed: slashfeed:<id>/Bitcoin Headlines?relay=<relay-address>
To read The news feed use the Reader
helper class.
const { Feed, Reader } = require('slashtags-widget-news-feed')
(async () => {
const client = new Client({ storage: './path/to/feed/storage', relay: 'https://web-relay.example.com' })
const feed = new Feed(client, config, { icon })
await feed.ready()
const client = new Client({ storage: './path/to/reader/storage'})
const readerClient = new Client({ storage: tmpdir() })
const reader = new Reader(readerClient, feed.url)
const latestArticle = await reader.getLatestArticle()
// {
// title: 'Article Title',
// link: 'https://example.com/article-x',
// published: 1692255625871,
// publisher: { title: 'Feed Bar', link: 'bar.example.com' }
// }
})
FAQs
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 how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
Security News
Socket now integrates with Bun 1.3’s Security Scanner API to block risky packages at install time and enforce your organization’s policies in local dev and CI.
Research
The Socket Threat Research Team is tracking weekly intrusions into the npm registry that follow a repeatable adversarial playbook used by North Korean state-sponsored actors.