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.
@dailyraisin/gulp-xslt
Advanced tools
XSL transformation plugin for gulp
example.xml
<?xml version="1.0" encoding="utf-8"?>
<foo>
<bar attr="value">baz</bar>
<bar>qux</bar>
</foo>
template.xsl
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:param name="someVariable">defaultValue</xsl:param>
<xsl:param name="anotherVariable"/>
<xsl:template match="foo">
<output>
<xsl:attribute name="attr">
<xsl:value-of select="$someVariable"/>
</xsl:attribute>
<xsl:apply-templates select="$anotherVariable"/>
</output>
</xsl:template>
<xsl:template match="bar">
<xsl:copy-of select="."/>
</xsl:template>
<xsl:output method="xml" encoding="utf-8" indent="yes"/>
</xsl:stylesheet>
task.js
var gulp = require('gulp');
var xslt = require('gulp-xslt');
gulp.task('xsl', function() {
gulp.src('./example.xml')
.pipe(xslt('./template.xsl', {
someVariable: '"someValue"', // string
anotherVariable: '/foo/bar[@attr]' // xpath that will be evaluated
}))
.pipe(gulp.dest('./build/'));
});
Will produce: ./build/example.xml
<?xml version="1.0" encoding="utf-8"?>
<output attr="someValue">
<bar attr="value">baz</bar>
</output>
FAQs
XSLT transformation plugin for gulp
We found that @dailyraisin/gulp-xslt 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.