Skip to content

Commit

Permalink
Added separate scene for Charlie
Browse files Browse the repository at this point in the history
  • Loading branch information
hyakuhei committed Jul 19, 2021
1 parent 6586f06 commit ce3aa16
Show file tree
Hide file tree
Showing 6 changed files with 43 additions and 7 deletions.
4 changes: 3 additions & 1 deletion example_nest.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@
Process("Bob").inBoundary(Boundary("B Inner").inBoundary(Boundary("B Mid").inBoundary(Boundary("B Outer")))),
TLS("Helo"),
response=TLS("Hai")
),
)
],
"Enter Charlie":[
DataFlow(
Process("Charlie").inBoundary(Boundary("B Outer")),
Process("Alice"),
Expand Down
19 changes: 19 additions & 0 deletions examples/nest/Enter Charlie-dfd
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
digraph "Enter Charlie" {
color=blue rankdir=LR
node [fontname=Arial fontsize=14]
subgraph "cluster_B Outer" {
graph [color=red fontname=Arial fontsize=12 label="B Outer" line=dotted]
Charlie
}
subgraph "cluster_A Outer" {
graph [color=red fontname=Arial fontsize=12 label="A Outer" line=dotted]
subgraph "cluster_A Mid" {
graph [color=red fontname=Arial fontsize=12 label="A Mid" line=dotted]
subgraph "cluster_A Inner" {
graph [color=red fontname=Arial fontsize=12 label="A Inner" line=dotted]
Alice
}
}
}
Charlie -> Alice [label="(1) Yo"]
}
Binary file added examples/nest/Enter Charlie-dfd.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 21 additions & 1 deletion examples/nest/ThreatModel.html
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,29 @@ <h2> Towers </h2>
</tr>


</table>


<hr />

<h2> Enter Charlie </h2>
<img src="Enter Charlie-dfd.png">
<table id="dataFlowTable">
<tr>

<th>Flow ID</th>

<th>Pitcher</th>

<th>Catcher</th>

<th>Data Flow</th>

</tr>

<tr>

<td>3</td>
<td>1</td>

<td>Charlie</td>

Expand Down
5 changes: 0 additions & 5 deletions examples/nest/Towers-dfd
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,6 @@ digraph Towers {
}
}
}
subgraph "cluster_B Outer" {
graph [color=red fontname=Arial fontsize=12 label="B Outer" line=dotted]
Charlie
}
Alice -> Bob [label="(1) Helo"]
Bob -> Alice [label="(2) Hai"]
Charlie -> Alice [label="(3) Yo"]
}
Binary file modified examples/nest/Towers-dfd.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit ce3aa16

Please sign in to comment.