Commit Graph
559 Commits
Author SHA1 Message Date
Roger eca1f058c6 refactor: move the ABE unit into internal/abe (#670)
crypto/windows and utils/injector were the last public packages, against the no-library-API rule, and
utils/ named nothing. They move as one unit; only import paths and Makefile variables change, and the
built payload is byte-identical.
2026-10-29 16:48:46 +08:00
Roger 07b66adc4d test: move compat tests into the packages they cover (#669)
The pipeline goldens now live in app, export in export, and keys.json in masterkey, each with its own
testdata; cmd keeps the flag and list goldens. Shared fixtures and golden helpers became the
internal/browser/browsertest and internal/golden packages. The binary is byte-identical.
2026-10-29 16:12:50 +08:00
Roger c0a03769f1 fix: stop cleanly on Ctrl-C, SIGTERM, and SIGHUP (#668)
A signal killed the process mid-run and left the snapshot's copies of browser files in the temp dir.
The run now stops at its next step, removes them, and ends by the same signal, so the exit status and
calling scripts see what they did before. RFC-012 also keeps the list goldens in cmd.
2026-10-29 15:12:30 +08:00
Roger a794674bd7 refactor: delete the superseded top-level packages (#667)
After the switch-over only two cmd tests used browser/, filemanager/, types/, and utils/fileutil.
The list test now compares against goldens of the output it proved equal to the old code's, and the
export test keeps its own fixture records; the binaries built before and after are byte-identical.
2026-10-29 14:59:13 +08:00
Roger bbd353f314 refactor: run every command on the pipeline (#665)
dump, dumpkeys, archive, restore, and list now run on the app stages, so cmd's old path goes away.
archive writes manifest.json and restore reads it, falling back to today's layout for older archives.
Windows and macOS smoke matched today's output apart from the planned changes.
2026-10-29 14:15:59 +08:00
Roger cebfa97ed6 fix(chromium): export Yandex rows without the data key (#666)
Without the data key the Yandex stores exported nothing, unlike every other store, so a key
failure or a master password lost the rows and list --detail, which reads no key, counted 0.
2026-10-29 14:10:44 +08:00
Roger 1636091b3f fix: validate first and make -p select what it names (#664)
The pipeline's Validate rejects bad -b/-c/-f/-d/-p before discovery (an unknown -b now exits 1).
-p at a Chromium profile dir uses its parent, so Local State is found; Firefox -p selects only that
profile; the keychain password comes from a flag, stdin, a terminal prompt, or nowhere.
2026-10-28 17:14:13 +08:00
Roger 8c9c9901a1 fix(export): pack --zip before removing the outputs (#663)
CompressDir deleted each file as it was added and wrote the zip last, so a failure lost the output,
and it packed and deleted every file in -d. The writer now packs only the files it wrote, renames
the zip into place, and only then removes them.
2026-10-28 17:05:28 +08:00
Roger 5f7bfbd455 fix(chromium): open LevelDB copies read-only (#662)
A read-write open replays the journal into new files and renames CURRENT in the copy;
on Windows that write can fail, which emptied one profile's session storage in CI.
2026-10-28 16:57:13 +08:00
Roger 1592f7b7d6 fix: fill Firefox bookmark fields, make Safari IDs unique (#661)
Both are listed output fixes (RFC-008): Firefox exported every bookmark with
folder "url", no type, and id 0, and Safari numbered bookmarks per folder, so
IDs repeated. The golden diff is the fix.
2026-10-28 15:55:29 +08:00
Roger 4add07e825 refactor: add the Safari base under internal/browser (#660)
Parsers move with git mv and hand records to a Collector; discovery reads a copy
of SafariTabs.db, and app hands the run's login keychain to the default profile's
password extractor. The old browser/safari runs the new extractors.
2026-10-28 15:51:15 +08:00
Roger 2093045664 refactor: add the Firefox base under internal/browser (#659)
Parsers move with git mv and hand records to a Collector; the old browser/firefox
runs them, and app now discovers Firefox. A profile without a usable key exports
its logins instead of panicking, as RFC-008 now lists.
2026-10-28 15:06:07 +08:00
Roger bc59bd57bb test(cmd): add Firefox and Safari extract goldens (#658)
Phase 6 moves the Firefox and Safari parsers, so today's output is locked
first, as the Chromium goldens were before Phase 5.
2026-10-28 11:35:44 +08:00
Roger 9d51aa869e fix(winapi): look in install paths before App Paths (#657)
CocCoc and Yandex both ship browser.exe and App Paths names only one, so ABE asked Yandex's program
for CocCoc's key and CocCoc's v20 cookies came out empty. A browser's own install locations now come
first, then App Paths, then a running process.
2026-10-27 17:58:27 +08:00
Roger 2b70e4ad65 refactor: run Chromium through the internal/app pipeline (#656)
Validate, Discover, NewPlan, Execute, and Report run beside today's path: one snapshot per user
data dir, each dir's keys retrieved once on first use, every record stamped by the collector.
On the Chromium fixtures it writes the extract goldens byte for byte; the CLI switches over later.
2026-10-27 17:17:41 +08:00
Roger 322c41d187 refactor: add the Chromium base under internal/browser (#655)
Parsers move with git mv so their history follows them, and now read a ProfileSnapshot and hand
records to a Collector. The old browser/chromium runs these extractors, so today's CLI exercises
them; its list --detail counters stay until the switch-over.
2026-10-27 16:27:13 +08:00
Roger b655afd054 refactor: merge the browser tables into internal/browser (#654)
One Def per browser carries every OS's user data dirs, keychain label, and Windows ABE target,
so the per-OS lists and the abeTargets join go away and today's configs derive from it;
a test parsing com_iid.c keeps the payload's table in step with the ABE rows.
2026-10-27 16:06:57 +08:00
Roger 0b8cc23216 refactor: introduce internal/snapshot for copy and zip (#653)
One copier and one zip transport serve archive, restore, and every profile copy, so locked-file handling has one home.
Dropping otiai10/copy takes x/sync out of every binary and testing out of the Windows exe.
2026-10-27 14:54:54 +08:00
Roger 49747bf0ce refactor: move crypto and key retrieval under internal/ (#652)
Crypto stays free of OS calls, so every secret-store read sits behind one masterkey contract.
The macOS v10 retriever reads one run-scoped login keychain handle that Safari will share.
2026-10-27 13:19:45 +08:00
Roger b04c436a73 refactor: introduce category, record, and export packages (#651)
Later layers speak categories and records, and export needs nothing else.
Ordering rows once in the exporter fixes Firefox history, written least visited first.
2026-10-26 19:55:19 +08:00
Roger 9937dbf9fb refactor: move leaf utilities under internal/ (#650)
Phase 1: the packages with no project dependencies move first, so every
later phase builds on finished leaves; the goldens pin the behavior.
2026-10-26 16:41:52 +08:00
Roger fb86bd368e test: pin today's output with compatibility goldens (#649)
Phase 0, part 2: freeze the output files, keys.json, and archives today's
code writes, so every later phase can prove it changes nothing.
2026-10-26 16:22:58 +08:00
Roger f4c05f861f chore: add refactor RFCs and compatibility guardrails (#648)
Phase 0 of the refactor: settle the design record and pin the CLI flag
surface and wire names before any code moves.
2026-10-26 15:41:47 +08:00
Roger 95c47885d3 docs: add security policy (#645)
* docs: add security policy

* docs: clarify the tool's defensive purpose in security policy
2026-10-15 13:04:48 +00:00
moond4rk-ci[bot] b0f53e5d9f chore: update contributors list (#644)
Co-authored-by: moond4rk-ci[bot] <299850723+moond4rk-ci[bot]@users.noreply.github.com>
2026-09-25 05:44:29 +00:00
Daniel Uptain 3b83bc7e3a fix(make): detect cmd.exe shell for native Windows ABE builds (#642)
* fix(make): detect cmd.exe shell for native Windows ABE builds
* Fix build command syntax in Makefile for Windows
2026-09-25 13:42:16 +08:00
moond4rk-ci[bot] 0503d04d7a chore: update contributors list (#641)
Co-authored-by: moond4rk-ci[bot] <299850723+moond4rk-ci[bot]@users.noreply.github.com>
2026-09-01 01:34:30 +00:00
moond4rk-ci[bot] 46c6e4b4a9 chore: update contributors list (#640)
Co-authored-by: moond4rk-ci[bot] <299850723+moond4rk-ci[bot]@users.noreply.github.com>
2026-08-25 07:56:16 +00:00
slimwang 8c89ac72dd fix(windows): harden the ABE payload injection lifecycle (#638)
* fix(windows): harden the ABE payload injection lifecycle

The browser main thread is never resumed, so no window appears and the temp user-data-dir is unnecessary. Payload memory is RW then RX, with an explicit FlushInstructionCache before the remote thread executes it.

* test(windows): use US spelling in offset test

* fix(windows): validate bootstrap parameter encoding
2026-08-25 15:53:57 +08:00
moond4rk-ci[bot] da18dbc29f chore: update contributors list (#639)
Co-authored-by: moond4rk-ci[bot] <299850723+moond4rk-ci[bot]@users.noreply.github.com>
2026-08-25 03:14:44 +00:00
slimwang d2b2955d6c feat(chromium): extract passwords from the account-synced store (#637)
Chromium keeps account-synced credentials in a separate "Login Data For Account" DB. Entries carry a Store field because the same credential can legitimately exist in both stores.
2026-08-25 11:13:10 +08:00
dependabot[bot] 9624e50a4f chore(deps): bump github.com/stretchr/testify from 1.11.1 to 1.12.1 (#636)
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify) from 1.11.1 to 1.12.1.
- [Release notes](https://github.com/stretchr/testify/releases)
- [Commits](https://github.com/stretchr/testify/compare/v1.11.1...v1.12.1)

---
updated-dependencies:
- dependency-name: github.com/stretchr/testify
  dependency-version: 1.12.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-08-21 11:35:36 +08:00
moond4rk-ci[bot] 0f6a529470 chore: update contributors list (#634)
Co-authored-by: moond4rk-ci[bot] <299850723+moond4rk-ci[bot]@users.noreply.github.com>
2026-08-17 02:41:45 +00:00
David Rogers adfb6d993e feat(log): add SetLevel to control default logger verbosity (#632) 2026-08-17 10:39:46 +08:00
moond4rk-ci[bot] fa3eb17cd4 chore: update contributors list (#631)
Co-authored-by: moond4rk-ci[bot] <299850723+moond4rk-ci[bot]@users.noreply.github.com>
2026-08-07 02:26:37 +00:00
David Rogers 500c95c86c refactor(darwin): make keychain gcore dump opt-in via build tag (#629)
Mirror the abe_embed treatment of the Windows ABE payload (#575) for the
macOS CVE-2025-24204 securityd-dump path: retag gcoredump_darwin.go under
'darwin && keychain_gcore' and add a 'darwin && !keychain_gcore' stub for
DecryptKeychainRecords. The default go build (and library consumers) then
ship without the exploit code or its byte signatures; the capability is
opt-in via -tags keychain_gcore, exactly like -tags abe_embed.

GcoredumpRetriever already treats a DecryptKeychainRecords error as a silent
fallthrough to the next tier, so the default build falls through to the
native security-CLI path with no behavior change.
2026-08-07 10:25:04 +08:00
moond4rk-ci[bot] 4cbf7f800d chore: update contributors list (#630)
Co-authored-by: moond4rk-ci[bot] <299850723+moond4rk-ci[bot]@users.noreply.github.com>
2026-08-07 02:16:13 +00:00
freddy77 18d841f68f feat: Add support for sameSite field (#628)
Recent browsers (and HTTP) added "sameSite" setting to limit cross site attacks.
Add support for exporting this property from Firefox and Chrome and to export to csv and cookie-editor format.
Also extract new "session" and "hostOnly" properties for cookie-editor format.
Tested on Firefox, Chrome and Chromium.

Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
2026-08-07 10:14:40 +08:00
Roger df20f73b7a ci: auto-merge the generated contributors PR (#627)
Without it the bot PR sits until a human clicks merge, and every later push to main opens another duplicate — the action mints a fresh branch and PR each run with no dedup.
2026-08-02 20:57:51 +08:00
moond4rk-ci[bot] eed9d9986b chore: update contributors list (#626)
Co-authored-by: moond4rk-ci[bot] <299850723+moond4rk-ci[bot]@users.noreply.github.com>
2026-08-02 20:56:22 +08:00
Roger 168312f15f ci: open a PR for contributor updates instead of pushing to main (#625)
The shared app is not in the main ruleset's bypass list, so its direct push is rejected; the skip-ci marker has to go too, or the generated PR's required checks never report and it can never merge.

Claude-Session: https://claude.ai/code/session_011GzPywfeNAx2BVA2M6RnuH
2026-08-02 20:39:17 +08:00
dependabot[bot]andRoger 15dc56e3aa chore(deps): bump github.com/moond4rk/keychainbreaker (#621)
Bumps [github.com/moond4rk/keychainbreaker](https://github.com/moond4rk/keychainbreaker) from 0.2.5 to 0.2.6.
- [Release notes](https://github.com/moond4rk/keychainbreaker/releases)
- [Commits](https://github.com/moond4rk/keychainbreaker/compare/v0.2.5...v0.2.6)

---
updated-dependencies:
- dependency-name: github.com/moond4rk/keychainbreaker
  dependency-version: 0.2.6
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Roger <moond4rk13@gmail.com>
2026-08-02 18:18:24 +08:00
mybonesaremorepowerful92andmybonesaremorepowerful92 a4972d32fc feat: add support for Browser from Vought (#622)
* feat: add support for Browser from Vought

* fix incorrect var name

---------

Co-authored-by: mybonesaremorepowerful92 <308560070+mybonesaremorepowerful92@users.noreply.github.com>
2026-08-02 18:12:57 +08:00
dependabot[bot] 950161c8ba chore(deps): bump actions/setup-go from 6 to 7 (#624) 2026-08-02 01:05:23 +08:00
Roger 6502d5ee14 ci: unify bot automation on the shared GitHub App (#619)
* ci: unify bot automation on the shared GitHub App

Point contributors.yml at the shared app via client-id (was the old hackbrowserdata-bot app), and replace the long-lived Homebrew PAT with a short-lived app token scoped to homebrew-tap for the formula push.

* ci: mint homebrew-tap token only in release mode
2026-07-06 00:16:39 +08:00
dependabot[bot]andRoger eb98596d01 chore(deps): bump codecov/codecov-action from 6 to 7 (#618)
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 6 to 7.
- [Release notes](https://github.com/codecov/codecov-action/releases)
- [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/codecov/codecov-action/compare/v6...v7)

---
updated-dependencies:
- dependency-name: codecov/codecov-action
  dependency-version: '7'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Roger <moond4rk13@gmail.com>
2026-07-05 00:53:33 +08:00
dependabot[bot] 29561b23e6 chore(deps): bump actions/checkout from 6 to 7 (#617) 2026-07-03 01:11:11 +08:00
Roger 2860bb82f9 docs: cross-host decryption guide and comment cleanup (#614)
* docs(readme): document cross-host decryption workflow

* docs: drop RFC citations and what-comments
v1.1.0
2026-06-13 21:17:00 +08:00
dependabot[bot]andRoger dc610d3c63 chore(deps): bump github.com/moond4rk/binarycookies from 1.0.2 to 1.0.3 (#613)
Bumps [github.com/moond4rk/binarycookies](https://github.com/moond4rk/binarycookies) from 1.0.2 to 1.0.3.
- [Release notes](https://github.com/moond4rk/binarycookies/releases)
- [Commits](https://github.com/moond4rk/binarycookies/compare/v1.0.2...v1.0.3)

---
updated-dependencies:
- dependency-name: github.com/moond4rk/binarycookies
  dependency-version: 1.0.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Roger <moond4rk13@gmail.com>
2026-06-12 20:56:01 +08:00
Roger bf96ba8c80 feat(restore): cross-platform restore via dump engine rebuild (#606) (#611)
* feat(restore): cross-platform restore via dump engine rebuild (#606)

Restore previously required the dump's origin OS, overlaying keys onto locally-discovered browsers. It now rebuilds Chromium engines from the dump's vaults (v2 adds engine kind), so copied data or an archive zip decrypts on any OS.

* fix(restore): polish help text, drop dead check, dedup dump kinds

pflag treats backticked words in flag usage as the value placeholder,
so --data-zip rendered as "--data-zip archive" in help output.
2026-06-12 20:53:00 +08:00