Algorithm Search⌘K

Security and privacy

Algorithms and models that control who may do what with data, find and stop attacks on programs and networks, and release data without exposing the people in it.

Problems

  • Anomaly detection

    Given data that come mostly from normal behavior, learn a score that is high on points unlike that behavior, and flag the points whose score passes a threshold.

    intro
  • Intrusion detection

    Decide from audit logs, system calls or network traffic which events are attacks, with few missed attacks and few false alarms.

    intro
  • Malware detection

    Decide whether a program or file is malicious from its bytes, its static structure or its behavior when run.

    intro
  • Cell suppression problem

    Choose extra cells of a table with marginal totals to hide, so that no sensitive cell can be computed within a protection interval.

    core
  • Confinement problem

    Run a borrowed program so that it cannot pass the data it reads to anyone but its caller, through storage, timing or any other channel.

    core
  • IP traceback problem

    Find the path of routers that packets with forged source addresses took to reach a victim, using marks in the packets or digests kept by the routers.

    core
  • Private query release

    Answer every query of a large class, such as all counting queries, accurately under differential privacy.

    core
  • Binary code similarity

    Decide how similar two binary functions or programs are, across compilers and options, to find known bugs or patched code.

    advanced
  • Neural network verification

    Decide whether a network's output satisfies a property, such as a fixed label, for every input in a given region.

    advanced
  • Role mining problem

    Given a user-permission matrix, find the fewest roles whose Boolean product with a user-role matrix gives it exactly. Its decision version is NP-complete.

    advanced
  • Website fingerprinting

    Identify which web page a user loads over an encrypted or anonymized link from the sizes, directions and times of its packets.

    advanced
  • Machine unlearning

    Remove the effect of chosen training points from a trained model, so that it matches a model trained without them.

    research

