Illicit
adjective
contrary to accepted morality (especially sexual morality) or convention
“an illicit association with his secretary”
adjective
contrary to or forbidden by law
“an illegitimate seizure of power”
Similar: illegitimate, outlaw, outlawed, unlawful