From 7694f103d2ef3282f1722844247de9e7e04abbe4 Mon Sep 17 00:00:00 2001 From: Marsel Mavletkulov Date: Fri, 15 Nov 2024 13:00:59 -0500 Subject: [PATCH] Add IP-Risk sample db --- pkg/writer/geoip2.go | 1 + source-data/GeoIP2-IP-Risk-Test.json | 33 ++++++++++++++++++ test-data/GeoIP2-Anonymous-IP-Test.mmdb | Bin 4668 -> 4668 bytes test-data/GeoIP2-City-Test.mmdb | Bin 22451 -> 22451 bytes test-data/GeoIP2-Connection-Type-Test.mmdb | Bin 4537 -> 4537 bytes test-data/GeoIP2-Country-Test.mmdb | Bin 19744 -> 19744 bytes test-data/GeoIP2-DensityIncome-Test.mmdb | Bin 3057 -> 3057 bytes test-data/GeoIP2-Domain-Test.mmdb | Bin 6449 -> 6449 bytes test-data/GeoIP2-Enterprise-Test.mmdb | Bin 9934 -> 9934 bytes test-data/GeoIP2-IP-Risk-Test.mmdb | Bin 0 -> 3134 bytes test-data/GeoIP2-ISP-Test.mmdb | Bin 75076 -> 75076 bytes .../GeoIP2-Precision-Enterprise-Test.mmdb | Bin 19739 -> 19739 bytes test-data/GeoIP2-Static-IP-Score-Test.mmdb | Bin 9938 -> 9938 bytes test-data/GeoIP2-User-Count-Test.mmdb | Bin 5006 -> 5006 bytes test-data/GeoLite2-ASN-Test.mmdb | Bin 12653 -> 12653 bytes test-data/GeoLite2-City-Test.mmdb | Bin 21117 -> 21117 bytes test-data/GeoLite2-Country-Test.mmdb | Bin 18041 -> 18041 bytes test-data/MaxMind-DB-no-ipv4-search-tree.mmdb | Bin 616 -> 616 bytes .../MaxMind-DB-string-value-entries.mmdb | Bin 1334 -> 1334 bytes test-data/MaxMind-DB-test-decoder.mmdb | Bin 3188 -> 3188 bytes test-data/MaxMind-DB-test-ipv4-24.mmdb | Bin 1285 -> 1285 bytes test-data/MaxMind-DB-test-ipv4-28.mmdb | Bin 1448 -> 1448 bytes test-data/MaxMind-DB-test-ipv4-32.mmdb | Bin 1611 -> 1611 bytes test-data/MaxMind-DB-test-ipv6-24.mmdb | Bin 2794 -> 2794 bytes test-data/MaxMind-DB-test-ipv6-28.mmdb | Bin 3209 -> 3209 bytes test-data/MaxMind-DB-test-ipv6-32.mmdb | Bin 3624 -> 3624 bytes .../MaxMind-DB-test-metadata-pointers.mmdb | Bin 2249 -> 2249 bytes test-data/MaxMind-DB-test-mixed-24.mmdb | Bin 3048 -> 3048 bytes test-data/MaxMind-DB-test-mixed-28.mmdb | Bin 3492 -> 3492 bytes test-data/MaxMind-DB-test-mixed-32.mmdb | Bin 3936 -> 3936 bytes test-data/MaxMind-DB-test-nested.mmdb | Bin 2589 -> 2589 bytes 31 files changed, 34 insertions(+) create mode 100644 source-data/GeoIP2-IP-Risk-Test.json create mode 100644 test-data/GeoIP2-IP-Risk-Test.mmdb diff --git a/pkg/writer/geoip2.go b/pkg/writer/geoip2.go index e57c82e..a95c0af 100644 --- a/pkg/writer/geoip2.go +++ b/pkg/writer/geoip2.go @@ -23,6 +23,7 @@ func (w *Writer) WriteGeoIP2TestDB() error { "GeoIP2-DensityIncome", "GeoIP2-Domain", "GeoIP2-Enterprise", + "GeoIP2-IP-Risk", "GeoIP2-ISP", "GeoIP2-Precision-Enterprise", "GeoIP2-Static-IP-Score", diff --git a/source-data/GeoIP2-IP-Risk-Test.json b/source-data/GeoIP2-IP-Risk-Test.json new file mode 100644 index 0000000..9005996 --- /dev/null +++ b/source-data/GeoIP2-IP-Risk-Test.json @@ -0,0 +1,33 @@ +[ + { + "::214.2.3.0/126": { + "ip_risk": 25, + "is_anonymous": true, + "is_anonymous_vpn": true + } + }, + { + "::214.2.3.4/128": { + "ip_risk": 50, + "is_anonymous": true, + "is_anonymous_vpn": true, + "is_tor_exit_node": true + } + }, + { + "::214.2.3.5/128": { + "ip_risk": 90, + "is_anonymous": true, + "is_anonymous_vpn": true, + "is_hosting_provider": true, + "is_public_proxy": true, + "is_residential_proxy": true, + "is_tor_exit_node": true + } + }, + { + "::214.2.3.6/128": { + "ip_risk": 85 + } + } +] diff --git a/test-data/GeoIP2-Anonymous-IP-Test.mmdb b/test-data/GeoIP2-Anonymous-IP-Test.mmdb index e84876810911adcc14637d8a8b70488875631f74..814eb0ae83167243e2d427333ca28504e087ea5e 100644 GIT binary patch delta 15 Wcmdm^vPWe@y&$u7Q~Km4!Ce3_*aipy delta 15 Wcmdm^vPWe@y&yAd|Fy|Yg1Z1Q*9J}i diff --git a/test-data/GeoIP2-City-Test.mmdb b/test-data/GeoIP2-City-Test.mmdb index bf3cbe783593e60c16bf2e97f27ad7b692bb17c9..6aeb8849b050e771d3e5d941dd0c9b8e63f6f6b7 100644 GIT binary patch delta 17 ZcmdnIo^kVf#tk3Cn5~=ACw~ds4**L82!Q|q delta 17 ZcmdnIo^kVf#tk3Cm|6R;P5u(L9{@}O2*&^b diff --git a/test-data/GeoIP2-Connection-Type-Test.mmdb b/test-data/GeoIP2-Connection-Type-Test.mmdb index 2172bc9c27a337e732ec053626f63dcf7dc2daa5..4ce96065442ecaf7ece836f40793b42db018d013 100644 GIT binary patch delta 15 Xcmdm~yi<9@Hvwkrru4}_1r7iJHgE>= delta 15 Xcmdm~yi<9@HvwkW{%eze3LF3cH*W_x diff --git a/test-data/GeoIP2-Country-Test.mmdb b/test-data/GeoIP2-Country-Test.mmdb index a5989654ebd25f3e9d4c043692cd1e0e66915aac..44cf7a36f629579420bebb8e8f9b673a79bacfaa 100644 GIT binary patch delta 17 ZcmZ25i*dm$#tpeX%+^imlM8${002KE2L=ED delta 17 ZcmZ25i*dm$#tpeX%&h&_CKvc@002NE2TT9} diff --git a/test-data/GeoIP2-DensityIncome-Test.mmdb b/test-data/GeoIP2-DensityIncome-Test.mmdb index 3ad54fbf521113ad0a108df05f04b19a52ea97de..cc06ebc95c5fe232706de94f430f3c44374cb6d0 100644 GIT binary patch delta 15 Wcmew;{!x5`5jV4SQ~G36?mYl8DFw6u delta 15 Wcmew;{!x5`5jQhy|Fy}c+7TB`FE8jWOStyTg2A?k>!Q zxjTc6F=Oub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qlO(x84)v~#!(qr$iX0AOASga7~l diff --git a/test-data/GeoIP2-Precision-Enterprise-Test.mmdb b/test-data/GeoIP2-Precision-Enterprise-Test.mmdb index dfe51ba64aaddca258d08008f0012994449183dd..d24889ef9876e45dbe87d9ac924ba101e32e4b3c 100644 GIT binary patch delta 17 ZcmbO|i*fcW#tnWx%+^imlLLKD0RTM^2G{@q delta 17 ZcmbO|i*fcW#tnWx%&h&_CI|YQ0suY_2Oa7!i delta 15 XcmaEx^fqb3J_Baf{%eyD8ms{TLHP&T diff --git a/test-data/GeoLite2-City-Test.mmdb b/test-data/GeoLite2-City-Test.mmdb index 9eea131c76b70774e1c81ba78b30f01f33954aad..7975357e3a77c9fb9831a30c5aa594ff86b2280b 100644 GIT binary patch delta 17 Zcmeyngz@hZ#tmlznXQ}BC!Y^o2LMo!2$}!@ delta 17 Zcmeyngz@hZ#tmlznOXab8iIzIgtks diff --git a/test-data/MaxMind-DB-test-ipv4-24.mmdb b/test-data/MaxMind-DB-test-ipv4-24.mmdb index 001ee2e44427b99eea1b5c863bbe7411c8f0a262..48a26f9a56fb505b259683b6e5cb32801f222c2f 100644 GIT binary patch delta 15 WcmZqWYUSF{z`|_Zls>tcr3nBhb_Esy delta 15 WcmZqWYUSF{z{1She{FIzOA`Pnbp>1i diff --git a/test-data/MaxMind-DB-test-ipv4-28.mmdb b/test-data/MaxMind-DB-test-ipv4-28.mmdb index 2fe5d28de49f3ebc9ab78a6cce2fbbfea4094bfe..c8fa2c0736b35ff1a1ec7fbcbc10b451a45a8279 100644 GIT binary patch delta 15 WcmZ3%y@Gp#GApxnQ~G2z)+PWZwgjdC delta 15 WcmZ3%y@Gp#GAlD{|Fy|#tW5wXwFK+{ diff --git a/test-data/MaxMind-DB-test-ipv4-32.mmdb b/test-data/MaxMind-DB-test-ipv4-32.mmdb index 4690e304111929c333eb829ac7d72e0d5d1d6d0b..ca0909c6be0d74f056ae62ad6d267b2aea017d02 100644 GIT binary patch delta 15 WcmX@jbDC$vF;-^lru4}tS(^Yd>jpFc delta 15 XcmX@jbDC$vF;-^Q{%ey@vNiz#GwKF< diff --git a/test-data/MaxMind-DB-test-ipv6-24.mmdb b/test-data/MaxMind-DB-test-ipv6-24.mmdb index dc9c9f1db06ee6d9cb16d9b16b810ef3c84a7d88..f5362664a7f77ca8829e9bd3730bfb2b57723e8a 100644 GIT binary patch delta 15 WcmaDQ`bu;|3Kz3=Q~Km|u4Vu-cLmD; delta 15 WcmaDQ`bu;|3KuhL|Fy~KT+IM8b_Nju diff --git a/test-data/MaxMind-DB-test-ipv6-28.mmdb b/test-data/MaxMind-DB-test-ipv6-28.mmdb index fefc0c7a142be03dc1b9afd2b0d5f622bc911d0c..7500317b845c9db8508d92744feb038421c92552 100644 GIT binary patch delta 15 WcmeB_?3CQV%)@Nmls=h_rx^evYy?vP delta 15 WcmeB_?3CQV%)`vue{C`wPcr}{YXq49 diff --git a/test-data/MaxMind-DB-test-ipv6-32.mmdb b/test-data/MaxMind-DB-test-ipv6-32.mmdb index a9fa86dece55b5ff85020bcbeca1bb2b7f40bf65..8a26b98cd02b79475f3e936a72cd05b327b6b0cc 100644 GIT binary patch delta 15 WcmZ1>vqEOWB3@?eru4~6d7A+*JO$SP delta 15 XcmZ1>vqEOWB3@?J{%ez$@-_niFgpev diff --git a/test-data/MaxMind-DB-test-metadata-pointers.mmdb b/test-data/MaxMind-DB-test-metadata-pointers.mmdb index c796580e704e8592238e955d66e07514b8de23d4..2a370cda4b15f8c89959e6b613b303e998235812 100644 GIT binary patch delta 15 WcmX>pcv5hK3kS1xQ~G3gjwS#syahY} delta 15 WcmX>pcv5hK3kNf6|Fy~P98CZ%y9I&( diff --git a/test-data/MaxMind-DB-test-mixed-24.mmdb b/test-data/MaxMind-DB-test-mixed-24.mmdb index 345dfbaa42351a3924cbe00789c1ef5ed514eeb0..3cc411d19aa2f432f555001992cad82b019af282 100644 GIT binary patch delta 15 WcmaDM{z8015;wDTQ~Kmo?q&coWCh6p delta 15 WcmaDM{z8015;rqz|Fy}f+|2+pV+IcZ diff --git a/test-data/MaxMind-DB-test-mixed-28.mmdb b/test-data/MaxMind-DB-test-mixed-28.mmdb index fe19577c0ad8ef3535cccb463b0b407c78ea076e..0acb2909253abe52842c8d2a2b66ab51b88d0944 100644 GIT binary patch delta 15 WcmZ1?y+nG0951tVQ~G2@-ev$N{shGU delta 15 WcmZ1?y+nG094|9#|Fy}Ayv+b8{RImE diff --git a/test-data/MaxMind-DB-test-mixed-32.mmdb b/test-data/MaxMind-DB-test-mixed-32.mmdb index 61a574a8d048a12c0d83947e0060bffd2fcaf7b8..c05000d6fef52cd1b17f9a6f5801b7cfba66fcd7 100644 GIT binary patch delta 15 WcmaDL_dssLEk0)Jru4~o`I-SZa|XQt delta 15 XcmaDL_dssLEk0(}{%e!(@-+hhIdTUB diff --git a/test-data/MaxMind-DB-test-nested.mmdb b/test-data/MaxMind-DB-test-nested.mmdb index ebd3c6b1463cc5a6444486e02b3f94b811b33414..2e94e016a5ecb62680b2dc68a089466f4129c9fc 100644 GIT binary patch delta 15 WcmbO$GFN1SGbgikQ~G2#&g%dujRijd delta 15 WcmbO$GFN1SGbb}^|Fy|(oYw&