Algorithms

  • Fast gradient sign method

    Builds an adversarial example in one step by moving each input coordinate by epsilon in the sign of the loss gradient, then clipping to the valid range.

    O(g + d) worst1 languagesintro
  • Laplace mechanism

    Adds Laplace noise with scale equal to the l1 sensitivity over epsilon to a numeric query, which gives epsilon-differential privacy.

    O(k) worst1 languagesintro
  • Mutation-based fuzzing

    Makes new inputs by random bit flips, byte changes, insertions and splices of seed inputs, with no feedback from the program.

    O(N (K L + T)) worst1 languagesintro
  • Randomized response

    Each person answers a yes or no question truthfully with probability p and flips it otherwise, so the population rate can still be estimated.

    O(n) worst1 languagesintro
  • AddressSanitizer

    Puts poisoned redzones around objects and a quarantine for freed memory, and checks each access against shadow memory to find overflows and use after free.

    Θ(1) worst1 languagescore
  • Byte n-gram malware classification

    Represents each executable by the presence of selected byte n-grams and trains a standard classifier to tell malware from clean files.

    O(n L log L) worst1 languagescore
  • Carlini-Wagner attack

    Finds a small l2 perturbation by minimizing the squared distance plus c times a margin loss on the logits, with a tanh change of variables for the box and a binary search on c.

    O(s T (g + d)) worst1 languagescore
  • Context-triggered piecewise hashing

    Cuts a file where a rolling hash of the last 7 bytes hits a trigger value, hashes each piece to one character, and compares files by the edit distance of these strings.

    O(n log n) worst1 languagescore
  • Correlation power analysis

    Ranks key guesses by the Pearson correlation between measured power and a leakage model such as the Hamming weight of an intermediate value.

    Θ(g m T) worst · average · best1 languagescore
  • Crash bucketing

    Groups crashes from fuzzing into likely distinct bugs by hashing the top frames of their call stacks.

    O(c m) worst1 languagescore
  • Datafly

    Greedily generalizes the quasi-identifier attribute with the most distinct values until few records violate k-anonymity, then suppresses those.

    O(h n d) worst1 languagescore
  • DeepFool

    Finds a near-minimal l2 perturbation by linearizing the classifier, stepping to the nearest boundary of the linear model, and repeating until the label changes. Exact in one step for affine models.

    O(T (g + K d)) worst1 languagescore
  • Differential power analysis

    Splits many power traces by a predicted intermediate bit under each key guess, and takes the guess whose difference of means shows a peak.

    Θ(g m T) worst · average · best1 languagescore
  • Exponential mechanism

    Picks an output with probability proportional to e^(epsilon times its utility over twice the sensitivity); the factor 2 can be dropped when the utility is monotone in the data.

    O(m q) worst1 languagescore
  • Gaussian mechanism

    Adds Gaussian noise scaled to the l2 sensitivity, which gives (epsilon, delta)-differential privacy and composes well.

    O(k + T) worst1 languagescore
  • Geometric mechanism

    Adds two-sided geometric noise to an integer count, and is universally utility-maximizing for count queries under differential privacy.

    O(1/(1 - a)) expected1 languagescore
  • Incognito

    Finds all k-anonymous full-domain generalizations, and the minimal ones, by a bottom-up search over growing subsets of attributes, as in a priori.

    O(2^d g n d) worst1 languagescore
  • Isolation forest

    Builds random trees that split on random features and values, and scores a point as anomalous when its average path to isolation is short.

    O(t s d log s + n t log s) worst1 languagescore
  • Linear sweep disassembly

    Decodes instructions one after the other from the start of a code section. It covers every byte, but data mixed with the code is decoded as instructions and can push it out of step.

    O(n) worst · average · best1 languagescore
  • Local outlier factor

    Scores each point by the mean local reachability density of its k nearest neighbors divided by its own, so a point in a sparser place than its neighbors scores well above 1.

    O(n^2 (d + log n)) worst1 languagescore
  • MDAV

    Microaggregation heuristic that builds groups of k around the record farthest from the centroid and the record farthest from it, in turn.

    O(n^2 (d + log k) / k + n d) worst1 languagescore
  • Mondrian multidimensional k-anonymity

    Splits the quasi-identifier space recursively, as in a kd-tree, at the most balanced cut of one attribute that leaves at least k records on each side.

    O(d n^2 log n) worst1 languagescore
  • One-class support vector machine

    Learns a region in a kernel feature space that holds most of the training data, by separating the data from the origin with maximum margin, and flags new points outside it.

    O(n^2 d + r n) worst1 languagescore
  • Output perturbation

    Trains a model by regularized empirical risk minimization and adds noise scaled to the sensitivity of the minimizer.

    O(K n d) worst1 languagescore
  • Post-randomization method

    Replaces each categorical value by a random value drawn from a published Markov matrix, so that analysts can correct for it.

    O(n K + K^3) worst1 languagescore
  • Probabilistic packet marking

    Each router overwrites a mark in a packet with a small probability, and the next router completes it into an edge with a distance. The victim rebuilds the attack path from many packets.

    O(1) worst · average · best1 languagescore
  • Projected gradient descent attack

    Repeats small signed gradient steps on the loss and projects back onto the epsilon ball and the valid box, from a random start. The standard first-order attack for robust accuracy.

    O(T (g + d)) worst1 languagescore
  • Recursive traversal disassembly

    Decodes instructions by following the control flow from entry points, which skips data but misses code reached only by indirect jumps.

    O(n + e) worst · average1 languagescore
  • Report noisy max

    Adds independent Laplace or exponential noise to each candidate's count and reports only the index of the largest.

    O(m) worst1 languagescore
  • SYN cookies

    Encodes the connection state in the server's initial sequence number as a keyed hash, so that the server keeps no state until the handshake ends.

    O(1) worst · average · best1 languagescore
  • Samarati's algorithm

    Binary searches the heights of the full-domain generalization lattice for the lowest height with a k-anonymous node within a suppression limit.

    O(n d g log h) worst1 languagescore
  • Seed corpus minimization

    Chooses a small set of seed inputs that keeps the coverage of a large corpus, by a greedy or weighted set cover.

    O(k z) worst1 languagescore
  • Sparse vector technique

    Compares a stream of low-sensitivity queries with a noisy threshold and reports only which one is first above it. The privacy cost is paid only for the queries above the threshold.

    O(k) worst1 languagescore
  • System call sequence anomaly detection

    Stores the short sequences of system calls a program makes in normal runs and flags runs with many sequences never seen.

    O(k s) worst1 languagescore
  • Volpano-Smith-Irvine type system

    A type system that labels variables with security levels and the program counter with a level, and whose well-typed programs are termination-insensitive noninterferent.

    Θ(n) worst · best1 languagescore
  • k-nearest-neighbor outlier detection

    Scores each point by the distance to its k-th nearest neighbor and reports the m points with the largest scores, with a pruning rule that stops the scan of a point that cannot reach the top m.

    O(n^2 (d + log k) + n log m) worst1 languagescore
  • Anatomy

    Releases quasi-identifiers and sensitive values in two tables linked only by group id, with l-diverse groups and no generalization.

    O(n log m) worst1 languagesadvanced
  • Baggy bounds checking

    Pads each allocation to a power of two and stores its log size in a compact table, so that bounds checks need one lookup.

    Θ(1) worst1 languagesadvanced
  • Binary tree mechanism

    Releases a running count of a bit stream at every step. It adds noise to the dyadic partial sums and adds at most log T of them, so the error grows only as a polylog of T.

    O(T log T) worst1 languagesadvanced
  • Boundary attack

    A black-box attack that sees only labels. It starts from an input of another class and takes random steps along the decision boundary, keeping those that stay wrong and get closer.

    O(T (d + q)) worst1 languagesadvanced
  • Buffer overrun detection by range analysis

    Models C strings by allocated size and used length, generates integer range constraints and flags uses where the length may exceed the size.

    O(m^2 b) worst1 languagesadvanced
  • Content prevalence worm detection

    Finds worms by counting repeated payload substrings with Rabin fingerprints and flagging ones that are common and spread to many addresses.

    O(n s) worst · average1 languagesadvanced
  • Context-sensitive auto-escaping

    Runs an HTML parser model over the static text of a template to find the context of each hole, and inserts the escaper of that context. It rejects templates whose contexts do not agree.

    Θ(n) worst · average · best1 languagesadvanced
  • Control flow structuring

    Turns the control flow graph of a binary function into structured if, while and switch statements, with as few gotos as possible.

    O(n^2) worst · average · best1 languagesadvanced
  • Controlled tabular adjustment

    Moves each sensitive cell out of its protection interval and fixes the other cells by a linear program that keeps the totals.

    O(2^p L) worst1 languagesadvanced
  • Defensive distillation

    An empirical defense that retrains a network on its own soft labels at a high temperature. It makes softmax gradients tiny but leaves the boundaries in place, and Carlini and Wagner broke it.

    O(S n K d) worst1 languagesadvanced
  • Differentially private stochastic gradient descent

    Clips each example's gradient to a fixed norm, adds Gaussian noise to the sum of a random batch, and tracks the privacy cost of training.

    O(T n d) worst1 languagesadvanced
  • Directed greybox fuzzing

    Steers greybox fuzzing toward chosen target sites by giving more energy to seeds whose paths are closer to the targets in the call and control graphs.

    O(n (n + e) + w (v + k) + B (Q + L)) worst1 languagesadvanced
  • Firewall policy anomaly detection

    Finds shadowed, redundant, generalized and correlated rules in an ordered firewall rule list by comparing the packet sets of rule pairs.

    Θ(m^2 d) worst · average · best1 languagesadvanced
  • Hash-based IP traceback

    Routers keep Bloom filters of digests of recent packets, so a single packet can be traced back by querying routers hop by hop.

    O(k(V + E)) worst · average1 languagesadvanced
  • Hybrid fuzzing

    Runs a greybox fuzzer and calls concolic execution only when the fuzzer is stuck, to solve the branch conditions it cannot pass.

    O(N (L + T) + q m (m^2 + L + T)) worst1 languagesadvanced
  • ISW private circuits

    Compiles any circuit into one secure against t probes by masking each wire with 2t+1 shares and a randomized AND gadget; later work showed t+1 shares suffice for the gadget.

    Θ(n^2) worst · average · best1 languagesadvanced
  • Interval bound propagation

    Pushes an input box through the network layer by layer with interval arithmetic, to certify robustness and to train certifiably robust models.

    Θ(N + d) worst1 languagesadvanced
  • Jacobian-based saliency map attack

    A targeted l0 attack that uses a saliency map of the Jacobian to pick pairs of features, and sets them high until the model gives the target class or a budget of changed features runs out.

    O(G (g + K d + d^2)) worst1 languagesadvanced
  • Jones-Kelly bounds checking

    Keeps a table of live objects and checks that each pointer arithmetic result stays in the object the operand points to, or one past its end.

    O(log t) worst · amortized1 languagesadvanced
  • Lock and key temporal checking

    Gives each allocation a unique key and lock, copies the key with each pointer, and checks that the lock still holds the key at each access.

    Θ(1) worst1 languagesadvanced
  • Logical attack graph generation

    Builds an attack graph of polynomial size by Datalog derivation over host configurations and vulnerabilities, under the monotonicity assumption.

    O(m b n^(b+1)) worst · average1 languagesadvanced
  • Malware behavior clustering

    Turns sandbox traces into sets of behavioral features and clusters samples into families with locality-sensitive hashing and single linkage on the Jaccard index.

    O(n k l d + n^2 (d + log n)) worst1 languagesadvanced
  • Markov password model

    Estimates password strength with a character n-gram model trained on a password list. A password scores -log2 of its probability, and its guess number is its rank under the model.

    Θ(n k) worst · average · best1 languagesadvanced
  • Membership inference attack

    Decides whether a record was in a model's training set from the model's output on it; the classic method fits its decision rule on shadow models trained on similar data.

    O(k s m d + k m log(k m)) worst1 languagesadvanced
  • Model inversion attack

    Recovers a sensitive input feature, or an input typical of one class, from a trained model and its confidence scores; MI-FACE does gradient descent on one minus the confidence.

    O(a (k d + q)) worst1 languagesadvanced
  • Moments accountant

    Tracks the log moments of the privacy loss of each subsampled Gaussian step, adds them over the steps, and turns the sum into an (epsilon, delta) bound by a tail bound.

    O(m^2) worst1 languagesadvanced
  • Multiplicative weights exponential mechanism

    Keeps a synthetic histogram, picks a badly answered query with the exponential mechanism, measures it with Laplace noise and corrects the histogram by multiplicative weights.

    O(T |Q| N) worst1 languagesadvanced
  • Mutual information analysis

    Ranks key guesses by the estimated mutual information between leakage and predicted values, which works without a linear leakage model.

    Θ(g T (m + V B)) worst · average · best1 languagesadvanced
  • No-sensitive-upgrade check

    A dynamic information flow monitor that stops a run when it assigns to a public variable under a secret branch, which gives termination-insensitive noninterference.

    O(t n) worst1 languagesadvanced
  • O(k) approximation for k-anonymity

    Groups records into clusters of at least k by a forest construction and suppresses differing cells, within O(k) of the fewest suppressions.

    O(n^2 d + n^2 log n) worst1 languagesadvanced
  • Objective perturbation

    Adds a random linear term to a strongly convex empirical risk before minimizing it, which gives differentially private learning.

    O(K n d) worst1 languagesadvanced
  • PCA subspace method for traffic anomalies

    Projects link traffic onto the residual subspace of its main principal components and flags times when the residual norm passes the Q-statistic.

    O(t m^2 + w m^3) worst1 languagesadvanced
  • Parse-tree validation of queries

    Parses a query once with placeholders for the inputs and once with the real inputs, and rejects it unless the trees have the same shape and each input stays inside one literal.

    Θ(n) worst · average · best1 languagesadvanced
  • Payload anomaly detection

    Models the byte frequency distribution of normal packet payloads per port and length and flags payloads far from it by a simplified Mahalanobis distance.

    O(s + 256 n) worst1 languagesadvanced
  • Poisoning attack on support vector machines

    Finds a training point that most increases an SVM's validation error by gradient ascent through the incremental SVM solution.

    O(p (n^2 d + k n + d s^3 + v d^2)) worst1 languagesadvanced
  • Power schedule for fuzzing

    Gives more mutations to seeds that reach rare paths, by modeling greybox fuzzing as a Markov chain over paths.

    O(B (Q^2 + T)) worst1 languagesadvanced
  • Privacy-preserving record linkage with Bloom filters

    Encodes the q-grams of each identifier into a keyed Bloom filter and links records across parties by the Dice similarity of the filters.

    O((n + r) l (q + k) + n r m / w) worst1 languagesadvanced
  • Probabilistic context-free grammar password model

    Estimates password strength with a grammar of letter, digit and symbol runs learned from a password list. A password scores -log2 of its probability, and its guess number is its rank.

    Θ(n) worst · average · best1 languagesadvanced
  • Propose-test-release

    Proposes a bound on the local sensitivity, tests with noise that the data is far from any dataset that breaks it, and only then releases the answer with noise for that bound.

    O(n^2) worst1 languagesadvanced
  • Protocol state fuzzing

    Learns the state machine of a protocol implementation with active automata learning and checks it for unexpected states and transitions.

    O(k n (k + n m) (n + m)) worst1 languagesadvanced
  • RAPPOR

    Encodes each value into a Bloom filter and applies two stages of randomized response, so a server can estimate value frequencies over time.

    O(N k + k m M^2 + M^3) worst1 languagesadvanced
  • Randomized smoothing

    Classifies by the majority label under Gaussian noise and certifies an l2 radius from the gap between the top two class probabilities.

    O(n (c + d)) worst1 languagesadvanced
  • Route origin validation

    Marks each BGP route valid, invalid or not found by matching its prefix and origin AS against signed route origin authorizations.

    O(L + c) worst · average1 languagesadvanced
  • Shared resource matrix method

    Finds potential covert channels by tabulating which operations reference and modify each shared attribute, closing the table under indirect references, and keeping the rows with both.

    O(m n^2) worst1 languagesadvanced
  • SmallDB mechanism

    Picks a small synthetic database with the exponential mechanism. It answers a huge set of counting queries, with an error that grows only with the log of their number.

    O(U^(m+1) |Q|) worst1 languagesadvanced
  • Smooth sensitivity framework

    Adds noise scaled to a smooth upper bound on the local sensitivity at the actual dataset. For the median this is often far less noise than the global sensitivity needs.

    O(n^2) worst1 languagesadvanced
  • SoftBound

    Keeps base and bound for each pointer in a disjoint table indexed by the address where the pointer is stored, for spatial safety in C with no change to memory layout.

    Θ(1) worst1 languagesadvanced
  • Spatial cloaking

    Replaces a user's location by a region that holds at least k users before it goes to a location-based service, by quadtree subdivision.

    O(n h) worst1 languagesadvanced
  • Support vector data description

    Finds the smallest sphere in a kernel feature space that holds most training points, and flags points outside it.

    O(n^2 d + r n) worst1 languagesadvanced
  • Template attack

    Builds multivariate Gaussian templates of the leakage of each intermediate value on a copy of the device, then ranks the key guesses of the target by maximum likelihood.

    Θ(n T² + V T³ + g m T²) worst · average · best1 languagesadvanced
  • Threshold random walk scan detection

    Detects a scanner by a sequential probability ratio test on whether its connection attempts succeed or fail.

    O(n log n) worst1 languagesadvanced
  • Universal adversarial perturbation

    Builds one small perturbation that changes the label of many inputs at once, by adding DeepFool steps over a data set and projecting the sum back onto a norm ball.

    O(P n T (g + K d)) worst1 languagesadvanced
  • Vulnerability signature generation

    Builds a filter that matches every input that reaches a known vulnerability, as a regular expression, a symbolic constraint or a Turing machine.

    O(2^b n L^2 s^3) worst1 languagesadvanced
  • Zeroth order optimization attack

    A black-box attack that sees only the output probabilities. It minimizes the Carlini-Wagner loss by coordinate descent, with each partial derivative estimated by a symmetric difference of two queries.

    O(T (q + d + K)) worst1 languagesadvanced
  • k-degree anonymization

    Makes each degree of a graph shared by at least k vertices; a dynamic program finds the cheapest such degree sequence, then edges are added to realize it.

    O(n log n + n k + n r) worst1 languagesadvanced
  • Clean-label poisoning

    Adds correctly labeled training points, crafted so that a model trained on them misclassifies one chosen target input; Poison Frogs makes their features match the target's.

    O(p h d) worst1 languagesresearch
  • Constant-time verification

    Proves that a program is constant time by reducing the two-run property to a safety check on a product program.

    O(n^2 + m t) worst1 languagesresearch
  • Dangling pointer nullification

    Tracks which heap pointers refer to each object and sets them to a null value when the object is freed, so a use after free hits the null page.

    O(log t + d) worst1 languagesresearch
  • Discrete Gaussian mechanism

    Adds integer noise with mass proportional to exp(-y^2/(2 sigma^2)), drawn by an exact sampler with only random integers and rational arithmetic, which avoids the flaws of float noise.

    O(1) expected1 languagesresearch
  • Faceted execution

    Runs one program on values with a secret and a public facet, so that each observer sees the result computed from what it may know. This gives termination-insensitive noninterference.

    O((a + b) n) worst1 languagesresearch
  • Green list watermark for language models

    Biases generation toward a pseudorandom green list of tokens seeded by the previous token, and detects the watermark by a z-test on green counts.

    O(T V) detect1 languagesresearch
  • Input-to-state correspondence

    Solves magic byte and checksum comparisons by finding operands of comparisons that appear in the input and patching them directly.

    O((c + 1) n (n + T)) worst1 languagesresearch
  • Key rank estimation

    Bounds the rank of the true key among all keys from per-byte scores of a side-channel attack, by histogram convolution, without enumerating keys.

    O(d K + d^2 N min(N, K)) worst · average1 languagesresearch
  • Krum

    A Byzantine-robust aggregation rule that needs n > 2f + 2 and picks the update with the smallest sum of squared distances to its n - f - 2 nearest updates.

    O(n^2 (d + log n)) worst1 languagesresearch
  • Likelihood ratio membership attack

    Fits Gaussians to a record's logit-scaled confidence under models trained with and without it, and tests membership by their likelihood ratio.

    O(k s m d + k m d) worst1 languagesresearch
  • Linear bound propagation

    Bounds each neuron by linear functions of the input through linear relaxations of the activations, which usually gives tighter certificates than intervals.

    O(K n N + K n d) worst1 languagesresearch
  • Matrix mechanism

    Answers a workload of linear queries by adding Laplace noise to a chosen strategy set of queries and then deriving the workload answers by least squares.

    O(p n^2 + n^3 + m n) worst1 languagesresearch
  • Numerical privacy loss distribution accounting

    Composes mechanisms by convolving discretized privacy loss distributions with the FFT, which gives near-exact epsilon for given delta.

    O(k n log(k n)) worst1 languagesresearch
  • Optimized local hashing

    A local frequency oracle in which each user hashes the value into a small range and applies generalized randomized response to the hash.

    O(n d) worst1 languagesresearch
  • Private aggregation of teacher ensembles

    Trains teachers on disjoint data, labels public data by a noisy vote among them, and trains a student model on those labels.

    O(n d + Q k m d) worst1 languagesresearch
  • Reluplex

    Extends the simplex method with lazy case splits on ReLU constraints to verify properties of ReLU networks exactly.

    O(2^R s) worst1 languagesresearch
  • SISA training

    Trains models on disjoint shards in slices with checkpoints, so that deleting a point needs retraining only one shard from one slice.

    O(E d n R) build1 languagesresearch
  • Secure multi-execution

    Runs a program once per security level and gives each run only the inputs it may see. This gives termination-sensitive noninterference and keeps each ending run of a TSNI program.

    O(k (t n + v)) worst1 languagesresearch
  • Spectral signatures

    Finds poisoned training points by their large projection on the top singular vector of the centered learned features of each class, then removes the top 1.5 epsilon fraction.

    O(n d^2 + t d^3 + n log n) worst1 languagesresearch
  • SybilGuard

    Limits Sybil nodes by random routes on a social graph, since few attack edges link the Sybil region to honest nodes.

    O(w^2 m) worst · average · best1 languagesresearch
  • SybilRank

    Ranks accounts by a short power iteration of trust from known honest seeds, which stays mostly inside the honest region.

    O((n + m) log n) worst · average · best1 languagesresearch

