34 KiB
34 KiB
Changelog
All notable changes to the Elysium project are documented in this file.
Starting with v2.2.0, Elysium uses a unified project version. All scripts, settings templates, and documentation share the same version number so operators can verify consistency at a glance. Releases prior to v2.2.0 used per-script versioning; those entries are preserved below under their original dates.
[2.5.0] — 2026-11-06
Added
Elysium.ps1menu: navigate with Up/Down + Enter, or still type a number directly; Esc/Q exits. Falls back to the old plain numbered prompt when input is redirected or the host has no real console. The keypress logic (Resolve-ElysiumMenuKeyPress) is a separate, Pester-tested function.
Changed
- KHDB backups: the previous
khdb.txtis now moved aside instead of copied (instant instead of minutes for a 40+ GB file), and only the newest one is kept.KhdbBackupCountinElysiumSettings.txtsets how many (default 1,0= none; was a fixed 5).
Fixed
- Replication pre-check crashed on some hosts: the SID pre-check cast every
tokenGroupsentry tobyte[], which fails when the ActiveDirectory module already returnsSecurityIdentifierobjects ("Cannot convert ... to System.Byte[]"), so the check was skipped with a warning instead of running. Both return shapes are now handled. - Rebuild skipped when it shouldn't be: the skip check only compared the manifest hash in
khdb-build.sha256; it never verifiedkhdb.txton disk still matched what that hash was recorded for.khdb.txtis tracked in git while the shard cache and the marker are not, so anything that replacedkhdb.txt's content without touching the manifest or shards (agit checkout/pullamong them) left the updater trusting a stale marker and keeping the wrong file. The marker now also records the built file's size, and both must match to skip. - A stale compiled type failed with a confusing error:
Add-Typecannot redefine a type an older build of a script already loaded into the session, so after updating the module files in a long-lived PowerShell window,Resolve-DSInternalsWeakHashFilecould fail with "does not contain a method named 'Inspect'" instead of a clear message. It now checks for the newest method and tells the operator to start a new session. - A download that closed before its advertised length was accepted as complete:
HttpClient's async read returns once headers arrive, so a connection that closed early left a short file without throwing. The written length is now compared againstContent-Lengthand a mismatch is retried like any other transient failure. - The tracked sample
khdb.txtwas not sorted, was mixed case, and had a duplicate - present since the first commit, and it failed the repo's own validator. Harmless once a real KHDB is downloaded, but runningTest-WeakADPasswordsbefore the firstUpdate-KHDBhit "not sorted alphabetically at line 4". - Typo in the DCSync diagnostic dump header ("ELYSLUM").
Test-WeakADPasswordsspent hours checking the KHDB before testing:Resolve-DSInternalsWeakHashFilevalidated the whole file with a per-line PowerShell loop, the same pattern that made the KHDB rebuild take hours. It now uses the compiled checker (Elysium.KhdbText.Inspect/WriteNormalized): one pass over a clean KHDB (about 1.6 s per 5 million hashes on pwsh 7) and no temporary copy. Files with blank or whitespace-padded lines are now normalized too; before, they were passed to DSInternals unchanged.- KHDB rebuild took hours (or days) on Windows PowerShell 5.1: the merged
khdb.txtwas built and validated with PowerShell code per hash line - a function call, a regex, a split and an uppercase conversion for every line, then a second regex pass to validate. Full-size KHDBs have hundreds of millions of lines. The merge and the validation now run in a small compiled class (Elysium.KhdbMerger/Elysium.KhdbText, built withAdd-Typeon 5.1 and 7, no extra install) with the same rules. 5 million hashes merge in about 4 s on pwsh 7; the 5.1 timing is still to be measured. The rebuild also prints progress per shard. - Unchanged KHDB is no longer rebuilt: if the manifest is identical to the last successful build, no shard was downloaded or removed, and
khdb.txtexists, the update keeps the current file. Thekhdb-build.sha256marker is written only after a successful build. - Security: the KHDB updater joined shard names from the downloaded manifest straight onto local paths, so a tampered manifest (for example from a compromised KHDB bucket) could name a shard
../../somethingand have a file of its choosing written outside the shard directory - including over Elysium's own scripts on the admin host the tool runs on. Manifest validation now rejects shard names that are rooted, contain..segments, or contain:(Windows drive-relative paths, NTFS alternate data streams), before anything is downloaded. README.mdswapped the menu numbers for Lithnet (documented as 5) and Uninstall (documented as 4), andUninstall.ps1had no confirmation, so an operator following the README to update the Lithnet store recursively deleted the whole install directory, reports included. The README and theElysium.ps1help block now match the menu, andUninstall.ps1requires typingYES(or-Forcefor unattended use).decrypt.pycould not decrypt any current export: it did not recognizeELY2(so v2.4.6 files fell through to the legacy branch), and itsELY1branch used pycryptodome's default PBKDF2 PRF (HMAC-SHA1) whileExtract-NTHashes.ps1has always used HMAC-SHA256. It now readsELY2(verifying the HMAC before decrypting),ELY1, and the legacy format; encodes the passphrase as UTF-8 to match .NET; prompts for the passphrase without echo; refuses input that does not end in.encinstead of overwriting it; and exits non-zero on failure. Newtests/test_decrypt.pyround-trips through the real PowerShell encryptor.Test-WeakADPasswords.ps1did not relaunch under Windows PowerShell likeExtract-NTHashes.ps1does, so a direct run underpwshloaded DSInternals through-UseWindowsPowerShellimplicit remoting, which returns deserialized objects. It also set the PSGallery repository toTrustedon the host as a side effect of installing DSInternals; that is removed (-Forceon the install already covers the prompt).Update-LithnetStore.ps1ignoredInstallationPath/WeakPasswordsDatabaseand always looked forkhdb.txtnext to the script; it now resolves the same KHDB path as the other scripts. It also writes a transcript toReports/logs/like the other operational scripts and uses the shared settings parser instead of its own copy.- The
Restart-WithPwshIfAvailable/Restart-WithWindowsPowerShellIfAvailablerelaunchers inElysium.Common.ps1relaunchedElysium.Common.ps1itself instead of the calling script ($PSCommandPathinside a function is the file that defines it), then exited. Whenever a relaunch fired, the script silently did nothing:Update-KHDB.ps1,Prepare-KHDBStorage.ps1,Update-LithnetStore.ps1andUninstall.ps1started from Windows PowerShell on a host withpwshinstalled (including menu options 1, 4 and 5), andExtract-NTHashes.ps1/Test-WeakADPasswords.ps1started directly frompwsh. They now relaunch the calling script with its parameters. Update-KHDB.ps1 -MaxParallelTransfers N, as documented in the README, was silently ignored: the script had noparam()block, so the value never reached the downloader and PowerShell 7 always used 5 concurrent transfers. The script now declares and forwards the parameter (values outside 1-64 are rejected).Update-LithnetStore.ps1failed on every run right after opening the store: it called.ToArray()on itsHashSet[string]source lists, butToArrayis a LINQ extension method that PowerShell cannot see, so PowerShell applied it to each string in the set and threw. The hash list always has at least one entry (configured sources or the default KHDB), so no list was ever imported. The lists are now enumerated through the pipeline.Prepare-KHDBStorage.ps1(nowtools/) always leftinvalid-hashes.txtempty, although its summary said invalid lines were saved there: the writer was created inside a scriptblock invoked with&, so the assignment stayed in that child scope and every write was skipped. Each invalid line also opened another undisposed writer on the same file, which on Windows is expected to fail with a sharing violation from the second invalid line on. The writer is now held in a shared hashtable.
Added
-DomainonTest-WeakADPasswords.ps1/Extract-NTHashes.ps1and-Domain/-CredentialonTest-ElysiumPasswordQuality/Send-ElysiumHashExport, so runs can skip the domain and credential prompts (unattended runs call the cmdlets with a credential). Omitted, both prompt as before. Domain selection is shared (Select-ElysiumDomain); an unknown name lists the configured domains, and a domain without a DC now fails before credentials are requested in the export too.- JSON report next to the text report (
<domain>_WeakPasswordReport_<timestamp>.json): every non-empty password-quality check with its accounts and UPNs, duplicate-password groups kept grouped, plus domain, DC, version and accounts tested.Test-ElysiumPasswordQualityreturns a summary object (domain, accounts tested, finding counts per check, report paths).
Changed
- UPNs in the weak-password report come from the accounts already replicated for the test instead of one
Get-ADUserLDAP query per dictionary hit (Get-UserUPNremoved). - No more pwsh relaunch: with downloads concurrent on Windows PowerShell 5.1,
Update-KHDB.ps1,Update-LithnetStore.ps1andUninstall.ps1simply run in whichever PowerShell starts them. Only the two AD wrappers (Test-WeakADPasswords.ps1,Extract-NTHashes.ps1) still relaunch, into Windows PowerShell.Elysium.Common.ps1is gone; those two wrappers dot-sourcesrc/Elysium/Private/Relaunch.ps1directly. - Client storage layer (one HTTP path): KHDB downloads and the hash-export upload now share
Get-StorageConfig/Invoke-StorageDownload/Invoke-StorageUpload. Shard downloads run concurrently on Windows PowerShell 5.1 as well as 7 (a runspace pool that imports the module, replacingForEach-Object -Parallelplus function text injected withInvoke-Expression). The hash export is one PUT that the storage service verifies against a digest sent with it (AzureContent-MD5, S3 SigV4-signed SHA-256), instead of downloading the blob back - so upload credentials need write access only. Removed: the AWS Tools and Az.Storage code paths and thes3UseAwsToolssetting (now ignored), the Az.Storage container probe (which needed list rights), and per-8 KBWrite-Progresscalls during downloads. Downloads now fail at once on non-transient HTTP errors (403/404) instead of retrying for ~30 s, storage settings are validated before the hash export replicates anything, ands3Regiondefaults tous-east-1for KHDB downloads too (previously signed with an empty region). - Provider workflow (breaking):
tools/Prepare-KHDBStorage.ps1now only builds the KHDB package (shards,manifest.json,khdb-clean.txt,invalid-hashes.txt) and is fully standalone - no Elysium settings, credentials or shared code, runs on any OS withpwsh. Its built-in Azure/S3 upload,-UploadOnly,-SkipUpload,-MaxParallelTransfers,-SettingsPathand the storage parameters are gone (about 420 lines). Upload with the storage provider's CLI (aws s3/rcloneorazcopy), shards first and manifest last; the README has the commands. - Elysium is becoming a PowerShell module (
src/Elysium). The manifest'sModuleVersionis now the only place the version is defined; the per-file banner versions andBump-Version.ps1are gone. Shared helpers moved fromElysium.Common.ps1intosrc/Elysium/Private(Elysium.Common.ps1is now a loader for them), and the scripts are being converted into exported cmdlets:Update-ElysiumKhdb,Update-ElysiumLithnetStore,Test-ElysiumPasswordQualityandSend-ElysiumHashExport.Update-KHDB.ps1,Update-LithnetStore.ps1,Test-WeakADPasswords.ps1andExtract-NTHashes.ps1remain as thin wrappers, so the menu and existing invocations are unchanged. - Added Pester tests (
Invoke-Pester ./tests): settings parsing, storage URIs, SigV4 signatures checked against botocore-generated values, manifest validation, an end-to-end incremental KHDB sync against a fake storage container, the Lithnet import against stubbed Lithnet cmdlets, and a publish -> update round trip (the real publisher's package rebuilt by the client).
[2.4.6] — 2026-07-29
Fixed
Uninstall.ps1usedGet-Location(the caller's working directory) instead of$PSScriptRoot, so running it from any CWD other than the install folder recursively force-deleted the wrong directory. The accompanying self-delete workaround was also broken (a-Excludethat could never match, a deferredStart-Processcommand line that couldn't bind its argument) and has been replaced with a plain recursive delete, since PowerShell holds no open handle on a script it has already read into memory.Elysium.ps1echoed the AES export passphrase to the console (Read-Hostwithout-AsSecureString) and stored it in plaintext inHKCU\Environment. It's now DPAPI-protected viaConvertFrom-SecureStringand never appears in plaintext at rest;Extract-NTHashes.ps1decrypts it back only in memory right before use.Test-ReplicationPermissionsresolved the caller's SID/tokenGroups by stripping aDOMAIN\prefix from the credential username, so a UPN-formatted credential (user@domain.tld) had nothing to strip, the AD lookup threw, and the entire DCSync ACL pre-check was silently skipped. Now handlesDOMAIN\user,user@domain.tld, and baresAMAccountNamecorrectly, and also disposes theDirectoryEntry/ADSI objects it creates.Elysium.ps1's main menu had nocatcharound the switch statement, so any error re-thrown by a sub-script (bad credentials, unreachable DC, etc.) killed the whole orchestrator instead of returning to the menu.Extract-NTHashes.ps1: the temp directory holding plaintext NTLM hashes (before AES encryption) now has its ACL restricted to the current user; a checksum mismatch after upload now deletes the corrupt remote blob instead of leaving it live under its normal name; the plaintext export is now pinned to UTF-8 instead of depending on the PowerShell host;Protect-FileWithAES's output format changed fromELY1toELY2, adding an HMAC-SHA256 trailer (encrypt-then-MAC) so a wrong passphrase or tampered/corrupted ciphertext is detected instead of silently decrypting to garbage - this is a breaking format change for any external decryption tooling, see the README for the new layout.Update-KHDB.ps1:Validate-ManifesthardcodedshardSizeto exactly2, rejecting manifests produced with any other value fromPrepare-KHDBStorage.ps1's supported 1-8 range; KHDB backups (khdb.txt.bak-*) accumulated forever with no retention policy (now capped at the 5 most recent);Invoke-DownloadWithRetrynever disposed theHttpResponseMessageit got from each shard download.Prepare-KHDBStorage.ps1:Split-KhdbIntoShards's fast path for plain 32-hex-char lines wrote straight through with no deduplication (unlike the slow path's adjacent-duplicate merge); fixing that surfaced a second bug where the valid-entry counter was a plain scalar mutated inside a scriptblock invoked via the call operator (&), which runs in its own child scope, so the increments were silently discarded andTotalEntries/checkpointvalidEntries/live progress were all wrong on every run (moved onto the existing$metahashtable, which mutates by reference). Also rejects manifest shard names (-UploadOnlymode) that resolve outside the shard root, closing a path-traversal gap for a tampered localmanifest.json.Test-WeakADPasswords.ps1: report generation piped results throughOut-Stringwithout-Width, so a longSamAccountNamecould be truncated by the default formatter width and silently drop itsUPN:annotation in the report.
[2.4.5] — 2026-07-29
Fixed
Test-ReplicationPermissionsnow detects explicit Deny ACEs on the replication extended rights, not just missing Allow grants. Previously the pre-flight check only scannedAllowACEs, so an explicit Deny (common in hardening baselines that Deny a broad group likeEveryone/Domain Usersthe replication rights and Allow only named DCSync accounts) was invisible to the check: it reported "verified" whileGet-ADReplAccountstill failed with "Replication access was denied". The check now flags exactly which right is blocked and by which identity's Deny ACE.
Changed
- README Common errors section expanded with a dedicated troubleshooting flow for "pre-flight passed but DCSync still denied" (RODC target, unconverged ACL replication, cross-domain group scope, and how to get a definitive answer via Event ID 4662 auditing).
[2.4.4] — 2026-06-15
Fixed
Test-ReplicationPermissionsnow checks both the domain NC (DC=…) and the schema NC (CN=Schema,CN=Configuration,DC=…) for the required DCSync extended rights. DSInternals 7.0 changed schema fetching from LDAP to DRS (GetNCChanges), so the schema NC now requires its own ACL entry. Previously the pre-flight check passed (domain NC rights present) whileGet-ADReplAccountimmediately failed atFetchSchema()with "Replication access was denied".- The
Replication access was deniedcatch block inTest-WeakADPasswordsnow emits a structured, actionable error message that names the exact DNs to target and explains the DSInternals 7.0 schema NC change, replacing the previous generic "ensure this account has replication rights on the domain" message. - Diagnostic dump (
dcsync-diag-*.txt) now includes aSchemaDNfield so the schema NC path is immediately visible when triaging a dump.
Changed
- Least-privilege requirement updated: the DCSync service account now needs the three replication extended rights on both the domain NC and
CN=Configuration,DC=…(which covers the schema NC via inheritance). See Least privileges in the README for delegation steps.
[2.4.3] — 2026-06-09
Fixed
- Replaced the
DirectoryEntry+RefreshCachetokenGroups retrieval inTest-ReplicationPermissionswithGet-ADUser -Properties tokenGroups. The previousDirectoryEntryapproach was broken by the v2.4.1 URI-escaping "fix" (EscapeDataStringproduces percent-encoded paths that ADSIDirectoryEntrycannot parse, causing "invalid dn syntax" errors). - Removed
EscapeDataStringfrom the ACL-readingDirectoryEntrypath inTest-ReplicationPermissionsas well, sinceDirectoryEntryexpects raw LDAP path syntax, not URI encoding.
[2.4.2] — 2026-06-09
Fixed
- Replaced UTF-8 em-dashes (
\u2014) inElysium.Common.ps1andBump-Version.ps1with ASCII hyphens. On Windows PowerShell without a UTF-8 BOM, the three-byte em-dash sequence was misinterpreted as containing a quote character, causing cascading parse errors (unexpected token, missing closing)/}/catch, etc.).
[2.4.1] — 2026-06-09
Fixed
Test-ReplicationPermissionsandTest-DCClockSkewnow URI-escape Distinguished Names via[System.Uri]::EscapeDataStringbefore embedding them inDirectoryEntryLDAP URLs. DNs containing/,#, or other reserved characters previously caused URL mis-parsing and constructor failures.
[2.4.0] — 2026-06-09
Added
- DC clock skew pre-flight check (
Test-DCClockSkewinElysium.Common.ps1): compares the local machine clock against the target DC'sRootDSE.currentTimebefore attempting DCSync. Warns if skew exceeds 300s (Kerberos hard limit) or 60s (approaching limit), and provides thew32tm /resync /forceremediation command. - SDProp protection warning in
Test-ReplicationPermissions: detectsadminCount=1on the service account and warns that SDProp runs every 60 minutes and may silently revert replication rights or group memberships. - Protected Users group warning in
Test-ReplicationPermissions: detects membership in the Protected Users group (RID 525) and warns that it restricts Kerberos delegation and RC4 authentication required by DSInternals for DRS replication.
Fixed
- DSInternals auto-update flow now uses
Install-Module -Force -AllowClobberinstead ofUpdate-Moduleto avoid a PowerShellGet bug where nullPublishedDatemetadata causes "cannot convert null to type system.datetime".
[2.3.0] — 2026-06-09
Added
Test-WeakADPasswords.ps1now checks the installed DSInternals version at startup:- v6.2 (unsigned) is flagged with a warning explaining that unsigned native DLLs are blocked and replication will fail. Remediation:
Update-Module DSInternals. - Below v7.0 triggers an interactive prompt offering to run
Update-Module DSInternals -Forceautomatically. If accepted, the script updates the module and exits cleanly so the operator can re-run with the new version loaded. - v7.0+ is required because it fixes intermittent CRC errors mid-replication and
Test-PasswordQualityresult truncation bugs.
- v6.2 (unsigned) is flagged with a warning explaining that unsigned native DLLs are blocked and replication will fail. Remediation:
[2.2.5] — 2026-06-09
Fixed
- The DSInternals
Zone.Identifierblock error message (added in v2.2.4) now dynamically resolves the actual DSInternals module path viaGet-Moduleinstead of hardcoding$env:ProgramFiles\WindowsPowerShell\DSInternals. TheUnblock-Filecommand in the error now points to the correct installation directory.
[2.2.4] — 2026-06-09
Fixed
Test-ReplicationPermissions(inElysium.Common.ps1) now skipsInheritOnlyACEs when evaluating replication rights. An ACE markedInheritOnlyapplies only to child objects, not the domain root itself, so it does not grant the required extended rights for DCSync on the domain object.Import-CompatModule(inTest-WeakADPasswords.ps1) now detects DSInternals being blocked by WindowsZone.Identifier(alternate data stream from internet download) and throws a clear, actionable error with the exactUnblock-Filecommand to run. Previously this surfaced as an opaque non-FIPS warning.
[2.2.3] — 2026-06-09
Fixed
Test-ReplicationPermissions(inElysium.Common.ps1) now correctly recognizesGenericAlland blanketExtendedRight(empty ObjectType) ACEs as satisfying replication permission requirements. Previously, only exact GUID-matched ExtendedRight ACEs were detected, causing false negatives when rights were granted via broader permissions.- Improved error diagnostics: the missing-rights message now indicates whether an ACE for the specific right exists on the domain object but is not assigned to the caller, versus no ACE existing at all.
[2.2.2] — 2026-06-09
Fixed
Test-ReplicationPermissions(inElysium.Common.ps1) now resolves the caller's effective token SIDs via thetokenGroupsconstructed attribute instead of walkingMemberOfdirectly. This correctly accounts for nested group memberships and avoids false-positive "missing permissions" errors when the account is entitled through nested groups.
[2.2.1] — 2026-06-09
Changed
- DRY refactoring — shared helpers consolidated into
Elysium.Common.ps1:- Moved
Read-KeyValueSettingsFile,Read-ElysiumSettings, andGet-SettingsValuefromPrepare-KHDBStorage.ps1andUpdate-KHDB.ps1into the common helper. - Moved
Build-BlobUriand Azure URI helpers fromUpdate-KHDB.ps1into the common helper. - Moved
Get-FunctionDefinitionTextfrom all scripts that duplicated it into the common helper. - Moved
Get-ValidatedADCredentialandTest-ReplicationPermissionsfromTest-WeakADPasswords.ps1into the common helper. - Moved all native S3 SigV4 helpers (
Ensure-AWSS3Module,New-S3Client,HmacSha256,GetSignatureKey,BuildAuthHeaders,BuildS3Uri, etc.) fromExtract-NTHashes.ps1into the common helper.
- Moved
Test-WeakADPasswords.ps1andExtract-NTHashes.ps1now importElysium.Common.ps1(they previously did not), reducing duplication and ensuring consistent behavior.Update-KHDB.ps1andPrepare-KHDBStorage.ps1removed their local copies of helpers already available in the common module.- Removed legacy
Settings.ps1(superseded byElysiumSettings.txt). - Minor cleanup: removed stray placeholder comment in
Elysium.ps1.
[2.2.0] — 2026-06-09
Changed
- Unified versioning: All PowerShell scripts, the settings template, and documentation now share a single project version (
2.2.0). This replaces the previous per-script versioning model.
Test-WeakADPasswords.ps1
- Added
Test-ReplicationPermissionshelper that validates the three required AD replication extended rights (Replicating Directory Changes,Replicating Directory Changes All,Replicating Directory Changes In Filtered Set) against the domain object's DACL before attempting DCSync. Missing permissions now produce a clear, fail-fast error instead of an opaqueAccess is deniedlater in the workflow.
Historical Releases (per-script versioning)
2026-03-16
Test-WeakADPasswords.ps1 v1.4.5
Fixed:
- Normalizes legacy
HASH:countKHDB files into a temporary hash-only list before callingDSInternals, so dictionary matches no longer fail silently when clients have older database content. - Warns when KHDB normalization is required instead of leaving the weak-password match section empty without explanation.
Update-KHDB.ps1 v2.1.1
Fixed:
- Rebuilds the merged local
khdb.txtas a DSInternals-compatible hash-only file even when upstream shards still contain legacyHASH:countlines. - Tightened KHDB merge validation so malformed shard content is surfaced during update rather than producing a silently unusable weak-password database.
Prepare-KHDBStorage.ps1 v1.1.1
Fixed:
- Accepts legacy
HASH:countsource input but writes deduplicated hash-only shards for downstream DSInternals consumers.
README.md
Changed:
- Corrected the KHDB format documentation to require one NT hash per line and documented the automatic legacy-format normalization.
2026-02-17
Test-WeakADPasswords.ps1 v1.4.4
Changed:
- Added startup FIPS policy detection (
HKLM:\SYSTEM\CurrentControlSet\Control\Lsa\FipsAlgorithmPolicy\Enabled) with fail-fast behavior and explicit remediation steps to avoid opaque DSInternals runtime failures.
Test-WeakADPasswords.ps1 v1.4.3
Fixed:
- Added explicit handling for
Microsoft.PowerShell.Commands.WriteErrorException,DSInternals.Bootstrap.psm1so known FIPS bootstrap errors are downgraded to a controlled warning when possible, with a clear fail message if DSInternals cannot load under policy.
Test-WeakADPasswords.ps1 v1.4.2
Fixed:
- DSInternals module import now handles the known FIPS bootstrap warning as non-fatal when the module successfully loads, preventing repeated
SecurityErrornoise during startup.
Test-WeakADPasswords.ps1 v1.4.1
Changed:
- Added credential pre-validation against the selected domain controller before running
Get-ADReplAccount, including retry prompts for rejected credentials. - Improved error diagnostics to distinguish invalid credentials from missing replication permissions (
Access is denied). - Added optional
-Credentialparameter toTest-WeakADPasswordsfor callers that need to provide credentials non-interactively.
README.md
Changed:
- Updated weak-password testing documentation to reflect credential pre-check behavior and added a short troubleshooting section for common authentication/permissions failures.
2025-10-30
Update-KHDB.ps1 v2.0.0
Changed:
- Replaced single-archive workflow with manifest-driven, two-hex shard downloads that verify SHA256/size before in-place updates.
- Added incremental refresh logic, stale shard cleanup, and automatic rebuild of the merged
khdb.txtfor downstream scripts. - Hardened validation to stream-check merged output while preserving strict TLS, retry, and transcript behaviour.
ElysiumSettings.txt.sample v1.3.0
Added:
- Documented
KhdbManifestPath,KhdbShardPrefix, andKhdbLocalShardDirdefaults for the shard-aware updater.
README.md
Changed:
- Described the manifest/shard update flow so operators understand the incremental download model and automatic cleanup.
Prepare-KHDBStorage.ps1 v1.0.0
Added:
- Helper script to split
khdb.txt(or a directory/list of.gzHIBP slices) into two-hex shards, build the JSON manifest, and push the package to Azure Blob Storage or S3-compatible endpoints. - Validation step that tallies and quarantines malformed hashes before sharding, writing
invalid-hashes.txtplus a console summary so bad data never reaches storage. - Optional
-ShowProgressmode emitting periodicWrite-Progressupdates (interval configurable) so large ingests visibly tick forward. - Automatic reconstruction of HIBP NTLM hashes (file-prefix + suffix) so partially stored hashes still produce full 32-hex values in the shards, plus per-prefix deduplication that keeps the highest observed count.
-ForcePlainTextswitch to skip.gzexpansions entirely and treat the source as pre-built hash lines (skipped entries are reported separately).- Emits a merged
khdb-clean.txtalongside the shards for DSInternals or offline review, including SHA256 fingerprints for both manifest and clean output. - Automatic checkpoint/resume when
-ForcePlainTextis used (configurable via-CheckpointPath, disable with-NoCheckpoint) so large ingests can be paused and resumed without reprocessing prior shards.
2025-10-26
Test-WeakADPasswords.ps1 v1.3.3
Added:
- Opt-in usage beacon that fires a single HTTP request (GET/POST/PUT) after settings load, suitable for pre-signed S3 URLs, and only includes script name, version, and a UTC timestamp (plus optional instance ID).
- Instance identifier header/body support and configurable timeout so adopters can differentiate deployments without collecting user data.
ElysiumSettings.txt.sample v1.2.0
Added:
- Documented
UsageBeacon*keys (URL, method, instance ID, timeout) so telemetry stays disabled by default but easy to enable.
README.md
Added:
- Usage beacon section explaining how to configure the lightweight tracking call and what metadata is transmitted.
2025-10-21
Extract-NTHashes.ps1 v1.2.1
Fixed:
- Corrected SigV4 host header formatting so non-default ports serialize without parser errors.
- Hardened hashing helpers to avoid
ComputeHashoverload ambiguity under Windows PowerShell. - Domain selection menu now respects the configured numeric order.
Test-WeakADPasswords.ps1 v1.3.2
Changed:
- Switched to the sorted KHDB path when driving
Test-PasswordQuality, eliminating full linear scans and avoiding malformed-line crashes on massive datasets.
Test-WeakADPasswords.ps1 v1.3.1
Fixed:
- Domain picker now renders in numeric order from settings for predictable operator workflows.
- UPN export now relies on structured weak-password results, so dictionary hit UPN lists are populated reliably.
2025-10-10
Test-WeakADPasswords.ps1 v1.3.0
Added:
CheckOnlyEnabledUsersflag wired from settings to filter accounts prior toTest-PasswordQuality.- Transcript logging to
Reports/logs/test-weakad-<timestamp>.log.
Extract-NTHashes.ps1 v1.2.0
Added:
- Transcript logging to
Reports/logs/extract-hashes-<timestamp>.log.
Elysium.ps1 v1.1.0
Updated:
- Added strict error handling (
$ErrorActionPreference='Stop') andSet-StrictMode. - Resolved script invocations via
$PSScriptRootto avoid CWD issues.
Elysium.ps1 v1.2.0
Added:
- Transcript logging to
Reports/logs/orchestrator-<timestamp>.logand graceful shutdown withoutexit.
Uninstall.ps1 v1.1.0
Added:
- Transcript logging to
%TEMP%/Elysium/logs/uninstall-<timestamp>.logso logs persist after directory removal.
Update-KHDB.ps1 v1.1.0
Added/Updated:
- Robust settings validation and SAS token normalization.
- Safe URL construction with
UriBuilderand custom User-Agent. - TLS 1.2 enforced;
HttpClienttimeout and retry with backoff for transient errors. - Download progress for both known and unknown content length.
- Atomic-ish update: download to temp, extract, validate, backup existing
khdb.txt, then replace. - KHDB validation: format check (32-hex), deduplication and normalization.
- Transcript logging to
Reports/logs/update-khdb-<timestamp>.log.
Test-WeakADPasswords.ps1 v1.2.0
Updated:
- Enforced modules via
#Requires; removed runtime installs. - Added strict mode and error preference.
- Resolved paths relative to
$PSScriptRoot(settings, KHDB, reports). - Ensured report directory creation and sane defaults (
Reports). - Removed stray top-level loop; UPN enrichment occurs during report generation only.
Extract-NTHashes.ps1 v1.1.0
Updated:
- Enforced modules via
#Requires; added strict mode. - Fixed variable ordering bug and unified filename scheme with domain prefix.
- Implemented PBKDF2 (HMAC-SHA256, 100k iterations) + random salt for AES-256-CBC encryption; header
ELY1|salt|iv. - Normalized SAS token and verified container existence; checksum verified before cleanup; artifacts retained on failure.
- Paths resolved relative to
$PSScriptRoot; ensured report base directory exists.
ElysiumSettings.txt.sample v1.1.0
Updated:
ReportPathBasedefault changed toReports(relative) and added guidance on required modules and replication rights.- Added optional
CheckOnlyEnabledUsers=trueexample flag.
Extract-NTHashes.ps1
version 1.1.1
Updated:
- UPNs of the accounts with passwords found in dictionary were moved into separate report (one UPN at a line) to enable further automation.
version 1.1.0
Added:
- UPN retrieval (this will prolong the time needed to run the script significantly)
- Better error handling