{"id":18928841,"url":"https://github.com/lightninglabs/chanleakcheck","last_synced_at":"2025-04-15T14:31:40.460Z","repository":{"id":64303499,"uuid":"211231317","full_name":"lightninglabs/chanleakcheck","owner":"lightninglabs","description":"A tool to check if your lnd node was targeted by CVE-2019-12999","archived":false,"fork":false,"pushed_at":"2019-09-27T21:08:41.000Z","size":5282,"stargazers_count":10,"open_issues_count":0,"forks_count":6,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-28T22:34:44.072Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lightninglabs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-09-27T03:47:09.000Z","updated_at":"2024-08-12T19:53:24.000Z","dependencies_parsed_at":"2023-01-15T10:00:24.535Z","dependency_job_id":null,"html_url":"https://github.com/lightninglabs/chanleakcheck","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lightninglabs%2Fchanleakcheck","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lightninglabs%2Fchanleakcheck/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lightninglabs%2Fchanleakcheck/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lightninglabs%2Fchanleakcheck/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lightninglabs","download_url":"https://codeload.github.com/lightninglabs/chanleakcheck/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249088788,"owners_count":21210863,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-11-08T11:28:16.242Z","updated_at":"2025-04-15T14:31:39.105Z","avatar_url":"https://github.com/lightninglabs.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `chanleakcheck`\n\nThis a tool to check if your `lnd` node was targeted by CVE-2019-12999, which\nwas recently fully disclosed on. The tool will check if your node accepted an\ninvalid channel, as well as attempt to quantify the total amount of lost coins,\nif any.\n\nNote that this tool is only for `lnd`, however both `eclair` and `c-lightning`\nalso have tools for detection as well:\n\n  * [eclair's tool](https://github.com/ACINQ/detection-tool-cve-2019-13000)\n  * [c-lightning's tool](https://ozlabs.org/~rusty/clightning-checkchannels)\n\n## Installation \n\nYou can build the tool with\n```\ngo build -mod=vendor -v\n```\n\n## Checking Your Node\n\nOnce the tool has been installed, you can check a target node with the\nfollowing command:\n```\n./chanleakcheck\n```\n\nIf your node wasn't affected, then you should see something like:\n```\n2019/09/27 10:35:10 Your node was not affected by CVE-2019-12999!\n```\n\nOtherwise, a break down of each invalid channel along with the invalid forwards\nwill be shown.\n\nThe default execution of the command assumes the binary is being run from the\nsame machine as the target node, and the node is using default locations for\nit's config/cert. Arguments of the tool have been provided to allow the tool to\ncheck against a remote node:\n```\n   ./chanleakcheck -h\nUsage of ./chanleakcheck:\n  -host string\n    \thost of the target lnd node (default \"localhost:10009\")\n  -macdir string\n    \tpath to the readonly macaroon for the target lnd node (default \"\")\n  -network string\n    \tthe network the lnd node is running on (default:mainnet) (default \"mainnet\")\n  -tlspath string\n    \tpath to the TLS cert of the target lnd node (default \"\")\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flightninglabs%2Fchanleakcheck","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flightninglabs%2Fchanleakcheck","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flightninglabs%2Fchanleakcheck/lists"}