The current immigration laws denies citizenship to anyone that enters this country illegally. The law is never enforced, as most immigration laws.
i don’t think the law actually says anything about it.
We could pass a law and explicitly bar anybody ever being illegal immigrant (i.e. entered the country illegally) getting green card or citizenship.
This would be relatively easy to verify (must have record of entering the country etc).