That's... not how coding agents work.
Sometimes it is. If the AI can do it for the defender it can also do it for the attacker.
They guess the next token based on probability which is derived from training data.
Sometimes it is. If the AI can do it for the defender it can also do it for the attacker.