The invention relates to a hearing aid comprising a signal path with an input transducer, a signal processor and an output transducer, the signal processor being adapted to produce a compensation signal capable of at least partly attenuating acoustic signals bypassing the signal path and entering the ear canal.