Skip to content
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

Elastic-ecs mapping improvements for network traffic attributes #1410

Merged
merged 61 commits into from
Apr 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
61 commits
Select commit Hold shift + click to select a range
4e52ee3
consolidate network-traffic and x-ecs-network attributes
Harmedox Feb 20, 2023
65772c4
consolidate network-traffic and x-ecs-network attributes
Harmedox Feb 20, 2023
ca9ac4d
consolidate network-traffic and x-ecs-network attributes
Harmedox Feb 20, 2023
75fc74e
add missing network.vlan attribute in elastic_ecs mapping
Harmedox Feb 20, 2023
3982504
add missing network.vlan attribute in elastic_ecs mapping
Harmedox Feb 20, 2023
a841279
add missing network.vlan attribute in elastic_ecs mapping
Harmedox Feb 20, 2023
9eb8031
combine inner vlan and vlan into a single custom object
Harmedox Feb 28, 2023
3264667
combine inner vlan and vlan into a single custom object
Harmedox Feb 28, 2023
9a20947
combine inner vlan and vlan into a single custom object
Harmedox Feb 28, 2023
338ab75
consolidate the object reference for the network-traffic custom attri…
Harmedox Feb 28, 2023
177fec1
transfer network attribute changes to STIX 2.1
Harmedox Feb 28, 2023
011fcba
transfer network attribute changes to STIX 2.1
Harmedox Feb 28, 2023
4b14606
transfer network attribute changes to STIX 2.1
Harmedox Feb 28, 2023
6a8903e
consolidate x-ecs-user attributes into user-account
Harmedox Mar 3, 2023
c05e679
consolidate x-ecs-user attributes into user-account
Harmedox Mar 3, 2023
1162f48
consolidate x-ecs-user attributes into user-account
Harmedox Mar 3, 2023
902749a
consolidate x-ecs-user attributes into user-account
Harmedox Mar 3, 2023
9880a9c
consolidate x-ecs-user attributes into user-account
Harmedox Mar 3, 2023
3316347
consolidate x-ecs-user attributes into user-account
Harmedox Mar 3, 2023
1a9aad8
Merge branch 'opencybersecurityalliance:develop' into develop
Harmedox Mar 7, 2023
b825580
update network object unit test
Harmedox Mar 8, 2023
03e9b50
WIP: represent the pe attributes in file SCO using software SCO
Harmedox Mar 8, 2023
1a94ee4
refer to pe attributes in file object using the software SCO
Harmedox Mar 9, 2023
498426c
refer to pe attributes in file object using the software SCO
Harmedox Mar 9, 2023
cc81195
refer to pe attributes in file object using the software SCO
Harmedox Mar 9, 2023
ee05033
refer to pe attributes in file object using the software SCO in v2.1
Harmedox Mar 9, 2023
f1b2151
refer to pe attributes in file object using the software SCO in v2.1
Harmedox Mar 9, 2023
3b0c997
refer to pe attributes in file object using the software SCO in v2.1
Harmedox Mar 9, 2023
6cb1cde
remove tests for x_pe from the elastic_ecs_connector mapping
Harmedox Mar 9, 2023
b1073ab
add software_ref test to replace the x_pe test in test_x_ecs_event
Harmedox Mar 11, 2023
0ec548b
add product and description as custom atributes of the Software SCO
Harmedox Mar 11, 2023
675fd07
add product and description as custom atributes of the Software SCO
Harmedox Mar 11, 2023
9f2537c
add product and description as custom atributes of the Software SCO v2.1
Harmedox Mar 11, 2023
4341a8d
add test for the product and description attributes for the software …
Harmedox Mar 11, 2023
4c1ea5a
Merge branch 'develop' into develop
mdazam1942 Mar 14, 2023
62ed1c5
Merge branch 'develop' into develop
delliott90 Mar 15, 2023
81d2a7a
elastic-ecs: make os and host attributes reference the software SCO
Harmedox Mar 20, 2023
5c3b506
Merge branch 'opencybersecurityalliance:develop' into develop
Harmedox Mar 20, 2023
946b616
Merge branch 'develop' of https://github.com/Harmedox/stix-shifter in…
Harmedox Mar 20, 2023
1ab3f87
Merge branch 'opencybersecurityalliance:develop' into develop
Harmedox Mar 20, 2023
8c5669f
WIP:consolidate x-ecs-source, x-ecs-destination, x-ecs-client, x-ecs-…
Harmedox Mar 30, 2023
4ac842c
WIP:consolidate x-ecs-source, x-ecs-destination, x-ecs-client, x-ecs-…
Harmedox Mar 30, 2023
04e37e3
map nat ip and port to the ipv4-addr and ipv6-addr SCO objects
Harmedox Mar 30, 2023
0557432
represent registered_domain and top_level_domain ecs objects as domai…
Harmedox Mar 30, 2023
f3ed547
fix geo reference to x-ecs-geo custom SCO object
Harmedox Mar 30, 2023
cd793c4
Merge branch 'opencybersecurityalliance:develop' into develop
Harmedox Mar 30, 2023
d25ce68
fix port references in ipv4 and ipv6 objects
Harmedox Mar 31, 2023
bf6c94d
fix geo references
Harmedox Mar 31, 2023
137a5b3
remove x-ecs-[source, destination,client, server] objects in from_sti…
Harmedox Mar 31, 2023
c61cfd4
consolidate dll attributes into the file SCO
Harmedox Mar 31, 2023
8508f75
remove x-ecs-dll object
Harmedox Mar 31, 2023
dfb82d7
Merge branch 'opencybersecurityalliance:develop' into develop
Harmedox Apr 10, 2023
9742c18
Merge branch 'opencybersecurityalliance:develop' into develop
Harmedox Apr 25, 2023
c4953ea
consolidate observer object into x-oca-asset
Harmedox Apr 25, 2023
1176d50
represent geo attributes with a generic object x-oca-geo
Harmedox Apr 25, 2023
b8eba06
Merge branch 'develop' of https://github.com/Harmedox/stix-shifter in…
Harmedox Apr 26, 2023
d809b60
Merge branch 'develop' into develop
mdazam1942 Apr 26, 2023
f841e49
update stix_to_query unit test to reflect elastic_ecs mapping changes
Harmedox Apr 26, 2023
3dbc456
Merge branch 'develop' of https://github.com/Harmedox/stix-shifter in…
Harmedox Apr 26, 2023
fb84135
Merge branch 'develop' into develop
Harmedox Apr 26, 2023
ff8cb3f
Merge branch 'develop' into develop
delliott90 Apr 27, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"ipv4-addr": {
"fields": {
"value": ["source.ip.keyword", "destination.ip.keyword", "client.ip", "server.ip", "host.ip.keyword", "dns.resolved_ip"]
"value": ["source.ip", "destination.ip", "client.ip", "server.ip", "host.ip", "dns.resolved_ip", "source.nat.ip", "destination.nat.ip", "client.nat.ip", "server.nat.ip"]
}
},
"ipv6-addr": {
"fields": {
"value": ["source.ip.keyword", "destination.ip.keyword", "client.ip", "server.ip", "host.ip.keyword", "dns.resolved_ip"]
"value": ["source.ip", "destination.ip", "client.ip", "server.ip", "host.ip", "dns.resolved_ip", "source.nat.ip", "destination.nat.ip", "client.nat.ip", "server.nat.ip"]
}
},
"mac-addr": {
Expand All @@ -16,8 +16,8 @@
},
"network-traffic": {
"fields": {
"src_port": ["source.port", "client.port"],
"dst_port": ["destination.port", "server.port"],
"src_port": ["source.port", "client.port", "source.nat.port", "client.nat.port"],
"dst_port": ["destination.port", "server.port", "destination.nat.port", "server.nat.port"],
"protocols[*]": ["network.transport.keyword", "network.type.keyword", "network.protocol.keyword"],
"src_ref.value": ["source.ip.keyword", "client.ip"],
"dst_ref.value": ["destination.ip.keyword", "server.ip"],
Expand All @@ -43,7 +43,7 @@
},
"file": {
"fields": {
"name": ["file.name", "file.path", "process.name.keyword", "process.executable.keyword", "process.parent.name.keyword", "process.parent.executable.keyword"],
"name": ["file.name", "dll.name", "file.path", "process.name.keyword", "process.executable.keyword", "process.parent.name.keyword", "process.parent.executable.keyword"],
"created": ["file.created", "file.ctime"],
"modified": ["file.mtime"],
"accessed": ["file.accessed"],
Expand All @@ -56,7 +56,7 @@
"parent_directory_ref.path": ["file.directory"],
"x_attributes": ["file.attributes"],
"x_extension": ["file.extension"],
"x_path": ["file.path"],
"x_path": ["file.path", "dll.path"],
"x_target_path": ["file.target_path"],
"x_type": ["file.type"],
"x_unix.device": ["file.device"],
Expand All @@ -67,14 +67,14 @@
"x_owner_ref.user_id": ["file.uid"],
"x_owner_ref.account_login": ["file.owner"],
"x_win_drive_letter": ["file.drive_letter"],
"x_software_ref.name": ["file.pe.original_file_name"],
"x_software_ref.vendor": ["file.pe.company"],
"x_software_ref.version": ["file.pe.file_version"],
"x_code_signature.exists": ["file.code_signature.exists"],
"x_code_signature.status": ["file.code_signature.status"],
"x_code_signature.subject_name": ["file.code_signature.subject_name"],
"x_code_signature.trusted": ["file.code_signature.trusted"],
"x_code_signature.valid": ["file.code_signature.valid"]
"x_software_ref.name": ["file.pe.original_file_name", "dll.pe.original_file_name"],
"x_software_ref.vendor": ["file.pe.company", "dll.pe.company"],
"x_software_ref.version": ["file.pe.file_version", "dll.pe.file_version"],
"x_code_signature.exists": ["file.code_signature.exists", "dll.code_signature.exists"],
"x_code_signature.status": ["file.code_signature.status", "dll.code_signature.status"],
"x_code_signature.subject_name": ["file.code_signature.subject_name", "dll.code_signature.subject_name"],
"x_code_signature.trusted": ["file.code_signature.trusted", "dll.code_signature.trusted"],
"x_code_signature.valid": ["file.code_signature.valid", "dll.code_signature.valid"]
}
},
"directory": {
Expand Down Expand Up @@ -133,7 +133,7 @@
},
"domain-name": {
"fields": {
"value": ["url.domain", "dns.question.name", "dns.question.registered_domain", "host.hostname.keyword"]
"value": ["url.domain", "dns.question.name", "dns.question.registered_domain", "host.hostname", "source.domain", "destination.domain","server.domain","client.domain", "source.registered_domain", "destination.registered_domain","server.registered_domain","client.registered_domain", "source.top_level_domain", "destination.top_level_domain", "server.top_level_domain", "client.top_level_domain"]
}
},
"windows-registry-key": {
Expand Down Expand Up @@ -223,22 +223,6 @@
"runtime": ["container.runtime"]
}
},
"x-ecs-dll": {
"fields": {
"name": ["dll.name"],
"path": ["dll.path"],
"pe.company": ["dll.pe.company"],
"pe.description": ["dll.pe.description"],
"pe.file_version": ["dll.pe.file_version"],
"pe.original_file_name": ["dll.pe.original_file_name"],
"pe.product": ["dll.pe.product"],
"code_signature.exists": ["dll.code_signature.exists"],
"code_signature.status": ["dll.code_signature.status"],
"code_signature.subject_name": ["dll.code_signature.subject_name"],
"code_signature.trusted": ["dll.code_signature.trusted"],
"code_signature.valid": ["dll.code_signature.valid"]
}
},
"x-ecs-dns": {
"fields": {
"answers_class": ["dns.answers.class"],
Expand Down Expand Up @@ -283,20 +267,41 @@
},
"x-oca-asset": {
"fields": {
"architecture": ["host.architecture.keyword"],
"architecture": ["host.architecture"],
"domain": ["host.domain"],
"hostname": ["host.hostname.keyword"],
"id": ["host.id.keyword"],
"ip": ["host.ip.keyword"],
"mac": ["host.mac.keyword"],
"name": ["host.name.keyword"],
"type": ["host.type"],
"hostname": ["host.hostname", "observer.hostname"],
"id": ["host.id"],
"ip": ["host.ip", "observer.ip"],
"mac": ["host.mac", "observer.mac"],
"name": ["host.name", "observer.name"],
"type": ["host.type", "observer.type"],
"serial_number": ["observer.serial_number"],
"ingress.zone": ["observer.ingress.zone"],
"ingress.interface.alias": ["observer.ingress.interface.alias"],
"ingress.interface.id": ["observer.ingress.interface.id"],
"ingress.interface.name": ["observer.ingress.interface.name"],
"egress.zone": ["observer.egress.zone"],
"egress.interface.alias": ["observer.egress.interface.alias"],
"egress.interface.id": ["observer.egress.interface.id"],
"egress.interface.name": ["observer.egress.interface.name"],
"uptime": ["host.uptime"],
"os.name": ["host.os.name.keyword"],
"os.platform": ["host.os.platform.keyword"],
"os.version": ["host.os.version.keyword"]
}
},
"os_ref.name": ["host.os.name", "observer.os.name", "observer.product"],
"os_ref.vendor": ["host.os.platform", "observer.os.platform", "observer.vendor"],
"os_ref.version": ["host.os.version", "observer.os.version", "observer.version"]
}
},
"x-oca-geo": {
"fields":{
"city_name": ["server.geo.city_name", "client.geo.city_name", "source.geo.city_name", "destination.geo.city_name"],
"continent_name": ["server.geo.continent_name", "client.geo.continent_name", "source.geo.continent_name", "destination.geo.continent_name"],
"country_iso_code": ["server.geo.country_iso_code", "client.geo.country_iso_code", "source.geo.country_iso_code", "destination.geo.country_iso_code"],
"country_name": ["server.geo.country_name", "client.geo.country_name", "source.geo.country_name", "destination.geo.country_name"],
"location": ["server.geo.location", "client.geo.location", "source.geo.location", "destination.geo.location"],
"name": ["server.geo.name", "client.geo.name", "source.geo.name", "destination.geo.name"],
"region_iso_code": ["server.geo.region_iso_code", "client.geo.region_iso_code", "source.geo.region_iso_code", "destination.geo.region_iso_code"],
"region_name": ["server.geo.region_name", "client.geo.region_name", "source.geo.region_name", "destination.geo.region_name"]
}
},
"x-ecs-http": {
"fields": {
"request_body_bytes": ["http.request.body.bytes"],
Expand Down Expand Up @@ -326,30 +331,6 @@
"severity_syslog_name": ["log.syslog.severity.name"]
}
},
"x-ecs-observer": {
"fields": {
"egress.zone": ["observer.egress.zone"],
"egress.interface.alias": ["observer.egress.interface.alias"],
"egress.interface.id": ["observer.egress.interface.id"],
"egress.interface.name": ["observer.egress.interface.name"],
"hostname": ["observer.hostname"],
"ingress.zone": ["observer.ingress.zone"],
"ingress.interface.alias": ["observer.ingress.interface.alias"],
"ingress.interface.id": ["observer.ingress.interface.id"],
"ingress.interface.name": ["observer.ingress.interface.name"],
"ip": ["observer.ip"],
"mac": ["observer.mac"],
"name": ["observer.name"],
"product": ["observer.product"],
"serial_number": ["observer.serial_number"],
"type": ["observer.type"],
"vendor": ["observer.vendor"],
"version": ["observer.version"],
"os.name": ["observer.os.name"],
"os.platform": ["observer.os.platform"],
"os.version": ["observer.os.version"]
}
},
"x-ecs-organization": {
"fields": {
"id": ["organization.id"],
Expand Down Expand Up @@ -440,77 +421,5 @@
"score_temporal": ["vulnerability.score.temporal"],
"score_version": ["vulnerability.score.version"]
}
},
"x-ecs-source": {
"fields": {
"address": ["source.address"],
"domain": ["source.domain.keyword"],
"nat.ip": ["source.nat.ip"],
"nat.port": ["source.nat.port"],
"registered_domain": ["source.registered_domain"],
"top_level_domain": ["source.top_level_domain"],
"geo.city_name": ["source.geo.city_name"],
"geo.continent_name": ["source.geo.continent_name"],
"geo.country_iso_code": ["source.geo.country_iso_code"],
"geo.country_name": ["source.geo.country_name"],
"geo.location": ["source.geo.location"],
"geo.name": ["source.geo.name"],
"geo.region_iso_code": ["source.geo.region_iso_code"],
"geo.region_name": ["source.geo.region_name"]
}
},
"x-ecs-destination": {
"fields": {
"address": ["destination.address"],
"domain": ["destination.domain.keyword"],
"nat.ip": ["destination.nat.ip"],
"nat.port": ["destination.nat.port"],
"registered_domain": ["destination.registered_domain"],
"top_level_domain": ["destination.top_level_domain"],
"geo.city_name": ["destination.geo.city_name"],
"geo.continent_name": ["destination.geo.continent_name"],
"geo.country_iso_code": ["destination.geo.country_iso_code"],
"geo.country_name": ["destination.geo.country_name"],
"geo.location": ["destination.geo.location"],
"geo.name": ["destination.geo.name"],
"geo.region_iso_code": ["destination.geo.region_iso_code"],
"geo.region_name": ["destination.geo.region_name"]
}
},
"x-ecs-client": {
"fields": {
"address": ["client.address"],
"domain": ["client.domain"],
"nat.ip": ["client.nat.ip"],
"nat.port": ["client.nat.port"],
"registered_domain": ["client.registered_domain"],
"top_level_domain": ["client.top_level_domain"],
"geo.city_name": ["client.geo.city_name"],
"geo.continent_name": ["client.geo.continent_name"],
"geo.country_iso_code": ["client.geo.country_iso_code"],
"geo.country_name": ["client.geo.country_name"],
"geo.location": ["client.geo.location"],
"geo.name": ["client.geo.name"],
"geo.region_iso_code": ["client.geo.region_iso_code"],
"geo.region_name": ["client.geo.region_name"]
}
},
"x-ecs-server": {
"fields": {
"address": ["server.address"],
"domain": ["server.domain"],
"nat.ip": ["server.nat.ip"],
"nat.port": ["server.nat.port"],
"registered_domain": ["server.registered_domain"],
"top_level_domain": ["server.top_level_domain"],
"geo.city_name": ["server.geo.city_name"],
"geo.continent_name": ["server.geo.continent_name"],
"geo.country_iso_code": ["server.geo.country_iso_code"],
"geo.country_name": ["server.geo.country_name"],
"geo.location": ["server.geo.location"],
"geo.name": ["server.geo.name"],
"geo.region_iso_code": ["server.geo.region_iso_code"],
"geo.region_name": ["server.geo.region_name"]
}
}
}
Loading