Agent skill

Security Patterns

by Ch1nfo in Ch1nfo/RiftX

Security pattern matching for code audit and content inspection: grep strings for source auditing, malicious-string signatures, PHP magic hashes, error-message patterns.

MITAuto-check passedSecurity

Install Security Patterns

skills CLI
$ npx skills add Ch1nfo/RiftX --skill security-patterns -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install Ch1nfo/RiftX security-patterns --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/Ch1nfo/RiftX.git skills-src && mkdir -p .claude/skills && cp -r skills-src/recommended-skills/security-patterns .claude/skills/security-patterns && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
security-patterns
GitHub stars
113
Token cost
~425 tokens
SKILL.md length
107 words
Files
12 (incl. references)
Skills in repo
6
Repo updated
First seen
Licence
MIT

At a glance

Security pattern matching for code audit and content inspection: grep strings for source auditing, malicious-string signatures, PHP magic hashes, error-message patterns.

  • Repository scanning
  • SKILL.md covers Description, When to Use This Skill and Key Files in This Skill
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md
  • Source-code auditing

What it does

Security Patterns is an agent skill from Ch1nfo/RiftX. Security pattern matching for code audit and content inspection: grep strings for source auditing, malicious-string signatures, PHP magic hashes, error-message patterns. Use for repository scanning, source-code auditing, and detecting dangerous functions or malicious content in files.

Its SKILL.md is about 430 tokens, which your agent loads only when the skill is triggered. The skill folder holds 14 other files, including reference files (for example `references/Pattern-Matching/README.md` and `references/Pattern-Matching/grepstrings-auditing-php.md`).

It sits in Security. It works with PHP. The repository describes itself as: Pentest anything you want. The licence is MIT.

When your agent uses it

  • Repository scanning
  • Source-code auditing
  • Detecting dangerous functions
  • Malicious content in files

Example prompts

  • “/security-patterns”

What it can do on your machine

Read from SKILL.md and the folder at commit 1e3369f. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • github.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Security Patterns loads about 425 tokens when it runs, and up to ~14k if it reads all its reference files. Until then it costs about 76 tokens; SKILL.md has 107 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~76
When it runs · the whole SKILL.md, loaded when a task matches
~425
With references · SKILL.md plus every file in references/, read only if the agent opens them
~14k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from Ch1nfo/RiftX at commit 1e3369f, republished under its MIT licence (© Ch1nfo). 107 words, ~425 tokens.

