There are fairly strict regulations concerning how insiders are able to trade, legally. If an insider learns of information that can potentially influence stock price, they may only execute trades as part of a preexisting plan or agreement. For example, an insider can continue purchasing shares as part of a stock or option purchase plan. Or an insider can continue selling shares as part of a retirement preparation plan.
Additionally, insiders are usually required to report any trades of company stock that they make.