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.
fuselage is a simple and fast idempotent configuration bundle builder and runtime.
To use fuselage:
Should you use fuselage? Probably not. But if you are wondering why:
import paramiko
from fuselage.bundle import ResourceBundle
from fuselage.resources import *
from fuselage.ssh import execute_via_ssh
bundle = ResourceBundle()
bundle.add(File(
name="/tmp/hello.txt",
contents="A test file!!",
))
transport = paramiko.Transport(("localhost", 22))
transport.connect(
username="john",
password="my super sekrit password",
)
# Compile the bundle, scp it to target server, execute it via sudo
execute_via_ssh(
transport,
bundle,
"root",
sudo_password="my super sekrit password"
)
You will need to install fabric explicitly. Fuselage does not depend on fabric.
You can write simple deployment scripts with Fabric by adding this to your fabfile:
from fuselage.fabric import blueprint
from fuselage.resources import *
@blueprint
def minecraft(bundle):
yield Directory(
name='/var/local/minecraft',
)
yield Execute(
command='wget https://s3.amazonaws.com/Minecraft.Download/versions/1.8/minecraft_server.1.8.jar',
cwd="/var/local/minecraft",
creates="/var/local/minecraft/minecraft_server.1.8.jar",
)
yield File(
name='/var/local/minecraft/server.properties',
contents=open('var_local_minecraft_server.properties').read(),
)
yield File(
name="/etc/systemd/system/minecraft.service",
contents=open("etc_systemd_system_minecraft.service"),
)
yield Execute(
command="systemctl daemon-reload",
watches=['/etc/systemd/system/minecraft.service'],
)
yield Execute(
command="systemctl restart minecraft.service",
watches=[
"/var/local/minecraft/server.properties",
"/etc/systemd/system/minecraft.service",
]
)
And then run it against multiple servers::
fab -H server1,server2,server3 minecraft
FAQs
Orchestration and configuration management in Python
We found that fuselage demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 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.
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.