Insider trading occurs when information that is not publicly available is used to make a profit (or an action is taken with the intention to make a profit). Bear in mind, that you don’t have to try yourself to make a profit. Passing the information to another person will still make you liable for insider trading.
Therefore, if you have access to information because of your position or your job (information that is not publicly available), the law says that it is forbidden to use this information to make a profit.