-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
6 changed files
with
116 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<%! import html %> | ||
<%! from r3threatmodeling.template_utils import createTitleAnchorHash, makeMarkdownLinkedHeader, mermaid_escape, valueOr %> | ||
<%page args="printTOC=True"/> | ||
<% PAGEBREAK = """<div class="pagebreak"></div>"""%> | ||
<% H6 = "######" %> | ||
<%namespace name="lib" file="lib.mako"/> | ||
|
||
## <% dataModel = tmo.getOperationalGuideData() %> | ||
|
||
${makeMarkdownLinkedHeader(1, 'Testing guide', skipTOC = False)} | ||
|
||
|
||
This guide lists all testable attacks described in the threat model | ||
|
||
<table> | ||
<tr><th>Seq</th><th>Test ID</th><th>Attack to test</th><th>Pass/Fail/NA</th></tr> | ||
<tr> | ||
|
||
<% | ||
ts = [t for t in tmo.getAllDown('threats') if ( hasattr(t, 'pentestTestable') and t.pentestTestable is True)] | ||
%> | ||
|
||
% for idx, threat in enumerate(ts): | ||
|
||
## ${makeMarkdownLinkedHeader(3, threat.ID + " Test")} | ||
<td>${idx+1}</td><td> ${threat.ID}</td> | ||
<td>${threat.attack} | ||
% if hasattr(threat, 'conditional'): | ||
\n**Valid when:** ${threat.conditional} | ||
% endif | ||
</td> | ||
<td></td> | ||
|
||
</tr> | ||
% endfor # threats | ||
</table> | ||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters