security-patterns

security-patterns is a skill for Claude Code from CrowdStrike/foundry-skills. It costs 84 tokens per session (1,869 once invoked), scanned A, original, MIT.

Security guidance for CrowdStrike Falcon Foundry applications, including access roles, OAuth permissions, input checks, interface security, and secret handling.

In plain words
What is it for?
Configuring OAuth scopes, role-based access control, input validation, content-security protections, and credential management in Foundry apps.
Why use it?
It helps developers address common risks such as excessive access, unsafe input, exposed credentials, and browser-based attacks.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions Claude Code.

Part of the crowdstrike-falcon-foundry plugin — 12 skills, 3 hooks shipped together

Good fit Configuring OAuth scopes, role-based access control, input validation, content-security protections, and credential management in Foundry apps.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/crowdstrike/foundry-skills/security-patterns
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 CrowdStrike/foundry-skills --skill security-patterns
Clone the repo
git clone --depth 1 https://github.com/CrowdStrike/foundry-skills

Made for: Claude Code.

Or install crowdstrike-falcon-foundry, the plugin that ships this one along with the rest of its 12 skills, 3 hooks.

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 security-patterns

README.md
[![agentmods](https://agentmods.dev/badge/skills/crowdstrike/foundry-skills/security-patterns/github.svg)](https://agentmods.dev/skills/crowdstrike/foundry-skills/security-patterns)
Your own site
<a href="https://agentmods.dev/skills/crowdstrike/foundry-skills/security-patterns"><img src="https://agentmods.dev/badge/skills/crowdstrike/foundry-skills/security-patterns/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 security-patterns

Your own site · 80×15
<a href="https://agentmods.dev/skills/crowdstrike/foundry-skills/security-patterns"><img src="https://agentmods.dev/badge/skills/crowdstrike/foundry-skills/security-patterns.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 84 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,869 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.00084 $0.01869
Opus 5.5 $0.00034 $0.00748
Sonnet 5.5 $0.00017 $0.00374
Haiku 4.5 $0.00008 $0.00187

Measured 4d ago against content hash 6b9f80d0f857, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

security-patterns 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 4d 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.

skills/security-patterns/SKILL.md · 208 lines

How it starts

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

Foundry Security Patterns

Part of a suite. If development-workflow has not already run, and this is a new app or its first capability, load the development-workflow skill first — it owns the CLI prerequisite check, scaffolding order, and manifest coordination.

Security patterns for Falcon Foundry app development covering authentication, input validation, UI security, and platform-specific considerations. Foundry apps run on a cybersecurity platform — security is a core requirement.

RBAC (Role-Based Access Control)

Capability RBAC Supported
Collections Yes
Dashboards Yes
Functions Yes
UI extensions / pages / navigation Yes
RTR scripts Yes
API integrations No
Queries No
Workflows No

API Scope Management

Scopes control which Falcon Platform APIs the app can access. Format: <source>:<operation> (e.g., devices:read, detects:write).

Scopes set automatically Scopes need explicit addition
API integrations, Collections, Dashboards, Queries, UI navigation, UI sockets, Workflows Functions, UI extensions, UI pages, RTR scripts
foundry auth roles create --name "Analyst" --description "Read-only analyst access" --no-prompt
foundry auth scopes add --scopes "devices:read,detects:read" --no-prompt

Only use foundry auth scopes add for Falcon Platform API scopes needed by functions, UI extensions, UI pages, or RTR scripts. OAuth scopes for CLI-created artifacts are managed automatically.

  • Adding a scope makes the next release a major version, and the app's users must accept the new permission before it takes effect. Decide the app's scopes before its first release, but don't add ones it may never use (see Minimal Scope Principle).
  • scopes add rejects some valid scope names. Its built-in list is incomplete (as of CLI 2.1.2 it rejects humio-auth-proxy:read, which Falcon Next-Gen SIEM searches need, and ngsiem-persisted-aggregations:read). When the API's swagger names a scope the CLI rejects, add it to auth.scopes in manifest.yml by hand. foundry apps validate and deploy accept it.

Read the full file on GitHub · 208 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 4d ago Changed · +3 lines 6b9f80d0f857
  2. 24d ago Changed 54360a49ee70
  3. 26d ago Changed · -3 lines 23eb4a7df09a
  4. 1mo ago Changed cca7be11824e
  5. 1mo ago First seen · 208 lines · 84 tokens per session scan A deb83d1c4915

Subscribe to this mod's changes

security-patterns is a skill published in the GitHub repository CrowdStrike/foundry-skills (35 stars, last pushed 2d ago), licensed MIT. It adds 84 tokens to every session and 1,869 once invoked, about $0.0003 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.