Data structures

  • Access control list

    Stores the access matrix by column, so that each object keeps the list of subjects that may use it and the rights of each.

    O(s) worst1 languagesintro
  • Capability list

    Stores the access matrix by row, so that each subject holds unforgeable tokens that name an object and the rights on it.

    O(1) worst1 languagesintro
  • Edge coverage bitmap

    A small array indexed by a hash of the previous and current basic block that counts edge hits in buckets, used as fuzzer feedback.

    O(m + v) worst1 languagescore
  • Fat pointer

    A pointer that carries the base and bound of its object, so that each dereference can be checked against them.

    Θ(1) worst1 languagescore
  • Shadow memory

    A scaled copy of the address space that holds metadata for each byte or word, found from the address by a shift and an add.

    Θ(1) worst1 languagescore
  • Shadow stack

    A protected second stack that keeps a copy of each return address and is compared with the normal stack on return.

    Θ(1) worst1 languagescore
  • Code property graph

    Merges the syntax tree, control flow graph and program dependence graph into one graph, queried by graph traversals to find vulnerable patterns.

    1 languagesadvanced

Techniques

  • Data execution prevention

    Marks each page either writable or executable but never both, so that injected data cannot run as code.

    intro
  • Fuzz testing

    Runs a program on many generated or mutated inputs and watches for crashes, hangs and failed checks.

    intro
  • Generalization and suppression

    Coarsens quasi-identifier values along a hierarchy, such as zip 02139 to 021**, and deletes outlier records, until a privacy model holds.

    intro
  • Ingress filtering

    A router at the edge of a network drops packets whose source address could not come from the link they arrived on. It stops forged sources at the network where they start.

    intro
  • Misuse detection

    Detects attacks by matching events against patterns of known attacks. It misses new attacks, and its false alarms depend on how specific the patterns are.

    intro
  • Pseudonymization

    Replaces direct identifiers with consistent pseudonyms, such as keyed hashes, which keeps linkability and does not stop linkage attacks.

    intro
  • Stack canary

    Places a secret value before the return address and checks it before the function returns, to detect a linear stack overflow.

    intro
  • Stack smashing

    Overflows a stack buffer to overwrite the saved return address, so that the function returns into code the attacker chose.

    intro
  • Address space layout randomization

    Places code, stack, heap and libraries at random addresses at load time, so that an attacker cannot predict the target of a jump.

    core
  • Boolean masking

    Splits each secret intermediate value into random shares whose XOR is the value, so that no single leaking point depends on the secret.

    1 languagescore
  • Constant-time programming

    Writes code whose branches, memory addresses and variable-time instructions do not depend on secrets, to stop timing and cache attacks.

    core
  • Content security policy

    A header that tells the browser which sources of script, style and other content a page may load, to limit cross-site scripting.

    core
  • Control-flow flattening

    Puts all basic blocks of a function under one dispatcher loop that picks the next block by a state variable, which hides the control flow.

    core
  • Control-flow integrity

    Checks at each indirect branch that the target is allowed by a control flow graph computed in advance, so hijacked flow stops.

    1 languagescore
  • Data swapping

    Exchanges values of an attribute between pairs of records, chosen to keep marginal totals, to confuse a linkage attack.

    core
  • Differential fault analysis

    A fault attack on ciphers that compares the correct output and a faulty output for the same input, and keeps only the keys that some fault of the model can explain.

    core
  • Entropy-based packer detection

    Flags executables whose sections have byte entropy near 8 bits, a sign of compression or encryption by a packer.

    core
  • Flush+Reload

    A cache side channel in which an observer that shares memory with a victim learns, one memory line at a time, whether the victim used that line in each interval.

    core
  • Microaggregation

    Groups numerical records into clusters of at least k and replaces each value by its cluster mean, with least loss of information.

    core
  • Opaque predicate

    A condition whose value the obfuscator knows but a static analyzer cannot easily find, used to add fake control flow.

    core
  • Prime+Probe

    A cache side channel in which an observer that shares no memory with a victim learns which cache sets the victim used, through contention for the ways of each set.

    core
  • Return-oriented programming

    Builds arbitrary computation by chaining short instruction sequences that end in a return, found in existing code.

    core
  • Return-to-libc attack

    Hijacks control by returning into existing library functions with chosen arguments, which defeats non-executable memory.

    core
  • Simple power analysis

    Reads secret-dependent operations, such as squarings and multiplications in exponentiation, directly from one or a few power traces.

    core
  • Software fault isolation

    Rewrites untrusted machine code so that every store and jump is masked or checked to stay inside its own region of memory.

    1 languagescore
  • ASLR derandomization by brute force

    Guesses the random offset of a forking server by repeated probes, showing that 16 bits of entropy fall in minutes.

    advanced
  • Active attack on anonymized social graphs

    Shows that replacing names by random IDs does not protect a released social graph: a few accounts added before release let an attacker learn edges between chosen users.

    advanced
  • Autoencoder anomaly detection

    Trains an autoencoder on normal data and flags inputs whose reconstruction error is large.

    advanced
  • Backdoor attack

    Poisons training data with inputs that carry a trigger pattern and a target label, so the model misbehaves only when the trigger appears.

    advanced
  • Backward pass differentiable approximation

    Breaks defenses that hide gradients by using the true function on the forward pass and a differentiable stand-in on the backward pass.

    advanced
  • Code-pointer integrity

    Keeps code pointers and the pointers that lead to them in an isolated safe region with full memory safety, at low cost.

    advanced
  • Compression side channel

    A secret compressed together with data that an attacker chooses makes the compressed length depend on how well the two match, and encryption does not hide the length.

    advanced
  • Expectation over transformation

    Optimizes an adversarial example for the expected loss over random transformations such as rotation and lighting, so it works in the physical world.

    advanced
  • Generic unpacking

    Runs a packed program under monitoring and dumps memory when it executes a page it wrote, which reveals the unpacked code.

    advanced
  • Honeywords

    Stores each password hash among decoy hashes, so that a thief who cracks the file and logs in with a decoy sets off an alarm.

    advanced
  • Inline reference monitor

    Enforces a security automaton by rewriting the program so that the checks run inside it before each relevant instruction.

    advanced
  • Meltdown attack

    A transient execution attack class in which a load that should fault passes protected data to later transient instructions, which leave a cache trace before the fault is handled.

    advanced
  • Memory tagging

    Gives each granule of memory and each pointer a small tag and lets the hardware fault when the tags of an access differ.

    advanced
  • Model extraction attack

    Rebuilds a model served behind an API from its answers to chosen queries, exactly for linear models by solving equations.

    advanced
  • Rowhammer

    A DRAM disturbance error in which many activations of one row in a short time flip bits in nearby rows, which breaks the isolation that memory protection assumes.

    advanced
  • Sparse dataset de-anonymization

    Shows that records of a large sparse dataset with names removed, such as movie ratings, can be re-identified from a few facts about a person, so removing identifiers does not anonymize them.

    advanced
  • Spectre attack

    A transient execution attack class in which a mispredicted branch makes the victim run a wrong path that reads a secret and leaves a cache trace after the rollback.

    advanced
  • Subsample and aggregate

    Runs a non-private estimator on disjoint blocks of the data and combines the results with a private aggregator.

    advanced
  • Test vector leakage assessment

    Tests a device for leakage by a Welch t-test between traces of fixed and random inputs (the non-specific variant), with 4.5 as the conventional threshold.

    1 languagesadvanced
  • Virtualization obfuscation

    Translates code into bytecode for a random custom virtual machine and ships the interpreter, so analysts must first decode the machine.

    advanced
  • Automatic exploit generation

    The research problem of finding a bug by program analysis and deciding whether some input turns it into an attack, studied to measure attacker ability and to guide defenses.

    research
  • Control-flow bending

    Attacks programs under fully precise static CFI by steering flow along allowed edges, often through functions such as memcpy and printf.

    research
  • Data-oriented programming

    Builds Turing-complete attacks by corrupting only data, chaining gadgets along legitimate control flow, which control-flow defenses miss.

    research
  • Gradient inversion attack

    Recovers a client's training example in federated learning by optimizing a dummy input until its gradient matches the shared one.

    research
  • Greedy coordinate gradient attack

    An automated search for a token suffix that makes an aligned language model answer requests it should refuse. This page covers the threat model, the lesson for alignment and the defenses.

    research
  • Patch-based exploit generation

    The finding that a published patch reveals the flaw it fixes, so attacks on unpatched hosts can be derived automatically; the lesson is to deliver patches fast and all at once.

    research
  • Social network de-anonymization

    Shows that a social graph with names removed can be re-identified at scale from its structure and a second overlapping network, so name removal does not protect graph data.

    research
  • Threshold implementation

    Masking based on secret sharing with correctness, non-completeness and uniformity, which stays secure in hardware with glitches.

    1 languagesresearch
  • Training data extraction from language models

    Samples many outputs from a language model and ranks them by perplexity relative to a reference, to find verbatim training text.

    research

