Skip to content

0.3.0

Latest

Choose a tag to compare

@0xNyk 0xNyk released this 31 Oct 13:26
· 7 commits to main since this release
v0.3.0
6828481
  • No more | grep -q under pipefail, in detectors or tests. Every script and test
    runs with pipefail, and 43 places piped echo / printf into grep -q. grep -q exits
    on its first match; when the producer still had bytes to write it died of SIGPIPE, the
    pipeline returned 141, and a match read as a miss. In the tests that was an intermittent
    failure under load. In runtime-audit.sh it was a silent false negative: a dropper whose
    command line was longer than one write buffer, which a padded base64 blob easily is, could
    pass the exec-sink and encoder checks. All of them now use here-strings, and a fixture
    runs the dropper shape on a 200 KB command line.

  • ioc: the three campaigns published since the list was last updated, and two checks for
    the mechanisms behind them.
    Indicators for the fake job-interview Tailwind / Animate.css
    plugin set (29 packages plus the two private scoped payloads they require), MALFEX
    (function-flag, function-color, the Overlord and stealer loaders), the Downloads-folder
    AGENTS.md / CLAUDE.md lure that talks a coding agent into installing them, and the
    developer-tooling malware advisories of 27–30 October (@atlisp/mcp, @zaip-ai/cli,
    dsh-*, itsa-*, camelotlabs, numprint, trajmetrics, log-utils-sdk). Two new
    shapes: AGENT-API-REDIRECT, an API base-URL key in a repository .claude settings env
    or .codex/config.toml (at home a finding only for plain-http or IP targets, otherwise the
    agent-api-url note), because a redirected endpoint receives the session token and can
    answer with tool calls; and NPMRC-TOKEN, a working-tree .npmrc whose _authToken is a
    literal, which is what the Tailwind lure needs to resolve its private payload. Both print
    the path, never the value. ~/.codex/config.toml joins the home shape checks and the hash
    baseline, so the first run after upgrading reports it as AGENT-CONFIG-NEW once. The npm
    lockfile walk now happens once and is shared by the lookalike and compromised-release
    checks instead of once per version indicator. Ten new fixture assertions, positive and
    negative, including that neither the token nor the URL is ever printed. Two precision
    fixes from the first live run: a Mach-O bundle or dylib in tmp (an Electron app's unpacked
    native addon) is the tmp-macho-library note rather than TMP-MACHO, which now requires
    an executable or fat header; and Codex [projects."<path>"] trust tables are dropped
    before the fetch-and-exec grep, so a trusted scratch project under /tmp does not fire.
    Every temporary list now lives in one private work directory that a trap removes on
    exit, Ctrl-C or kill, so an interrupted sweep no longer leaves files in tmp; a fixture
    sends TERM mid-run and checks.

  • ioc (ioc-sweep.sh + ioc-indicators.txt) — read-only on-disk sweep against
    published indicators for the campaigns that targeted developer machines through
    October 2026. runtime sees processes; this sees what is installed and dormant.
    Families: Contagious Interview host artefacts and npm lookalikes; Shai-Hulud 2.0
    loaders anywhere including package caches; GlassWorm invisible-Unicode in IDE
    extensions; ClickFix lure shapes in recent shell history (pattern name and host only,
    never the command); the "auth error" config dropper (environment-variable decode
    feeding an exec sink in the same file); compromised npm releases by exact version
    (axios 1.14.1 / 0.30.4, tensorlake 0.5.144, @subql/common 5.8.3) and malicious
    packages (Apex / REF8801, agentenact, plain-crypto-js); ChainDrop / TeamPCP / Nx
    Console / CanisterWorm / Trivy loader paths and tmp staging; GitHub Actions whose tags
    were hijacked (actions-cool/*, codfish/semantic-release-action, aquasecurity/trivy-action)
    whenever a workflow uses them by anything other than a full commit SHA, plus
    GhostAction workflow names; PyPI (Hades, lightning 2.6.2 / 2.6.3, litellm 1.107.0, the
    *-setup.pth startup hook); crates.io (Rustbot crates, hijacked arrayref / internment /
    append-only-vec); and agent / IDE config injection — folderOpen tasks, SessionStart
    / UserPromptSubmit hooks or fetch-and-exec shapes in repository .claude / .cursor
    / .codex settings and MCP configs, and a hash baseline of the home agent configs
    with --accept-config to re-record after a deliberate change. Three-state exit like
    runtime: 0 clean, 1 findings, 2 BLIND. Indicator kinds are documented in the
    file header so a new campaign is a one-line append.

    Precision notes from development: permission allowlists that merely name curl or
    python3 -c are not hooks, so the hooks check inspects only the hooks object;
    Math_*.js is a real file in regenerate-unicode-properties, so the ChainDrop filename
    rule is exempt inside package stores; and per-indicator $HOME walks were collapsed
    into single walks, which cut a full run over a large workspace from well over an hour to
    minutes. Each fix has a neighbouring clean fixture. Runs under macOS /bin/bash 3.2 on
    an empty workspace (empty-array expansions are guarded; a crash would have exited 1,
    which reads exactly like a finding), covered by a fixture that runs the system bash.

  • ioc: the engineering-side limits are fixed. Rogue-workflow filename tokens match
    the basename only (a comment naming security-audit.yml no longer fires). Every
    third-party Action used by tag or branch is reported as a note with its file, or as
    UNPINNED-ACTION findings under --strict-actions, because the known-hijacked list is
    always one publication behind a full-SHA pin. Home agent configs are shape-checked on
    every run (HOME-AGENT-HOOK, HOME-MCP-CONFIG) so the hash baseline cannot bless a
    fetch-and-exec entry present on the first run. A config that does not parse is
    AGENT-CONFIG-UNPARSEABLE, and a machine without python3 gets AGENT-CONFIG-UNCHECKED
    instead of a silent pass. tmp executables now cover ELF (TMP-ELF) and scripts whose
    body carries a stager shape (TMP-SCRIPT; a plain script is a note). Workspace walks
    share one --depth (default 8) instead of five different hardcoded depths, and
    --timing prints per-section seconds. Notes go to ioc-sweep-notes.txt. Seven new
    fixtures, positive and negative. The sweep no longer runs under macOS background QoS:
    taskpolicy -b throttles IO and pins to efficiency cores, which turned a ten-minute
    run into forty; it now runs at plain low CPU priority, and the hijacked-action check
    reads each workflow once instead of once per indicator.

  • The scheduler test no longer assumes launchd. Its interval read-back check planted
    a LaunchAgent plist and expected --status to read it, which only holds on macOS; on
    Linux the installer reads a systemd timer or the user's real crontab, which a test must
    never write. The check now runs on Darwin only and says so, and the whole suite passes
    on Ubuntu 24.04 as a non-root user.

Full checks: bash tests/run-all.sh (11 suites, offline). Release gate: RELEASE.md.