mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-26 19:03:35 +01:00
34 lines
1.1 KiB
Plaintext
34 lines
1.1 KiB
Plaintext
# Author: Wes Lambert
|
|
# wlambertts@gmail.com
|
|
#
|
|
# Adapted from existing filters provided by Justin Henderson
|
|
#
|
|
# Last Update: 12/14/2017
|
|
#
|
|
# This conf file is based on accepting logs for pe.log from Bro systems
|
|
#
|
|
# Parse using csv filter
|
|
filter {
|
|
if [type] == "bro_pe" {
|
|
mutate {
|
|
gsub => [ "message", "[\"']", "" ]
|
|
}
|
|
csv {
|
|
columns => ["timestamp","fuid","machine","compile_ts","os","subsystem","is_exe","is_64bit","uses_aslr","uses_dep","uses_code_integrity","uses_seh","has_import_table","has_export_table","has_cert_table","has_debug_data","section_names"]
|
|
separator => " "
|
|
}
|
|
}
|
|
}
|
|
|
|
# Parse using grok
|
|
#filter {
|
|
# if [type] == "bro_pe" {
|
|
# grok {
|
|
# match => [ "message", "(?<timestamp>(.*?))\t(?<fuid>(.*?))\t(?<machine>(.*?))\t(?<compile_ts>(.*?))\t(?<os>(.*?))\t(?<subsystem>(.*?))\t(?<is_exe>(.*?))\t(?<is_64bit>(.*?))\t(?<uses_aslr>(.*?))\t(?<uses_dep>(.*?))\t(?<uses_code_integrity>(.*?))\t(?<uses_seh>(.*?))\t(?<has_import_table>(.*?))\t(?<has_export_table>(.*?))\t(?<has_cert_table>(.*?))\t(?<has_debug_data>(.*?))\t(?<section_names>(.*?))$" ]
|
|
# }
|
|
# mutate {
|
|
# #add_tag => [ "conf_file_1128"]
|
|
# }
|
|
# }
|
|
#}
|