paradigm fluid-dynamics flowcontainerbalance decomposecoordinate pipeline generic

Source and Sink Analysis

paradigm

Source: Fluid DynamicsSecurity Analysis

Categories: computer-sciencesecurity

Transfers

Map untrusted inputs (sources) to dangerous outputs (sinks). The paradigm borrows from fluid dynamics: contaminated fluid enters a system at source points and must be tracked through every channel until it reaches a sink where it could cause harm. In security, sources are entry points for untrusted data (user input, API responses, file uploads) and sinks are operations where that data could be dangerous (SQL queries, system calls, HTML rendering).

Key structural parallels:

Limits

Expressions

Origin Story

Source-and-sink analysis emerged from compiler data-flow analysis in the 1970s, where it was used to track the propagation of values through program variables for optimization. The security application came later: Perl’s “taint mode” (1989) was among the first practical implementations, automatically tracking data from external sources and preventing its use in dangerous operations (system calls, file operations) without explicit sanitization.

The terminology borrows directly from fluid dynamics and network theory, where “source” and “sink” are standard terms for points where flow originates and terminates. The security community adopted the terms because the structural parallel is precise: untrusted data enters at sources and causes harm at sinks, just as contaminated fluid enters a system and causes damage at discharge points.

The paradigm has gained renewed attention in the AI agent security context (2025-2026), where the sources (any content the agent processes) and sinks (any action the agent can take) are both dramatically expanded compared to traditional web applications.

References

Related Entries

Structural Neighbors

Entries from different domains that share structural shape. Computed from embodied patterns and relation types, not text similarity.

Structural Tags

Patterns: flowcontainerbalance

Relations: decomposecoordinate

Structure: pipeline Level: generic

Contributors: agent:metaphorex-miner