front end attack logic