|
| 1 | +logging: |
| 2 | + base: |
| 3 | + debug: false |
| 4 | + modules: |
| 5 | + log_storage.logserver: |
| 6 | + debug: false |
| 7 | + log_collection.collector: |
| 8 | + debug: false |
| 9 | + log_collection.batch_handler: |
| 10 | + debug: false |
| 11 | + log_filtering.prefilter: |
| 12 | + debug: false |
| 13 | + data_inspection.inspector: |
| 14 | + debug: false |
| 15 | + data_analysis.detector: |
| 16 | + debug: false |
| 17 | + |
| 18 | +pipeline: |
| 19 | + log_storage: |
| 20 | + logserver: |
| 21 | + input_file: "/opt/file.txt" |
| 22 | + |
| 23 | + |
| 24 | + |
| 25 | + log_collection: |
| 26 | + default_batch_handler_config: |
| 27 | + batch_size: 2000 |
| 28 | + batch_timeout: 30.0 |
| 29 | + subnet_id: |
| 30 | + ipv4_prefix_length: 24 |
| 31 | + ipv6_prefix_length: 64 |
| 32 | + collectors: |
| 33 | + - name: "dga_collector" |
| 34 | + protocol_base: dns |
| 35 | + required_log_information: |
| 36 | + - [ "ts", Timestamp, "%Y-%m-%dT%H:%M:%S" ] |
| 37 | + - [ "status_code", ListItem, [ "NOERROR", "NXDOMAIN" ], [ "NXDOMAIN" ] ] |
| 38 | + - [ "src_ip", IpAddress ] |
| 39 | + - [ "dns_server_ip", IpAddress ] |
| 40 | + - [ "domain_name", RegEx, '^(?=.{1,253}$)((?!-)[A-Za-z0-9-]{1,63}(?<!-)\.)+[A-Za-z]{2,63}$' ] |
| 41 | + - [ "record_type", ListItem, [ "A", "AAAA" ] ] |
| 42 | + # - [ "response_ip", IpAddress ] |
| 43 | + - [ "size", RegEx, '^\d+$' ] |
| 44 | + batch_handler_config_override: |
| 45 | + batch_timeout: 30.1 |
| 46 | + |
| 47 | + log_filtering: |
| 48 | + - name: "dga_filter" |
| 49 | + # method to apply for rule based prefiltering according to the needs |
| 50 | + relevance_method: check_dga_relevance |
| 51 | + collector_name: dga_collector |
| 52 | + |
| 53 | + |
| 54 | + data_inspection: |
| 55 | + - name: dga_inspector |
| 56 | + inspector_module_name: "stream_ad_inspector" |
| 57 | + inspector_class_name: "StreamADInspector" |
| 58 | + prefilter_name: dga_filter |
| 59 | + mode: univariate # multivariate, ensemble |
| 60 | + # Only used when mode is set to ensemble |
| 61 | + ensemble: |
| 62 | + model: WeightEnsemble |
| 63 | + module: streamad.process |
| 64 | + model_args: |
| 65 | + models: |
| 66 | + - model: ZScoreDetector |
| 67 | + module: streamad.model |
| 68 | + model_args: |
| 69 | + is_global: false |
| 70 | + anomaly_threshold: 0.0001 |
| 71 | + score_threshold: 0.005 |
| 72 | + time_type: ms |
| 73 | + time_range: 20 |
| 74 | + |
| 75 | + data_analysis: |
| 76 | + - name: "RF-dga_detector" |
| 77 | + detector_module_name: "dga_detector" |
| 78 | + detector_class_name: "DGADetector" |
| 79 | + model: rf |
| 80 | + checksum: 5db8bfb617e80361362c33b1d1afc6d762c28e9fa9275fb11514a3bdef76bb88 |
| 81 | + base_url: https://heibox.uni-heidelberg.de/d/0d5cbcbe16cd46a58021/ |
| 82 | + threshold: 0.005 |
| 83 | + inspector_name: dga_inspector |
| 84 | + |
| 85 | + monitoring: |
| 86 | + clickhouse_connector: |
| 87 | + batch_size: 50 # do not set higher |
| 88 | + batch_timeout: 2.0 |
| 89 | + |
| 90 | + |
| 91 | + zeek: |
| 92 | + sensors: |
| 93 | + zeek1: |
| 94 | + static_analysis: true |
| 95 | + protocols: |
| 96 | + - dns |
| 97 | + interfaces: |
| 98 | + - enp2s0f0 |
| 99 | + |
| 100 | +environment: |
| 101 | + kafka_brokers: |
| 102 | + - hostname: localhost |
| 103 | + internal_port: 8097 |
| 104 | + external_port: 8097 |
| 105 | + node_ip: 127.0.0.1 |
| 106 | + - hostname: localhost |
| 107 | + internal_port: 8098 |
| 108 | + external_port: 8098 |
| 109 | + node_ip: 127.0.0.1 |
| 110 | + - hostname: localhost |
| 111 | + internal_port: 8099 |
| 112 | + external_port: 8099 |
| 113 | + node_ip: 127.0.0.1 |
| 114 | + kafka_topics_prefix: |
| 115 | + pipeline: |
| 116 | + logserver_in: "pipeline-logserver_in" |
| 117 | + logserver_to_collector: "pipeline-logserver_to_collector" |
| 118 | + batch_sender_to_prefilter: "pipeline-batch_sender_to_prefilter" |
| 119 | + prefilter_to_inspector: "pipeline-prefilter_to_inspector" |
| 120 | + inspector_to_detector: "pipeline-inspector_to_detector" |
| 121 | + monitoring: |
| 122 | + clickhouse_server: |
| 123 | + hostname: localhost |
0 commit comments