Electrophilic amination of primary aliphatic and aromatic amines is reported using a diethylketomalonate-derived oxaziridine to afford the corresponding N-Boc hydrazines in good to excellent yields. The method allows a one-pot synthesis of pyrazoles from primary amines. [Reaction: see text]