Skill Wiki v0.1.0
rule @security/rule-csrf-token-on-state-changing-requests

Csrf Token On State Changing Requests

Any request that changes server state — POST, PUT, PATCH, DELETE — must be authenticated with something an attacker cannot forge from another origin.…

Skill
@security
Domain
security
Version
0.1.0
Quality
4.0
Edges
3 out · 4 in
Tokens
94/275/294
$ prime install @security/rule-csrf-token-on-state-changing-requests

Projection

Always in _index.xml · the agent never has to ask for this.

CsrfTokenOnStateChangingRequests [rule] v0.1.0

Any request that changes server state — POST, PUT, PATCH, DELETE — must be authenticated with something an attacker cannot forge from another origin. The standard control is a per-session anti-CSRF token validated server-side. SameSite=Lax cookies provide partial coverage; the token is the explicit defence.

Source

prime-system/examples/security-appsec/primes/compiled/@security/rule-csrf-token-on-state-changing-requests/atom.yaml

Compiled at 2026-05-10