It's a type of nudibranch, sea slug or flatworm. These animals can be devestating to soft coral in an aquarium depending on species. Many feed largely on sponges but will dine on other soft coral if it's preferred food is not available. Many come in as hitchhikers on live rock and are short lived.