# Copyright (c) 2010 Flowerfire, Inc. All Rights Reserved. declude_virus = { # Initial creation - 1.0 # 2010-11-02 - 1.0.1 - MSG - Edited info lines. info.1.manufacturer = "Declude" info.1.device = "Virus Filter" info.1.version.1 = "" # The name of the log format log.format.format_label = "Declude Virus" log.miscellaneous.log_data_type = "generic" log.miscellaneous.log_format_type = "mail_server" # The log is in this format if any of the first ten lines match this regular expression log.format.autodetect_regular_expression = "^[0-9][0-9]/[0-9][0-9]/[0-9][0-9][0-9][0-9] [0-9][0-9]:[0-9][0-9]:[0-9][0-9] [0-9A-Za-z]* (Scanned:|MIME)" # 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 = "mm/dd/yyyy" log.format.time_format = "hh:mm:ss" # An entry in this log is called a "virus" in the statistics (not a "hit") statistics.miscellaneous.entry_name = "virus" # 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 type = { label = "$lang_stats.field_labels.type" type = "flat" index = 0 subindex = 0 } # type source_ip = { label = "$lang_stats.field_labels.source_ip" type = "flat" index = 0 subindex = 0 } # source_ip from = { label = "$lang_stats.field_labels.from" type = "flat" index = 0 subindex = 0 } # from to = { label = "$lang_stats.field_labels.to" type = "flat" index = 0 subindex = 0 } # to subject = { label = "$lang_stats.field_labels.subject" type = "flat" index = 0 subindex = 0 } # subject encoding = { label = "$lang_stats.field_labels.encoding" type = "flat" index = 0 subindex = 0 } # encoding nfiles = { label = "$lang_stats.field_labels.nfiles" type = "integer" index = 0 subindex = 0 hierarchy_dividers = "" left_to_right = false leading_divider = "false" } # nfiles nbytes = { label = "$lang_stats.field_labels.nbytes" type = "size" index = 0 subindex = 0 hierarchy_dividers = "" left_to_right = false leading_divider = "false" } # nbytes name = { label = "$lang_stats.field_labels.name" type = "flat" index = 0 subindex = 0 } # name attachment = { label = "$lang_stats.field_labels.attachment" type = "flat" index = 0 subindex = 0 } # attachment attno = { label = "$lang_stats.field_labels.attno" type = "integer" index = 0 subindex = 0 hierarchy_dividers = "" left_to_right = false leading_divider = "false" } # attno } # log.fields # # Log Parsing Filters log.parsing_filters = { # Parse out the "Scanned: CONTAINS A VIRUS" 1 = { label = "1" comment = "" value = "collect_fields_using_regexp('^([0-9][0-9]/[0-9][0-9]/[0-9][0-9][0-9][0-9]) ([0-9][0-9]:[0-9][0-9]:[0-9][0-9]) ([A-Za-z][^ ]*) (Scanned\\\\: CONTAINS A VIRUS) (\\\\[Prescan OK\\\\])*\\\\[([^ ]*) ([0-9]*) ([0-9]*)\\\\]', 'date,time,*KEY*,type,dummy2,encoding,nfiles,nbytes')" } # 1 # Parse out the "Scanned: Virus Free" 2 = { label = "2" comment = "" value = "collect_fields_using_regexp('^([0-9][0-9]/[0-9][0-9]/[0-9][0-9][0-9][0-9]) ([0-9][0-9]:[0-9][0-9]:[0-9][0-9]) ([A-Za-z][^ ]*) (Scanned\\\\: Virus Free)', 'date,time,*KEY*,type')" } # 2 # Parse out the "From: To: victim@example.com" 3 = { label = "3" comment = "" value = "collect_fields_using_regexp('([A-Za-z][^ ]*) From: ([^ ]*) To: ([^ ]*)', '*KEY*,from,to')" } # 3 # Parse out the "From: X To: Y [incoming from IP]" 4 = { label = "4" comment = "" value = "collect_fields_using_regexp('([A-Za-z][^ ]*) From: ([^ ]*) To: ([^ ]*) \\\\[incoming from ([^]]*)\\\\]', '*KEY*,from,to')" } # 4 # Parse out the "Subject: ILOVEYOU" 5 = { label = "5" comment = "" value = "collect_fields_using_regexp('([A-Za-z][^ ]*) Subject: (.*)', '*KEY*,subject')" } # 5 # Parse out the "Scanner 1: Virus=EICAR_Test_File Attachment=eicar.com" 6 = { label = "6" comment = "" value = "collect_fields_using_regexp('([A-Za-z][^ ]*) Scanner [0-9]\\\\: Virus=:* *([^ ]*) Attachment=([^ ]*) \\\\[([0-9]*)\\\\]', '*KEY*,name,attachment,attno')" } # 6 # Accept this collected log entry 7 = { label = "7" comment = "" value = "accept_collected_entry_using_regexp(' ([A-Za-z][^ ]*) Subject:', false)" } # 7 # Accept this Virus Free log entry 8 = { label = "8" comment = "" value = "accept_collected_entry_using_regexp(' ([A-Za-z][^ ]*) Scanned: Virus Free', false)" } # 8 } # 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 type = { label = "$lang_stats.field_labels.type" log_field = "type" type = "string" suppress_top = 0 suppress_bottom = 2 } # type source_ip = { label = "$lang_stats.field_labels.source_ip" log_field = "source_ip" type = "string" suppress_top = 0 suppress_bottom = 2 } # source_ip from = { label = "$lang_stats.field_labels.from" log_field = "from" type = "string" suppress_top = 0 suppress_bottom = 2 } # from to = { label = "$lang_stats.field_labels.to" log_field = "to" type = "string" suppress_top = 0 suppress_bottom = 2 } # to subject = { label = "$lang_stats.field_labels.subject" log_field = "subject" type = "string" suppress_top = 0 suppress_bottom = 2 } # subject encoding = { label = "$lang_stats.field_labels.encoding" log_field = "encoding" type = "string" suppress_top = 0 suppress_bottom = 2 } # encoding name = { label = "$lang_stats.field_labels.name" log_field = "name" type = "string" suppress_top = 0 suppress_bottom = 2 } # name attachment = { label = "$lang_stats.field_labels.attachment" log_field = "attachment" type = "string" suppress_top = 0 suppress_bottom = 2 } # attachment attno = { label = "$lang_stats.field_labels.attno" log_field = "attno" type = "string" suppress_top = 0 suppress_bottom = 2 } # attno } # database.fields database.numerical_fields = { virus = { label = "$lang_stats.field_labels.virus" default = true requires_log_field = false type = "int" display_format_type = "integer" entries_field = true } # virus nbytes = { label = "$lang_stats.field_labels.nbytes" default = false requires_log_field = true log_field = "nbytes" type = "int" integer_bits = 64 display_format_type = "bandwidth" } # nbytes } # database.numerical_fields log.filters = { mark_entry = { label = '$lang_admin.log_filters.mark_entry_label' comment = '$lang_admin.log_filters.mark_entry_comment' value = 'virus = 1;' } # mark_entry } # log.filters create_profile_wizard_options = { date_time_tracking = true # How the reports should be grouped in the report menu report_groups = { date_time_group = "" type = true source_ip = true from = true to = true subject = true encoding = true name = true attachment = true attno = true } # report_groups } # create_profile_wizard_options not_supported = { visitors = true sessions = true pageviews = true individualhosts = true } # not_supported } # declude_virus