
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-contacts
Advanced tools
Slashtags contacts management.
npm install @synonymdev/slashtags-contacts
Initialize
const coreData = new SlashtagsCoreData()
const contacts = new SlashtagsContacts(coreData)
await contacts.ready() // await loading contacts from disk
await contacts.set('slash:kencdz6km9xde46iph165d6isidssy9uate7b6srfaur8stm5br7', { name: "Foo" }) // set new contact
const contact = contacts.get('slash:kencdz6km9xde46iph165d6isidssy9uate7b6srfaur8stm5br7')
// { name: "Foo" }
for (let [id, contact] contacts.list() {
// id: 'kencdz6km9xde46iph165d6isidssy9uate7b6srfaur8stm5br7'
// ccontact: { name: "Foo" }
}
const contacts = new SlashtagsContacts(coreData)
Create a new contacts instance from a CoreData instance
await contacts.ready()
Await opening the contacts list from storage.
await contacts.set(url, contact)
Await setting the value of contact and storing it as persistent encrypted data. contact
has to be in the shape:
{
name: string, // Local (pet)name of the contact.
}
const contact = contacts.get(url)
Return contact value from contact's Slashtags url.
for (let [id, contact] contacts.list() {}
Return an iterator of entries in the internal Map. id
is z-base32 endoced key of the contact. Internal map will be populated after contacts.ready()
contact.close()
Close underlying coreData instance and all subscriptions.
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.