Concepts

  • Buffer overflow

    An access past the end or before the start of a buffer, which reads or overwrites nearby memory that belongs to other data.

    intro
  • Covert channel

    A path that carries information between processes through a resource not meant for communication, such as a lock, a file name or a delay.

    intro
  • Cross-site request forgery

    An attack in which another site makes the browser send a request with the user's cookies, so that it acts as the user.

    intro
  • Cross-site scripting

    An attack that gets a site to serve attacker script to other users, where it runs with the site's origin and rights.

    intro
  • Evasion attack

    An attack that changes inputs at test time so that a trained classifier misclassifies them, in a white-box or black-box setting.

    intro
  • Linkage attack

    Re-identifies records in a released table by joining it with a public table on shared quasi-identifiers.

    intro
  • Principle of least privilege

    The design rule that each program and user gets only the rights it needs for its task, so that a fault or a compromise does the least harm.

    intro
  • Reference monitor

    A component that mediates every access of a subject to an object, cannot be tampered with, and is small enough to be verified.

    intro
  • SQL injection

    An attack that puts SQL syntax into an input that a program pastes into a query, so that the query does what the attacker wants.

    intro
  • SYN flooding

    A denial of service on TCP servers. Connection requests that never complete fill the table of half-open connections, so the server turns away real clients.

    intro
  • Side-channel attack

    An attack that learns secrets from physical or timing effects of a computation, such as time, power, radiation or cache state.

    intro
  • Software vulnerability

    A flaw in a program that an attacker can trigger to break its confidentiality, integrity or availability.

    intro
  • BGP prefix hijacking

    An autonomous system announces a prefix it does not own, or a more specific one, so that traffic for it is routed to the attacker.

    core
  • Base-rate fallacy in intrusion detection

    Because intrusions are rare, Bayes' rule makes most alarms false unless the false alarm rate is tiny: in Axelsson's example, about 1 in 100,000 just to make half of the alarms real.

    core
  • CAPTCHA

    A test that humans pass and current programs fail, used to keep bots from creating accounts or sending spam.

    core
  • DNS cache poisoning

    An attacker races the real server with forged replies so that a resolver caches a false record, helped by guessing the query id and port.

    core
  • Data poisoning

    An attack that inserts or changes training points so that the learned model makes errors chosen by the attacker.

    core
  • Format string vulnerability

    Passing untrusted data as the format argument of a printf-like function, so that the data, not the program, decides which arguments the function reads.

    core
  • Metamorphic malware

    Malware that rewrites its own code into a different but equivalent form in each copy, so no fixed byte pattern matches all copies. Unlike polymorphic code, it keeps no constant body.

    core
  • Separation of duty

    The rule that a critical task needs more than one person, so that no single user can complete it alone; RBAC states it on role assignment or per session.

    core
  • Sybil attack

    One entity creates many identities in an open system to outvote or surround honest nodes.

    core
  • Transferability of adversarial examples

    Adversarial examples made for one model often fool other models trained for the same task. This allows black-box attacks through a substitute model, and it limits defenses that hide gradients.

    core
  • Declassification

    A controlled release of some secret information, such as a password check result, stated by what, who, where and when it may be released.

    advanced
  • Quantitative information flow

    Measures how much a program leaks about its secret in bits, as the drop in an attacker's uncertainty after seeing the output.

    advanced
  • Timing attack

    The time a secret operation takes is a function of the secret. Measure it on many inputs and the key comes out, even when the algorithm itself is sound.

    1 languagesadvanced
  • Trust management

    Authorization by checking that signed credentials and local policy together prove that a key may perform an action, without a central user list.

    advanced
  • Exponential cost of vulnerability discovery

    An empirical law of fuzzing, measured in campaigns and explained by a species model, that each new bug found in a fixed time takes exponentially more machines.

    research
  • Prompt injection

    An attack that places instructions in data a language model reads, such as a web page, so that the model follows them instead of its user.

    research

