forked from usnistgov/mobile-threat-catalogue
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmtc-data.xml
26 lines (26 loc) · 1.18 KB
/
mtc-data.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
---
---
<?xml version="1.0" encoding="UTF-8" ?>
<root>
{% assign documents = site.documents | where: 'merged', true %}
{% for document in documents %}
<row>
<ThreatID>{{ document.ID | xml_escape }}</ThreatID>
<ThreatCategory>{{ document.ThreatCategory | xml_escape }}</ThreatCategory>
<Threat>{{ document.Threat | xml_escape }}</Threat>
{% for ThreatOrigin in document.ThreatOrigin %}
<ThreatOrigins>{{ ThreatOrigin | xml_escape }}</ThreatOrigins>{% endfor %}
{% for ExploitExample in document.ExploitExample %}
<ExploitExamples>{{ ExploitExample | xml_escape }}</ExploitExamples>{% endfor %}
{% for CVEExample in document.CVEExample %}
<CVEExamples>{{ CVEExample | xml_escape }}</CVEExamples>{% endfor %}
{% for PossibleCountermeasure in document.PossibleCountermeasures %}
<PossibleCountermeasures>
<Actor>{{ PossibleCountermeasure[0] }}</Actor>
{% for countermeasure in PossibleCountermeasure[1] %}<Countermeasure>{{ countermeasure | xml_escape }}</Countermeasure>
{% endfor %}
</PossibleCountermeasures>
{% endfor %}
</row>
{% endfor %}
</root>