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.
fleet-templater
Advanced tools
Fleet Templater is a simple program that will process Fleet unit files through a templating system.
In other words, you can take a file named myservice-{{env}}.service
which
contains the following content:
[Unit]
Description=myservice-{{env}}
Requires=docker.service
After=docker.service
[Service]
TimeoutStartSec=0
ExecStartPre=-/usr/bin/docker kill %p-%i
ExecStartPre=-/usr/bin/docker rm %p-%i
ExecStartPre=/usr/bin/docker pull myservice:{{env}}
ExecStart=/usr/bin/docker run -e ENV={{env}} myservice:{{env}}
ExecStop=/usr/bin/docker kill %p-%i
and then process it with env=production to produce myservice-production.service
containing the following completed data:
[Unit]
Description=myservice-production
Requires=docker.service
After=docker.service
[Service]
TimeoutStartSec=0
ExecStartPre=-/usr/bin/docker kill %p-%i
ExecStartPre=-/usr/bin/docker rm %p-%i
ExecStartPre=/usr/bin/docker pull myservice:production
ExecStart=/usr/bin/docker run -e ENV=production myservice:production
ExecStop=/usr/bin/docker kill %p-%i
npm install -g node-templater
node-templater --help
node-templater test.service ./ myval=thing
docker pull yodlr/fleet-templater
docker run --rm -ti -v ${PWD}:/tmp fleet-templater /tmp/test.service /tmp/ myval=thing
FAQs
Fleet unit-file templating system
The npm package fleet-templater receives a total of 3 weekly downloads. As such, fleet-templater popularity was classified as not popular.
We found that fleet-templater 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.