Workshops: Secure Agentic Coding & Governance

Prompt Injection Against Coding Agents: Attacks & Defences

Coding agents read third-party code, issues, documentation, web pages and MCP tool output, and any of these sources can carry hidden instructions. Because the agent can also run commands, write code and often reach the network, a manipulated text quickly becomes data exfiltration or a backdoor. In this workshop your team attacks agents in a lab environment first and then builds the defences.

Who is this workshop for?

  • Application security and red team members
  • Security champions in development teams
  • Platform teams running agents in CI and the cloud
  • Maintainers of public or inner-source repositories
  • Security architects

What you will take away

  • Map every entry point through which untrusted content reaches your agents' context.
  • Run typical injection attacks against Claude Code, OpenAI Codex and other agents yourself in a sandbox.
  • Recognise the dangerous combination of data access, untrusted content and an outbound channel, and break it deliberately.
  • Harden agentic CI workflows, especially those triggered by external issues or pull requests.
  • Establish a recurring red-team routine for your agent setups.

Agenda

  1. Module 1

    The attack surface of a coding agent

    • Everything the agent reads: code, comments, rules files, tickets, web pages
    • The difference from chat assistants: agents act
    • Attacker goals: data, credentials, backdoors, sabotage
  2. Module 2

    Attack lab

    • A crafted README and a tampered rules file with invisible Unicode characters
    • A malicious issue aimed at an asynchronous cloud agent
    • Poisoned tool descriptions and tool output from an MCP server
    • Injected instructions in fetched online documentation
  3. Module 3

    Payloads and impact

    • Exfiltration through network calls, links and image URLs
    • Subtle backdoors and new dependencies hidden in a diff
    • Abuse of CI tokens and destructive commands
  4. Module 4

    Layered defences

    • Avoiding dangerous combinations: separate agents for untrusted content
    • Egress control, minimal rights and approvals
    • Review focus on configuration, CI files and dependencies
  5. Module 5

    Processes and detection

    • Rules for outside contributions and agent triggers in public repositories
    • Allowlisting and version pinning for MCP servers
    • Logging, detection and regular red teaming

The dangerous combination

An agent becomes especially vulnerable when three things come together: access to confidential data, exposure to untrusted content and a way to send data out. Remove any one of them and the risk drops considerably.

This simple rule of thumb helps more than any filter. We apply it together to your actual workflows, from the local agent to the bot that responds to issues automatically.

No filter catches everything

Model providers keep improving robustness against prompt injection, and detection tools help. But there is currently no complete technical fix. So we design for a successful attack causing as little damage as possible.

  • Assume any third-party text may contain instructions
  • Keep rights so narrow that misuse stays contained
  • Human approval at the critical points

Safe lab, realistic attacks

All attacks run in isolated environments without real credentials. neooutput AI Code Engineers set up the lab in advance to match your tools. The workshop takes our general prompt injection training deeper, specifically for agentic software development.

Frequently asked questions

Won't the model providers solve this themselves?

They are making progress, but a complete solution is not in sight. The architecture of your agent workflows remains the most effective line of defence.

Are public open-source repositories particularly exposed?

Yes, because anyone can open issues and pull requests there. Workflows in which an agent reacts automatically to such contributions need especially narrow rights and no secrets.

Do we need offensive security experience?

Basic application security knowledge is enough. The attacks are prepared and walked through step by step, so developers without penetration testing experience can follow along.

Workshop

Get in touch

Want to find out how easily your coding agents can be manipulated?

Tell us roughly how many people will join and pick dates that work – we will get back to you within 24 hours with a proposal for content, format and schedule.

Prefer to talk first?

15 minutes, free and without obligation – with our AI Trainers and AI Code Engineers.

Book a call for free (opens in new tab) +49 761 519 751 50 (24/7)

Request a training / workshop

Workshop: Prompt Injection Against Coding Agents: Attacks & Defences · 1 day

Dates that work for you (optional)

Suggestions about 2 weeks ahead – pick as many as you like

Reply usually within 24 hours · jocapps is ISO 27001 certified · Privacy