Skip to content
Releases

Releases

github.com • November 24, 2026

Fix UTF-16 msDFS-TargetListv2 decoding in DFS v2 discovery — Windows AD stores DFS v2 XML as UTF-16 with BOM; str(val) caused PyAsn1UnicodeDecodeError , now uses bytes(val) for auto-detection ( b5a62cc )

Fix FTP e2e test IOLoop race condition — two FTPServers sharing asyncore's global singleton caused flaky 503 errors under CI load ( bd80772 )

Complete mypy strict compliance across all modules ( 7ffdd39 , 258c9c0 )

Add base, AD, and SOCKS e2e suites to GitHub Actions CI ( 2116091 , 4533d5a )

Add Windows AD DC e2e test suite with lazy snapshot provisioning via winbox ( 67eee63 )

Add test-e2e-windows-ad Makefile target

Full diff: v1.7.0...v1.7.1

There was an error while loading. Please reload this page .

There was an error while loading. Please reload this page .

Sorry, something went wrong.

Sorry, something went wrong.

Sorry, something went wrong.

There was an error while loading. Please reload this page .

There was an error while loading. Please reload this page .

SCCM ContentLib deep scan — DataLib INI resolution to FileLib blobs, display_name plumbing, -root + subdirectory detection, --fast skips ContentLib ( f0d7c0b )

--netbios flag — override derived NetBIOS domain name for content rules ( b936507 )

DER private key detection — detect DER-encoded private keys (RSA, EC, encrypted), .key files get CHECK_FOR_KEYS ( b69d7a3 )

ContentLib -level detection + fast mode handling ( e883ece )

ADDiscovery now propagates auth errors instead of swallowing them ( 9b4d564 )

DC reprovisioning, testrunner Dockerfile unpins, SMB retry ( d5f111a )

Suppress typer click_type mypy overload false positives ( ad3e37b )

Replace click.Choice with StrEnum for CLI options ( 4ae367d )

Switch CI to uv lockfile, unpin deb build tools for Kali rolling ( 6ea5d88 , d169e45 )

Run all e2e tests against installed .deb package ( d485ca5 )

Add Windows VM e2e tests — 29 tests via winbox ( b4eb54b )

SCCM ContentLib test coverage: 38 unit + 9 Samba e2e + 11 Windows VM e2e

Hard AD tests: disabled account, lockout, NTLM blocked, timeout ( 19dd2b8 )

Scan-level integration tests against Samba AD DC ( f5670b1 )

Deduplicate SMB tests across backends ( 409bd0c )

Full diff: v1.6.1...v1.7.0

There was an error while loading. Please reload this page .

There was an error while loading. Please reload this page .

Sorry, something went wrong.

Sorry, something went wrong.

Sorry, something went wrong.

There was an error while loading. Please reload this page .

There was an error while loading. Please reload this page .

Kerberos TGS-REQ now works against Samba AD DCs ( 4dc41d1 )

LDAPTransport uses the correct destination IP ( 5765dc3 )

Pin typer below 0.29, which removed the click_type kwarg ( 30470ad )

Resolve mypy CI failures after the file pipeline refactor ( c3015a7 )

Minimum Python is now 3.11 (was 3.9). Python 3.9 and 3.10 are end-of-life. Standalone binaries and the Kali package are unaffected. ( c3015a7 )

File pipeline split into PipelineContext and smaller stages ( 9b7b33e )

CI: ruff, mypy, pip-audit, 85% coverage gate, unit tests on Python 3.11 and 3.14, GitHub Actions on Node 24

Binaries built with Python 3.14 and PyInstaller 6.22.3

Integration tests expanded: SMB edge cases and negative paths, FTP/FTPS, SOCKS4/SOCKS5, Kerberos negative paths

Full diff: v1.6.0...v1.6.1

There was an error while loading. Please reload this page .

There was an error while loading. Please reload this page .

Sorry, something went wrong.

Sorry, something went wrong.

Sorry, something went wrong.

There was an error while loading. Please reload this page .

