
Research
SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains
An emerging npm supply chain attack that infects repos, steals CI secrets, and targets developer AI toolchains for further compromise.
optibot
Advanced tools
Create splinters like this
{{ optiid("splinter1") }}
{{ optitask("model") }}
{{ optitask("train") }}
{{ optitask("classification") }}
{{ optiimport("from sklearn.ensemble import RandomForestClassifier")}}
{{ optivar("model")}}
{{ optivar("X")}}
{{ optivar("y")}}
{{ optiparam("n_estimators", "int", min=0, max=100) }}
{{ optiparam("random_state", "int", min=0, max=40000) }}
---
# Train a Lasso model with alpha=0.1
{{model}} = RandomForestClassifier(n_estimators={{n_estimators}}, random_state={{random_state}})
{{model}}.fit({{X}}, {{y}})
Use them in scripts templates like this
import numpy as np
{{ imports() }}
# Load data from CSV file using NumPy
data = np.loadtxt("data.csv", delimiter=",")
# Split the data into features (X) and labels (y)
features = data[:, :-1]
labels = data[:, -1]
# Train a classifier
{{ splinter("train", "model.train.classification", X="features", y="labels", model="clf") }}
# Test the trained classifier
score = clf.score(features, labels)
print("Accuracy: {:.2f}%".format(score * 100))
Generate random scripts with them
from src.optibot.core.optibot import OptiBot
bot = OptiBot()
bot.preload_splinters_from_path("./templates/splinters/*")
bot.preload_templates_from_path("./templates/scripts/*")
bot.compile()
for x in range(10):
subject = list(bot.generate_script())
with open(f"subject_{x + 1}.py", "w") as fp:
fp.write(bot.render("simple.jinja", subject))
FAQs
A splinters to scripts generator
We found that optibot demonstrated a healthy version release cadence and project activity because the last version was released less than 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
An emerging npm supply chain attack that infects repos, steals CI secrets, and targets developer AI toolchains for further compromise.

Company News
Socket is proud to join the OpenJS Foundation as a Silver Member, deepening our commitment to the long-term health and security of the JavaScript ecosystem.

Security News
npm now links to Socket's security analysis on every package page. Here's what you'll find when you click through.