mihari 3.5.0 → 3.7.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (158) hide show
  1. checksums.yaml +4 -4
  2. data/.gitmodules +3 -0
  3. data/README.md +2 -0
  4. data/Steepfile +32 -0
  5. data/config.ru +1 -0
  6. data/lib/mihari/analyzers/base.rb +24 -11
  7. data/lib/mihari/analyzers/binaryedge.rb +13 -0
  8. data/lib/mihari/analyzers/censys.rb +42 -9
  9. data/lib/mihari/analyzers/circl.rb +15 -0
  10. data/lib/mihari/analyzers/crtsh.rb +5 -0
  11. data/lib/mihari/analyzers/dnpedia.rb +5 -0
  12. data/lib/mihari/analyzers/dnstwister.rb +17 -0
  13. data/lib/mihari/analyzers/onyphe.rb +50 -9
  14. data/lib/mihari/analyzers/otx.rb +20 -0
  15. data/lib/mihari/analyzers/passivetotal.rb +25 -0
  16. data/lib/mihari/analyzers/pulsedive.rb +10 -0
  17. data/lib/mihari/analyzers/rule.rb +18 -0
  18. data/lib/mihari/analyzers/securitytrails.rb +25 -0
  19. data/lib/mihari/analyzers/shodan.rb +39 -5
  20. data/lib/mihari/analyzers/spyse.rb +20 -0
  21. data/lib/mihari/analyzers/urlscan.rb +10 -0
  22. data/lib/mihari/analyzers/virustotal.rb +20 -0
  23. data/lib/mihari/analyzers/zoomeye.rb +38 -0
  24. data/lib/mihari/{constraints.rb → constants.rb} +0 -0
  25. data/lib/mihari/database.rb +55 -3
  26. data/lib/mihari/emitters/base.rb +1 -1
  27. data/lib/mihari/emitters/misp.rb +38 -5
  28. data/lib/mihari/emitters/slack.rb +20 -2
  29. data/lib/mihari/emitters/the_hive.rb +16 -3
  30. data/lib/mihari/emitters/webhook.rb +18 -3
  31. data/lib/mihari/enrichers/base.rb +18 -0
  32. data/lib/mihari/enrichers/ipinfo.rb +49 -0
  33. data/lib/mihari/mixins/autonomous_system.rb +19 -0
  34. data/lib/mihari/mixins/disallowed_data_value.rb +1 -1
  35. data/lib/mihari/models/alert.rb +8 -4
  36. data/lib/mihari/models/artifact.rb +94 -0
  37. data/lib/mihari/models/autonomous_system.rb +26 -0
  38. data/lib/mihari/models/dns.rb +55 -0
  39. data/lib/mihari/models/geolocation.rb +29 -0
  40. data/lib/mihari/models/reverse_dns.rb +26 -0
  41. data/lib/mihari/models/whois.rb +119 -0
  42. data/lib/mihari/schemas/rule.rb +2 -15
  43. data/lib/mihari/serializers/alert.rb +6 -4
  44. data/lib/mihari/serializers/artifact.rb +11 -2
  45. data/lib/mihari/serializers/autonomous_system.rb +9 -0
  46. data/lib/mihari/serializers/dns.rb +11 -0
  47. data/lib/mihari/serializers/geolocation.rb +11 -0
  48. data/lib/mihari/serializers/reverse_dns.rb +11 -0
  49. data/lib/mihari/serializers/tag.rb +4 -2
  50. data/lib/mihari/serializers/whois.rb +11 -0
  51. data/lib/mihari/status.rb +7 -2
  52. data/lib/mihari/structs/censys.rb +92 -0
  53. data/lib/mihari/structs/ipinfo.rb +39 -0
  54. data/lib/mihari/structs/onyphe.rb +47 -0
  55. data/lib/mihari/structs/shodan.rb +53 -0
  56. data/lib/mihari/type_checker.rb +9 -9
  57. data/lib/mihari/types.rb +21 -0
  58. data/lib/mihari/version.rb +1 -1
  59. data/lib/mihari/web/controllers/artifacts_controller.rb +53 -8
  60. data/lib/mihari/web/controllers/ip_address_controller.rb +4 -19
  61. data/lib/mihari/web/controllers/sources_controller.rb +2 -2
  62. data/lib/mihari/web/public/index.html +1 -1
  63. data/lib/mihari/web/public/redoc-static.html +7 -6
  64. data/lib/mihari/web/public/static/js/app.06d5cf1c.js +36 -0
  65. data/lib/mihari/web/public/static/js/app.06d5cf1c.js.map +1 -0
  66. data/lib/mihari/web/public/static/js/app.8e3e5150.js +36 -0
  67. data/lib/mihari/web/public/static/js/app.8e3e5150.js.map +1 -0
  68. data/lib/mihari.rb +39 -5
  69. data/mihari.gemspec +10 -1
  70. data/sig/lib/mihari/analyzers/base.rbs +90 -0
  71. data/sig/lib/mihari/analyzers/basic.rbs +17 -0
  72. data/sig/lib/mihari/analyzers/binaryedge.rbs +25 -0
  73. data/sig/lib/mihari/analyzers/censys.rbs +38 -0
  74. data/sig/lib/mihari/analyzers/circl.rbs +29 -0
  75. data/sig/lib/mihari/analyzers/crtsh.rbs +19 -0
  76. data/sig/lib/mihari/analyzers/dnpedia.rbs +18 -0
  77. data/sig/lib/mihari/analyzers/dnstwister.rbs +27 -0
  78. data/sig/lib/mihari/analyzers/onyphe.rbs +33 -0
  79. data/sig/lib/mihari/analyzers/otx.rbs +33 -0
  80. data/sig/lib/mihari/analyzers/passivetotal.rbs +33 -0
  81. data/sig/lib/mihari/analyzers/pulsedive.rbs +27 -0
  82. data/sig/lib/mihari/analyzers/rule.rbs +68 -0
  83. data/sig/lib/mihari/analyzers/securitytrails.rbs +33 -0
  84. data/sig/lib/mihari/analyzers/shodan.rbs +33 -0
  85. data/sig/lib/mihari/analyzers/spyse.rbs +29 -0
  86. data/sig/lib/mihari/analyzers/urlscan.rbs +28 -0
  87. data/sig/lib/mihari/analyzers/virustotal.rbs +31 -0
  88. data/sig/lib/mihari/analyzers/zoomeye.rbs +33 -0
  89. data/sig/lib/mihari/cli/analyzer.rbs +39 -0
  90. data/sig/lib/mihari/cli/base.rbs +11 -0
  91. data/sig/lib/mihari/cli/init.rbs +7 -0
  92. data/sig/lib/mihari/cli/main.rbs +9 -0
  93. data/sig/lib/mihari/cli/mixins/utils.rbs +50 -0
  94. data/sig/lib/mihari/cli/validator.rbs +7 -0
  95. data/sig/lib/mihari/commands/binaryedge.rbs +7 -0
  96. data/sig/lib/mihari/commands/censys.rbs +7 -0
  97. data/sig/lib/mihari/commands/circl.rbs +7 -0
  98. data/sig/lib/mihari/commands/crtsh.rbs +7 -0
  99. data/sig/lib/mihari/commands/dnpedia.rbs +7 -0
  100. data/sig/lib/mihari/commands/dnstwister.rbs +7 -0
  101. data/sig/lib/mihari/commands/init.rbs +11 -0
  102. data/sig/lib/mihari/commands/json.rbs +7 -0
  103. data/sig/lib/mihari/commands/onyphe.rbs +7 -0
  104. data/sig/lib/mihari/commands/otx.rbs +7 -0
  105. data/sig/lib/mihari/commands/passivetotal.rbs +7 -0
  106. data/sig/lib/mihari/commands/pulsedive.rbs +7 -0
  107. data/sig/lib/mihari/commands/search.rbs +35 -0
  108. data/sig/lib/mihari/commands/securitytrails.rbs +7 -0
  109. data/sig/lib/mihari/commands/shodan.rbs +7 -0
  110. data/sig/lib/mihari/commands/spyse.rbs +7 -0
  111. data/sig/lib/mihari/commands/urlscan.rbs +7 -0
  112. data/sig/lib/mihari/commands/validator.rbs +11 -0
  113. data/sig/lib/mihari/commands/virustotal.rbs +7 -0
  114. data/sig/lib/mihari/commands/web.rbs +7 -0
  115. data/sig/lib/mihari/commands/zoomeye.rbs +7 -0
  116. data/sig/lib/mihari/constants.rbs +3 -0
  117. data/sig/lib/mihari/database.rbs +25 -0
  118. data/sig/lib/mihari/emitters/base.rbs +18 -0
  119. data/sig/lib/mihari/emitters/database.rbs +9 -0
  120. data/sig/lib/mihari/emitters/misp.rbs +28 -0
  121. data/sig/lib/mihari/emitters/slack.rbs +58 -0
  122. data/sig/lib/mihari/emitters/stdout.rbs +9 -0
  123. data/sig/lib/mihari/emitters/the_hive.rbs +24 -0
  124. data/sig/lib/mihari/emitters/webhook.rbs +20 -0
  125. data/sig/lib/mihari/enrichers/base.rbs +12 -0
  126. data/sig/lib/mihari/enrichers/ipinfo.rbs +16 -0
  127. data/sig/lib/mihari/errors.rbs +10 -0
  128. data/sig/lib/mihari/mixins/autonomous_system.rbs +14 -0
  129. data/sig/lib/mihari/mixins/configurable.rbs +26 -0
  130. data/sig/lib/mihari/mixins/configuration.rbs +45 -0
  131. data/sig/lib/mihari/mixins/disallowed_data_value.rbs +25 -0
  132. data/sig/lib/mihari/mixins/hash.rbs +14 -0
  133. data/sig/lib/mihari/mixins/refang.rbs +14 -0
  134. data/sig/lib/mihari/mixins/retriable.rbs +15 -0
  135. data/sig/lib/mihari/mixins/rule.rbs +41 -0
  136. data/sig/lib/mihari/models/alert.rbs +46 -0
  137. data/sig/lib/mihari/models/artifact.rbs +65 -0
  138. data/sig/lib/mihari/models/autonomous_system.rbs +14 -0
  139. data/sig/lib/mihari/models/dns.rbs +19 -0
  140. data/sig/lib/mihari/models/geolocation.rbs +15 -0
  141. data/sig/lib/mihari/models/reverse_dns.rbs +14 -0
  142. data/sig/lib/mihari/models/tag.rbs +5 -0
  143. data/sig/lib/mihari/models/tagging.rbs +4 -0
  144. data/sig/lib/mihari/models/whois.rbs +66 -0
  145. data/sig/lib/mihari/notifiers/base.rbs +18 -0
  146. data/sig/lib/mihari/notifiers/exception_notifier.rbs +75 -0
  147. data/sig/lib/mihari/notifiers/slack.rbs +50 -0
  148. data/sig/lib/mihari/status.rbs +25 -0
  149. data/sig/lib/mihari/structs/censys.rbs +50 -0
  150. data/sig/lib/mihari/structs/ipinfo.rbs +17 -0
  151. data/sig/lib/mihari/structs/onyphe.rbs +25 -0
  152. data/sig/lib/mihari/structs/shodan.rbs +28 -0
  153. data/sig/lib/mihari/type_checker.rbs +48 -0
  154. data/sig/lib/mihari/types.rbs +17 -0
  155. data/sig/lib/mihari/version.rbs +3 -0
  156. data/sig/lib/mihari/web/app.rbs +5 -0
  157. data/sig/lib/mihari.rbs +59 -0
  158. metadata +244 -6

There are too many changes on this page to be displayed.


The amount of changes on this page would crash your brower.

You can still verify the content by downloading the gem file manually.