Structural Dependency Criticality via PageRank: the synthetic estate, its dependencies and the two versions of the map

The analysis runs on a synthetic estate of 25 systems in four architectural tiers, joined by 56 directed dependencies. Everything on this page is defined in R/01_topology.R and params.yaml. The topology is illustrative: it was drawn by hand to show the method, not taken from a real enterprise or a published reference architecture.

Assets

Each system has a tier, an asset type, a business weight and an annual failure probability. The asset type drives which control the Governance page recommends. The business weight is the share of business value delivered through that system; only the 8 client-facing systems carry weight, and the weights sum to 100%. Failure probabilities are set by asset type. Both business weights and failure probabilities are illustrative assumptions.

Display code
g <- res$graph
nodes |>
  mutate(
    in_degree = as.integer(degree(g, mode = "in")[name]),
    out_degree = as.integer(degree(g, mode = "out")[name])
  ) |>
  select(name, tier, asset_type, business_weight, annual_failure_prob, in_degree, out_degree) |>
  gt_house(
    title = "The synthetic estate",
    subtitle = "Tier, type, business weight and failure probability are all illustrative inputs"
  ) |>
  cols_label(
    name = "Asset", tier = "Tier", asset_type = "Asset type",
    business_weight = "Business weight", annual_failure_prob = "Annual failure probability",
    in_degree = "Direct dependents", out_degree = "Direct dependencies"
  ) |>
  fmt_percent(columns = c(business_weight, annual_failure_prob), decimals = 0)
The synthetic estate
Tier, type, business weight and failure probability are all illustrative inputs
Asset Tier Asset type Business weight Annual failure probability Direct dependents Direct dependencies
Cloud_IAM Tier 0: Foundational Core identity 0% 2% 6 0
Root_DNS Tier 0: Foundational Core dns 0% 1% 1 0
IdP_Auth_Okta Tier 0: Foundational Core identity 0% 2% 4 0
Secrets_Vault Tier 0: Foundational Core secrets 0% 2% 9 0
Kafka_Bus Tier 0: Foundational Core message_bus 0% 5% 5 2
Core_Postgres_DB Tier 1: Data & Persistence database 0% 3% 5 2
Redis_Session_Cache Tier 1: Data & Persistence cache 0% 8% 4 1
S3_Asset_Store Tier 1: Data & Persistence object_store 0% 1% 2 1
Ledger_DB Tier 1: Data & Persistence database 0% 3% 3 2
Elastic_Search Tier 1: Data & Persistence search 0% 8% 2 1
Payment_Execution_API Tier 2: Microservices service 20% 10% 2 4
Order_Routing_Svc Tier 2: Microservices service 15% 10% 2 4
Fraud_Engine Tier 2: Microservices service 0% 10% 2 4
Settlement_API Tier 2: Microservices service 15% 10% 0 3
User_Profile_Svc Tier 2: Microservices service 0% 10% 2 4
Notification_Gateway Tier 2: Microservices service 0% 10% 1 2
Invoicing_API Tier 2: Microservices service 5% 10% 0 3
KYC_Verification_API Tier 2: Microservices service 5% 10% 0 3
Risk_Scoring_Engine Tier 2: Microservices service 0% 10% 1 3
Inventory_Svc Tier 2: Microservices service 0% 10% 1 3
Edge_Cloudflare_CDN Tier 3: Ingress / Perimeter cdn 0% 2% 0 2
Ingress_WAF_Gateway Tier 3: Ingress / Perimeter gateway 0% 5% 1 3
Web_Client_Gateway Tier 3: Ingress / Perimeter gateway 15% 5% 1 3
Mobile_API_Gateway Tier 3: Ingress / Perimeter gateway 15% 5% 1 3
Partner_B2B_Gateway Tier 3: Ingress / Perimeter gateway 10% 5% 1 3