There was an error while loading. Please reload this page .

--skip-binary / -I flag — skip content scanning for native compiled binaries (ELF, PE/MZ, Mach-O) detected by magic bytes. File name/extension rules, certificate checks, and archive peeks still apply. ( 0f97966 )

Web dashboard on results — snaffler results --web serves a completed scan DB through the live dashboard with CSV/JSON export, pagination, and rate indicators ( 957946f )

Tab title with finding count — browser tab shows (224) Snaffler Results for quick identification ( 5fc6db3 )

Permalink filter URLs — triage/rule/ filters are encoded in the URL for sharing ( 5fc6db3 )

Real Samba scan integration tests — Docker-based pipeline: build deb, install in Kali container, scan real Samba , test web dashboard with Playwright ( 8a374ff )

Real DNS + AD DC integration tests — Samba AD DC container with LDAP, SMB, Kerberos ( 416f2dd )

Real SMB integration tests — impacket SimpleSMBServer wire-protocol tests ( 53684e1 )

Unified Docker Compose test infra — separate samba, dc, and testrunner containers. Tests run scans via subprocess with whatever flags needed. No more --privileged for test runner. ( 0f97966 )

make test-all — runs unit + integration test suite ( 98103a6 )

rarfile is now a hard dependency — a security scanner should not silently skip archive formats ( 466f103 )

Split 5 large source files into submodules (max 300 lines logic) ( 5e7d51a , 5075d35 )

Split inline dashboard assets into static HTML/CSS/JS files ( 78d3218 , 399affa , 96bc9d9 , 84a2ed9 )

Docs split into docs/ directory ( 385cc72 )

Run integration tests as non-root user in Docker ( 15db9f6 )

Fix permission_denied test when running as root ( c87b759 )

Full diff: v1.5.13...v1.6.0

Full Changelog : v1.5.13...v1.6.0

There was an error while loading. Please reload this page .

There was an error while loading. Please reload this page .

Sorry, something went wrong.

Sorry, something went wrong.

Sorry, something went wrong.

There was an error while loading. Please reload this page .

There was an error while loading. Please reload this page .

Full Changelog : v1.5.12...v1.5.13

Full Changelog : v1.5.12...v1.5.13

There was an error while loading. Please reload this page .

There was an error while loading. Please reload this page .

Sorry, something went wrong.

Sorry, something went wrong.

Sorry, something went wrong.

There was an error while loading. Please reload this page .

There was an error while loading. Please reload this page .

🐛 Critical fix for fresh installs

If you installed snaffler-ng and hit Error: rule_dir does not exist: None (and a stray --web-port has no effect warning) — this release fixes it. Upgrade and you don't need --rule-dir ; the default rules are bundled.

