Shame is felt from an exposure of your weakness or 'bad' behavior by someone in authority to 'the tribe', (in whatever form this appears). Guilt is the internalized feeling of 'wrongness' and self-judgement, as consequence of such an exposure. Guilt and shame serve to confirm a personal felt sense of extreme separation, coupled with rejection.