How to read the table. Each row is one of the 25 systems. Tier shows its layer, from the foundational core (Tier 0) out to the internet-facing perimeter (Tier 3). Business weight is the share of revenue-earning activity that passes through the system, and annual failure probability is the assumed chance of a disabling outage in a year. The last two columns count the systems that call it directly and the systems it calls directly.

What the table tells you. Only 8 client-facing systems carry business weight, led by the payment API at 20%. The core is called most: the vault has 9 direct dependents and cloud IAM 6, while 4 core systems depend on nothing at all. Application services are assumed to fail most often, at 10% a year. Every value is an illustrative input, not a measurement from a real organization.

Dependencies

An edge from A to B means “A depends on B”: if B is unavailable, A is affected. Most dependencies are hard, meaning the dependent stops when the dependency stops. Dependencies on Redis_Session_Cache, Notification_Gateway, and Elastic_Search are marked soft: a cache miss falls back to the database, notifications queue, and search is not on the critical path. Of the 56 dependencies, 49 are hard and 7 are soft. The hard/soft flag is used only by the failure-cascade model; PageRank treats every edge the same.

Display code
# Synthetic 25-asset enterprise topology (illustrative, hand-built).
# Edge convention: from -> to means "from depends on to".

build_nodes <- function(params) {
  nodes <- tribble(
    ~name,                   ~tier_num, ~asset_type,
    "Cloud_IAM",             0,         "identity",
    "Root_DNS",              0,         "dns",
    "IdP_Auth_Okta",         0,         "identity",
    "Secrets_Vault",         0,         "secrets",
    "Kafka_Bus",             0,         "message_bus",
    "Core_Postgres_DB",      1,         "database",
    "Redis_Session_Cache",   1,         "cache",
    "S3_Asset_Store",        1,         "object_store",
    "Ledger_DB",             1,         "database",
    "Elastic_Search",        1,         "search",
    "Payment_Execution_API", 2,         "service",
    "Order_Routing_Svc",     2,         "service",
    "Fraud_Engine",          2,         "service",
    "Settlement_API",        2,         "service",
    "User_Profile_Svc",      2,         "service",
    "Notification_Gateway",  2,         "service",
    "Invoicing_API",         2,         "service",
    "KYC_Verification_API",  2,         "service",
    "Risk_Scoring_Engine",   2,         "service",
    "Inventory_Svc",         2,         "service",
    "Edge_Cloudflare_CDN",   3,         "cdn",
    "Ingress_WAF_Gateway",   3,         "gateway",
    "Web_Client_Gateway",    3,         "gateway",
    "Mobile_API_Gateway",    3,         "gateway",
    "Partner_B2B_Gateway",   3,         "gateway"
  )

  bw <- params$business_weight
  bw$status <- NULL
  stopifnot(all(names(bw) %in% nodes$name), abs(sum(unlist(bw)) - 1) < 1e-12)

  q <- params$annual_failure_prob
  q$status <- NULL

  nodes |>
    mutate(
      id = row_number(),
      tier = factor(tier_levels[tier_num + 1], levels = tier_levels),
      business_weight = map_dbl(name, \(x) bw[[x]] %||% 0),
      annual_failure_prob = map_dbl(asset_type, \(x) q[[x]])
    ) |>
    relocate(id)
}

dep <- function(from, ...) tibble(from_name = from, to_name = c(...))

