
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
evergreen-org-crawler
Advanced tools
[](https://github.com/ahm-monash/crawler/actions/workflows/main.yml)
This library tracks how outdated your GitHub organisation dependencies are.
The organisation Crawler uses the GitHub GraphQL API to extract all of a GitHub organisation's repositories and their internal and external dependencies. The current version of dependencies of the crawled repositories are found using DependencyGraphManifest GraphQL object. The latest versions of the dependencies are requested from npm/rubygem/pypi API, it uses client-side rate limiter when querying these APIs.
These information are aggregated and returned as a json object which has a schema, this object can then be used to present the data.
RepoMap: Map<ID, Object> = {
ID: {
name: ID= "NAME",
version: SemVer = VERSION,
link: string = "LINK",
internal: bool = IS_INTERNAL,
archived: bool = IS_ARCHIVED,
lastUpdated: string = DATE
languageVersion?: string = "LANGUAGE_VERSION",
oldName?: string = "OLD_NAME"
},
...
}
DependencyList: Object[] = [
{
dep: ID = ID,
dependencies: [int, SemVer] = [
[ID, VERSION],
...
]
},
...
]
The only function that is needed to generate the json data is getJsonStructure
:
import { getJsonStructure } from "evergreen-org-crawler"
// function getJsonStructure(accessToken: string, targetOrganisation: string, config: Configuration, { toUse, crawlStart, useCachedData }?: {
// toUse?: string[];
// crawlStart?: string | null;
// useCachedData?: boolean;
// }): Promise<string>;
let res: any = getJsonStructure(
accessToken,
target_organisation,
config, {
toUse: ["NPM"],
useCachedData: false
})
console.log(res)
If GitHub webhooks is enabled for the target organisation, these two functions are available:
import { handleGitHubWebhookPushEvents, handleGitHubWebhookRepositoryEvents } from "evergreen-org-crawler/build/webhooks/github";
// handleGitHubWebhookPushEvents(accessToken: string, targetOrganisation: string, payload: any, useCachedData?: boolean): Promise<void>;
// handleGitHubWebhookRepositoryEvents(accessToken: string, targetOrganisation: string, payload: any, useCachedData?: boolean): Promise<void>;
await handleGitHubWebhookRepositoryEvents(
accessToken,
target_organisation,
{},
false
);
When called these functions update the cache internally.
Before you commit, please configure pre-commit with:
pre-commit install
Now, every time you commit, it will run hooks to fix various styling and linting problem.
pre-commit run --all-files
Please avoid doing this at all cost.
git commit -n -m "Your commit message"
The -n
allows you to skip git hooks.
.env
file
GH_TOKEN= GitHub token that has full repo scope
targetOrganisation= The target GitHub organisation to track
The token is needed to query GitHub API and access private repositories
Optional config.json
file
{
npmURL: optional, the URL to a specific npm host
pipURL: optional, the URL to a specific pip host
rubygemsURL: optional, the URL to a specific RubyGems host
}
Clone the repository with:
git clone https://github.com/ahm-monash/crawler
In the root directory for the project, run the following to install the necessary dependencies:
npm install
Setup a .env
file with the environment variables populated, the run the crawler with.
npm start
This will generate cachedData.json file which has a schema.
Run a single file only npm run test <PATHTOFILE>
Use the flag --onlyFailures
to only run failed tests in the previous execution npm run test --onlyFailures
"foo": "github:user/repo
"foo": "user/repo"
"foo": "fileSystemPath"
foo fileSystemPath
repository_import
events do not trigger update cache https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#repository_import
Contributions are most welcome!
Before opening a PR:
{name}/{description}
FAQs
[](https://github.com/ahm-monash/crawler/actions/workflows/main.yml)
The npm package evergreen-org-crawler receives a total of 0 weekly downloads. As such, evergreen-org-crawler popularity was classified as not popular.
We found that evergreen-org-crawler 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.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.