Can the libero attack?
Only if the ball is not entirely above the top of the net at contact. The libero may never spike a ball that is fully above the net, from anywhere on the court.
In practice, liberos send balls over with a pass or a standing push only when they have to, for example on a third contact after a scramble. Jumping to hit a high ball over the net would be a fault even from behind the attack line, which is different from other back-row players.
This keeps the libero a pure defensive role: their job is to pass, dig and set up the attack, not to score with it.