bitrix-security

bitrix-security is a skill for Claude Code, Codex from bxmaximum/bitrix-framework-skills. It costs 56 tokens per session (359 once invoked), scanned A, original, MIT.

A guide to protecting Bitrix applications and their data from common web attacks. It covers request-forgery protection, script injection, database injection, server-side request forgery, tokens, permissions, and encryption.

In plain words
What is it for?
Use it when handling user input, implementing authentication and access rights, protecting APIs, or reviewing an application's security.
Why use it?
It helps reduce security mistakes when accepting input, authenticating users, or controlling access to data and actions.

Skill for Claude CodeCodex

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

Good fit Use it when handling user input, implementing authentication and access rights, protecting APIs, or reviewing an application's security.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/bxmaximum/bitrix-framework-skills/bitrix-security"><img src="https://agentmods.dev/badge/skills/bxmaximum/bitrix-framework-skills/bitrix-security.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 56 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 359 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.
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.00056 $0.00359
Opus 5.5 $0.00022 $0.00144
Sonnet 5.5 $0.00011 $0.00072
Haiku 4.5 $0.00006 $0.00036

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

Security

Grade A, and why

bitrix-security 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 16d 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/bitrix-security/SKILL.md · 25 lines

What it actually says

Security

Baseline: main 23.0+ · Verified: main 26.800.0

General defaults (no superglobals, keep default prefilters, escape output) live in bitrix-framework.

Task Read
CSRF, escaping, HTML sanitizing, link and redirect targets, raw-HTML sinks rules/csrf-xss.md
SQL injection (raw, ORM, ExpressionField), SSRF, local files, uploads, stored settings rules/sql-ssrf.md
Rights checks, #[ActionAccess], REST scopes, JWT/JWK, encryption, 2FA rules/jwt-crypto-access.md

Invariants

  • Untrusted: request data, and also DB-stored settings, imports, REST payloads. The type and owner of an entity come from its DB record, never from the request.
  • Whitelist whatever becomes SQL structure (field names, operators, functions, order keys), whatever its source.
  • Escape for the output context: HTML htmlspecialcharsbx(), JS Json::encode(), URLs through a scheme allow-list.
  • User input never goes unchecked into CFile::MakeFileArray(), file_get_contents(), unserialize(), redirect targets.
  • Authentication/Csrf filters don't authorize: check rights on the object in every action.
Files

What ships with it

3 files 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. 16d ago Changed · -27 lines · +23 tokens per session e3b92cdb4976
  2. 1mo ago First seen · 52 lines · 33 tokens per session scan A a2f0923ab6c0

Subscribe to this mod's changes

bitrix-security is a skill published in the GitHub repository bxmaximum/bitrix-framework-skills (45 stars, last pushed 5d ago), licensed MIT. It adds 56 tokens to every session and 359 once invoked, about $0.0002 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.