llm-pentest-checklist: Embedding LLM Penetration Testing Methodology into Agent Skills

Introduction

After a large model application goes live, the testing surface often goes far beyond simply “whether the conversation can be jailbroken.” With Agent tool calling, RAG knowledge bases, MCP endpoints, and cloud-native inference environments stacked together, it is difficult to cover the complete attack chain by just sporadically jotting down a few prompts. Manually cross-referencing OWASP LLM Top 10 and MITRE ATLAS tables is time-consuming and prone to missing the “map before you attack” steps.

The llm-pentest-checklist introduced below is a SkillHub community Skill (located at @user_3fd87291/llm-pentest-checklist, current version 1.0.1). It embeds the LLM pentest mindset framework, practical combat chapters, and checkable checklists into a universal SKILL.md package. Once installed into clients that support Skills like Cursor or Codex, the Agent can proceed with authorized red team/pentest tasks using a unified structure, rather than piecing together scripts from scratch every time.

What is this

llm-pentest-checklist is positioned as a knowledge-based Skill for LLM / AI application penetration testing: it does not rely on external API Keys (tag requires_api_key=false), is published from the community, categorized under it-ops-security, and maintained by user_3fd87291.

The installation package mainly contains two Markdown files:

  • SKILL.md: Titled “LLM Penetration Testing Practical Skill Manual”, it explains the differences between LLM testing and traditional Web testing, attack surface mapping, and chapters on injection and Agent/RAG/MCP/Infrastructure/Supply Chain, accompanied by vulnerability rating and phased checkpoints.
  • llm-pentest-checklist.md: Titled “LLM Penetration Testing Checklist”, it lists actionable check items across nine major modules. The document states it is distilled from the “AI Red Team Defense Guide” and declares coverage of cross-mappings for OWASP LLM Top 10, MITRE ATLAS, and NVIDIA AI Kill Chain (version marked as v1.0 within the document, updated 2026-05-04).

The target audience is written in the Skill body as testers with a foundation in Web penetration who wish to enter the AI security field.

Core Functions

Based on the published Skill files, the verifiable capabilities are as follows.

Mindset Framework and Attack Surface Mapping

SKILL.md emphasizes that LLM penetration testing is not equal to just testing prompt injection, providing a mindset comparison between traditional Web and LLM testing. Before starting tests, reconnaissance is organized around five categories of questions: where the model is deployed, available tools/capabilities, whether RAG is used, whether MCP/Agent protocols exist, and the form of supply chain dependencies. The text includes tool enumeration ideas, RAG/MCP probing examples, and a vulnerability hierarchy layered by risk (from Prompt injection to infrastructure and supply chain).

Thematic Practical Playbook

The same file expands on reusable testing ideas and example payloads/commands by chapter, mainly including:

  1. Multi-layer bypass of prompt injection (system instructions, semantic camouflage, encoding deformation, multi-turn Crescendo, context overflow, etc.).
  2. Agent penetration (tool permission boundaries, tool output trust chains, second-order injection, function call hijacking, memory poisoning).
  3. RAG penetration (architecture type determination, document poisoning, Embedding-related attack ideas, membership inference).
  4. MCP protocol attacks (tool description injection, parameter and path traversal, Server registration, SSTI chain ideas).
  5. Infrastructure (descriptions of paths like K8s, AWS IMDS/SSRF) and Supply Chain (PyPI, Pickle, LoRA, Tokenizer, etc.).

The end of the file provides a P0–P3 rating framework, an attack chain cost-effectiveness evaluation formula, and a phased self-check list.

Structured Checklist

llm-pentest-checklist.md divides the work into nine blocks, each containing check items with - [ ], facilitating item-by-item verification in conversations or generating report skeletons:

Module Coverage Direction (Summary)
1. Information Collection & Reconnaissance HTTP/JS fingerprints, model and RAG probing, authentication and OSINT
2. Prompt Injection Attacks OWASP LLM01 type direct injection, multi-turn and encoding bypass
3. AI Agent Attacks Tool description injection, memory poisoning, Tool Call hijacking, second-order injection
4. Multi-Agent & A2A Architecture analysis, Confused Deputy, Agent Card, Rogue registration
5. RAG & Embedding Document poisoning, collision and slow drip, reverse inference and membership inference
6. MCP & Supply Chain Attacks Path traversal, SSTI, browser Pivot, etc.
7. Infrastructure & Cloud Native AWS/K8s/GPU escape, MLflow and other check items
8. Supply Chain Security Testing PyPI, Pickle, LoRA, Tokenizer
9. Cross-cutting Detection Data leakage, authentication, output safety, MITRE ATLAS mapping items

