
Research
Supply Chain Attack on Axios Pulls Malicious Dependency from npm
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.
eslint-plugin-directory-mirror
Advanced tools
An ESLint rule for mirroring directory structures.
Use cases:
Execute the following command within your project's root directory:
npm i --save-dev eslint-plugin-directory-mirror
Add directory-mirror to the plugins section of your .eslintrc file:
{
plugins: ["directory-mirror"],
}
There is only one rule within this plugin also named directory-mirror.
This rule has one configuration option which you can use to specify the directories that should be mirrored. Let's use an example to understand the option:
{
rules: {
"directory-mirror/directory-mirror": [
"error",
{
"mirrors": [
{ forEach: { dir: "test", ext: ".test.ts", recursive: true }, require: { dir: "src", ext: ".ts" } },
{ forEach: { dir: "src", ext: ".ts", recursive: true }, require: { dir: "test", ext: ".test.ts" } },
],
},
],
},
}
The option has a mirrors array with objects describing the mirrored directories.
Read the object like this: forEach of these files require in the directory dir a file with the extension ext
and the same name (without extension and including sub directory).
For the example above this means:
.test.ts in the test folder there has to be a corresponding
source file with the extension .ts in the src folder..ts in the src folder there has to be a corresponding
test file with the extension .test.ts in the test folder.FAQs
An ESLint rule for mirroring directory structures.
The npm package eslint-plugin-directory-mirror receives a total of 191 weekly downloads. As such, eslint-plugin-directory-mirror popularity was classified as not popular.
We found that eslint-plugin-directory-mirror 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
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.

Security News
TeamPCP is partnering with ransomware group Vect to turn open source supply chain attacks on tools like Trivy and LiteLLM into large-scale ransomware operations.