In response to last weekend’s attack on celebrity iCloud accounts, Apple said it will step up security measures to make it more difficult for hackers to obtain a user’s identification or password. Within the next two weeks, Apple will start sending emails and alerts to users whenever someone attempts to change an account password or restore iCloud data on a new device. The company also plans to promote use of a security measure known as two-factor authentication, which requires an account holder to enter a password and a separate four-digit code that is sent to a user when they sign into Apple services. The enhanced security measures were first reported by the Wall Street Journal.

This article originally appeared on Recode.net.