Application AI Claude Code Context Poisoning logo

Application AI Claude Code Context Poisoning

Organization
CDESpace
Application AI Claude Code Context Poisoning

Triage a Claude Code alert where the agent's trusted context is subverted through its own artifacts, CLAUDE.md, settings.json or settings.local.json, the .claude directory, hooks, or MCP configuration, read against the Claude Code telemetry (session, operation, decision, event_name). Reads which trusted file or capability changed, whether a user prompt drove it, and whether the change plants execution, weakens permissions, or wires in a tool, to tell normal developer edits apart from poisoning of the agent's trusted context, and decides escalate or dismiss.

Overview

PublisherCDESpace
RepositoryDetection-Skills
Skill nameApplication AI Claude Code Context Poisoning
Stars
57
Forks
5
Bundled files
Instructions only
LicenseApache-2.0
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by CDESpace on GitHub. Read the source before you install it.

Installation

Install the Application AI Claude Code Context Poisoning AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/CDESpace/Detection-Skills/tree/main/skills/triage/application-ai-claude-code-context-poisoning
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/CDESpace/Detection-Skills.git /tmp/Detection-Skills
mkdir -p .claude/skills
cp -r /tmp/Detection-Skills/skills/triage/application-ai-claude-code-context-poisoning .claude/skills/cdespace-application-ai-claude-code-context-poisoning
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Application AI Claude Code Context Poisoning in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Application AI Claude Code Context Poisoning on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Application AI Claude Code Context Poisoning is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Triage Steps

This class fires on changes to the files and capabilities Claude Code implicitly trusts, CLAUDE.md instructions, settings.json and settings.local.json, the .claude directory, hooks, and MCP servers. Developers edit these constantly as normal work, so the fact that one changed is not the signal. The signal is what the change does to the agent: instructions that plant command execution or override safety, settings that grant blanket permissions or redirect the credential helper, a hook or MCP server wired in from an untrusted source, or an agent action with no user prompt behind it. Because Claude Code reloads and trusts these every session, a poisoned context persists and steers the agent quietly. Triage here reads the Claude Code telemetry to see which trusted surface changed and whether a human drove it. This class is the Claude-Code-specific view of context poisoning; the general patterns are covered by Application AI Prompt Injection, Application AI Guardrail Config Tampering, and Application AI Tooling Supply Chain.

Begin with this detection's track record on this user and host, a rule that fires on a developer's normal project setup and is always closed benign starts the call near dismiss, then read the Claude Code telemetry for the leads below. None is required on its own; they stack, and a single strong one (CLAUDE.md gaining a command-execution primitive) can carry the call.

Leads that point to a real threat, what to look for in the data:

  • CLAUDE.md gaining execution or override content. A tool_result with operation Write or Edit on a CLAUDE.md path whose new content adds command-execution primitives (a reverse shell, an encoded command, download-and-run) or override/jailbreak instructions, planted guidance the agent runs or obeys every session.
  • Settings weakened. A write to settings.json or settings.local.json that grants a wildcard tool permission (Bash(*) or a bare "*"), sets the mode to bypass permissions, redirects apiKeyHelper to an external script, or embeds a hardcoded credential, the agent's brakes and identity path altered.
  • An untrusted capability wired in. An mcp_server_connection to an unvetted or offensive-tooling server, a plugin from an unofficial marketplace, or a hook registered from an unofficial source, new power added to the agent from outside the approved set.
  • An agent action with no recorded user prompt, alongside a poisoned file. A tool call or external reach in a session.uid with no user_prompt event. Treat this as corroboration for a poisoned-context finding, not a trigger alone: Claude Code sessions in an editor are non-interactive and frequently omit user_prompt, so a missing prompt is common in ordinary use.

Leads that rule it out, benign context you can actually see in the data; if the data doesn't show it, you don't have it:

  • A prompt and a developer explain it. A user-prompt turn in the same session precedes the change, made by a confirmed engineer whose role and project fit the edit.
  • A benign, in-baseline edit. The CLAUDE.md or settings change is ordinary project configuration the team makes routinely, matching this repo's and user's baseline, with no execution content, permission widening, or credential redirect.
  • An approved capability. The MCP server, plugin, or hook is a first-party or approved-catalog component, its source known and its capability bounded.
  • The change tightens or is neutral. A permission narrowed, a guardrail added, or documentation-only edits, not a loosening or a planted primitive.
  • Clean history. This rule has closed benign on this user or repo before, with nothing new about the file, capability, or prompt context this time.

To confirm a lead instead of guessing, pull the thread: after the trusted file or capability changed, did the agent run a command, reach an external destination, or act without a prompt in the same session? Corroboration turns a suspicious edit into confirmed poisoning.

Output

Decision

  • escalate: CLAUDE.md gaining execution or override content, settings weakened (wildcard permission, bypass mode, redirected credential helper, hardcoded secret), or an untrusted MCP server, plugin, or hook wired in, especially a poisoned file followed by the agent acting on it. A missing user prompt corroborates but does not escalate on its own, since editor sessions often omit the prompt event.
  • dismiss: a user prompt and a confirmed developer, a benign in-baseline edit, or an approved capability explains it, and the change plants no execution, widens no permission, and redirects no credentials. A dismiss is a positive call that the change is benign, made with that context in hand, a developer and prompt you confirmed, a baseline you actually saw the edit fit; a change whose author or intent you couldn't establish is not that context, and absence of a bad sign is not proof it's good. Dismiss is logged and reopenable; when a trusted file gains execution or override content, settings are weakened, an untrusted capability is added, or the agent acts with no prompt, escalate.

Evidence

The trusted surface that changed (CLAUDE.md, settings.json / settings.local.json, .claude, hook, or MCP server), the operation and the new content or setting, whether a user prompt preceded it in the session, the acting user and whether they are a confirmed developer, any agent action that followed, and how this rule was handled here before.

Reasoning

Name the leads that decided it and how they stacked, a CLAUDE.md edit adding an encoded command with no user prompt in the session is escalate on its own; a developer updating project instructions after a matching prompt, with no execution content, is dismiss.

Frequently asked questions

What does the Application AI Claude Code Context Poisoning AI skill do?

Triage a Claude Code alert where the agent's trusted context is subverted through its own artifacts, CLAUDE.md, settings.json or settings.local.json, the .claude directory, hooks, or MCP configuration, read against the Claude Code telemetry (session, operation, decision, event_name). Reads which trusted file or capability changed, whether a user prompt drove it, and whether the change plants execution, weakens permissions, or wires in a tool, to tell normal developer edits apart from poisoning of the agent's trusted context, and decides escalate or dismiss.

Why use Application AI Claude Code Context Poisoning on TypingMind?

Because you install it once and use it with any model. Application AI Claude Code Context Poisoning is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Application AI Claude Code Context Poisoning in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/CDESpace/Detection-Skills/tree/main/skills/triage/application-ai-claude-code-context-poisoning. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Application AI Claude Code Context Poisoning?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Application AI Claude Code Context Poisoning?

As many as you like. As long as a model supports skills, you can use Application AI Claude Code Context Poisoning with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Application AI Claude Code Context Poisoning AI skill free?

Yes. It is published on GitHub by CDESpace under the Apache-2.0 license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