YAKIMA, Wash. — A convicted sex offender with a string of aliases is in trouble with local authorities as well as the feds.

Yakima County prosecutors Wednesday filed a felony charge of failure to register against Juan Carlos Chavez-Badillo, 27, who was picked up a week ago in connection with a traffic stop in Wapato.

According to a probable-cause affidavit, Chavez-Badillo came under suspicion after the woman he was riding with was found to be the protected person in a domestic-violence order and he could not produce any ID.

After the woman told an officer that Chavez-Badillo was lying about his name, the officer had the suspect fingerprinted and discovered Chavez-Badillo’s true identity — and that he had been deported to Mexico in 2004 after he was convicted in Oregon of attempted rape.

The officer said Chavez-Badillo used at least eight aliases and five birthdates since returning to the United States, and avoided detection despite several run-ins with police in Pasco and Toppenish.

He had also been failing to keep authorities apprised of his whereabouts, the officer said, leading to the failure-to-register charge and bail of $25,000.

Even if he scraped together the money for a bond, it wouldn’t matter, as federal authorities issued a no-bail immigration detainer.