Definitions

  • Adversarial example

    An input in an allowed small set around a correctly classified input, such as an l_p ball, to which the model gives a wrong label. The set is part of the threat model.

    intro
  • Differential privacy

    A randomized algorithm is epsilon-DP if changing one record changes the probability of each output set by at most a factor e^epsilon.

    intro
  • Global sensitivity

    The largest change in a function's value, in a given norm, over all pairs of datasets that differ in one record.

    intro
  • Memory safety

    A program is memory safe if every access goes to a live object through a pointer derived from it and stays within its bounds.

    intro
  • Quasi-identifier

    A set of attributes such as zip code, birth date and sex that is not an identifier alone but can single out people when joined with other data.

    intro
  • Same-origin policy

    The browser rule that a script may read data only from pages with the same scheme, host and port as the page that loaded it.

    intro
  • k-anonymity

    A released table is k-anonymous if every record shares its quasi-identifier values with at least k-1 other records.

    intro
  • Approximate differential privacy

    Relaxes differential privacy by an additive delta, so that the e^epsilon bound may fail with a small probability.

    core
  • Implicit flow

    Flow of information from a secret condition to a variable assigned in a branch, even when the secret value is never copied.

    core
  • Local differential privacy

    Each user randomizes their own data before sending it, so that the output for any two inputs differs by at most a factor e^epsilon.

    core
  • l-diversity

    Requires each group of records with the same quasi-identifiers to hold at least l well-represented values of the sensitive attribute.

    1 languagescore
  • t-closeness

    Requires the sensitive attribute distribution in each group to be within earth mover's distance t of its distribution in the whole table.

    1 languagescore
  • Geo-indistinguishability

    Location privacy in which the probability of a reported location may change by at most e^(epsilon d) between true locations at distance d.

    advanced
  • Hyperproperty

    A property of sets of execution traces rather than single traces, which can state noninterference and other policies that relate runs.

    advanced
  • Min-entropy leakage

    The leakage of a channel as the log of the ratio of an attacker's chance to guess the secret in one try after and before seeing the output.

    1 languagesadvanced
  • Noninterference

    A program is noninterfering if its public outputs do not depend on its secret inputs, a property checked by type systems or analysis.

    advanced
  • Privacy loss random variable

    The log ratio ln(p(Y)/q(Y)) of the output laws of a mechanism on two neighbors, at an output Y drawn on the first. Its law gives the exact delta for each epsilon.

    advanced
  • Renyi differential privacy

    A mechanism is (alpha, epsilon)-RDP if the Renyi divergence of order alpha between its outputs on neighbors is at most epsilon. Composition adds epsilons; the Gaussian has alpha/(2 sigma^2).

    advanced
  • Termination-insensitive noninterference

    Noninterference that only compares runs that both terminate, so a program may leak secrets through whether it halts.

    advanced
  • Zero-concentrated differential privacy

    A mechanism is rho-zCDP if the Renyi divergence of every order alpha between its outputs on neighbors is at most rho times alpha. The Gaussian meets it with equality; rho adds under composition.

    advanced
  • km-anonymity

    For set-valued data, requires that any m items an attacker knows of a transaction match at least k transactions.

    1 languagesadvanced
  • m-invariance

    A rule for republishing a changing table, which keeps the set of sensitive values of each record's group fixed across releases.

    1 languagesadvanced
  • Gaussian differential privacy

    States privacy as a lower bound f on the type II error of any test that tells neighbors apart at each type I error. mu-GDP takes f as the curve of N(0,1) against N(mu,1).

    research
  • g-leakage

    Generalizes min-entropy leakage with a gain function that scores each guess, to model attackers who profit from partial or several guesses.

    1 languagesresearch

