The only real way to tell walnuts are bad is if you taste them. Rotten walnuts will have a very bitter flavor even if they look and smell fresh. Another good hint is a shrunken shell that looks dried up.