Sha256: 74a08e2afd529d6345ccaca21b00c6826312d20886f193b2ae94864387f6a9b7

Contents?: true

Size: 747 Bytes

Versions: 3

Compression:

Stored size: 747 Bytes

Contents

module Mihari
  module Emitters
    class MISP < Base

      attr_reader url: String?

      attr_reader api_key: String?


      def initialize: () -> void

      # @return [true, false]
      def valid?: () -> bool

      def emit: (title: String title, artifacts: Array[Mihari::Artifact] artifacts, ?tags: Array[String] tags, **untyped _options) -> void

      private

      def configuration_keys: () -> ::Array["misp_url" | "misp_api_key"]

      def build_attribute: (Mihari::Artifact artifact) -> untyped

      def hash_type: (String value) -> String?

      def to_misp_type: (type: String `type`, value: String value) -> String?

      def url?: () -> bool

      def api_key?: () -> bool

      def ping?: () -> bool
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
mihari-4.12.0 sig/lib/mihari/emitters/misp.rbs
mihari-4.11.0 sig/lib/mihari/emitters/misp.rbs
mihari-4.10.0 sig/lib/mihari/emitters/misp.rbs