To do the work of a red team. To try to break something in order to identify its flaws.
It’s very common in English for nouns to become verbs that mean the thing you use the noun to do.
I don’t know if that’s historically common but I sometimes verb like this when I’m too lazy to think of phrases like “think of phrases”. (Here’s to hoping that makes any sense.)
English verbs nouns all the time
I don’t like it, but the usage is “[attack as a] red team”, in other words “act in an adversarial manner”.