An Apple patent granted by the U.S. Patent and Trademark Office on Tuesday describes a technique of determining with acceptable accuracy whether an incorrectly entered credential, such as a password, was the result of a mistake or a legitimate threat to a secure network.