# Copyright (c) 2010 Flowerfire, Inc. All Rights Reserved. portsentry = { plugin_version = "1.0.1" # Initial creation - 1.0 # 2011-07-12 - 1.0.1 - MSG - Edited info lines. info.1.manufacturer = "Psionic Technologies" info.1.device = "PortSentry" info.1.version.1 = "" info.2.manufacturer = "Cisco" info.2.device = "PortSentry" info.2.version.1 = "" # The name of the log format log.format.format_label = "portsentry Log Format" log.miscellaneous.log_data_type = "network" log.miscellaneous.log_format_type = "firewall" # The log is in this format if any of the first ten lines match this regular expression log.format.autodetect_regular_expression = "^[A-Z][a-z][a-z] [0-9 ][0-9] [0-9 ][0-9]:[0-9][0-9]:[0-9][0-9] [^ ]* portsentry\\[[0-9]*\\]: " # All log field parsing will be done using the parsing filters log.format.parse_only_with_filters = "true" # The format of dates and times in this log log.format.date_format = "mmm dd" log.format.time_format = "hh:mm:ss" statistics.miscellaneous.entry_name = "events" # Log fields log.fields = { date = { label = "$lang_stats.field_labels.date" type = "date" index = 0 subindex = 0 hierarchy_dividers = "" left_to_right = false leading_divider = "false" } # date time = { label = "$lang_stats.field_labels.time" type = "time" index = 0 subindex = 0 hierarchy_dividers = "" left_to_right = false leading_divider = "false" } # time server = { label = "$lang_stats.field_labels.server" type = "flat" index = 0 subindex = 0 } # server daemon = { label = "$lang_stats.field_labels.daemon" type = "flat" index = 0 subindex = 0 } # daemon class = { label = "$lang_stats.field_labels.class" type = "flat" index = 0 subindex = 0 } # class type = { label = "$lang_stats.field_labels.type" type = "flat" index = 0 subindex = 0 } # type protocol = { label = "$lang_stats.field_labels.protocol" type = "flat" index = 0 subindex = 0 } # protocol port = { label = "$lang_stats.field_labels.port" type = "flat" index = 0 subindex = 0 } # port source_hostname = { label = "$lang_stats.field_labels.source_hostname" type = "host" index = 0 subindex = 0 hierarchy_dividers = "." left_to_right = false leading_divider = "false" } # source_hostname source_ip = { label = "$lang_stats.field_labels.source_ip" type = "flat" index = 0 subindex = 0 } # source_ip } # log.fields # # Log Parsing Filters log.parsing_filters = { # Parse out all the beginning fields 1 = { label = "1" comment = "" value = "collect_fields_using_regexp('^()([A-Z][a-z][a-z] [0-9 ][0-9]) ([0-9 ][0-9]:[0-9][0-9]:[0-9][0-9]) ([^ ]*) ([a-z0-9]*)\\\\[[0-9]*\\\\]: ', '*KEY*,date,time,server,daemon')" } # 1 # Handle scan lines 2 = { label = "2" comment = "" value = "collect_fields_using_regexp('()(attackalert): (.*) from host: ([^/]*)/([^ ]*) to ([A-Z]*) port: ([0-9]*)', '*KEY*,class,type,source_hostname,source_ip,protocol,port')" } # 2 # Handle blocked lines 3 = { label = "3" comment = "" value = "collect_fields_using_regexp('()(attackalert): Host (.*) has been (blocked via wrappers|blocked via dropped route)', '*KEY*,class,source_ip,type')" } # 3 # Handle Ignoring lines 4 = { label = "4" comment = "" value = "collect_fields_using_regexp('()(attackalert): Host: ([^/]*)/([^ ]*) is already blocked (Ignoring)', '*KEY*,class,source_hostname,source_ip,type')" } # 4 # Accept this log entry 5 = { label = "5" comment = "" value = "accept_collected_entry_using_regexp('()attackalert:', false)" } # 5 } # log.parsing_filters # Database fields database.fields = { date_time = { label = "$lang_stats.field_labels.date_time" log_field = "date_time" type = "string" suppress_top = 0 suppress_bottom = 3 display_format_type = "date_time" } # date_time day_of_week = { label = "$lang_stats.field_labels.day_of_week" log_field = "day_of_week" type = "string" suppress_top = 0 suppress_bottom = 2 display_format_type = "day_of_week" } # day_of_week hour_of_day = { label = "$lang_stats.field_labels.hour_of_day" log_field = "hour_of_day" type = "string" suppress_top = 0 suppress_bottom = 2 display_format_type = "hour_of_day" } # hour_of_day class = { label = "$lang_stats.field_labels.class" log_field = "class" type = "string" suppress_top = 0 suppress_bottom = 2 } # class type = { label = "$lang_stats.field_labels.type" log_field = "type" type = "string" suppress_top = 0 suppress_bottom = 2 } # type source_hostname = { label = "$lang_stats.field_labels.source_hostname" log_field = "source_hostname" type = "string" suppress_top = 0 suppress_bottom = 2 } # source_hostname source_ip = { label = "$lang_stats.field_labels.source_ip" log_field = "source_ip" type = "string" suppress_top = 0 suppress_bottom = 2 } # source_ip protocol = { label = "$lang_stats.field_labels.protocol" log_field = "protocol" type = "string" suppress_top = 0 suppress_bottom = 2 } # protocol port = { label = "$lang_stats.field_labels.port" log_field = "port" type = "string" suppress_top = 0 suppress_bottom = 2 } # port server = { label = "$lang_stats.field_labels.server" log_field = "server" type = "string" suppress_top = 0 suppress_bottom = 2 } # server daemon = { label = "$lang_stats.field_labels.daemon" log_field = "daemon" type = "string" suppress_top = 0 suppress_bottom = 2 } # daemon } # database.fields database.numerical_fields = { events = { label = "$lang_stats.field_labels.events" default = true requires_log_field = false type = "int" display_format_type = "integer" entries_field = true } # events } # database.numerical_fields log.filters = { mark_entry = { label = '$lang_admin.log_filters.mark_entry_label' comment = '$lang_admin.log_filters.mark_entry_comment' value = 'events = 1;' } # mark_entry } # log.filters create_profile_wizard_options = { date_time_tracking = true host_tracking = true # How the reports should be grouped in the report menu report_groups = { date_time_group = "" class = true type = true source_hostname = true source_ip = true protocol = true port = true server = true daemon = true } # report_groups } # create_profile_wizard_options not_supported = { visitors = true sessions = true pageviews = true bandwidth = true } # not_supported } # portsentry