Research
Recent Trends in Malicious Packages Targeting Discord
The Socket research team breaks down a sampling of malicious packages that download and execute files, among other suspicious behaviors, targeting the popular Discord platform.
@os-team/yc-storage
Advanced tools
Readme
Yandex Cloud Object Storage API. All methods described in the official documentation are implemented (buckets, objects, multipart upload, static website hosting, CORS, lifecycles, ACL, bucket policy).
Install the package using the following command:
yarn add @os-team/yc-storage
import YandexStorage from '@os-team/yc-storage';
const yandexStorage = new YandexStorage({
accessKeyId: 'accessKeyId',
secretAccessKey: 'secretAccessKey',
region: 'ru-central1-a',
});
const res = await yandexStorage.bucket.listObjects({
bucket: 'my-bucket',
});
To get an access key ID and a secret access key, create a new service account (e.g. with the name of your app), click the line with its name, click Create new key
and Create static access key
.
To upload a file using a buffer, use the object.upload
method, which uploads the entire file at once.
This method is recommended, if the file size is up to 100 MB.
const res = await yandexStorage.object.upload({
bucket: 'my-bucket',
key: 'image.png',
body: fs.readFileSync(filePath), // Must be a buffer
contentType: 'image/png',
});
To upload a file using a stream, use the multipart.upload
method, which uploads the file in parts (see more the general procedure for multipart upload).
This method is recommended, if the file size exceeds 100 MB.
const res = await yandexStorage.multipart.upload({
bucket: 'testabc',
key: 'big.png',
body: fs.createReadStream(filePath), // Must be a stream
contentType: 'image/png',
});
It makes no sense to describe all the methods in this README, because the library fully implements all the methods of the Yandex Cloud Storage API described in the official documentation.
FAQs
Yandex Cloud Object Storage API. All methods described in the official documentation are implemented (buckets, objects, multipart upload, static website hosting, CORS, lifecycles, ACL, bucket policy).
We found that @os-team/yc-storage demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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
The Socket research team breaks down a sampling of malicious packages that download and execute files, among other suspicious behaviors, targeting the popular Discord platform.
Security News
Socket CEO Feross Aboukhadijeh joins a16z partners to discuss how modern, sophisticated supply chain attacks require AI-driven defenses and explore the challenges and solutions in leveraging AI for threat detection early in the development life cycle.
Security News
NIST's new AI Risk Management Framework aims to enhance the security and reliability of generative AI systems and address the unique challenges of malicious AI exploits.