Sha256: 26805d0132a5b70387f842f7fddf029b5f5c21f25eac2b7370672a1c69a947d3

Contents?: true

Size: 984 Bytes

Versions: 7

Compression:

Stored size: 984 Bytes

Contents

# Copyright (c) 2023 Contrast Security, Inc. See https://www.contrastsecurity.com/enduser-terms-0317a for more details.
# frozen_string_literal: true

require 'contrast/agent/protect/rule/cmdi/cmd_injection'
require 'contrast/agent/reporting/input_analysis/score_level'
require 'contrast/agent/protect/input_analyzer/input_analyzer'
require 'contrast/utils/input_classification_base'
require 'contrast/components/logger'

module Contrast
  module Agent
    module Protect
      module Rule
        # This module will do the Input Classification stage of CMD Injection rule
        # as a result input would be marked as WORTHWATCHING or IGNORE,
        # to be analyzed at the sink level.
        module CmdiInputClassification
          WORTHWATCHING_MATCH = 'cmdi-worth-watching-v2'.cs__freeze
          class << self
            include InputClassificationBase
            include Contrast::Components::Logger::InstanceMethods
          end
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
contrast-agent-7.2.0 lib/contrast/agent/protect/rule/cmdi/cmdi_input_classification.rb
contrast-agent-7.1.0 lib/contrast/agent/protect/rule/cmdi/cmdi_input_classification.rb
contrast-agent-7.0.0 lib/contrast/agent/protect/rule/cmdi/cmdi_input_classification.rb
contrast-agent-6.15.3 lib/contrast/agent/protect/rule/cmdi/cmdi_input_classification.rb
contrast-agent-6.15.2 lib/contrast/agent/protect/rule/cmdi/cmdi_input_classification.rb
contrast-agent-6.15.1 lib/contrast/agent/protect/rule/cmdi/cmdi_input_classification.rb
contrast-agent-6.15.0 lib/contrast/agent/protect/rule/cmdi/cmdi_input_classification.rb