Skip to content
Skillpedia
Security6.5k · #13973

ssti

What it does

This skill is a short playbook for server-side template injection, where user text is treated as template code. It is for developers and testers who check the template engines in their own apps.

When to use it

  • ✓When a developer asks the agent to check whether user input is passed into a template engine as code.
  • ✓When the agent reviews template calls in Jinja2, Twig, Freemarker or Velocity code.
  • ✓When a report needs a positive execution signal and a harmless negative control.

Skill link

https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/analyst/ssti/SKILL.md

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/analyst/ssti/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute →

Example of what to ask your AI

“Can you check whether our authorized app passes user input directly into a template engine?”

5 new skills a week. 1 minute to read.

How it works

The agent finds template rendering calls, traces user input into them, and sends harmless probe strings to see whether they are evaluated.

Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

SSTI Playbook

High-signal checks

  • Look for template rendering with user input in render_template_string, Template(...), twig->createTemplate, Freemarker Template.process.
  • Confirm user-controlled payload reaches a template context key or template source string.

Fast probes

  • Jinja2: {{7*7}}, {{config}}, {{request}}
  • Twig: {{7*7}}, {{_self}}
  • Freemarker: ${7*7}
  • Velocity: #set($x=7*7)$x

Escalation path

  1. Detect expression evaluation.
  2. Enumerate available objects and filters.
  3. Attempt file read / env leak.
  4. Attempt command execution via framework-specific gadget chain.

Validation

Use validate_finding with a positive execution signal and a benign negative control.

FAQ

What is server-side template injection?

It is when user input is evaluated by the template engine instead of being shown as plain text.

What probe does the skill use?

It uses simple expressions that produce a visible result, such as a small arithmetic check, to see whether they run.

What must the report show?

It must show a positive execution signal and a negative control that behaves normally.

Details

Original description by the author

Hunt server-side template injection across Jinja2/Twig/Freemarker/Velocity/Handlebars and validate progression from expression injection to code execution.

repo: BitterSecurity/Decepticon

Popularity

GitHub stars
6.5k
Ranking position
#13973
License
Apache-2.0
Updated
11/1/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills