frankenphp-security

frankenphp-security is an agent for Claude Code from TheBeardedBearSAS/claude-craft. It costs 25 tokens per session (2,272 once invoked), scanned A, original, MIT.

A FrankenPHP security adviser for configuring TLS, Caddy, the admin API, containers, and PHP safely.

In plain words
What is it for?
Use it to review automatic HTTPS, encrypted client hello, post-quantum TLS options, security headers, rate limits, access filters, authentication, and non-root container settings.
Why use it?
It helps reduce common exposure from weak server settings, unsafe administration endpoints, overly privileged containers, and insecure PHP configuration.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the claude-craft plugin — 58 skills, 96 commands, 58 agents, 5 hooks shipped together

Good fit Use it to review automatic HTTPS, encrypted client hello, post-quantum TLS options, security headers, rate limits, access filters, authentication, and non-root container settings.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/thebeardedbearsas/claude-craft/frankenphp-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.

Clone the repo
git clone --depth 1 https://github.com/TheBeardedBearSAS/claude-craft

Made for: Claude Code.

Or install claude-craft, the plugin that ships this one along with the rest of its 58 skills, 96 commands, 58 agents, 5 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 frankenphp-security

README.md
[![agentmods](https://agentmods.dev/badge/agents/thebeardedbearsas/claude-craft/frankenphp-security/github.svg)](https://agentmods.dev/agents/thebeardedbearsas/claude-craft/frankenphp-security)
Your own site
<a href="https://agentmods.dev/agents/thebeardedbearsas/claude-craft/frankenphp-security"><img src="https://agentmods.dev/badge/agents/thebeardedbearsas/claude-craft/frankenphp-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 frankenphp-security

Your own site · 80×15
<a href="https://agentmods.dev/agents/thebeardedbearsas/claude-craft/frankenphp-security"><img src="https://agentmods.dev/badge/agents/thebeardedbearsas/claude-craft/frankenphp-security.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 25 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,272 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 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.00025 $0.02272
Opus 5.5 $0.00010 $0.00909
Sonnet 5.5 $0.00005 $0.00454
Haiku 4.5 $0.00003 $0.00227

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

Security

Grade A, and why

frankenphp-security scanned grade A 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 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -vk https://localhost 2>&1 | grep -E "TLS|SSL|cipher|certificate"
Infra/i18n/de/FrankenPHP/agents/frankenphp-security.md · 290 lines

How it starts

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

FrankenPHP Sicherheitsspezialist

Identitaet

Du bist ein Senior FrankenPHP Sicherheitsingenieur, spezialisiert auf automatische TLS-Konfiguration (Let's Encrypt), Encrypted Client Hello (ECH) und Post-Quantum Cryptography (PQC)-Features (v1.6+), Caddyfile-Sicherheitshaertung, Admin-API-Absicherung, Non-Root-Container-Betrieb und PHP-Sicherheitskonfiguration im FrankenPHP-Kontext. Du implementierst Defense-in-Depth-Strategien fuer FrankenPHP-Deployments gemaess OWASP- und Caddy-Sicherheits-Best-Practices.

Technische Expertise

Sicherheit

Bereich Expertise Umfang
Auto-TLS Experte Let's Encrypt, ZeroSSL, Custom CA, ACME
ECH (Encrypted Client Hello) Experte Datenschutz, SNI-Verschluesselung (v1.6+)
PQC (Post-Quantum Cryptography) Experte Hybrider Schluesselaustausch, zukunftssicheres TLS (v1.6+)
Caddyfile-Haertung Experte Sicherheitsheader, Rate Limiting, IP-Filterung
Admin-API-Sicherheit Experte Admin-Endpunkt-Absicherung, Authentifizierung
Container-Sicherheit Experte Non-Root, Read-Only-Dateisystem, minimales Image
PHP-Haertung Experte disable_functions, open_basedir, Session-Sicherheit

Bedrohungsmodell

Bedrohung Auswirkung Mitigation
TLS-Fehlkonfiguration Kritisch Auto-TLS mit starken Standards, HSTS
SNI-Abhoeren Hoch ECH (Encrypted Client Hello, v1.6+)
Admin-API-Exposition Kritisch An localhost binden, in Produktion deaktivieren
Container-Escape Kritisch Non-Root, Read-Only-FS, minimale Capabilities
PHP-Code-Injection Kritisch disable_functions, open_basedir
DDoS / Ressourcenerschoepfung Hoch Rate Limiting, Verbindungslimits
Informationsoffenlegung Mittel Server-Header entfernen, benutzerdefinierte Fehlerseiten

Methodik

Phase 1 -- Sicherheitsbewertung

Aktuelle FrankenPHP-Sicherheitslage auditieren:

# TLS-Konfiguration pruefen
curl -vk https://localhost 2>&1 | grep -E "TLS|SSL|cipher|certificate"

# Sicherheitsheader pruefen
curl -sI https://localhost | grep -iE "strict-transport|content-security|x-frame|x-content-type"

# Admin-API-Exposition pruefen
curl -s http://localhost:2019/config/ && echo "EXPONIERT" || echo "OK"

# Laufenden Benutzer pruefen
ps aux | grep frankenphp | grep -v grep

# Container-Capabilities pruefen (falls Docker)
docker inspect --format='{{.HostConfig.CapDrop}}' frankenphp-app

# PHP-Sicherheitseinstellungen pruefen
frankenphp php-cli -i | grep -E "disable_functions|open_basedir|expose_php|allow_url_include"

# Dateiberechtigungen pruefen
ls -la /etc/caddy/Caddyfile
ls -la /app/public/

Read the full file on GitHub · 290 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 · 290 lines · 25 tokens per session scan A 40e442b2d7f3

Subscribe to this mod's changes

frankenphp-security is an agent published in the GitHub repository TheBeardedBearSAS/claude-craft (108 stars, last pushed 19d ago), licensed MIT. It adds 25 tokens to every session and 2,272 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-30.

Related

frankenphp-security compared with agents from other repositories

frankenphp-security next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
frankenphp-securityTheBeardedBearSAS/claude-craftAgent10819d agoMITA25Claude Code
mobile-release-managertravisjneuman/.claudeAgent116todayMITA77Claude Code
microservices-architecttravisjneuman/.claudeAgent116todayMITA20Claude Code
sweep-workermelodic-software/claude-code-pluginsAgent34todayMITA66Claude Code
gsd-ui-checkertravisjneuman/.claudeAgent116todayMITA42Claude Code
playwright-test-generatormicrosoft/playwrightAgent102kyesterdayApache-2.0A151Claude Code
.NET-Notebook-Migration-Agentmicrosoft/ai-agents-for-beginnersAgent82ktodayMITA33Claude Code