{"id":13581761,"url":"https://github.com/browserutils/kooky","last_synced_at":"2026-04-01T20:31:40.821Z","repository":{"id":27508216,"uuid":"114193084","full_name":"browserutils/kooky","owner":"browserutils","description":"Go code to read cookies from browser cookie stores.","archived":false,"fork":false,"pushed_at":"2026-03-18T07:38:54.000Z","size":546,"stargazers_count":273,"open_issues_count":6,"forks_count":55,"subscribers_count":7,"default_branch":"master","last_synced_at":"2026-03-18T16:32:00.398Z","etag":null,"topics":["browser","cookies","firefox","go","golang","google-chrome","safari","webscraping"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/browserutils.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2017-12-14T02:37:15.000Z","updated_at":"2026-03-18T07:38:58.000Z","dependencies_parsed_at":"2026-01-12T04:13:44.135Z","dependency_job_id":null,"html_url":"https://github.com/browserutils/kooky","commit_stats":null,"previous_names":["zellyn/kooky"],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/browserutils/kooky","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/browserutils%2Fkooky","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/browserutils%2Fkooky/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/browserutils%2Fkooky/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/browserutils%2Fkooky/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/browserutils","download_url":"https://codeload.github.com/browserutils/kooky/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/browserutils%2Fkooky/sbom","scorecard":{"id":254829,"data":{"date":"2025-08-11","repo":{"name":"github.com/browserutils/kooky","commit":"aa53ea57e56c5b6e6b400f0a0b4039a47411d901"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":5,"checks":[{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":10,"reason":"10 commit(s) and 2 issue activity found in the last 90 days -- score normalized to 10","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Code-Review","score":0,"reason":"Found 2/22 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 11 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-17T09:23:38.907Z","repository_id":27508216,"created_at":"2025-08-17T09:23:38.907Z","updated_at":"2025-08-17T09:23:38.907Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31291666,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-01T13:12:26.723Z","status":"ssl_error","status_checked_at":"2026-04-01T13:12:25.102Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["browser","cookies","firefox","go","golang","google-chrome","safari","webscraping"],"created_at":"2024-08-01T15:02:13.758Z","updated_at":"2026-04-01T20:31:40.816Z","avatar_url":"https://github.com/browserutils.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"# kooky\n\n[![PkgGoDev](https://pkg.go.dev/badge/github.com/browserutils/kooky)](https://pkg.go.dev/github.com/browserutils/kooky)\n[![Go Report Card](https://goreportcard.com/badge/browserutils/kooky)](https://goreportcard.com/report/browserutils/kooky)\n![Lines of code](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fapi.codetabs.com%2Fv1%2Floc%2F%3Fgithub%3Dbrowserutils%2Fkooky%26ignored%3Dvendor%2Ctestdata\u0026query=%24%5B0%5D.linesOfCode\u0026logo=Go\u0026label=lines%20of%20code\u0026cacheSeconds=3600)\n[![No Maintenance Intended](http://unmaintained.tech/badge.svg)](http://unmaintained.tech/)\n[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](http://makeapullrequest.com)\n[![MIT license](https://img.shields.io/badge/License-MIT-blue.svg)](https://lbesson.mit-license.org/)\n[![DeepWiki](https://img.shields.io/badge/DeepWiki-browserutils%2Fkooky-blue.svg)](https://deepwiki.com/browserutils/kooky)\n\nReaching into browser-specific, vaguely documented, possibly\nconcurrently modified cookie stores to pilfer cookies is a bad idea.\nSince you've arrived here, you're almost certainly going to do it\nanyway. Me too. And if we're going to do the Wrong Thing, at least\nlet's try to Do it Right.\n\nPackage kooky contains routines to reach into cookie stores for Chrome, Firefox, Safari, ... and retrieve the cookies.\n\nIt aspires to be pure Go (I spent quite a while making\n[go-sqlite/sqlite3](https://github.com/go-sqlite/sqlite3) work for\nit).\n\nIt also aspires to work for all major browsers, on all three\nmajor platforms.\n\n## Status\n\nBasic functionality works on Windows, MacOS and Linux.\nSome functions might not yet be implemented on some platforms.\n**The API is currently not expected to be at all stable.**\n\nPRs more than welcome.\n\n## Example usage\n\n### Any Browser - Cookie Filter Usage\n\n```go\npackage main\n\nimport (\n    \"fmt\"\n\n    \"github.com/browserutils/kooky\"\n    _ \"github.com/browserutils/kooky/browser/all\" // register cookie store finders!\n)\n\nfunc main() {\n    // uses registered finders to find cookie store files in default locations\n    // applies the passed filters \"Valid\", \"DomainHasSuffix()\" and \"Name()\" in order to the cookies\n    cookiesSeq := kooky.TraverseCookies(context.TODO(), kooky.Valid, kooky.DomainHasSuffix(`google.com`), kooky.Name(`NID`)).OnlyCookies()\n\n    for cookie := range cookiesSeq {\n        fmt.Println(cookie.Domain, cookie.Name, cookie.Value)\n    }\n }\n```\n\n### Chrome on macOS\n\n```go\npackage main\n\nimport (\n    \"fmt\"\n    \"log\"\n    \"os\"\n\n    \"github.com/browserutils/kooky/browser/chrome\"\n)\n\nfunc main() {\n    dir, _ := os.UserConfigDir() // \"/\u003cUSER\u003e/Library/Application Support/\"\n    cookiesFile := dir + \"/Google/Chrome/Default/Cookies\"\n    cookiesSeq := chrome.TraverseCookies(cookiesFile).OnlyCookies()\n    for cookie := range cookiesSeq {\n        fmt.Println(cookie)\n    }\n}\n```\n\n### Safari\n\n```go\npackage main\n\nimport (\n    \"fmt\"\n    \"log\"\n    \"os\"\n\n    \"github.com/browserutils/kooky/browser/safari\"\n)\n\nfunc main() {\n    dir, _ := os.UserHomeDir()\n    cookiesFile := dir + \"/Library/Containers/com.apple.Safari/Data/Library/Cookies/Cookies.binarycookies\"\n    cookiesSeq := safari.TraverseCookies(cookiesFile).OnlyCookies()\n    for cookie := range cookiesSeq {\n        fmt.Println(cookie)\n    }\n}\n```\n\n## Thanks/references\n\n- Thanks to [@dacort](https://github.com/dacort) for MacOS cookie decrypting\n  code at  [dacort/cookiemonster.go](https://gist.github.com/dacort/bd6a5116224c594b14db).\n- Thanks to [@as0ler](https://github.com/as0ler)\n  (and originally [@satishb3](https://github.com/satishb3) I believe) for\n  Safari cookie-reading Python code at [as0ler/BinaryCookieReader](https://github.com/as0ler/BinaryCookieReader).\n- Thanks to all the people who have contributed functionality and fixes:\n  - [@srlehn](https://github.com/srlehn) - many fixes, Linux support for Chrome, added about a dozen browsers!\n  - [@zippoxer](https://github.com/zippoxer) - Windows support for Chrome\n  - [@adamdecaf](https://github.com/adamdecaf) - Firefox support\n  - [@barnardb](https://github.com/barnardb) - better row abstraction, fixing column length errors\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrowserutils%2Fkooky","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrowserutils%2Fkooky","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrowserutils%2Fkooky/lists"}