ssti-twig

ssti-twig is a skill for Claude Code, Codex from blacklanternsecurity/red-run. It costs 19 tokens per session (2,476 once invoked), scanned A, original, GPL-3.0.

A guide to testing Twig and PHP web templates for server-side template injection, a flaw that can let user input run as server code.

In plain words
What is it for?
Use it to assess applications that render Twig templates and document possible template-injection paths.
Why use it?
It helps penetration testers recognise and safely verify this vulnerability during an authorised security assessment.

Skill for Claude CodeCodex

Which agent this was written for is unclear — body not stored (licence); the path alone says nothing.

Good fit Use it to assess applications that render Twig templates and document possible template-injection paths.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/blacklanternsecurity/red-run/ssti-twig
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 blacklanternsecurity/red-run --skill ssti-twig
Clone the repo
git clone --depth 1 https://github.com/blacklanternsecurity/red-run

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 ssti-twig

README.md
[![agentmods](https://agentmods.dev/badge/skills/blacklanternsecurity/red-run/ssti-twig.svg)](https://agentmods.dev/skills/blacklanternsecurity/red-run/ssti-twig)
Your own site
<a href="https://agentmods.dev/skills/blacklanternsecurity/red-run/ssti-twig"><img src="https://agentmods.dev/badge/skills/blacklanternsecurity/red-run/ssti-twig.svg" alt="Measured on agentmods" height="20"></a>
Per session 19 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,476 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 unknown 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.00019 $0.02476
Opus 5 $0.00010 $0.01238
Sonnet 5 $0.00004 $0.00495
Haiku 4.5 $0.00002 $0.00248

Measured 5d ago against content hash 00a3b0a6a27c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

ssti-twig 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 5d 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/web/ssti-twig/SKILL.md · 322 lines

The source is not reproduced here

Licensed GPL-3.0

The repository is licensed GPL-3.0, which this catalogue does not treat as permission to reproduce the file. Read it at the source.

Read it on GitHub

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. 5d ago First seen · 322 lines · 19 tokens per session scan A 00a3b0a6a27c

Subscribe to this mod's changes

ssti-twig is a skill published in the GitHub repository blacklanternsecurity/red-run (267 stars, last pushed 5mo ago), licensed GPL-3.0. It adds 19 tokens to every session and 2,476 once invoked, about $0.0001 per session on Opus 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-09-03.

Related

Other skills, from other repositories

osint-recon

A knowledge guide for open-source intelligence, or OSINT: collecting information from publicly available sources. It covers servers, websites, domains, and, when appropriate, people.

Netw0rkNoob/VulnClaw · 42 tokens

crypto-toolkit

A toolkit for encoding, decoding, hashing, and encrypting data in formats such as Base64, hexadecimal, URLs, JWTs, AES, RSA, and common ciphers.

Netw0rkNoob/VulnClaw · 69 tokens

ctf-misc

Provides miscellaneous CTF challenge techniques for problems that do not cleanly fit the main categories. Use for encoding puzzles, pyjails, bash jails, RF/SDR, DNS oddities, unicode tricks, esoteric languages, QR or audio puzzles, constraint solving, game theory, unusual sandbox escapes, and hybrid logic puzzles.…

ljagiello/ctf-skills · 122 tokens

ctf-malware

Provides malware analysis and network traffic techniques for CTF challenges. Use when analyzing obfuscated scripts, malicious packages, custom crypto protocols, C2 traffic, PE/.NET binaries, RC4/AES encrypted communications, YARA rules, shellcode analysis, memory forensics for malware (Volatility malfind, process…

ljagiello/ctf-skills · 101 tokens

secknowledge-skill

A knowledge base for testing the security of websites, software, and AI systems, including agents and language models.

Netw0rkNoob/VulnClaw · 321 tokens

redteam-sqli-detail-pack

Domain routing and boundary guidance for authorized SQL injection testing, including union-based, blind, error-based, stacked query, and second-order SQL injection variants. Use when a task belongs to the SQL injection domain and needs scope, evidence, pivot, or exit criteria.

Netw0rkNoob/VulnClaw · 59 tokens