concrete-cms-security

concrete-cms-security is a skill for Claude Code, Codex from MacareuxDigital/concretecms-skills. It costs 214 tokens per session (5,126 once invoked), scanned B, original, MIT.

Security guidance for writing, reviewing, or changing PHP code in Concrete CMS, a platform for building websites. It covers common problems such as code execution, unauthorized access, cross-site scripting, and request forgery.

In plain words
What is it for?
Use it when working on Concrete CMS blocks, packages, controllers, endpoints, themes, jobs, or other PHP components.
Why use it?
It helps identify dangerous code patterns and reduce security flaws in CMS extensions and backend features.

Skill for Claude CodeCodex

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

Good fit Use it when working on Concrete CMS blocks, packages, controllers, endpoints, themes, jobs, or other PHP components.

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

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 concrete-cms-security

README.md
[![agentmods](https://agentmods.dev/badge/skills/macareuxdigital/concretecms-skills/security.svg)](https://agentmods.dev/skills/macareuxdigital/concretecms-skills/security)
Your own site
<a href="https://agentmods.dev/skills/macareuxdigital/concretecms-skills/security"><img src="https://agentmods.dev/badge/skills/macareuxdigital/concretecms-skills/security.svg" alt="Measured on agentmods" height="20"></a>
Per session 214 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,126 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
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.00214 $0.05126
Opus 5 $0.00107 $0.02563
Sonnet 5 $0.00043 $0.01025
Haiku 4.5 $0.00021 $0.00513

Measured 7d ago against content hash 416738a618aa, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade B, and why

concrete-cms-security scanned grade B with 1 finding 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 7d 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.

Cloud metadata endpointmediumServer-side request forgery

One request to 169.254.169.254 can return temporary IAM credentials.

- Resolve hostname yourself; reject private ranges (RFC1918, link-local, loopback, IPv6 equivalents, IPv4-mapped IPv6, cloud metadata `169.254.169.254`).

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

security/SKILL.md · 393 lines

How it starts

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

Concrete CMS Security

Operational reference for writing or reviewing Concrete CMS PHP. Read top-to-bottom for a new task; jump to Danger signals or Review priorities when triaging an existing PR.

Structure

  1. Danger signals — grep patterns demanding deeper inspection
  2. Review priorities — order to inspect a PR, by risk-per-minute
  3. Critical patterns (C1–C7) — RCE / privesc / auth bypass
  4. High-frequency patterns (H1–H7) — XSS, CSRF, IDOR, SSRF, etc.
  5. Pre-flight checklist
  6. Threat model & history — actors and recurring patterns

Sections 1–5 are the working reference. Section 6 is evidence.

Skip this skill only for documentation/marketing copy, frontend-only changes that add no endpoints, or read-only review without modification.


Danger signals

Stop and apply the linked rule if any of these appear.

RCE class:

Signal Rule
unserialize( C1
phar://, file://, data://, gopher:// C1, H4
include $x, require $x (variable path) C3
move_uploaded_file( C2
uniqid( used for security/paths C2
exec, shell_exec, system, passthru, backticks — block entirely

Auth / privilege class:

Signal Rule
$request->request->all(), raw $_POST to update C7
File::getByID(, Page::getByID(, Event::getByID(, Express*::getByID( H3
canAccess() before a mutation C5
== in auth/password/token/guard code C6
=== true/false on a JSON-decoded field C6
OAuth callback w/o state, session regen, or uIsActive C7
Password/email/2FA change w/o current-password re-verify C7

Read the full file on GitHub · 393 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. 7d ago First seen · 393 lines · 214 tokens per session scan B 416738a618aa

Subscribe to this mod's changes

concrete-cms-security is a skill published in the GitHub repository MacareuxDigital/concretecms-skills (9 stars, last pushed 2mo ago), licensed MIT. It adds 214 tokens to every session and 5,126 once invoked, about $0.0011 per session on Opus 5. A static security scan graded it B with 1 finding (cloud metadata endpoint). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

local-ai-agents

Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…

microsoft/ai-agents-for-beginners · 200 tokens

next-cache-components-adoption

Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…

vercel/next.js · 95 tokens

next-partial-prefetching-adoption

Turn on Partial Prefetching in a Next.js app and work through the insights it surfaces. Use when the user wants to enable or adopt Partial Prefetching, flip the partialPrefetching flag, opt routes in with export const prefetch = 'partial', audit Link prefetch={true} behavior, preserve existing prefetched UI with…

vercel/next.js · 103 tokens

chronicle

Analyze Copilot session history for standup reports, usage tips, session search, and session reindexing. Use when the user asks for a standup, daily summary, usage tips, workflow recommendations, wants to search or find past sessions by keyword/file/PR, wants to reindex their session store, or asks about deleting…

microsoft/vscode · 72 tokens

babysit-pr

Babysit a GitHub pull request after creation by continuously polling review comments, CI checks/workflow runs, and mergeability state until the PR is merged/closed or user help is required. Diagnose failures, retry likely flaky failures up to 3 times, auto-fix/push branch-related issues when appropriate, and keep…

openai/codex · 114 tokens