DFD - Data Flow Diagram

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
flowchart LR
    user(user)
    mobile((mobile\napplication))
    proxy((reverse\nproxy))
    api((API))
    db[|borders:tb|database]

    subgraph external [Internet]
        user--personal data-->mobile
        mobile-->proxy
    end
    subgraph dmz [Internal Network]
        proxy-->api
        db-->api
        api-->db
    end
    classDef boundary fill:none,stroke-dasharray: 5 5
    dmz:::boundary
    external:::boundary
flowchart LR user(user) mobile((mobile\napplication)) proxy((reverse\nproxy)) api((API)) db[|borders:tb|database] subgraph external [Internet] user--personal data-->mobile mobile-->proxy end subgraph dmz [Internal Network] proxy-->api db-->api api-->db end classDef boundary fill:none,stroke-dasharray: 5 5 dmz:::boundary external:::boundary

Full Threat Modeling

 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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
flowchart LR
    subgraph u [" "]
    user(user)
    attack
    mitigation
    end
    subgraph m [" "]
    mobile((mobile\napplication))
    attack2
    end
    subgraph p [" "]
    proxy((reverse\nproxy))
    end
    subgraph a [" "]
    api((API))
    end
    subgraph d[" "]
    db[|borders:tb|database]
    attack3
    end

    subgraph external [Internet]
        u
        m
        p
        user--personal data-->mobile
        mobile-->proxy
    end
    subgraph dmz [Internal Network]
        p
        a
        d
        proxy-->api
        db-->api
        api-->db
    end

    classDef boundary fill:none,stroke-dasharray: 5 5
    classDef entity fill:none,stroke: none
    dmz:::boundary
    external:::boundary
    u:::entity
    m:::entity
    p:::entity
    a:::entity
    d:::entity
flowchart LR subgraph u [" "] user(user) attack mitigation end subgraph m [" "] mobile((mobile\napplication)) attack2 end subgraph p [" "] proxy((reverse\nproxy)) end subgraph a [" "] api((API)) end subgraph d[" "] db[|borders:tb|database] attack3 end subgraph external [Internet] u m p user--personal data-->mobile mobile-->proxy end subgraph dmz [Internal Network] p a d proxy-->api db-->api api-->db end classDef boundary fill:none,stroke-dasharray: 5 5 classDef entity fill:none,stroke: none dmz:::boundary external:::boundary u:::entity m:::entity p:::entity a:::entity d:::entity