A proof of concept in sage for an attack on the Dual Elliptic Curve Deterministic Random Bit Generator (Dual_EC_DRBG) specificed in NIST 800-90A.