Multistage network attacks