The Catechism in Questions & Answers

654. Who commits the sin of blasphemy against the Holy Spirit?

Those who consciously and intentionally portray the Holy Spirit as a devilish or misleading power for hostile and base motives are guilty of blaspheming against the Holy Spirit.