Theorems

  • Basic composition theorem

    If k mechanisms, each (epsilon_i, delta_i)-DP, run on the same data, even adaptively, the k outputs together are (sum of epsilon_i, sum of delta_i)-DP.

    intro
  • Post-processing theorem

    Any function applied to the output of a differentially private algorithm, without access to the data, is private with the same parameters.

    intro
  • Advanced composition theorem

    k-fold adaptive composition of (epsilon, delta)-DP mechanisms is (epsilon', k delta + delta')-DP with epsilon' = epsilon sqrt(2k ln(1/delta')) + k epsilon (e^epsilon - 1), so loss grows as sqrt(k).

    core
  • Basic security theorem

    A Bell-LaPadula system is secure if and only if its initial state is secure and every transition keeps the simple security, star and discretionary properties.

    core
  • Dinur-Nissim reconstruction attack

    If all 2^n subset sums of n secret bits have error o(n), or about n random ones have error o(sqrt n), almost all bits follow from the answers, so no private mechanism is that accurate.

    core
  • Group privacy

    An epsilon-DP mechanism protects any group of k records with parameter k times epsilon; with delta the additive term grows to about k e^((k-1) epsilon) delta.

    core
  • NP-hardness of optimal k-anonymity

    Fewest suppressed cells for k-anonymity is NP-hard for each fixed k at least 3 (Meyerson-Williams), also with a ternary alphabet (Aggarwal et al.). 2-anonymity is in P.

    core
  • Parallel composition theorem

    Mechanisms run on disjoint parts of the data, with parts fixed before the data is seen, cost only the largest epsilon in total under add/remove neighbors, and at most twice it under replace.

    core
  • Undecidability of safety in the HRU model

    Whether some command sequence can enter a given right into a cell of the access matrix that lacked it is undecidable for HRU systems, and NP-complete for mono-operational ones.

    core
  • Undecidability of virus detection

    No program can decide for every program whether it is a virus, by reduction from the halting problem.

    core
  • Douceur's Sybil theorem

    Without a trusted authority, a system cannot prevent Sybil identities unless it makes unrealistic assumptions on resources and coordination.

    advanced
  • Execution monitors enforce only safety properties

    Every policy that an execution monitor can enforce is a safety property. The converse fails, and policies such as availability or noninterference need other mechanisms.

    advanced
  • Min-capacity bound on leakage

    The min-entropy leakage of a deterministic program is at most the log of its number of distinct outputs, with equality for a uniform prior.

    advanced
  • Packing lower bound for differential privacy

    If many datasets close to one dataset each need their own region of outputs, an epsilon-DP mechanism fails on one of them unless there are at most about e^(m epsilon) of them.

    advanced
  • Privacy amplification by subsampling

    An (epsilon, delta)-DP mechanism run on a Poisson sample with rate q is (ln(1 + q(e^epsilon - 1)), q delta)-DP under add/remove, about q(e^epsilon - 1); without replacement it holds under replace.

    advanced
  • Fingerprinting code lower bound

    Fingerprinting codes show that answering d attribute means with (epsilon, delta)-DP and error below 1/2 needs about sqrt(d) rows, which the Gaussian mechanism nearly matches.

    research
  • Optimal composition theorem

    Gives the exact set of (epsilon', delta') that k-fold adaptive composition of (epsilon, delta)-DP mechanisms satisfies, through a hypothesis testing view and one worst-case mechanism.

    research
  • Privacy amplification by shuffling

    Shuffling the reports of n users with epsilon_0-LDP randomizers gives central (epsilon, delta)-DP with epsilon = O(sqrt(e^epsilon_0 log(1/delta)/n)), for epsilon_0 up to about ln(n/log(1/delta)).

    research

