Question: how does an illegal immigrant get a tax id number?
Answer: All that is required to obtain an ITIN is an application form that requires basic information such as one's name, date of birth, and address, along with a filled-in federal income tax return, and proof of identity— not proof of work authorization or proof that you are in the United States legally.