CLI flag detection broken under newer typer/click (typer ≥0.26 / click ≥8.4). On a fresh install every option was treated as if it had been passed explicitly, which caused Error: rule_dir does not exist: None , a spurious --web-port has no effect without --web warning, and silent overriding of TOML config defaults — even when none of those flags were used. Root cause: ParameterSource was compared by enum identity across two different enum classes (click's DEFAULT = 5 vs the typer context's DEFAULT = 3), which are never equal, so the "was this flag explicitly set?" check always returned true. Now compared by name, robust across typer/click versions. (Fixes #2 )

Raised minimum typer to >=0.15.0 — the CLI does not parse arguments correctly on 0.12.x.

Full Changelog : v1.5.11...v1.5.12

There was an error while loading. Please reload this page .

There was an error while loading. Please reload this page .

Sorry, something went wrong.

Sorry, something went wrong.

Sorry, something went wrong.

There was an error while loading. Please reload this page .

There was an error while loading. Please reload this page .

NetBIOS and UPN Username Format Variants

The --domain-users dynamic content rule now generates three pattern variants per discovered username instead of just the bare sAMAccountName:

Config files frequently use fully-qualified usernames:

Previously, only the bare svc_backup pattern was generated, which would match the first example (via backslash delimiter) but miss the second (the @corp.local suffix made it a different token). Now all three formats are explicitly matched.

No new flags needed — the domain is automatically extracted from -d :

The NetBIOS short name is derived from the domain (e.g., corp.local → CORP ).

Without -d , behavior is unchanged (bare names only).

1000 users × 3 variants = 3000 alternation branches — compiles and matches instantly. Tested up to 200K bare users (the filtering step keeps the real list much smaller).

5 files changed , +153 / -7 lines

14 new tests (12 unit + 2 integration)

1308 tests , all passing

Full Changelog : v1.5.10...v1.5.11

There was an error while loading. Please reload this page .

There was an error while loading. Please reload this page .

Sorry, something went wrong.

Sorry, something went wrong.

Sorry, something went wrong.

There was an error while loading. Please reload this page .

There was an error while loading. Please reload this page .

Hard-Fail Enforcement

Silent fallbacks eliminated. Things either work as configured or fail with a clear error.

--nameserver failures no longer silently fall back to the system resolver. If your custom DNS server is down or misconfigured, resolution fails with a clear error instead of silently resolving via system DNS (which could return wrong IPs in split-brain DNS environments).

SQLite WAL mode failure now aborts with SystemExit . The entire threading model (BatchWriter, concurrent scanner threads) depends on WAL. Previously, WAL failure silently fell back to rollback journal mode, which would cause SQLITE_BUSY errors under concurrent access.

--web without Flask installed now aborts with install instructions:

Previously it logged a warning and continued without the dashboard.

Transport Error Propagation

SMB and FTP read() transport errors (timeout, connection reset, server crash) now raise instead of silently returning None . This means:

Files that couldn't be read due to transport errors are NOT marked as done in the resume DB

On resume, those files are retried instead of permanently skipped

Previously, a server going offline mid-scan would silently mark all its files as "checked" with no content — findings lost permanently

enumerate_shares() transport errors now raise instead of returning an empty list. Hosts with transient failures (timeout, connection reset) are NOT marked as done — they'll be retried on resume. Only permanent failures (access denied at RPC level) mark the host as done.

Log levels upgraded so operational failures are visible at default INFO level:

Version fallback : Updated from stale 1.5.6 to 1.5.10 — --version was lying on PyInstaller builds

FTP URL bug : --ftp ftp:// produced broken target "ftp:" — now validates hostname

TOML config typos : Unknown sections and keys now emit WARNING (previously silently ignored)

Numeric validation : --max-threads (≥3), --dns-threads (≥1), --max-read-bytes (>0), --max-depth (≥0)

Finding store failures : First DB write error now logs WARNING with repeat suppression (previously completely silent)

200K user regex scale test for --domain-users — compiles and matches in ~3 seconds

Updated accessor, pipeline, and tests for transport error propagation

1294 tests , all passing

19 files changed , +227 / -100 lines

Full Changelog : v1.5.9...v1.5.10

There was an error while loading. Please reload this page .

There was an error while loading. Please reload this page .

Sorry, something went wrong.

Sorry, something went wrong.

Sorry, something went wrong.

There was an error while loading. Please reload this page .

There was an error while loading. Please reload this page .

Dynamic Domain User Rules

New --domain-users flag that discovers interesting AD users and builds content rules to find their names in config files — the same feature as C# Snaffler's -u flag, but more efficient.

Queries LDAP for "interesting" users: service accounts (SPN), admins ( adminCount=1 ), accounts with PasswordDoesNotExpire , delegation flags, or names matching keywords

Builds a single alternation regex from all discovered usernames (much faster than C#'s per-user compiled regex approach)

Matches usernames surrounded by config-file delimiters ( = , : , quotes, whitespace, commas, backslashes)

Findings are reported at Red severity

Default keyword filter (expanded to match C# Snaffler)

sql , svc , service , backup , admin , ccm , scom , opsmgr , adcs , msol , adsync , thycotic , secretserver , cyberark , configmgr

Opt-in ( --domain-users ), not enabled by default

Requires -d (domain mode) — warns and skips otherwise

LDAP failure is non-fatal — scan continues without user rules

SOCKS proxy and custom DNS are applied before the LDAP query

Export/Import Compression

Export now always gzip-compresses output files. Import transparently decompresses (detects gzip magic bytes).

Significantly smaller files for transfer — typical scan DBs compress 3-5x.

Domain user rules (3)

NameError — logger was undefined in the injection code path (runtime crash)

f-string syntax incompatible with Python 3.9-3.11 ( f"{"|".join(...)}" is PEP 701, Python 3.12+ only)

--user-match keywords not lowered before comparison — user-supplied uppercase keywords would never match

_import_json overcounted imported findings — INSERT OR IGNORE never raises IntegrityError , so duplicates were counted. Fixed with cursor.rowcount

_decompress_to_temp leaked temp file on gzip decompression failure (corrupt file, disk full)

PRAGMAs ( page_size , journal_mode , etc.) were inside a with self.conn: transaction block — page_size was guaranteed to be a no-op. Moved outside the transaction

close() raised ProgrammingError on double-call. Now idempotent

11 files changed , +529 / -133 lines

2 new test files : domain user rule unit tests + integration tests

1291 tests , all passing

Full Changelog : v1.5.8...v1.5.9

There was an error while loading. Please reload this page .

There was an error while loading. Please reload this page .

Sorry, something went wrong.

Sorry, something went wrong.

Sorry, something went wrong.

There was an error while loading. Please reload this page .

There was an error while loading. Please reload this page .

Performance (Large AD Environments)

Designed for domains with 70K+ computers, 10K+ shares, and millions of files.

Page size : 8KB (was 4KB) — fewer I/O operations per read

Cache : 64MB (was 2MB) — dramatically fewer disk reads on large tables

Memory-mapped I/O : 256MB mmap — faster reads on large state DBs

Partial indexes : WHERE checked=0 , WHERE walked=0 , WHERE done=0 — resume queries that were full table scans are now index lookups. At 10M files, this turns a multi-second query into milliseconds.

Batch File-Checked Marks

mark_file_checked() used to do INSERT + UPDATE + COMMIT per file (each acquiring a global lock). Now batched through the _BatchWriter daemon thread — one transaction per batch of up to 500 files. Massively reduces SQLite lock contention with 60 scanner threads.

The in-memory _checked_files set (used for O(1) "should I skip this file?" checks) has been replaced with a bloom filter. For 10 million files:

Before : 2-8 GB RAM (Python set of path strings)

After : ~12 MB (bloom filter bitarray)

Zero false negatives guaranteed. 1% false positive rate — false positives fall through to a single-row DB point query. Startup time also improved since bloom seeding streams from DB in batches instead of loading everything at once.

iter_unchecked_files() is now a generator with LIMIT/OFFSET pagination. On resume with millions of unchecked files, it never loads the full list into memory — files are yielded in batches of 10K.

WAL Checkpoint on Close

PRAGMA wal_checkpoint(TRUNCATE) runs on every close() . The .db file is now fully self-contained — no -wal or -shm sidecar files needed. You can now safely copy/ the .db file directly.

Combine results from multiple scans (different creds, different operators, different scope):

Deduplicates by finding ID, computer name, and path. Creates the target DB automatically if it doesn't exist.

FileResult.match_haystack() method now used by both _filter_result() and _apply_filters()

Late imports in shares.py moved to module level (called per- , was importing inside the method)

README.md : Added export/import examples, fast mode, performance tuning, custom rules, bulk download, progressive deepening, rule stats

CLAUDE.md : Full architecture refresh reflecting all v1.5.7 + v1.5.8 changes

16 files changed , +2331 / -134 lines

5 new files : utils/bloom.py , test_results_export.py , test_large_scale.py , test_perf.py , test_bloom.py

1266 tests , all passing (+83 new)

Full Changelog : v1.5.7...v1.5.8

There was an error while loading. Please reload this page .

There was an error while loading. Please reload this page .

Extracted Entities