Skip to main content
Trusted Packets
Prefix Carving Cloud Safety CIDR Math Zero Collateral

Zero-Collateral Prefix Carving: Eliminating Shared Cloud & CDN Outages in Automated Blocklists

How binary radix-tree set subtraction guarantees that neither global Cloud/CDN edges nor tenant-authorized scanners can ever be covered by an emitted CIDR block.

Trusted Packets Threat Research 5 min read

The fastest way for a threat-intelligence feed to lose the trust of a network engineering team is a single false positive against business-critical infrastructure. In modern enterprise networks, that outage almost never comes from a random /32 host—it happens when an automated feed aggregates dense hostile activity into a wider CIDR prefix (such as a /24 or /48) or blocks an entire autonomous system without exact set subtraction.

Anatomy of an Aggregation Outage

Consider a contiguous /24 block (198.51.100.0/24 in RFC 5737 documentation space) where dozens of ephemeral nodes are actively conducting verified mass-exploitation sweeps. Aggregating those individual /32 addresses into 198.51.100.0/24 dramatically reduces firewall TCAM/ASIC table consumption and preempts lateral IP hopping across sibling leases.

Now suppose 198.51.100.200/30 inside that address neighborhood is a verified partner EDI endpoint—or an authorized external vulnerability scanner contracted by your security team. Emitting 198.51.100.0/24 blindly blackholes 198.51.100.200/30. Dropping the entire /24 promotion, on the other hand, leaves the remaining 252 addresses unaggregated.

Exact Radix-Tree Set Subtraction

Binary prefix carving resolves this conflict deterministically. Every IPv4 (/0–/32) and IPv6 (/0–/128) prefix corresponds to a node in a binary trie. Subtracting a protected safelist prefix $S$ from a candidate block prefix $B$ recursively splits $B$ along binary boundaries until $S$ is completely excised while emitting the minimal covering set of sibling prefixes:

Candidate Block:     198.51.100.0/24    (.0   .. .255)
Protected Safelist:  198.51.100.200/30  (.200 .. .203)

Mathematically Carved Output (6 disjoint prefixes, 0% overlap with .200/30):
  198.51.100.0/25      (.0   .. .127)
  198.51.100.128/26    (.128 .. .191)
  198.51.100.192/29    (.192 .. .199)
  198.51.100.204/30    (.204 .. .207)
  198.51.100.208/28    (.208 .. .223)
  198.51.100.224/27    (.224 .. .255)

Every hostile sibling address remains blocked at wire speed in hardware silicon, while 198.51.100.200 through 198.51.100.203 are mathematically unreachable by any emitted CIDR entry.

Dual-Layer Safelist Architecture in TP-Shield

TP-Shield enforces prefix carving across two independent layers during every per-tenant feed compilation cycle:

  1. Global Infrastructure Never-Block Layer: Continuously maintained ranges for major cloud control planes, global CDNs, certificate authorities (OCSP/CRL/ACME validation origins), public DNS roots, and enterprise SaaS collaboration suites.
  2. Per-Tenant Isolated Safelist Layer: Organization-specific never_block CIDRs—such as your Qualys, Rapid7, or Tenable external scan engines, red-team egress ranges, and B2B partner extranets—applied strictly inside your private compiler instance.

Because every compiler build verifies disjointness via property-based invariants before atomic publication, security teams gain aggressive subnet suppression with 0.00% shared-infrastructure collateral.