# Original topology from the first version of the study (56 edges, a DAG)
edges_v1_raw <- function() {
  bind_rows(
    dep("Edge_Cloudflare_CDN", "Ingress_WAF_Gateway", "Root_DNS"),
    dep("Ingress_WAF_Gateway", "Web_Client_Gateway", "Mobile_API_Gateway", "Partner_B2B_Gateway"),
    dep("Web_Client_Gateway", "IdP_Auth_Okta", "User_Profile_Svc", "Order_Routing_Svc"),
    dep("Mobile_API_Gateway", "IdP_Auth_Okta", "User_Profile_Svc", "Payment_Execution_API"),
    dep("Partner_B2B_Gateway", "IdP_Auth_Okta", "Order_Routing_Svc", "Payment_Execution_API"),
    dep("User_Profile_Svc", "IdP_Auth_Okta", "Core_Postgres_DB", "Redis_Session_Cache", "Cloud_IAM"),
    dep("Order_Routing_Svc", "Inventory_Svc", "Fraud_Engine", "Kafka_Bus", "Core_Postgres_DB"),
    dep("Inventory_Svc", "Core_Postgres_DB", "Redis_Session_Cache", "Secrets_Vault"),
    dep("Fraud_Engine", "Risk_Scoring_Engine", "Elastic_Search", "Redis_Session_Cache", "Kafka_Bus"),
    dep("Risk_Scoring_Engine", "Core_Postgres_DB", "Elastic_Search", "Secrets_Vault"),
    dep("KYC_Verification_API", "Secrets_Vault", "S3_Asset_Store", "Core_Postgres_DB"),
    dep("Payment_Execution_API", "Secrets_Vault", "Fraud_Engine", "Ledger_DB", "Kafka_Bus"),
    dep("Settlement_API", "Ledger_DB", "Secrets_Vault", "Kafka_Bus"),
    dep("Invoicing_API", "Ledger_DB", "S3_Asset_Store", "Notification_Gateway"),
    dep("Notification_Gateway", "Kafka_Bus", "Redis_Session_Cache"),
    dep("Core_Postgres_DB", "Secrets_Vault", "Cloud_IAM"),
    dep("Ledger_DB", "Secrets_Vault", "Cloud_IAM"),
    dep("Redis_Session_Cache", "Secrets_Vault"),
    dep("S3_Asset_Store", "Cloud_IAM"),
    dep("Elastic_Search", "Cloud_IAM"),
    dep("Kafka_Bus", "Secrets_Vault", "Cloud_IAM")
  ) |>
    mutate(hard = NA, weight = 1)
}

# v2 adds dependencies that almost every real enterprise has.
edges_v2_raw <- function(nodes) {
  extra <- bind_rows(
    # Every asset resolves names through DNS (the CDN edge already exists in v1)
    tibble(
      from_name = setdiff(nodes$name, c("Root_DNS", "Edge_Cloudflare_CDN")),
      to_name = "Root_DNS"
    ),
    # Vault authenticates clients through cloud IAM and persists to object storage
    dep("Secrets_Vault", "Cloud_IAM", "S3_Asset_Store"),
    # Cloud IAM federates human access through the corporate IdP; workloads keep
    # running if the IdP is down, so this edge is soft (set below)
    dep("Cloud_IAM", "IdP_Auth_Okta"),
    # Bootstrap secret: IAM's signing keys are held in the vault. With
    # Secrets_Vault -> Cloud_IAM this closes a circular recovery dependency.
    dep("Cloud_IAM", "Secrets_Vault")
  ) |>
    mutate(hard = NA, weight = 1)
  bind_rows(edges_v1_raw(), extra)
}

# Attach integer ids and the hard/soft flag. Soft = the dependent degrades but survives.
index_edges <- function(edges, nodes, soft_targets) {
  ids <- select(nodes, id, name)
  edges |>
    distinct(from_name, to_name, .keep_all = TRUE) |>
    mutate(
      hard = coalesce(hard, !(to_name %in% soft_targets)),
      hard = if_else(from_name == "Cloud_IAM" & to_name == "IdP_Auth_Okta", FALSE, hard)
    ) |>
    left_join(rename(ids, from = id), by = join_by(from_name == name)) |>
    left_join(rename(ids, to = id), by = join_by(to_name == name)) |>
    relocate(from, to, .after = to_name)
}

