There is no rule about the invisibility state that says it is broken if you attack. The duration is exactly what the power says, nothing more, nothing less. If the power says it is broken upon attacking, it does. If the power doesn't say, then it doesn't.