authorization-model

authorization-model is a skill for Claude Code, Codex from PlamenTSV/plamen. It costs 26 tokens per session (1,668 once invoked), scanned A, original, MIT.

A security review guide for authorization in DAML, a contract language where transaction authority comes from the parties who approve each transaction step. It checks controllers, signatories, and required joint approvals.

In plain words
What is it for?
Auditing contract creation, fetching, exercising, archiving, controller expressions, signatory rules, and operations requiring multiple parties.
Why use it?
It helps find choices that let an argument supply unauthorized control or perform privileged actions with too few approving parties.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Auditing contract creation, fetching, exercising, archiving, controller expressions, signatory rules, and operations requiring multiple parties.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/plamentsv/plamen/authorization-model
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.

Any agent
npx skills add PlamenTSV/plamen --skill authorization-model
Clone the repo
git clone --depth 1 https://github.com/PlamenTSV/plamen

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for authorization-model

README.md
[![agentmods](https://agentmods.dev/badge/skills/plamentsv/plamen/authorization-model/github.svg)](https://agentmods.dev/skills/plamentsv/plamen/authorization-model)
Your own site
<a href="https://agentmods.dev/skills/plamentsv/plamen/authorization-model"><img src="https://agentmods.dev/badge/skills/plamentsv/plamen/authorization-model/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for authorization-model

Your own site · 80×15
<a href="https://agentmods.dev/skills/plamentsv/plamen/authorization-model"><img src="https://agentmods.dev/badge/skills/plamentsv/plamen/authorization-model.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 26 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,668 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.1 $0.00026 $0.01668
Opus 5.5 $0.00010 $0.00667
Sonnet 5.5 $0.00005 $0.00334
Haiku 4.5 $0.00003 $0.00167

Measured 1mo ago against content hash 65dd37023f62, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

authorization-model 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 1mo 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.

agents/skills/daml/authorization-model/SKILL.md · 102 lines

How it starts

The opening of the file, as written. The whole thing — 102 lines — stays where its author put it; the contents beside it link to each section on GitHub.

AUTHORIZATION_MODEL Skill (DAML)

Trigger Pattern: Always required for DAML audits Inject Into: Breadth agents, depth-state-trace, depth-external Finding prefix: [DML-AM-N] Rules referenced: R4, R6, R12, R13

DAML's authorization model has no msg.sender. Authority flows through the transaction tree: the required authorizers of every node MUST be a subset of the parties who authorized the submission. A create requires the new contract's signatory parties; an exercise/fetch requires the choice's controller parties; an archive requires the signatories. Signatory authority propagates exactly ONE hop into a choice's consequences. The most common critical bug class is a choice whose controller is derived from a choice argument (privilege injection), or a choice that performs a privileged action with only one authorizer where joint authorization is required.

1. Choice-Authority Inventory

For EVERY choice in each template, record who must authorize it and what it does:

Template.Choice Consume-Mode Controller Expr Controller Source Privileged Action? Co-Auth Required?
{T.C} consuming/nonconsuming/pre/postconsuming {controller expr} FIXED-SIGNATORY / ARG-DERIVED / FETCHED YES/NO YES/NO

Critical patterns to flag:

  • A choice that moves value, changes ownership, or updates config but lists only ONE controller where the action affects multiple parties (single-where-joint → [ELEVATE:MISSING_COAUTH]).
  • A controller expression that reads a field of the choice argument rather than a template signatory/fixed party (privilege injection → [ELEVATE:PARAM_CONTROLLER], ALWAYS flag).

DAML note: controller p makes p the required authorizer AND an automatic observer. A controller derived from arg.someParty lets the caller name themselves as the authorizer — there is no msg.sender to constrain it.

Read the full file on GitHub · 102 lines

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. 1mo ago First seen · 102 lines · 26 tokens per session scan A 65dd37023f62

Subscribe to this mod's changes

authorization-model is a skill published in the GitHub repository PlamenTSV/plamen (306 stars, last pushed 21d ago), licensed MIT. It adds 26 tokens to every session and 1,668 once invoked, about $0.0001 per session on Opus 5.5. 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.