I would like to use CSRF tokens in the application as indicators of attack. Both whether the token is present, whether it is valid, the time between the token issueing and the token consumption and any token reuse. The challenge is that sometimes there is a legitimate use for external applications doing cross-site requests, so it depends on the referrer page, whether it is ok to get requests with missing tokens or not. I guess that most other people are just denying requests without a valid CSRF token directly, but from my point of view, the intelligence we could gather from such requests could be very valuable.
What's your viewpoint on this?
I would like to use CSRF tokens in the application as indicators of attack. Both whether the token is present, whether it is valid, the time between the token issueing and the token consumption and any token reuse. The challenge is that sometimes there is a legitimate use for external applications doing cross-site requests, so it depends on the referrer page, whether it is ok to get requests with missing tokens or not. I guess that most other people are just denying requests without a valid CSRF token directly, but from my point of view, the intelligence we could gather from such requests could be very valuable.
What's your viewpoint on this?