Algorithm Search⌘K

Network and web security

Problems

  • 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

Algorithms

  • 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
  • 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
  • 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
  • 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
  • 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
  • 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
  • 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
  • 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
  • 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

Techniques

  • 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
  • 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
  • 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

Concepts

  • 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
  • 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
  • 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
  • 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
  • Sybil attack

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

    core

Definitions

  • 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

Theorems

  • Douceur's Sybil theorem

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

    advanced