Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
bundlesocial
Advanced tools
Node.js SDK for bundle.social API.
npm install bundlesocial
yarn add bundlesocial
pnpm add bundlesocial
!!! Make sure you have created a team on bundle.social and have an generated API key. !!!
import { BundleSocial } from 'bundlesocial';
const bundleSocial = new BundleSocial('YOUR_API_KEY');
// Get the API key from the bundle.social dashboard
const team = await bundlesocial.team.teamGetTeam();
const video = await fs.readFile('./video.mp4');
const createdUpload = await bundlesocial.upload.uploadCreate({
formData: {
file: new Blob([video], { type: 'video/mp4' }),
}
});
const jpgImage = await fs.readFile('./image.jpg');
const createdUpload = await bundlesocial.upload.uploadCreate({
formData: {
file: new Blob([jpgImage], { type: 'image/jpeg' }),
}
});
// Make sure you have uploaded the file before creating a post.
// Make sure you have connected a social account to the team.
const createdPost = await bundlesocial.post.postCreate({
requestBody: {
data: {
INSTAGRAM: {
text: 'Test Post',
type: 'REEL',
uploadIds: [
videoUpload?.id
]
},
YOUTUBE: {
text: 'Test Post',
type: 'SHORT',
madeForKids: false,
uploadIds: [
videoUpload?.id
],
privacyStatus: 'PUBLIC',
},
TIKTOK: {
text: 'Test Post',
uploadIds: [
videoUpload?.id
],
privacy: 'PUBLIC_TO_EVERYONE',
},
},
postDate: new Date().toISOString(),
socialAccountTypes: ['INSTAGRAM', 'YOUTUBE', 'TIKTOK'],
status: 'SCHEDULED',
title: 'Test Post',
}
});
const post = await bundlesocial.post.postGet({
id: createdPost.id,
});
try {
const team = await bundlesocial.team.teamGetTeam();
} catch (error) {
if (error instanceof ApiError) {
// Handle the error
console.log(error?.status, error?.statusText, error?.body);
} else {
throw error;
}
}
MIT
1.0.0 (2024-06-26)
FAQs
Node.js library for the bundle.social API
We found that bundlesocial 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.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.