diff --git a/atomic_red_team/atomic_doc_template.md.erb b/atomic_red_team/atomic_doc_template.md.erb index d6a522f5..36b4ca2b 100644 --- a/atomic_red_team/atomic_doc_template.md.erb +++ b/atomic_red_team/atomic_doc_template.md.erb @@ -1,11 +1,11 @@ # <%= technique['identifier'] %> - <%= technique['name'] -%> ## [Description from ATT&CK](https://attack.mitre.org/techniques/<%= technique['identifier'].gsub(/\./, '/') %>) -
-<%= technique['description'].gsub("%\\<", "%<").gsub(/.*?<\/code>/) { |match| match.gsub('~', '\~') } %>
-
-
+<% attack_description_lines = technique['description'].gsub("%\\<", "%<").gsub(/.*?<\/code>/) { |match| match.gsub('~', '\~') } %>
+<% attack_description_lines.each do |desc_line| %>
+> <%= desc['line'].strip %>
+<% end %>
## Atomic Tests
<% atomic_yaml['atomic_tests'].each_with_index do |test, test_number| -%>
@@ -14,9 +14,9 @@
<% end %>
<% atomic_yaml['atomic_tests'].each_with_index do |test, test_number| -%>
-
-## Atomic Test #<%= test_number+1 %> - <%= test['name'] %>
+
+### Atomic Test #<%= test_number+1 %> - <%= test['name'] %>
<%= test['description'].strip -%>
@@ -95,5 +95,4 @@ end%>
-
<%- end -%>