The appendix lists tool names mentioned in the text (such as rogue_agent.py, emb_fin.py, etc.) and SIEM detection rule examples; the Skill installation directory does not include these script files, serving only as a methodological reference.

Installation and Enablement

The SkillHub page suggests: Let the Agent install @user_3fd87291/llm-pentest-checklist according to the SkillHub installation instructions. For manual operation, first confirm that the skillhub CLI is available on the local machine, then use --dir to point to the current Agent’s skills directory (installing to the default ./skills/ might not be loaded by the client).

command -v skillhub && skillhub --version

If the CLI is not installed, execute the full installation according to the official documentation (example):

curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash

Install this Skill:

skillhub install llm-pentest-checklist --namespace user_3fd87291 --dir <Your Agent skills directory>

Common client skills paths (from SkillHub installation documentation):

  • Cursor: ~/.cursor/skills/
  • Codex: ~/.codex/skills/ or .agents/skills/ under the project
  • Claude Code: ~/.claude/skills/

After installation, restart or refresh the Skills cache according to the requirements of each client. This Skill does not require API Key configuration.

Typical Usage

In a written authorized range or lab, you can hand over the task description to an Agent that has loaded this Skill, letting it proceed against the checklist. Example conversation intents are as follows (not official fixed commands, just illustrating the collaboration method):

  1. “Perform attack surface mapping before LLM penetration on https://example.com/api/chat, and output conclusions based on the five questions in the intelligence chapter of the Skill.”
  2. “Based on Chapter 2 of llm-pentest-checklist.md, generate prompt injection test cases and label the corresponding OWASP LLM01.”
  3. “The target is suspected to have RAG and MCP; please list priority test items and curl probe commands based on Chapters 5 and 6 of the checklist.”
  4. “After completing a round of testing, rate the findings using the P0–P3 framework in the Skill, and fill in the phase checkpoints.”

The reconnaissance examples included in the Skill can be directly reused, for example:

curl -sI https://target.com/api/chat | grep -iE 'server|x-powered|x-ai|x-llm'
curl -s https://target.com/.well-known/agent.json | jq '.'

The checklist file also provides command templates for embedding dimension probing, SSRF, and path traversal. The Agent can replace target.com with your target URL to execute them (subject to authorization scope).

Use Cases and Notes

Who it is for

  • Red teamers or security engineers with Web penetration experience who need to systematically enter LLM/Agent/RAG testing.
  • Those who wish to have the Agent continuously reference the same set of check items in environments like Cursor/Codex to reduce missed tests on “non-dialogue layer” attack surfaces like MCP and supply chain.

Limitations and Notes

  • The content is offensive-oriented methodology and check items, intended only for legal authorized testing; attempting the techniques described in the text on production systems without authorization may be illegal.
  • The installation package is merely a Markdown guide. The Python tools in the appendix are marked as “documentation companions”; the current version does not distribute executable scripts with the Skill.
  • SkillHub metadata (as of scraping): Rating 100000, Downloads 900, Category it-ops-security; this is a community Skill, please evaluate the content and local compliance requirements yourself before use.
  • CVEs and framework entries referenced in the documentation change over time; execution should be based on the target environment and latest announcements.

Conclusion

llm-pentest-checklist expands LLM penetration testing from “only testing prompts” to a playbook covering tool chains, RAG, MCP, and infrastructure. It aligns with mainstream AI security frameworks using a nine-chapter checklist, making it suitable as a long-term reference Skill on the Agent side. It requires no API Key and can be activated by installing it to the corresponding skills directory via SkillHub.

  • SkillHub Page: https://www.skillhub.cn/skills/user_3fd87291/llm-pentest-checklist
  • API Coordinate Page: https://api.skillhub.cn/user_3fd87291/llm-pentest-checklist
羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye