
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.
@boozt/sfmc-request
Advanced tools
sfmc-request
Many years ago, one decided to take matters into their own hands and build a module that would help people avoid the unbearable burden of dealing with unexpected responses from the Marketing Cloud API.
The hero tried to use the existing SDKs and thoughtfully inspect the documentation. After some time of careful research, his labors were rewarded and this package was born.
At the moment, this is limited but quite useful functionality that will be expanded later.
import { Client, DataExtensionRowAsync, DataExtensionRow } from '@boozt/sfmc-request'
const client = new ClientProvider(SFMC_BASE_URL, SFMC_SOAP_URL, SFMC_TOKEN_URL, [
{ name: SFMC_UNIT_NAME, clientId: SFMC_CLIENT_ID, clientSecret: SFMC_CLIENT_SECRET }
]).getClient(SFMC_UNIT_NAME)
const requestAsync = new DataExtensionRowAsync(client)
const requestSync = new DataExtensionRow(client)
const upsertResult = await requestAsync.upsert(TARGET_DE_KEY, upsertData)
if (upsertResult.ok) {
logger.status(`Update successful, requestId: ${upsertResult.value.requestId}`)
} else if (upsertResult.ok === false) {
return res.status(500).send(upsertResult.error.message)
}
const deleteResult = await requestSync.delete({ key: TARGET_DE_KEY }, deleteData)
if (deleteResult.ok) {
logger.status(`Deletion successful, requestId: ${deleteResult.value.RequestID}`)
} else if (deleteResult.ok === false) {
return res.status(500).send(JSON.stringify(deleteResult.error))
}
FAQs
SFMC Request
We found that @boozt/sfmc-request demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 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 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.