to_igraph <- function(nodes, edges) {
  graph_from_data_frame(
    d = select(edges, from_name, to_name, hard, weight),
    vertices = select(nodes, name, tier, asset_type, business_weight),
    directed = TRUE
  )
}
WarningModel assumptions and limitations
  • Synthetic topology. Systems and dependencies are illustrative and hand-built.
  • Tier-ordered edges. Almost every edge runs from an outer tier toward the core, so the ranking’s broad shape was designed in. The tier labels are therefore not an independent check on the scores, and no separate “criticality rating” is used.
  • Binary, unweighted edges. A blocking call and a cacheable read count the same in PageRank. The solver supports edge weights (Method) but no weights are assigned.
  • No redundancy. Replicas, multiple availability zones and fallbacks are not represented, so the model cannot credit the mitigations it recommends.
  • Uniform dangling-node handling. The default follows igraph; alternatives are compared on the Sensitivity page.
  • Availability only. There is no attacker, vulnerability or exploitability in the model.
  • Relative scores. PageRank shares sum to 100%, so they depend on how many systems are modeled.

Interactive dependency map

Display code
s <- res$scores
vis_nodes <- s |>
  mutate(
    id = match(name, nodes$name),
    label = name,
    value = p_custom * 200,
    group = as.character(tier),
    title = paste0(
      "<div style='font-family:sans-serif;'>",
      "<b>Asset:</b> ", name, "<br>",
      "<b>Tier:</b> ", tier, "<br>",
      "<b>PageRank:</b> ", percent(p_custom, 0.01), " (rank ", rank_custom, ")<br>",
      "<b>Reverse PageRank (exposure):</b> ", percent(p_reverse, 0.01), "<br>",
      "<b>Blast radius:</b> ", blast_n, " dependents, ", percent(blast_value_hard, 1),
      " of business value (hard edges)",
      "</div>"
    )
  )

vis_edges <- e1 |>
  transmute(from, to, arrows = "to", dashes = !hard)

vn <- visNetwork(vis_nodes, vis_edges, main = "Enterprise dependency map (dashed = soft dependency)")
for (t in tier_levels) {
  vn <- visGroups(vn, groupname = t, color = list(background = tier_colors[[t]], border = "#444444"))
}
vn |>
  visLegend(position = "right") |>
  visOptions(highlightNearest = list(enabled = TRUE, degree = 1, hover = TRUE), nodesIdSelection = TRUE) |>
  visPhysics(solver = "forceAtlas2Based", forceAtlas2Based = list(gravitationalConstant = -40)) |>
  visLayout(randomSeed = 101)

How to read the plot. Each circle is a system, colored by tier and sized by its PageRank score, so bigger circles are relied on more. Arrows point from a system to a system it depends on. Dashed arrows are soft dependencies, which the dependent system survives losing. Hover over a circle to see its scores and blast radius, drag circles to rearrange the layout, or choose a system from the drop-down list to highlight its direct neighbors.

What the plot tells you. The estate is layered: almost every arrow points inward, from the perimeter toward a small core. The two largest circles, the vault and cloud IAM, sit where arrows from every tier converge; together they receive 15 of the 56 arrows. The perimeter systems at the outer edge receive few or no arrows, so they score low here, even though every customer request passes through them first.

Dependency matrix

Display code
indeg <- degree(g, mode = "in")
row_order <- names(sort(indeg, decreasing = FALSE))
col_order <- nodes$name

e1 |>
  select(from_name, to_name, hard) |>
  right_join(expand_grid(from_name = col_order, to_name = col_order), by = join_by(from_name, to_name)) |>
  mutate(
    link = case_when(is.na(hard) ~ "None", hard ~ "Hard", .default = "Soft"),
    link = factor(link, levels = c("Hard", "Soft", "None")),
    from_name = factor(from_name, levels = col_order),
    to_name = factor(to_name, levels = row_order)
  ) |>
  ggplot(aes(x = from_name, y = to_name, fill = link)) +
  geom_tile(color = "white", linewidth = 0.4) +
  scale_fill_manual(values = c(Hard = "#2a78d6", Soft = "#9ec5f4", None = "#f4f4f2"), name = NULL) +
  labs(
    title = "Direct dependency links (binary)",
    subtitle = "Rows sorted by number of direct dependents, most at the top",
    x = "Dependent system (from)",
    y = "System depended on (to)"
  ) +
  theme(
    axis.text.x = element_text(angle = 45, vjust = 1, hjust = 1, size = 8),
    axis.text.y = element_text(size = 8),
    panel.grid = element_blank()
  )

