Skill Wiki v0.1.0
rule @community/rule-csrf-token-state-changing

Csrf Token State Changing

Every state-changing HTTP request (POST, PUT, PATCH, DELETE) must include a CSRF token validated server-side.…

Skill
@community
Domain
security
Version
1.0.0
Quality
4.0
Edges
3 out · 2 in
Tokens
110/332/850
$ prime install @community/rule-csrf-token-state-changing

Projection

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

CsrfTokenStateChanging [rule] v1.0.0

Every state-changing HTTP request (POST, PUT, PATCH, DELETE) must include a CSRF token validated server-side. The token must be unpredictable (≥ 128 bits of entropy, cryptographically random), tied to the user session, and verified before any mutation is applied. SameSite=Strict or SameSite=Lax cookies reduce CSRF risk but do not replace token validation for sensitive actions.

Source

prime-system/examples/frontend-design/primes/compiled/@community/rule-csrf-token-state-changing/atom.yaml

Compiled at 2026-05-07