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.
violation-reporter
Advanced tools
Generate a generic violation report from whatever tool you like and optionally generate a standard XML report.
var MultiReporter = require('violation-reporter')(grunt);
var XMLReporter = require('violation-reporter/tasks/XML')(grunt);
var checkstyleReporter = require('violation-reporter/tasks/checkstyleXML')(grunt, XMLReporter);
// create a new reporter and add checkstyle formatting
var reporter = new MultiReporter(files, options);
reporter.addReporter(checkstyleReporter);
// create a new violation, from whatever data you like
violations.push({
filepath: file,
line: 0,
column: 0,
name: key,
rule: key,
severity: severity,
message: 'Too many',
ratio: ratio,
value: metrics[key] + ' ('+ options.analyzecss[key] + ')'
});
// register the violation with the reporter
reporter.violations(file, violations);
Real-world examples can be found in (grunt-css-analysis) and (grunt-complexity-report)
Jenkins has plugins to report on violations from a number of standard tools. There are many tools that are used to generate errors and issues, in a huge range of formats. Violation-reporter is designed as a way to take this data and transform it into one of the available standards. Generally intended to be run from grunt or another build tool.
It currently only outputs to console, checkstyle and PMD format, but would be easy to extend to other XML formats.
npm install violation-reporter
Stuart Campbell (campbes)
Released under the MIT License
FAQs
Genrate violation reports in various formats
The npm package violation-reporter receives a total of 2 weekly downloads. As such, violation-reporter popularity was classified as not popular.
We found that violation-reporter 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
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.