Phrase for observing a rule in a malicious way

I know this phrase, but for some reason it is blocked in my mind. What is the term for observing a rule, but doing so in a way that subverts it? I'm almost certain that malicious is one of the words in the phrase, but I’m not positive about that.

As an example, suppose there is a rule that in your workplace, you must put boxes to be mailed out in a certain place. Ralph considers this inconvenient, so he puts his boxes there, but he places them so they are in the way when you walk down that aisle, or in a way that makes the mail people work harder to organize the boxes before mailing them out. Ralph does this as a sort of protest against the rule.

I don't think the phrase is malicious observation, and it’s not passive aggressive, but it’s something that means that. Help, this is worse than hearing a particular song in my head for hours!


Solution 1:

There exists a term malicious obedience or malicious compliance, and I'm guessing that you're thinking of one of those; but most users of that term (in either variant) use it somewhat differently from what you describe. This page, for example, is typical: it says that malicious obedience is "when people set their boss up to fail by doing exactly as he or she says even though they know in their hearts that their actions are incorrect or not optimal." So in your case, that would be if Ralph follows the rule because he knows that it's a bad one that hurts the company.

Solution 2:

This could also be referred to as obeying the 'letter of the law':

letter of the law: When one obeys the letter of the law but not the spirit, one is obeying the literal interpretation of the words (the "letter") of the law, but not the intent of those who wrote the law.

Solution 3:

"Work to rule" is the traditional union phrase for an "unofficial" slowdown.

EDIT: ruakh's answer is clearly more responsive to OP's question than mine; but I leave mine in place because "malicious compliance" represents an employer's characterization of the same behaviour. It would be up to an arbitrator (in the first instance) to determine which term (if either) applies in a particular case.

Solution 4:

I have heard this called a white mutiny, but nobody seems to be able to trace the origin back past Heinlein's Number of the Beast.