How about tiny stealth drones? Too small and quiet to be easily detected by sonar, they latch on to your sub's hull and drill through it or otherwise damage it's systems.