A medical implant for occluding a blood vessel. The medical implant comprises a cup shaped elastic blood impermeable membrane sized and shaped for substantially occluding a lumen of a blood vessel, at least one scaffolding element mounted, sized and shaped for being attached at least one blood clot forming in front of the elastic blood impermeable membrane, and at least one anchoring element having a tip directed outward from the center of the cup shaped elastic blood impermeable membrane.