How to read the plot. Each column is a system, and each row is a system it might depend on. A filled cell means the column system depends directly on the row system: dark blue for a hard dependency, which stops the dependent when it fails, and light blue for a soft one. The chart records only whether a link exists, not how often it is used. Rows are sorted so the systems with the most direct dependents are at the top.

What the plot tells you. Filled cells pile up in the top rows, which shows dependencies converging on a few shared systems. The top three rows, Secrets_Vault, Cloud_IAM, and Core_Postgres_DB, hold 20 of the 56 links. All 7 soft links sit in just three rows: the cache, search and notification systems. The bottom 4 rows are empty, because no system depends on the CDN or on three of the business services.

Two versions of the dependency map

The original map (v1) leaves out dependencies that almost every real enterprise has. A second map (v2) adds them, keeping the same 25 systems so the two can be compared directly:

Display code
anti_join(e2, e1, by = join_by(from_name, to_name)) |>
  mutate(
    addition = case_when(
      to_name == "Root_DNS" ~ "Every system resolves names through DNS",
      from_name == "Secrets_Vault" ~ "Vault authenticates through IAM and stores data in object storage",
      to_name == "IdP_Auth_Okta" ~ "IAM federates human access through the IdP (soft)",
      from_name == "Cloud_IAM" & to_name == "Secrets_Vault" ~ "IAM bootstrap secret held in the vault (closes a cycle)"
    )
  ) |>
  summarise(edges_added = n(), examples = paste(head(paste(from_name, "→", to_name), 3), collapse = "; "),
            .by = addition) |>
  gt_house(title = "Dependencies added in v2", subtitle = "v1 has no cycles; v2 contains the vault–IAM bootstrap cycle") |>
  cols_label(addition = "Addition", edges_added = "Edges added", examples = "Examples")
Dependencies added in v2
v1 has no cycles; v2 contains the vault–IAM bootstrap cycle
Addition Edges added Examples
Every system resolves names through DNS 23 Cloud_IAM → Root_DNS; IdP_Auth_Okta → Root_DNS; Secrets_Vault → Root_DNS
Vault authenticates through IAM and stores data in object storage 2 Secrets_Vault → Cloud_IAM; Secrets_Vault → S3_Asset_Store
IAM federates human access through the IdP (soft) 1 Cloud_IAM → IdP_Auth_Okta
IAM bootstrap secret held in the vault (closes a cycle) 1 Cloud_IAM → Secrets_Vault

How to read the table. Each row is one group of dependencies added to the original map to create the v2 map. The middle column counts the arrows added in that group. The last column shows up to three examples, written as “system → system it depends on”. A soft addition is one the dependent system survives losing, because it keeps running in a reduced form while the other system is down.

What the table tells you. Of the 27 added arrows, 23 record that systems depend on DNS, which the original map left out almost entirely. The rest connect the vault, cloud IAM and the identity provider, and one closes a loop in which the vault and IAM each need the other. On the v2 map, Root_DNS ranks first, and the number of systems whose failure halts at least half the business rises from 7 to 9.

The vault–IAM pair in v2 is a circular recovery dependency: restoring IAM needs the vault, and the vault authenticates through IAM. Cycles like this are among the most dangerous real failure modes, because neither system can be brought back without the other. v1 carries the headline results, because the independent review’s checks were made on it and it is the original study. v2 is reported alongside it on the Sensitivity page as a robustness check.