with your hand in the cookie jar
with (one's) hand in the cookie jar
In the act or attempt of some wrongdoing, especially one involving bribery or the illicit exploitation of one's position of power or authority. The senator was long accused of insider trading, and he was finally caught with his hand in the cookie jar when his conversation with a Wall Street executive was leaked to the media. The new tax legislation is an attempt to close the loopholes that have allowed companies with their hands in the cookie jar to go unpunished for so many years.