Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@g123jp/ctw-box-sdk
Advanced tools
The following is the NodeJS implementation of the SDK APIs for CTW BOX
Having a component that can be integrated in other applications to use features from ctw-box like:
import BoxClient from "@g123jp/box-client";
const boxClient = new BoxClient({
endpoint: "https://ctwbox.stg.g123.jp", // Change between staging and production
accessToken: "...", // Bearer token to handle auth and permissions
});
The following is an example of usage for uploading a file to CTW BOX with some parameters like
const options = {
category: "icon",
project: "auo",
attributes: {
style: "round",
isTemplate: true,
},
};
const { object_id } = await boxClient.fPutObject(file, metadata);
The search operation would be performed as follows
const options = {
category: "icon",
project: "auo",
text: "image_02",
searchType: "tag",
};
const { data } = await boxClient.listObjects(options);
With this operation, it is possibile to retrieve all the objects uploaded in a speciffic batch given the permanent URL
const link =
"https://ctwbox.stg.g123.jp/?link_id=3c7d6e9ecb0a4ac9ab9aedfa0035232d";
const { data } = await boxClient.listObjectsFromLink({
fullLink: link,
});
The supported parameters are fullLink
, linkId
, page
and limit
FAQs
The following is the NodeJS implementation of the SDK APIs for CTW BOX
The npm package @g123jp/ctw-box-sdk receives a total of 83 weekly downloads. As such, @g123jp/ctw-box-sdk popularity was classified as not popular.
We found that @g123jp/ctw-box-sdk demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 5 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’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.