0-day malware detection for binaries, source & scripts (that doesn't suck)
Atomdrift Scan is a modern ML-based malware scanner designed to detect 0-day attacks against the software supply-chain.
It's designed to be fast, flexible, and embeddable in any workflow or security tool you have in mind, and can operate against files, archives, URLs, PURLs, or processes. For a given rules version, a verdict is deterministic.
Rather than waiting for someone to report a sample and publish its signature or hash, Atomdrift Scan judges never-before-seen code by what it does. See how it compares with other scanners.
How does Atomdrift get such great results? First, it covers more ground than any other scanner:
Most importantly, rules are constantly refreshed using reinforcement learning against new samples, blogs, and technical articles, resulting in ~1000 updated rules daily.
If you are on a UNIX-flavored host (macOS, Linux, BSD, illumos, Android):
curl -fsSL https://install.atomdrift.org/scan.sh | sh
If you are on Windows:
irm https://install.atomdrift.org/scan.ps1 | iex
Or, if you have Rust installed and just want to build it from source:
make install
If deeper binary analysis is required, you should also install 7-Zip, upx, and innoextract.
On Windows, using winget:
winget install --exact --id 7zip.7zip
winget install --exact --id UPX.UPX
winget install --exact --id dscharrer.innoextract
On Unix-like systems, install upstream 7-Zip (brew install sevenzip, apt install 7zip) rather than p7zip — its 7z cannot read APFS, so .dmg contents go unscanned.
# Scan a file, directory, or archive recursively:
atomscan ./project
atomscan release.tgz
# Fetch a package from its registry and scan it.
atomscan purl npm/[email protected]
# Fetch and scan a URL.
atomscan url https://example.com/download
# EXPERIMENTAL: Scan running process executables, or triage the wider host
atomscan ps
atomscan sys
# JSON output for programmatic access
atomscan -f json ./project
Exit codes make CI integration trivial:
0: all samples are benign1: hostile sample detected2: suspicious sample detected3: analysis error4: the rule set was incomplete — the scan ran with fewer rules than the
trait set defines, so anything short of hostile proves nothing. Re-run it.130: interrupted (Ctrl-C) before every file was analyzed
atomscan will never send telemetry data. It will however reach out to the Internet for 4 reasons:
--no-updateSCAN_NO_UPDATE_CHECK=1--follow=none to analyze only the requested artifact.api.atomdrift.org about the SHA-256 of each local file of 1 MiB or more, each known-bad, sighted, suspicious or hostile file, and each downloaded dependency, and about the PURLs of packages on mainstream public registries. A sighted file takes the worse of the two verdicts; another flagged file takes Uplink's only if it is newer than the installed traits. No account is needed and nothing identifying is sent: never a path, a file name, a URL or a file's contents. Off by default when the traits are a git checkout. Disable with --uplink=false or ATOMDRIFT_UPLINK=false, which is also the reproducible mode. --uplink=always uploads files for analysis and needs a paid plan.Downloaded dependencies are analyzed under the current rules unless a local analysis report or a matching-analyzer corpus verdict can be reused. A recent clean verdict from another analyzer does not replace analysis of downloaded bytes. Package-coordinate lookups may still use that recent clean verdict to avoid downloading an already-known dependency.
Use -l to choose a pool-adjusted false-positive level:
-l0: zero observed calibration FPs; the strictest setting.-l1: one FP in the benign calibration pool.-l25: the default; one FP plus an estimated additional 24 per 100 million
benign files (approximately “one plus 25 per 100 million”).-l1000: one FP plus an estimated additional 999 per 100 million benign files.For a pool of N benign files, L0 allows zero observed false positives. Every positive level L has a continuous allowance of 1 + (L - 1) * N / 100_000_000; an integer FP-count budget rounds this down. L1 allows one FP. L25 means one FP plus an estimated additional 24 per 100 million benign files (approximately “one plus 25 per 100 million”). The initial FP belongs to the decision pool, not to each component model or each scan invocation.
These are calibration targets, not guaranteed future rates. Small pools need interpolation or extrapolation to estimate finer rate differences; observed counts, estimated rates, and uncertainty must remain separate. L0 means zero observed calibration FPs, not zero future risk.
The shared definition is in Collimator’s level contract.
For additional interpretation, users can provide access to an LLM via the --llm flag. This flag serves two purposes:
By default, atomscan sends the interpreted evidence (not the original file) to http://localhost:8000/v1 - to be used with a local service like Ollama or vLLM; but it can also be setup to use a remote service like Claude, ChatGPT, or DeepSeek.
No model is hardcoded: unless you pass --llm-model, atomscan asks the endpoint which models it serves and uses the largest one it lists. We recommend serving Qwen/Qwen3.8-27B.
If the endpoint requires a bearer token, put it in ~/.tok/llm (mode 0600) and atomscan sends it automatically; SCAN_LLM_KEY overrides that file.