You have a type of weevil or beetle, pantry pest. The sticky substance is digested sugar. Otherwise known as bug poop. Go through everything in the pantry and throw out opened products. Then spray with Spectre PS Aerosol. If you have flying moths, you may want to try our moth traps, and if beetles or weevils, you can use a trap called Pantry Patrol. More information can be found at Pantrypest.com