From the Super Mario Wiki
Some are stationary and some jog in a set path, and they can be defeated by any attack except a jump. Spiny Skipsqueaks can also make a high hop. Spiny Skipsqueaks are found usually in groups of two or more. Spiny Skipsqueaks make their first appearance in the level Really Rolling Hills.