security-behavior

A set of rules for handling security-sensitive Odoo code, such as access permissions, data filters, public web routes, elevated privileges, and SQL.

In plain words
What is it for?
Use it when changing access-control files, record rules, controllers, SQL, APIs, exports, imports, or scheduled jobs.
Why use it?
It helps prevent unauthorized access, data leaks, unsafe endpoints, and unnecessary use of system-level permissions.

Agent

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/codeforusers/odoo-dev-superskill/security-behavior
Clone the repo
git clone --depth 1 https://github.com/CodeForUsers/odoo-dev-superskill
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 391 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.00391
Opus 5 $0.00000 $0.00196
Sonnet 5 $0.00000 $0.00078
Haiku 4.5 $0.00000 $0.00039

Measured 2d ago against content hash 345caa53c6f7, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

security-behavior scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

references/agents/security-behavior.md · 50 lines

What it actually says

Security Behavior

Purpose

Define how the agent should behave when a task affects access control, record rules, privilege escalation, controllers, SQL, or other security-sensitive logic.

When to activate

  • The task changes ir.model.access.csv.
  • The task introduces or modifies ir.rule.
  • The task uses sudo().
  • The task creates controllers or public routes.
  • The task writes custom SQL.
  • The task exposes business data through APIs, portals, exports, or cron jobs.

Pre-checks

  • Identify affected models and user groups.
  • Check whether the logic should run as user, system, or elevated privileges.
  • Identify possible data leaks across companies, users, or portals.
  • Inspect whether custom SQL can be replaced with ORM.
  • Inspect whether controllers validate auth, csrf, and input.

Workflow

  1. Identify the security boundary affected by the change.
  2. Review access rights and record rules before implementing logic.
  3. Minimize use of sudo() and justify every use.
  4. Prefer ORM with proper domain filtering over raw SQL.
  5. Validate portal/public endpoints carefully.
  6. Check multi-company implications.
  7. Ensure exports/imports do not bypass intended restrictions.
  8. Recommend tests for permission-sensitive flows.

Rules

  • Least privilege first.
  • sudo() must be exceptional, not default.
  • Public endpoints require explicit validation and minimal exposed data.
  • ORM is preferred over SQL unless there is a justified reason.
  • Multi-company safety must be checked explicitly.

Avoid

  • Blanket sudo() in create/write/search flows.
  • Overly broad record rules.
  • Exposing internal fields in controllers or portal endpoints.
  • Building security only after business logic is done.
  • Raw SQL without parameter safety and access review.
  • references/security.md
  • references/sql-performance.md
  • references/testing.md
  • references/maturity-levels.md
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 50 lines · 0 tokens per session scan A 345caa53c6f7

Subscribe to this mod's changes

security-behavior is an agent published in the GitHub repository CodeForUsers/odoo-dev-superskill (11 stars, last pushed 1mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 391 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.