├── default ├── pipelines │ ├── Yasmin │ │ └── conf.yml │ ├── WinHostMon │ │ └── conf.yml │ ├── WinNetMon │ │ └── conf.yml │ ├── WinRegistry │ │ └── conf.yml │ ├── WindowsXMLEvents │ │ └── conf.yml │ ├── WinDNS │ │ └── conf.yml │ ├── Perfmon │ │ └── conf.yml │ ├── route.yml │ ├── WindowsClassicXMLEvents │ │ └── conf.yml │ ├── NX_Log │ │ └── conf.yml │ └── WindowsClassicEvents │ │ └── conf.yml ├── samples.yml └── pack.yml ├── package.json ├── samples ├── ie80CU.json ├── VCHrav.json ├── Jtmfrq.json ├── 2FiJff.json ├── XNPzEl.json ├── UChiMU.json ├── 5rMBYv.json └── g9Eeo4.json ├── data └── samples │ ├── ie80CU.json │ ├── VCHrav.json │ ├── Jtmfrq.json │ ├── 2FiJff.json │ ├── XNPzEl.json │ ├── UChiMU.json │ └── 5rMBYv.json ├── .github └── workflows │ └── release.yml ├── README.md └── LICENSE /default/pipelines/Yasmin/conf.yml: -------------------------------------------------------------------------------- 1 | output: default 2 | groups: {} 3 | asyncFuncTimeout: 1000 4 | functions: [] 5 | -------------------------------------------------------------------------------- /default/pipelines/WinHostMon/conf.yml: -------------------------------------------------------------------------------- 1 | output: default 2 | groups: {} 3 | asyncFuncTimeout: 1000 4 | functions: [] 5 | -------------------------------------------------------------------------------- /default/pipelines/WinNetMon/conf.yml: -------------------------------------------------------------------------------- 1 | output: default 2 | groups: {} 3 | asyncFuncTimeout: 1000 4 | functions: [] 5 | -------------------------------------------------------------------------------- /default/pipelines/WinRegistry/conf.yml: -------------------------------------------------------------------------------- 1 | output: default 2 | groups: {} 3 | asyncFuncTimeout: 1000 4 | functions: [] 5 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | {"name":"cribl-windows-events","version":"1.0.3","author":"David Maislin - Cribl","description":"Streamlining Windows Events - Support for XML.Classic and NXLog event formats","displayName":"Microsoft Windows Events","tags":{}} -------------------------------------------------------------------------------- /samples/ie80CU.json: -------------------------------------------------------------------------------- 1 | [{"_raw":"1/10/2022 2:02:15 PM 0CA4 PACKET 000000BACC9F20F0 UDP Rcv 10.18.243.201 9161 Q [0001 D NOERROR] A (11)abcnetapp01(4)corp(5)acme1(3)com(0)","_time":1641844935,"cribl_breaker":"Break on newlines"},{"_raw":"1/10/2022 2:02:18 PM 0CA4 PACKET 000000BACC408120 UDP Rcv 10.18.243.201 db7e Q [0001 D NOERROR] TXT (17)_nfsv4idmapdomain(5)acme1(3)com(0)","_time":1641844938,"cribl_breaker":"Break on newlines"},{"_raw":"1/10/2022 3:03:10 PM 1028 PACKET 00000154CDF89CC0 UDP Rcv 10.10.85.50 29b8 Q [0001 D NOERROR] SRV (5)_ldap(4)_tcp(8)acmehost(6)_sites(11)ABC-DE-FG01(3)abc(4)acme(3)abc(0)","_time":1641848590,"cribl_breaker":"Break on newlines"},{"_raw":"1/10/2022 3:03:10 PM 1368 PACKET 00000154CE6CE180 UDP Rcv 10.132.24.47 358e Q [0001 D NOERROR] AAAA (1)0(13)north-acme123(4)pool(3)abc(3)com(0)","_time":1641848590,"cribl_breaker":"Break on newlines"},{"_raw":"1/10/2022 3:03:10 PM 1368 PACKET 00000154CCFB44A0 UDP Rcv 10.132.24.47 5774 Q [0001 D NOERROR] A (1)0(13)north-acme123(4)pool(3)abc(3)com(0)","_time":1641848590,"cribl_breaker":"Break on newlines"}] -------------------------------------------------------------------------------- /data/samples/ie80CU.json: -------------------------------------------------------------------------------- 1 | [{"_raw":"1/10/2022 2:02:15 PM 0CA4 PACKET 000000BACC9F20F0 UDP Rcv 10.18.243.201 9161 Q [0001 D NOERROR] A (11)abcnetapp01(4)corp(5)acme1(3)com(0)","_time":1641844935,"cribl_breaker":"Break on newlines"},{"_raw":"1/10/2022 2:02:18 PM 0CA4 PACKET 000000BACC408120 UDP Rcv 10.18.243.201 db7e Q [0001 D NOERROR] TXT (17)_nfsv4idmapdomain(5)acme1(3)com(0)","_time":1641844938,"cribl_breaker":"Break on newlines"},{"_raw":"1/10/2022 3:03:10 PM 1028 PACKET 00000154CDF89CC0 UDP Rcv 10.10.85.50 29b8 Q [0001 D NOERROR] SRV (5)_ldap(4)_tcp(8)acmehost(6)_sites(11)ABC-DE-FG01(3)abc(4)acme(3)abc(0)","_time":1641848590,"cribl_breaker":"Break on newlines"},{"_raw":"1/10/2022 3:03:10 PM 1368 PACKET 00000154CE6CE180 UDP Rcv 10.132.24.47 358e Q [0001 D NOERROR] AAAA (1)0(13)north-acme123(4)pool(3)abc(3)com(0)","_time":1641848590,"cribl_breaker":"Break on newlines"},{"_raw":"1/10/2022 3:03:10 PM 1368 PACKET 00000154CCFB44A0 UDP Rcv 10.132.24.47 5774 Q [0001 D NOERROR] A (1)0(13)north-acme123(4)pool(3)abc(3)com(0)","_time":1641848590,"cribl_breaker":"Break on newlines"}] -------------------------------------------------------------------------------- /default/pipelines/WindowsXMLEvents/conf.yml: -------------------------------------------------------------------------------- 1 | output: default 2 | groups: {} 3 | asyncFuncTimeout: 1000 4 | functions: 5 | - id: comment 6 | filter: "true" 7 | disabled: null 8 | conf: 9 | comment: >- 10 | Description: This pipeline reduce XML events using the parseWinEvent 11 | custom LogStream function 12 | 13 | Author: David Maislin - david@cribl.io 14 | 15 | Date: 2021-05-14 16 | 17 | Note: Come find me on Slack - https://cribl.io/community - cribl-community.slack.com 18 | - id: comment 19 | filter: "true" 20 | disabled: null 21 | conf: 22 | comment: Please enable Descriptions - (Select top left three bars) 23 | - id: comment 24 | filter: "true" 25 | disabled: null 26 | conf: 27 | comment: The XML Processing group turns the _raw XML event into JSON 28 | - id: eval 29 | filter: "true" 30 | disabled: false 31 | conf: 32 | add: 33 | - name: _raw 34 | value: C.Text.parseWinEvent(_raw,['0x0','-']) 35 | description: Parse XML to a JSON _raw string Put any values like ['0x0','-'] in the 36 | brackets to remove fields with those values. 37 | -------------------------------------------------------------------------------- /default/samples.yml: -------------------------------------------------------------------------------- 1 | 2FiJff: 2 | sampleName: 5-Windows_XML_Events 3 | created: 1620943415156 4 | size: 6682 5 | numEvents: 5 6 | modified: 1620948213159 7 | UChiMU: 8 | sampleName: 5-Windows_Classic_XML_Message_Events 9 | created: 1620943431798 10 | size: 12078 11 | numEvents: 5 12 | modified: 1620948652434 13 | XNPzEl: 14 | sampleName: 5-Windows_Classic_Events 15 | created: 1620943469167 16 | size: 10690 17 | numEvents: 5 18 | modified: 1620948288457 19 | 5rMBYv: 20 | sampleName: 50-WinNetMon.log 21 | created: 1621425760688 22 | size: 23208 23 | numEvents: 50 24 | modified: 1621425760691.15 25 | g9Eeo4: 26 | sampleName: 50-WinHostMon.log 27 | created: 1621427205345 28 | size: 31253 29 | numEvents: 50 30 | modified: 1621427205343.5725 31 | VCHrav: 32 | sampleName: 10-WinRegistry.log 33 | created: 1621427853584 34 | size: 4862 35 | numEvents: 10 36 | modified: 1621427853582.2275 37 | ie80CU: 38 | sampleName: 5-Windows_DNS 39 | created: 1643221438920 40 | size: 1131 41 | numEvents: 5 42 | modified: 1643221438918.203 43 | Jtmfrq: 44 | sampleName: 5-NXLog.json 45 | created: 1646665007243 46 | size: 6376 47 | numEvents: 5 48 | dw9xld: 49 | sampleName: 487-PerfmonMk.json 50 | created: 1646680489688 51 | size: 2096109 52 | numEvents: 487 53 | modified: 1646680489694.2256 54 | -------------------------------------------------------------------------------- /default/pipelines/WinDNS/conf.yml: -------------------------------------------------------------------------------- 1 | output: default 2 | groups: {} 3 | asyncFuncTimeout: 1000 4 | functions: 5 | - id: mask 6 | filter: "true" 7 | disabled: null 8 | conf: 9 | rules: 10 | - matchRegex: /\(\d+\)(.+)\(\d+\)/ 11 | replaceExpr: g1.replace(/\(\d+\)/g, '.') 12 | fields: 13 | - _raw 14 | - id: regex_extract 15 | filter: "true" 16 | disabled: false 17 | conf: 18 | source: _raw 19 | iterations: 100 20 | overwrite: false 21 | regex: /(?\d+(?:\/\d+){2})\s(?