From 56b521174f07eda0f4a89dfbf83e77dc6c7fee5f Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 7 Dec 2023 11:17:39 +0100 Subject: [PATCH] rita: init at 4.8.0 Framework for detecting command and control communication through network traffic analysis https://github.com/activecm/rita --- pkgs/by-name/ri/rita/package.nix | 34 ++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 pkgs/by-name/ri/rita/package.nix diff --git a/pkgs/by-name/ri/rita/package.nix b/pkgs/by-name/ri/rita/package.nix new file mode 100644 index 000000000000..d64002072a41 --- /dev/null +++ b/pkgs/by-name/ri/rita/package.nix @@ -0,0 +1,34 @@ +{ lib +, buildGoModule +, fetchFromGitHub +}: + +buildGoModule rec { + pname = "rita"; + version = "4.8.0"; + + src = fetchFromGitHub { + owner = "activecm"; + repo = "rita"; + rev = "refs/tags/v${version}"; + hash = "sha256-w86fGRH9pIqONgvdYpsHDNkE0BAuhzArET+NLIpRg/w="; + }; + + vendorHash = "sha256-KyC7VPgWlgKD6KWWRo3hFQHl2HjTub+VSMtJCpYE6Zk="; + + ldflags = [ + "-s" + "-w" + "-X=github.com/activecm/rita/config.Version=${version}" + "-X=github.com/activecm/rita/config.ExactVersion=${version}" + ]; + + meta = with lib; { + description = "Framework for detecting command and control communication through network traffic analysis"; + homepage = "https://github.com/activecm/rita"; + changelog = "https://github.com/activecm/rita/releases/tag/v${version}"; + license = licenses.gpl3Only; + maintainers = with maintainers; [ fab ]; + mainProgram = "rita"; + }; +}