Models

  • Access control matrix

    A model of protection state as a matrix whose rows are subjects, whose columns are objects, and whose cells list the rights a subject holds on an object.

    intro
  • Discretionary access control

    An access control model in which a subject that holds a right, usually the owner of the object, decides who else may access the object and may pass rights on.

    intro
  • Mandatory access control

    An access control model in which a system-wide policy on labels of subjects and objects decides access, and users cannot override it.

    intro
  • Role-based access control

    Assigns permissions to roles and roles to users, with role hierarchies and constraints, so that access follows job functions.

    1 languagesintro
  • Attack graph

    A graph of network states or security conditions and exploits that shows every way an attacker can reach a goal.

    core
  • Attack tree

    An AND-OR tree whose root is an attacker goal and whose leaves are basic steps, evaluated bottom up for cost or probability.

    core
  • Attribute-based access control

    Decides access by evaluating rules over attributes of the subject, the object, the action and the environment.

    core
  • Bell-LaPadula model

    A confidentiality model with security levels in which a subject may not read an object above its level nor write to an object below it.

    core
  • Biba integrity model

    The dual of Bell-LaPadula for integrity, in which a subject may not read less trusted data nor write to more trusted objects.

    core
  • Chinese Wall model

    A policy for conflicts of interest in which a subject who has read data of one company may not then read data of a competitor.

    core
  • Clark-Wilson model

    A commercial integrity model in which constrained data items change only through certified transformation procedures run by authorized users.

    core
  • Denning's intrusion detection model

    Profiles each subject by statistical metrics of its audit records and flags records that deviate from the profile.

    core
  • Harrison-Ruzzo-Ullman model

    Models a protection system as an access matrix changed by commands made of conditions on rights and primitive operations such as enter, delete, create and destroy.

    core
  • Lattice model of information flow

    Puts security classes in a lattice and allows information to flow from one class to another only when the first is below the second.

    core
  • Authorization logic

    A modal logic of principals, says and speaks for, used to reason about who authorized a request in a distributed system.

    advanced
  • Decentralized label model

    Labels data with policies of several owners, each naming its allowed readers, so that each owner can declassify only its own policy.

    advanced
  • Probing model

    Models an attacker who can read the values of up to t wires of a circuit, and calls the circuit secure if those values reveal nothing.

    advanced
  • Relationship-based access control

    Decides access by the paths of relations between the requester and the resource or its owner in a social or organizational graph.

    advanced
  • Security automaton

    An automaton that watches the actions of a program and halts it on the first action that would break the policy.

    1 languagesadvanced
  • Take-Grant protection model

    A graph model of protection in which subjects take and grant rights along edges, built so that the safety question is decidable in linear time.

    advanced
  • CHERI capability model

    A processor model in which pointers are unforgeable capabilities with bounds and permissions, checked by hardware on every access.

    research
  • Software testing as species discovery

    Models fuzzing as sampling species from an ecology and uses the Good-Turing estimator to estimate the chance that the next input finds new behavior.

    research