Insider trading can be legal or illegal, depending on whether or not it complies with SEC rules.