-
Notifications
You must be signed in to change notification settings - Fork 203
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add support for Data[x]
notation and Provider_Name
(field mapping feature's config)
#1352
Conversation
Data[x]
notation and Provider_Name
(filed mapping feature)
Provider_Name(field_data mapping) / Data[x] notationI used following mapping/rule. csv-timelineI confirmed data conversion works as follows.(However, there seems to be some data where
json-timelineI confirmed data conversion works as follows.
{
"Timestamp": "2016-09-02 05:50:28.000 +09:00",
"RuleTitle": "MSI Install",
"Level": "info",
"Computer": "IE10Win7",
"Channel": "App",
"EventID": 1033,
"RecordID": 1795,
"Details": {
"App": "EMET 5.51",
"Ver": "5.51",
"Lang": "English",
"StatusCode": 0,
"Vendor": "Microsoft Corporation"
},
"ExtraFieldInfo": {
"Binary": "7B41383630384530462D353642382D343635432D413736322D3836443638464634464337327D3030303065313034636234326138383837393837373364376662393066336263643466343030303030393034",
"Data": ["", "(NULL)"]
}
} |
hayabusa-sample-evtxI compared result with main and there is no diff as follows. csv
json
integration-testit completed successfully as follows. |
Multiple Provider_Name(field_data mapping)I put following multiple Title: 'TEST'
Channel: Application
EventID: 1
Provider_Name:
- 'Microsoft-Windows-Audit-CVE'
- 'Audit-CVE'
RewriteFieldData:
CVEID:
- 'CVE': '**CONVERTED!!**' and confirmed field data conversion(
{
"Timestamp": "2020-01-19 03:14:29.831 +09:00",
"RuleTitle": "Audit CVE Event",
"Level": "crit",
"Computer": "Isaac",
"Channel": "App",
"EventID": 1,
"RuleAuthor": "Florian Roth (Nextron Systems), Zach Mathis",
"RuleModifiedDate": "2022/10/22",
"Status": "test",
"RecordID": 19156,
"Details": {
},
"ExtraFieldInfo": {
"AdditionalDetails": "CA: <USERTrust ECC Certification Authority> sha1: C01B8463C8619676BA102EEBF0C30CDCED9A942B para: 06052B81040022 otherPara: 30820157020101303C06072A8648CE3D0101023100FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFF0000000000000000FFFFFFFF307B0430FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFF0000000000000000FFFFFFFC0430B3312FA7E23EE7E4988E056BE3F82D19181D9C6EFE8141120314088F5013875AC656398D8A2ED19D2A85C8EDD3EC2AEF031500A335926AA319A27A1D00896A6773A4827ACDAC73046104D6EB7932E25502AE5151A3609384C13041904BE25B912B77FE4333C0B1486FB0CD815522FF79F8E85A9045E8DFDA490E706BD2FC38276D0A998962A1DFA1E0361AE82AEFC24BDECD9BD856CDC2FDADB54DEEFF6ACDFC0B2BF5ABEBB21C5705D4023100FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFC7634D81F4372DDF581A0DB248B0A77AECEC196ACCC52973020101",
"CVEID": "[**CONVERTED!!**-2020-0601] cert validation"
},
"MitreTactics": [
"Exec", "PrivEsc", "Evas", "CredAccess", "LatMov", "Impact"
],
"MitreTags": [
"T1203", "T1068", "T1211", "T1212", "T1210", "T1499.004"
],
"Provider": "MS-Win-Audit-CVE",
"RuleCreationDate": "2020/01/15",
"RuleFile": "win_audit_cve.yml",
"EvtxFile": "../hayabusa-sample-evtx/YamatoSecurity/Vulnerabilities/App_1_CVE-Detected.evtx"
} |
Data[x]
notation and Provider_Name
(filed mapping feature)Data[x]
notation and Provider_Name
(field mapping feature)
all-evtxI confirmed that there were no performance regressions.
|
Data[x]
notation and Provider_Name
(field mapping feature)Data[x]
notation and Provider_Name
(field mapping feature's config)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@fukusuket LGTM! Thanks so much!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
What Changed
Provider_name
andData[x]
notation to the field mapping #1350Provider_Name
in data mapping config(Optional)Provider_Name
in data mapping config(Optional)Data[x]
notation in data mapping config.I would appreciate it if you could check it out when you have time🙏