{"id":33245388,"url":"https://github.com/D4-project/d4-core","last_synced_at":"2026-03-29T21:00:45.086Z","repository":{"id":93932707,"uuid":"159179369","full_name":"D4-project/d4-core","owner":"D4-project","description":"D4 core software (server and sample sensor client) ","archived":false,"fork":false,"pushed_at":"2023-12-23T16:58:53.000Z","size":4586,"stargazers_count":42,"open_issues_count":23,"forks_count":10,"subscribers_count":8,"default_branch":"master","last_synced_at":"2026-02-01T10:19:03.096Z","etag":null,"topics":["d4-project","network-monitoring","network-security","threat-intelligence"],"latest_commit_sha":null,"homepage":"https://www.d4-project.org/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/D4-project.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}},"created_at":"2018-11-26T14:07:12.000Z","updated_at":"2025-02-04T10:16:08.000Z","dependencies_parsed_at":null,"dependency_job_id":"d12df984-e66e-4521-952c-ce8bac6e0ba1","html_url":"https://github.com/D4-project/d4-core","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/D4-project/d4-core","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/D4-project%2Fd4-core","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/D4-project%2Fd4-core/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/D4-project%2Fd4-core/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/D4-project%2Fd4-core/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/D4-project","download_url":"https://codeload.github.com/D4-project/d4-core/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/D4-project%2Fd4-core/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31164979,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-29T18:55:37.765Z","status":"ssl_error","status_checked_at":"2026-03-29T18:55:04.089Z","response_time":89,"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":["d4-project","network-monitoring","network-security","threat-intelligence"],"created_at":"2025-11-16T21:00:32.225Z","updated_at":"2026-03-29T21:00:45.080Z","avatar_url":"https://github.com/D4-project.png","language":"Python","readme":"# D4 core\n\n![](https://www.d4-project.org/assets/images/logo.png)\n\nD4 core are software components used in the D4 project. The software includes everything to create your own sensor network or connect\nto an existing sensor network using simple clients.\n\n![https://github.com/D4-project/d4-core/releases/latest](https://img.shields.io/github/release/D4-project/d4-core/all.svg)\n![https://github.com/D4-project/d4-core/blob/master/LICENSE](https://img.shields.io/badge/License-AGPL-yellow.svg)\n\n## D4 core client\n\n[D4 core client](https://github.com/D4-project/d4-core/tree/master/client) is a simple and minimal implementation of the [D4 encapsulation protocol](https://github.com/D4-project/architecture/tree/master/format). There is also a [portable D4 client](https://github.com/D4-project/d4-goclient) in Go including the support for the SSL/TLS connectivity.\n\n\u003cp align=\"center\"\u003e\n\u003cimg alt=\"d4-cclient\" src=\"https://raw.githubusercontent.com/D4-project/d4-core/master/client/media/d4c-client.png\" height=\"140\" /\u003e\n\u003c/p\u003e\n\n### Requirements\n\n- Unix-like operating system\n- make\n- a recent C compiler\n\n### Usage\n\nThe D4 client can be used to stream any byte stream towards a D4 server.\n\nAs an example, you directly stream tcpdump output to a D4 server with the following\nscript:\n\n````\ntcpdump -n -s0 -w - | ./d4 -c ./conf | socat - OPENSSL-CONNECT:$D4-SERVER-IP-ADDRESS:$PORT,verify=0\n````\n\n~~~~\nd4 - d4 client\nRead data from the configured \u003csource\u003e and send it to \u003cdestination\u003e\n\nUsage: d4 -c  config_directory\n\nConfiguration\n\nThe configuration settings are stored in files in the configuration directory\nspecified with the -c command line switch.\n\nFiles in the configuration directory\n\nkey         - is the private HMAC-SHA-256-128 key.\n              The HMAC is computed on the header with a HMAC value set to 0\n              which is updated later.\nsnaplen     - the length of bytes that is read from the \u003csource\u003e\nversion     - the version of the d4 client\ntype        - the type of data that is send. pcap, netflow, ...\nsource      - the source where the data is read from\ndestination - the destination where the data is written to\n~~~~\n\n### Installation\n\n~~~~\ncd client\ngit submodule init\ngit submodule update\n~~~~\n\nBuild the d4 client. This will create the `d4` binary.\n\n~~~~\nmake\n~~~~\n\nThen register the sensor with the server. Replace `API_TOKEN`, `VALID_UUID4` (create a random UUID via [UUIDgenerator](https://www.uuidgenerator.net/)) and `VALID_HMAC_KEY`.\n\n~~~~\ncurl -k https://127.0.0.1:7000/api/v1/add/sensor/register --header \"Authorization: API_TOKEN\" -H \"Content-Type: application/json\" --data '{\"uuid\":\"VALID_UUID4\",\"hmac_key\":\"VALID_HMAC_KEY\"}' -X POST\n~~~~\n\nIf the registration went correctly the UUID is returned. Do not forget to approve the registration in the D4 server web interface.\n\nUpdate the configuration file\n\n~~~~\ncp -r conf.sample conf\necho VALID_UUID4 \u003e conf/uuid\necho VALID_HMAC_KEY \u003e conf/key\n~~~~\n\n## D4 core server\n\nD4 core server is a complete server to handle clients (sensors) including the decapsulation of the [D4 protocol](https://github.com/D4-project/architecture/tree/master/format), control of sensor registrations, management of decoding protocols and dispatching to adequate decoders/analysers.\n\n### Requirements\n\n- Python 3.6\n- GNU/Linux distribution\n\n### Installation\n\n- [Install D4 Server](https://github.com/D4-project/d4-core/tree/master/server)\n\n### D4 core server Screenshots\n\n#### Dashboard:\n![](https://raw.githubusercontent.com/D4-project/d4-core/master/doc/images/main.png)\n\n#### Connected Sensors:\n![](https://raw.githubusercontent.com/D4-project/d4-core/master/doc/images/sensor-mgmt.png)\n\n#### Sensors Status:\n![](https://raw.githubusercontent.com/D4-project/d4-core/master/doc/images/sensor_status.png)\n![](https://raw.githubusercontent.com/D4-project/d4-core/master/doc/images/sensor_stat_types.png)\n![](https://raw.githubusercontent.com/D4-project/d4-core/master/doc/images/sensor_stat_files.png)\n\n#### Server Management:\n![](https://raw.githubusercontent.com/D4-project/d4-core/master/doc/images/server-management.png)\n![](https://raw.githubusercontent.com/D4-project/d4-core/master/doc/images/server-management-types.png)\n\n#### analyzer Queues:\n![](https://raw.githubusercontent.com/D4-project/d4-core/master/doc/images/analyzer-queues.png)\n![](https://raw.githubusercontent.com/D4-project/d4-core/master/doc/images/create_analyzer_queue.png)\n![](https://raw.githubusercontent.com/D4-project/d4-core/master/doc/images/analyzer-mgmt.png)\n","funding_links":[],"categories":["Blue Team"],"sub_categories":["Threat Hunting"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FD4-project%2Fd4-core","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FD4-project%2Fd4-core","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FD4-project%2Fd4-core/lists"}