This post may contain affiliate links. We may earn money or products from the highlighted keywords or companies or banners mentioned in this post.

DALLAS (AP) — Thieves with stolen usernames and passwords have broken into customer accounts at American and United airlines and in some cases booked free trips or upgrades.

The airlines say the incidents happened in late December. American began notifying affected customers by email on Monday, a spokeswoman said.

Some travel websites are fighting this type of fraud by adding steps to the login process, and they warn against using the same username and password on more than one site.

United Airlines spokesman Luke Punzenberger said thieves booked trips or made mileage transactions on up to three dozen accounts. United notified customers in late December, and Punzenberger said the airline would restore miles to anyone who had them stolen.

American Airlines spokeswoman Martha Thomas said that about 10,000 accounts were affected and some have been frozen while the airline and customer set up new accounts, starting with customers who have at least 100,000 miles. She said the airline has learned of two cases in which somebody booked a free trip or upgrade without the account holder's knowledge.

Thomas said that American would pay for a credit-watch service for one year for affected customers.

Both were quick to say that nobody hacked their systems — that thieves got usernames and passwords somewhere else and tried to use them to log into American's AAdvantage and United's MileagePlus, hoping that the login information would be the same. They said that other information such as entire credit-card numbers was not exposed.

The representatives said they did not know how thieves acquired the usernames and passwords. Thomas said American had referred the matter to the FBI.

Delta Air Lines detected similar attempts to crack into customers' accounts late last year but isn't aware that any were successful, said spokesman Anthony Black. A spokeswoman said Southwest Airlines did not see any such attempts around that time.

Airlines say they monitor loyalty programs for unusual activity. Sometimes they lock accounts and require customers to provide more information — such as their mother's maiden name or a favorite pet — to prove who they are before logging in.

Punzenberger said that United has begun requiring all customers to also enter their MileagePlus number when logging in.

Hilton Hotels recently began requiring members of its rewards program to click a link declaring that “I am not a robot,” then enter a numeral generated by the site to complete the login process.