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.
@microsoft/eslint-formatter-sarif
Advanced tools
ESLint formatter for the SARIF (Static Analysis Results Interchange Format) v2.1.0 file format
eslint-formatter-sarif
is a formatter for ESLint that produces output in the SARIF (Static Analysis Results Interchange Format) v2.1.0 format.
It is available as an npm module @microsoft/eslint-formatter-sarif.
To install ESLint, follow the instructions at Getting Started with ESLint.
To install the ESLint SARIF formatter:
npm install @microsoft/eslint-formatter-sarif --save-dev
To run ESLint with the SARIF formatter:
./node-modules/.bin/eslint -f @microsoft/eslint-formatter-sarif -o yourfile.sarif yourfile.js
Note that you cannot use the abbreviated form -f sarif
, because that only works when the npm module name is of the form eslint-formatter-example
, and the ESLint SARIF formatter module is not eslint-formatter-sarif
; it's @microsoft/eslint-formatter-sarif
. Alternatively, you can use the form -f @microsoft/sarif
.
To embed the contents of the analyzed source files in the resulting SARIF file:
set SARIF_ESLINT_EMBED=true
To disable content embedding:
set SARIF_ESLINT_EMBED=
To run unit tests:
RunTests.cmd
FAQs
ESLint formatter for the SARIF (Static Analysis Results Interchange Format) v2.1.0 file format
The npm package @microsoft/eslint-formatter-sarif receives a total of 81,296 weekly downloads. As such, @microsoft/eslint-formatter-sarif popularity was classified as popular.
We found that @microsoft/eslint-formatter-sarif 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.
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.