Download SKILL.mdSave it as .claude/skills/security-patterns/SKILL.md (or your agent's skills folder). This skill also uses 11 other files; get the full folder from GitHub.
name
security-patterns
description
Security pattern matching for code audit and content inspection: grep strings for source auditing, malicious-string signatures, PHP magic hashes, error-message patterns. Use for repository scanning, source-code auditing, and detecting dangerous functions or malicious content in files.

SecLists Pattern-Matching

Description

Security pattern matching for code audit and content inspection: grep strings for source auditing, malicious-string signatures, PHP magic hashes, and error-message patterns.

Source: SecLists/Pattern-Matching Repository: https://github.com/danielmiessler/SecLists License: MIT

When to Use This Skill

Use this skill when you need:

  • Repository / source-code security auditing
  • Detecting dangerous functions in code
  • Scanning files for malicious strings or signatures
  • PHP magic hash checks
  • Error-message and known-vulnerable pattern matching

Key Files in This Skill

  • references/Pattern-Matching/grepstrings-basic.txt - Grep patterns for security auditing
  • references/Pattern-Matching/repo-scan.txt - Repository scanning patterns
  • references/Pattern-Matching/malicious.txt - Malicious string signatures
  • references/Pattern-Matching/errors.txt - Error message patterns
  • references/Pattern-Matching/php-magic-hashes.txt - PHP magic hashes
  • references/Pattern-Matching/dangerous-functions-angular.txt - Dangerous Angular functions
  • references/Pattern-Matching/pcap-strings.txt - PCAP string patterns
  • references/Pattern-Matching/Source-Code-(PHP)/php-auditing.txt - PHP source auditing patterns

© Ch1nfo, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 11 other files (references) in recommended-skills/security-patterns of Ch1nfo/RiftX.

  • SKILL.md
  • references/Pattern-Matching/README.md
  • references/Pattern-Matching/Source-Code-(PHP)/php-auditing.txt
  • references/Pattern-Matching/dangerous-functions-angular.txt
  • references/Pattern-Matching/errors.txt
  • references/Pattern-Matching/grepstrings-auditing-php.md
  • references/Pattern-Matching/grepstrings-basic.txt
  • references/Pattern-Matching/malicious.txt
  • references/Pattern-Matching/pcap-strings.txt
  • references/Pattern-Matching/php-magic-hashes.txt
  • references/Pattern-Matching/repo-scan.txt
  • references/Pattern-Matching/thickclient-basic.txt

Open the folder on GitHubat commit 1e3369f

Compare with similar skills

Security Patterns next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Security Patterns compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Security Patterns this skillCh1nfo/RiftX113—~425Automated safety check: PassMIT
Php Archive Extract Audit0xShe/PHP-Code-Audit-Skill4021 repos~883Automated safety check: PassNone
Php Auth Audit0xShe/PHP-Code-Audit-Skill4021 repos~951Automated safety check: PassNone
Auditing Code For Vulnerabilitiestrilwu/secskills156—~3.2kAutomated safety check: PassMIT
Php Cmd Audit0xShe/PHP-Code-Audit-Skill4021 repos~465Automated safety check: PassNone
Php Config Audit0xShe/PHP-Code-Audit-Skill4021 repos~417Automated safety check: NotesNone

Similar skills

  • Php Archive Extract Audit

    0xShe/PHP-Code-Audit-Skill

    PHP Web 归档解压(Zip Slip/路径穿越)审计工具。识别解压条目名如何与目标目录拼接、是否存在 base dir 约束缺失,输出可利用性分级、可观测 PoC 与修复建议(禁止省略)。

    402 GitHub starsUsed in 1 repo~883 tokens
    SecurityAuto-check passed
  • Php Auth Audit

    0xShe/PHP-Code-Audit-Skill

    PHP Web 源码鉴权机制审计工具。从源码中识别所有认证/鉴权实现并分析风险,输出路由-鉴权映射与漏洞分析(含 PoC 与修复建议)。

    402 GitHub starsUsed in 1 repo~951 tokens
    SecurityAuto-check passed
  • Audit source code for exploitable vulnerabilities using threat-model-driven review, taint tracing, invariant checking, and variant analysis.

    156 GitHub stars~3.2k tokensUpdated 1 mo ago
    SecurityAuto-check passed
  • Php Cmd Audit

    0xShe/PHP-Code-Audit-Skill

    PHP Web 源码命令注入审计工具。识别命令执行 Sink(exec/system/shellexec 等),追踪用户输入进入命令拼接,输出可利用性分级、PoC 与修复建议(禁止省略)。

    402 GitHub starsUsed in 1 repo~465 tokens
    SecurityAuto-check passed
  • Php Config Audit

    0xShe/PHP-Code-Audit-Skill

    PHP Web 配置安全审计工具。识别 CORS/错误暴露/调试开关/安全头/危险运行时开关等,输出分级、可利用性分析、PoC 与修复建议(禁止省略)。

    402 GitHub starsUsed in 1 repo~417 tokens
    SecurityAuto-check: notes
  • Php Expr Audit

    0xShe/PHP-Code-Audit-Skill

    PHP Web 源码表达式注入(非模板)审计工具。识别用户可控表达式字符串进入表达式引擎求值/编译并最终导致敏感语义执行,输出可利用性分级、PoC 与修复建议(禁止省略)。

    402 GitHub starsUsed in 1 repo~720 tokens
    SecurityAuto-check passed

More from Ch1nfo/RiftX

  • Recon Crawl

    Ch1nfo/RiftX

    Attack-surface crawling with the crawl tool — BFS link/form/hidden-field collection, JS-bundle API route extraction, and auth boundary mapping through the scoped browser.

    113 GitHub stars~718 tokensUpdated 16 days ago
    Auto-check passed
  • LLM Testing

    Ch1nfo/RiftX

    Comprehensive LLM security testing prompts for bias detection, data leakage, alignment testing, and adversarial prompt resistance.

    113 GitHub starsUsed in 1 repo~1.2k tokens
    Auto-check: warnings
  • Security Fuzzing

    Ch1nfo/RiftX

    Essential fuzzing payloads: SQL injection, command injection, special characters.

    113 GitHub starsUsed in 1 repo~329 tokens
    Auto-check passed
  • Security Webshells

    Ch1nfo/RiftX

    Webshell samples for detection and analysis webshell 样本: PHP, ASP, ASPX, JSP, Python, Perl shells.

    113 GitHub stars~306 tokensUpdated 16 days ago
    Auto-check passed
  • Security Usernames

    Ch1nfo/RiftX

    Top username lists for enumeration: common usernames, default credentials, names.

    113 GitHub stars~226 tokensUpdated 16 days ago
    Auto-check passed

Works with

Categories

Questions about Security Patterns

What does Security Patterns do?

Security pattern matching for code audit and content inspection: grep strings for source auditing, malicious-string signatures, PHP magic hashes, error-message patterns. Security Patterns is an agent skill from Ch1nfo/RiftX. Security pattern matching for code audit and content inspection: grep strings for source auditing, malicious-string signatures, PHP magic hashes, error-message patterns.

When should I use Security Patterns?

Security Patterns fits situations like: repository scanning; source-code auditing; detecting dangerous functions; malicious content in files.

How do I install Security Patterns in Claude Code?

Run `npx skills add Ch1nfo/RiftX --skill security-patterns -a claude-code`. Or copy the skill folder (recommended-skills/security-patterns in Ch1nfo/RiftX) into .claude/skills/security-patterns in your project. Claude Code loads it when a task matches its description.

How do I install Security Patterns in Codex?

Run `npx skills add Ch1nfo/RiftX --skill security-patterns -a codex`. Or copy the skill folder (recommended-skills/security-patterns in Ch1nfo/RiftX) into .agents/skills/security-patterns in your project. Codex loads it when a task matches its description.

Can I use Security Patterns in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add Ch1nfo/RiftX --skill security-patterns -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/security-patterns, .gemini/skills/security-patterns, .github/skills/security-patterns and .opencode/skills/security-patterns in your project.

What does Security Patterns need to run?

SKILL.md names no scripts, command-line tools or credentials: Security Patterns is instructions for the agent only.

Does Security Patterns access the network?

SKILL.md names 1 domain. As links in the text: github.com. This is read from the text; nothing was executed.

Is Security Patterns safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Security Patterns use?

Security Patterns is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Security Patterns use?

About 425 tokens (SKILL.md is roughly 1.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 14k tokens, read only when the agent opens those files.

What are the alternatives to Security Patterns?

Skills that share tags, products or a category with Security Patterns: Php Archive Extract Audit (0xShe/PHP-Code-Audit-Skill, 402 stars), Php Auth Audit (0xShe/PHP-Code-Audit-Skill, 402 stars), Auditing Code For Vulnerabilities (trilwu/secskills, 156 stars) and Php Cmd Audit (0xShe/PHP-Code-Audit-Skill, 402 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Security Patterns?

Ch1nfo (a GitHub user) maintains it in Ch1nfo/RiftX, which has 113 GitHub stars. The repository holds 6 skills in this directory. The repository was last updated on September 21, 2026.

Source: Ch1nfo/RiftX on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.