Skip to content

Commit

Permalink
Put sub-techniques in a separate field
Browse files Browse the repository at this point in the history
  • Loading branch information
lvoloshyn-sekoia committed Dec 9, 2024
1 parent b7f9880 commit b4aca59
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 8 deletions.
14 changes: 13 additions & 1 deletion Trend Micro/trend-micro-vision-one-oat/ingest/parser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,16 @@ stages:
process.hash.sha256: "{{parsed_event.message.details.ObjectFileHashSha256}}"

threat.tactic.id: "{{parsed_event.message.filters | map(attribute='mitreTacticIds') | list | sum(start = [])}}"
threat.technique.id: "{{parsed_event.message.filters | map(attribute='mitreTechniqueIds') | list | sum(start = [])}}"
threat.technique.id: >
[
{%- for subtechnique_id in parsed_event.message.filters | map(attribute='mitreTechniqueIds') | list | sum(start = []) -%}
{%- if "." not in subtechnique_id -%}'{{ subtechnique_id }}',{%- endif -%}
{%- endfor -%}
]
threat.technique.subtechnique.id: >
[
{%- for subtechnique_id in parsed_event.message.filters | map(attribute='mitreTechniqueIds') | list | sum(start = []) -%}
{%- if "." in subtechnique_id -%}'{{ subtechnique_id }}',{%- endif -%}
{%- endfor -%}
]
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,12 @@
]
},
"technique": {
"id": [
"T1560.002"
]
"id": [],
"subtechnique": {
"id": [
"T1560.002"
]
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,10 @@
"technique": {
"id": [
"T1082"
]
],
"subtechnique": {
"id": []
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,13 @@
"technique": {
"id": [
"T1005",
"T1070",
"T1070.006"
]
"T1070"
],
"subtechnique": {
"id": [
"T1070.006"
]
}
}
}
}
Expand Down

0 comments on commit b4aca59

Please sign in to comment.