{"id":17677718,"url":"https://github.com/kaliiiiiiiiii/brotector","last_synced_at":"2025-10-20T00:45:57.845Z","repository":{"id":238594404,"uuid":"796933181","full_name":"kaliiiiiiiiii/brotector","owner":"kaliiiiiiiiii","description":"An advanced antibot for webdrivers","archived":false,"fork":false,"pushed_at":"2024-12-03T14:33:39.000Z","size":1729,"stargazers_count":167,"open_issues_count":6,"forks_count":8,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-03-29T03:02:36.913Z","etag":null,"topics":["antibot","automation-detection","bot-detection","integrity-protection"],"latest_commit_sha":null,"homepage":"https://kaliiiiiiiiii.github.io/brotector/","language":"JavaScript","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/kaliiiiiiiiii.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":["kaliiiiiiiiii"],"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"lfx_crowdfunding":null,"polar":null,"buy_me_a_coffee":"kaliiii","thanks_dev":null,"custom":null}},"created_at":"2024-05-06T22:24:33.000Z","updated_at":"2025-03-24T07:05:57.000Z","dependencies_parsed_at":"2025-02-17T23:28:42.094Z","dependency_job_id":"e0b93148-a344-4f38-8e60-383a5c1bbeee","html_url":"https://github.com/kaliiiiiiiiii/brotector","commit_stats":null,"previous_names":["kaliiiiiiiiii/brotector"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaliiiiiiiiii%2Fbrotector","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaliiiiiiiiii%2Fbrotector/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaliiiiiiiiii%2Fbrotector/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaliiiiiiiiii%2Fbrotector/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kaliiiiiiiiii","download_url":"https://codeload.github.com/kaliiiiiiiiii/brotector/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247284944,"owners_count":20913704,"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":["antibot","automation-detection","bot-detection","integrity-protection"],"created_at":"2024-10-24T07:41:40.917Z","updated_at":"2025-10-20T00:45:52.803Z","avatar_url":"https://github.com/kaliiiiiiiiii.png","language":"JavaScript","funding_links":["https://github.com/sponsors/kaliiiiiiiiii","https://buymeacoffee.com/kaliiii"],"categories":[],"sub_categories":[],"readme":"# Brotector\n\n\nDetects or even **crashes** (❌) webdrivers such as:\n- [x] [driverless](https://github.com/kaliiiiiiiiii/Selenium-Driverless)\n  - [ ] **with [cdp-patches](https://github.com/Kaliiiiiiiiii-Vinyzu/CDP-Patches)**\n- [x] [selenium](https://github.com/SeleniumHQ/selenium/tree/trunk/py#selenium-client-driver) ❌\n  - [x] [undetected-chromedriver](https://github.com/ultrafunkamsterdam/undetected-chromedriver)\n  - [x] [seleniumbase](https://github.com/seleniumbase/SeleniumBase)\n- [x] [puppeteer](https://github.com/puppeteer/puppeteer) ❌\n  - [ ] [puppeteer-extra-stealth](https://github.com/berstend/puppeteer-extra/tree/master/packages/puppeteer-extra-plugin-stealth#puppeteer-extra-plugin-stealth---)\n  - [x] [pyppeteer](https://github.com/pyppeteer/pyppeteer)\n    - [x] [pyppeteer-stealth](https://github.com/MeiK2333/pyppeteer_stealth)\n- [x] [playwright](https://github.com/microsoft/playwright-python) ❌\n  - [x] [undetected-playwright](https://github.com/kaliiiiiiiiii/undetected-playwright-python) (buggy)\n    - [ ] with [cdp-patches](https://github.com/Kaliiiiiiiiii-Vinyzu/CDP-Patches) (no test yet)\n  - [x] [botright](https://github.com/Vinyzu/Botright)\n    - [x] with [uc-playwright](https://github.com/kaliiiiiiiiii/undetected-playwright-python) (buggy)\n      - [ ] with [cdp-patches](https://github.com/Kaliiiiiiiiii-Vinyzu/CDP-Patches) (no test yet)\n- [x] [nodriver](https://github.com/ultrafunkamsterdam/nodriver)\n- [x] [@ulixee/hero](https://github.com/ulixee/hero)\n\nFor the tests, each webdriver has at least to click the button with the **ID** `clickHere`\n\n\n## Detections\n\n\u003cp float=\"left\"\u003e\n  \u003cimg src=\"assets/example_screenshot_headless.png\" width=\"49%\" /\u003e\n  \u003cimg src=\"assets/brotector_error_message.png\" width=\"50%\" /\u003e \n\u003c/p\u003e\n\n#### navigator.webdriver\n\n`navigator.webdriver` (JavaScript) is set to `true`\n\n-----\n#### runtime.enabled\n\n[`Runtime`](https://chromedevtools.github.io/devtools-protocol/tot/Runtime) is enabled \\\nscore here refers to the certainty of the \noccurs when:\n  - [`Runtime.enable`](https://chromedevtools.github.io/devtools-protocol/tot/Runtime/#method-enable) or [`Console.enable`](https://chromedevtools.github.io/devtools-protocol/tot/Console/#method-enable) (CDP) has been called (most libraries do that, type=webdriver)\n  - the user opens the devtools (type=devtools)\n\n-----\n#### Input.cordinatesLeak\noccurs due to [crbug#1477537](https://bugs.chromium.org/p/chromium/issues/detail?id=1477537) \\\n[CDP-Patches](https://github.com/Kaliiiiiiiiii-Vinyzu/CDP-Patches) can be used to bypass this\n\n-----\n#### window.cdc\na leak specific to **chromedriver** (selenium) \\\nsee [stackoverflow-answer](https://stackoverflow.com/a/75776883/20443541)\n\n----\n#### \"Input.untrusted\"\nMouse event not dispatched by a user detected\nsee [`Event.isTrusted`](https://developer.mozilla.org/en-US/docs/Web/API/Event/isTrusted) property\n\n----\n#### canvasMouseVisualizer\n`CanvasRenderingContext2D.arc` has been called with\n- cordinates +-5px at current mouse position\n- canvas +-1px covers the whole page\n- canvas passes pointerEvents through\n\n----\n#### UAOverride\n[`navigator.userAgentData.getHighEntropyValues`](https://developer.mozilla.org/en-US/docs/Web/API/NavigatorUAData/getHighEntropyValues) has empty data \\\n  (type=`HighEntropyValues.empty`, UA meaning UserAgent)\n\n----\n#### SeleniumScriptInjection\n- Detects when selenium tries to [inject a script](https://github.com/kaliiiiiiiiii/brotector/issues/6) (even used for finding elements)\n- makes selenium (any chromedriver-based framework) crash (bypassable for testing [`?crash=false`](https://kaliiiiiiiiii.github.io/brotector/?crash=false))\n- just **don't use selenium** lol\n\n----\n#### PWinitScript\n- detects `playwright\u003e=1.46.1`, induced with [commit](https://github.com/microsoft/playwright/commit/c9e673c6dca746384338ab6bb0cf63c7e7caa9b2#diff-087773eea292da9db5a3f27de8f1a2940cdb895383ad750c3cd8e01772a35b40R909-R924)\n\n----\n#### stack.signature\ndetects injected javascript based on the stack trace in hooks\n\n----\n#### pdfStyle\na detection regarding PDF rendering,\nspecific to puppeteer [github issue](https://github.com/kaliiiiiiiiii/brotector/issues/5) or `--enable-field-trial-config` \\\nNote: There might be false-positives\n\n\n----\n#### popupCrash\ncrashes chrome when automated with playwright or puppeteer due to [crbug#340836884](https://issues.chromium.org/issues/340836884)\n(bypassable for testing [`?crash=false`](https://kaliiiiiiiiii.github.io/brotector/?crash=false))\n\n## Contribution\nfeel free to\n- open `[feature request]`s for driver detections\n- open PRs\n- use the discussions\n\n## Licence\nsee [LICENSE](https://github.com/kaliiiiiiiiii/brotector/blob/master/LICENSE)\n\n## Author \u0026 Copyright\n\nAurin Aegerter (aka Steve, kaliiiiiiiiii)\n\n## Thanks // References\n- [selenium-detector](https://github.com/HMaker/HMaker.github.io/tree/master/selenium-detector)\n- [jdetects](https://github.com/zswang/jdetects)\n- thanks @ProseccoRider - some further `Runtime.enable` detection insights\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkaliiiiiiiiii%2Fbrotector","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkaliiiiiiiiii%2Fbrotector","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkaliiiiiiiiii%2Fbrotector/lists"}