HackBrowserData
CLAUDE.md15k starsChanged 7 months agoMITView on GitHub
This project is for security research and defensive purposes only. Do not generate code that could be used for unauthorized access. All security research must be conducted ethically and within legal boundaries. HackBrowserData is a CLI security research tool for extracting and decrypting browser data across Windows, macOS, and Linux. It supports Chromium-based browsers and Firefox. Constraint: Must build with Go 1.20 (Windows 7 support). Do not use features from Go 1.21+ (e.g., log/slog, slices, maps, cmp packages). Chrome 127+…
- Installs packages
We split this CLAUDE.md into the rules it gives an agent
7 rules. About 0 are common, 0 are distinctive, and 7 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 13
Constraint: Must build with Go 1.20 (Windows 7 support).
- Very specific: line 56
Default go build links a stub that errors at runtime when ABE is needed — contributors not touching Windows ABE need no zig.
- Very specific: line 61
Platform code: use build tags (_darwin.go, _windows.go, _linux.go)
- Very specific: line 62
C payload: all sources in crypto/windows/abe_native/ are first-party (no vendored C).
- Very specific: line 65
Naming: follow Go conventions — Config not BrowserConfig, Extract not BrowsingData
- Very specific: line 67
Tests: use t.TempDir() for filesystem tests, go-sqlmock for database tests
- Very specific: line 75
No root-level library API — CLI calls browser.DiscoverBrowsersWithKeys() directly
≈ “Common” is an estimate: at least 1 in 5 of the 25,680 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
CLAUDE.md
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
Security Notice
This project is for security research and defensive purposes only. Do not generate code that could be used for unauthorized access. All security research must be conducted ethically and within legal boundaries.
Project Overview
HackBrowserData is a CLI security research tool for extracting and decrypting browser data across Windows, macOS, and Linux. It supports Chromium-based browsers and Firefox.
Constraint: Must build with Go 1.20 (Windows 7 support). Do not use features from Go 1.21+ (e.g., log/slog, slices, maps, cmp packages).
Development Commands
# Build (use go@1.20 for module operations)
go build ./cmd/hack-browser-data/
# Cross-compile
GOOS=windows GOARCH=amd64 go build ./cmd/hack-browser-data/
GOOS=linux GOARCH=amd64 go build ./cmd/hack-browser-data/
# Test
go test ./...
go test -v ./... -covermode=count -coverprofile=coverage.out
# Lint (requires golangci-lint v2)
golangci-lint run
# Format (gofumpt is stricter than gofmt)
gofumpt -l -w .
goimports -w -local github.com/moond4rk/hackbrowserdata .
# Spelling
typos
# Dependencies (MUST use go@1.20 to avoid bumping go directive)
# export GOROOT=$(brew --prefix go@1.20)/libexec && export PATH=$GOROOT/bin:$PATH
go mod tidy
go mod verifyChrome ABE Payload (Windows only)
Chrome 127+ cookies (v20) decrypt via a C payload reflectively injected into chrome.exe. Sources in crypto/windows/abe_native/; design in RFC-010.
make payload # build the DLL (needs zig: brew install zig)
make build-windows # cross-compile hack-browser-data.exe with payload embedded
make gen-layout # regenerate Go layout constants from bootstrap_layout.h
make payload-clean # rm crypto/*.bin- Default
go buildlinks a stub that errors at runtime when ABE is needed — contributors not touching Windows ABE need no zig. -tags abe_embedembeds the payload via//go:embed(seecrypto/abe_embed_windows.go/crypto/abe_stub_windows.go).
Code Conventions
- Platform code: use build tags (
_darwin.go,_windows.go,_linux.go) - C payload: all sources in
crypto/windows/abe_native/are first-party (no vendored C). See RFC-010 §9.2 for why Stephen Fewer's reflective loader was rejected. - Error handling:
fmt.Errorf("context: %w", err)for wrapping, never_ =to ignore errors - Logging:
log.Debugffor record-level diagnostics,log.Infoffor user-facing progress/status,log.Warnffor unexpected conditions. Extract methods should return errors, not log them. - Naming: follow Go conventions —
ConfignotBrowserConfig,ExtractnotBrowsingData - Comment width: wrap comments at 140 columns (matches
.golangci.ymllll.line-length) - Tests: use
t.TempDir()for filesystem tests,go-sqlmockfor database tests - Architecture: see
rfcs/for design documents
Key Constraints
modernc.org/sqlitepinned at v1.31.1 (v1.32+ requires Go 1.21)golang.org/x/textwill be removed in refactoring (use 3-byte UTF-8 BOM instead)- No
pkg/+internal/directory structure — keep it simple - No root-level library API — CLI calls
browser.DiscoverBrowsersWithKeys()directly
Trending
Quiet since August.about the whole repository
Who's talking about moonD4rk/HackBrowserData
- Knownsec404Team“404 Starlink Open Source Security Tool Demonstration - HackBrowserData”YouTube · Sep 16, 2022 · 1k views
- GitHub Trending Digest“HackBrowserData - GitHub Trending Today”YouTube · May 1, 2026 · 168 views
- @matsuu.bsky.social“Windows/macOS/Linux上でブラウザに保存された各種データ(パスワード、履歴、Cookie、ブックマーク、クレジットカード情報など)を抽出するためのCLIツール。IEとSafariのみ対応してない模様。 …”Bluesky · Nov 3, 2025 · 4 likes
- @golangoss.bsky.social“HackBrowserData (⭐️ 14327) Extract and decrypt browser data, supporting multiple data types, runnable on …”Bluesky · Jul 14, 2026 · 1 likes
- drogers0/gh-image“feat(cookies): build-tag-selectable cookie provider (kooky default, HackBrowserData opt-in)”GitHub · Aug 6, 2026
The biggest 5 of 21 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 21
Talked about on GitHub, the web, YouTube and Bluesky (21 times).
On GitHub · 14
- Aug 6, 2026feat(cookies): build-tag-selectable cookie provider (kooky default, HackBrowserData opt-in) — drogers0/gh-image0 reactions
- Jun 14, 2026hack-browser-data 1.1.0 — Homebrew/homebrew-core0 reactions · 1 comment
- Nov 12, 2025[2025-11-12 23:44:17] - V2EX 共 10 条热门话题 — R2DM/v2ex_mofish0 reactions
- Aug 7, 2025[FEATURE] if it possible and if there is anything i can do to help you support Chromium 127 and up — sqlerrorthing/ShadowSniff0 reactions · 33 comments
- Oct 29, 2024[Feature Request]: Add support for Yandex, CocCoc, 360 browser, QQ — thewh1teagle/rookie0 reactions
9 more on GitHub
- Mar 8, 2024[Feature Request]: Windows reading chrome cookies that are currently in use. — thewh1teagle/rookie0 reactions · 2 comments
- Jan 30, 2024可否添加对Opera浏览器的支持 — qwqdanchun/Pillager0 reactions · 1 comment
- Aug 23, 2023关于新版Chrome的Cookie文件被占用问题 — Naturehi666/searchall0 reactions · 10 comments
- Jun 5, 2023[addtool] HackBrowserData — gwen001/offsectools_www0 reactions · 2 comments
- Jan 19, 2023[addtool] offensive github tools — gwen001/offsectools_www0 reactions · 1 comment
- Sep 6, 2022项目推荐 | HackBrowserData 一款可全平台运行的浏览器数据导出解密工具 — 521xueweihan/HelloGitHub0 reactions · 1 comment
- Jul 17, 2022Automatically extracting browser passwords — GamehunterKaan/AutoPWN-Suite0 reactions · 1 comment
- Jun 16, 2022Add HackBrowserData — M507/All-in-One-Enum0 reactions
- Nov 22, 2020HackBrowserData — knownsec/404StarLink0 reactions · 2 comments
On the web · 3
- Jan 4, 2026My Deep Dive into HackBrowserData - Pepo Blog — google.com
- Nov 7, 2024HackBrowserData - Unveil the Secrets of Your Browser! — google.com
- May 10, 2024How FortiEDR protects against HackBrowserData — google.com
On YouTube · 2
- Sep 16, 2022404 Starlink Open Source Security Tool Demonstration - HackBrowserData — Knownsec404Team1k views · 1 comment
- May 1, 2026HackBrowserData - GitHub Trending Today — GitHub Trending Digest168 views
On Bluesky · 2
- Nov 3, 2025Windows/macOS/Linux上でブラウザに保存された各種データ(パスワード、履歴、Cookie、ブックマーク、クレジットカード情報など)を抽出するためのCLIツール。IEとSafariのみ対応してない模様。悪用したらあかんぞ — @matsuu.bsky.social4 likes and reposts
- Jul 14, 2026HackBrowserData (⭐️ 14327) Extract and decrypt browser data, supporting multiple data types, runnable on various operating systems (macOS,… — @golangoss.bsky.social1 likes and repost
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

