{"id":19756621,"url":"https://github.com/esnet/bhr-zeek","last_synced_at":"2026-03-04T02:02:14.652Z","repository":{"id":110689878,"uuid":"310416275","full_name":"esnet/bhr-zeek","owner":"esnet","description":null,"archived":false,"fork":false,"pushed_at":"2020-11-05T21:14:13.000Z","size":20,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":12,"default_branch":"master","last_synced_at":"2025-02-28T09:11:53.700Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Zeek","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/esnet.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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}},"created_at":"2020-11-05T21:01:48.000Z","updated_at":"2020-11-05T21:14:15.000Z","dependencies_parsed_at":"2023-03-11T01:45:37.140Z","dependency_job_id":null,"html_url":"https://github.com/esnet/bhr-zeek","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/esnet/bhr-zeek","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/esnet%2Fbhr-zeek","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/esnet%2Fbhr-zeek/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/esnet%2Fbhr-zeek/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/esnet%2Fbhr-zeek/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/esnet","download_url":"https://codeload.github.com/esnet/bhr-zeek/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/esnet%2Fbhr-zeek/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30069223,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-04T01:03:42.280Z","status":"online","status_checked_at":"2026-03-04T02:00:07.464Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-11-12T03:16:26.551Z","updated_at":"2026-03-04T02:02:14.638Z","avatar_url":"https://github.com/esnet.png","language":"Zeek","funding_links":[],"categories":[],"sub_categories":[],"readme":"Zeek Integration for BHR\n=======================\n\nUsage\n-----\n\nIn local.zeek:\n\n    @load ./bhr-zeek\n\n    redef BHR::block_types += {\n        Scan::Port_Scan,\n        Scan::Address_Scan,\n    };\n\n    #optional\n    redef BHR::default_block_duration = 60mins;\n    redef BHR::block_durations += {\n        [Scan::Port_Scan]    = 30mins,\n    };\n    redef BHR::do_country_scaling = T;\n    redef BHR::country_scaling += {\n        [\"CN\"]  = 8.0,\n    };\n\nand if your default block time is less than 15 minutes:\n\n    redef Notice::type_suppression_intervals += {\n        [Scan::Port_Scan]    = 800sec,\n        [Scan::Address_Scan] = 800sec,\n    };\n\n\n\n\n\n\n\n-----\nNOTE:  The rest of this is no longer maintained in this repo as we've\nre-written the BHR queue to use redis and are planning a full BHR\nre-write.\n-----\n\n\n\nThere are two modes of operation:\n\n* Queue based: Zeek -\u003e dirq + dirq -\u003e BHR API\n* Direct Zeek -\u003e BHR API communication\n\nQueue\n-----\n\nThe default is to use dirq.  To process the queue you need to run\n\n    $ export BHR_TOKEN=abc91639287637189236193671983619783619c4\n    $ export BHR_HOST=http://localhost:8000\n    $ while true; do bhr.py run_queue ; sleep 2; done\n\n\n`run_queue` will stop after 10 minutes and fail fast on any errors, so it needs\nto be ran in a loop using upstart/systemd/etc.\n\nDirect\n------\n\nIf you don't want to setup queueing add to local.zeek:\n\n    redef BHR::mode = \"block\";\n\nand to zeekctl.cfg:\n\n    env_vars=BHR_TOKEN=abc91639287637189236193671983619783619c4,BHR_HOST=http://localhost:8000\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fesnet%2Fbhr-zeek","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fesnet%2Fbhr-zeek","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fesnet%2Fbhr-zeek/lists"}