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.
Optimized Github Code Search for Node.JS
The Github Code Search is heavily limited:
This package aims to reduce some of these restrictions by fetching the maximum results for each possible sorting configuration and fetching as often as possible. Since we don't want to stress the Github API, this is all within the limits of the rate-limiting. No attempts are made to circumvent the limit, thus, getting all results can take multiple minutes.
npm install hubscode
import codeSearch from "hubscode";
const logProgress = (fraction, resultsForPage) => {
console.log(fraction * 100, "%", "done");
// The latest batch (page) of results is also passed to the progress callback
console.log("Results:", resultsForPage);
};
const runner = async () => {
const searchTerm = "console.log love";
const results = await codeSearch("GITHUB_API_TOKEN", searchTerm, logProgress);
// Example Result (see https://docs.github.com/en/rest/reference/search#search-code--code-samples):
// [
// {
// name: "classes.js",
// path: "src/attributes/classes.js",
// sha: "d7212f9dee2dcc18f084d7df8f417b80846ded5a",
// ...
// repository: {
// id: 167174,
// ...
// },
// score: 1,
// },
// ];
};
runner();
FAQs
Github Code Search
The npm package hubscode receives a total of 0 weekly downloads. As such, hubscode popularity was classified as not popular.
We found that hubscode demonstrated a not healthy version release cadence and project activity because the last version was released 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.
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.