Speaker Notes

Why securing AI is harder than anyone expected and guardrails are failing | HackAPrompt CEO

Securing AI applications is fundamentally harder than traditional software because prompt injections and neural weight vulnerabilities cannot be permanently patched with traditional security guardrails.

Lenny's Podcast · 1:32:41 · YouTube ↗

Podcast episode · host + guest  Intermediate · concepts and security strategy

Highlights

1 clip · 87 min of 93 min
    • Jailbreaking involves a direct interaction between a user and a standalone model.
    • Prompt injection occurs when a malicious user bypasses developer instructions in an application or agent.
    • Both vectors exploit transformer-based models to execute unintended behaviors.
    • The attack space for large language models is effectively infinite, making 99 percent effectiveness misleading.
    • Guardrail models can be easily bypassed by determined attackers using adaptive methods.
    • Frontier labs and enterprises alike have been unable to reliably block prompt injections.
    • Classical software bugs can be permanently fixed with 99.99 percent certainty.
    • AI vulnerabilities stem from neural weights and cannot be patched the same way.
    • Applying traditional cybersecurity thinking to AI creates a false sense of security.

Questions this video answers

9 · every answer cites the moment it was said
01 What is the difference between jailbreaking and prompt injection? 2 sources · 5:17

Jailbreaking occurs directly between a user and a model without any system prompt. Prompt injection involves a malicious user, a model, and developer instructions that the attacker attempts to bypass. Both represent major security vectors in modern AI applications.

02 Why do automated red teaming tools always find vulnerabilities? 2 sources · 5:17

Automated red teaming systems use algorithms to generate prompts that easily trick transformer-based models. Because all deployed chatbots rely on similar underlying architectures, these tools consistently succeed across platforms. Consequently, they often highlight industry-wide vulnerabilities rather than unique product flaws.

03 Why do AI guardrails fail to stop malicious attacks? 2 sources · 0:00

Guardrails fail because the number of possible prompt attacks against an LLM is practically infinite. Claiming high effectiveness percentages is statistically meaningless against such a vast attack space. Furthermore, adaptive human attackers can easily bypass these filters within a small number of attempts.

04 How does adversarial robustness measure system security? 2 sources · 0:00

Adversarial robustness refers to how well models or multi-layered systems defend themselves against attacks. It is typically quantified using attack success rates, measuring how many malicious prompts get past defenses. However, estimating this metric accurately is extremely difficult due to the massive search space.

05 Why are agentic AI systems significantly riskier than standard chatbots? 2 sources · 0:00

While standard conversational chatbots pose mostly reputational risks if tricked, agents can execute real-world actions and access external data. If improperly permissioned, malicious users can manipulate agents to leak user data or trigger unauthorized database operations. As physical and browser agents deploy, these real-world damages become increasingly severe.

06 How does the Camel framework help mitigate agent risks? 2 sources · 5:17

Camel restricts an agent's permissions ahead of time based on the user's specific request. For example, if a user only asks to summarize emails, Camel assigns read-only permissions to prevent unauthorized email sending. While it cannot solve combined read-write tasks, it provides a strong architectural band-aid for specific workflows.

07 Why is classical cybersecurity insufficient for AI applications? 2 sources · 5:17

Traditional security assumes software bugs can be permanently patched with high certainty. In contrast, AI models are neural brains where patching a specific issue leaves the underlying vulnerability present. Securing AI requires combining classical permissioning with specialized understanding of model behavior.

08 When is a conversational chatbot low risk enough to deploy without heavy security? 2 sources · 5:17

Read-only conversational chatbots that only answer FAQs or search internal documents present minimal security risk. If they cannot take external actions and only access the interacting user's data, the damage is restricted. In such cases, investing in guardrails provides little defensive value.

09 What is the control field in AI safety? 2 sources · 5:17

Control is a safety research field that examines how to manage potentially malicious AI systems. It operates under the assumption that the AI acts like an angry god trapped in a box. Researchers in this area evaluate worst-case scenarios and how to ensure safe, useful operations.

Section-by-section summary

19 parts

Defining jailbreaking and prompt injection attacks

Jailbreaking happens when a user directly manipulates a standalone model, whereas prompt injection forces an application or agent to ignore developer instructions. These vulnerabilities affect all transformer-based architectures and allow attackers to execute unintended actions.

Real-world risks of agentic AI systems

As AI models gain the ability to take actions, use browsers, and control tools, prompt injections move beyond generating text to leaking user data and modifying databases. The only reason massive attacks haven't occurred yet is early adoption levels.

The limitations of the AI security industry

Enterprise AI security tools rely heavily on automated red teaming and guardrails to catch malicious inputs and outputs. However, automated red teamers always find vulnerabilities, and guardrails fail against the massive search space of possible prompts.

Understanding adversarial robustness and attack success rates

Adversarial robustness measures how well a model defends itself against attacks, quantified by attack success rate. Because the possible prompt space is virtually infinite, static robustness percentages provided by vendors are statistically meaningless.

Why automated red teaming works too well

Automated red teaming tools consistently find exploits against any off-the-shelf transformer model because vulnerability is inherent to the architecture. These tools often show obvious results rather than novel discoveries about specific enterprise deployments.

The illusion of guardrails in stopping attacks

Guardrail models placed in front of and behind language models claim high success rates but fail against adaptive human attackers and infinite prompt variations. Determined users can easily bypass these wrappers without slowing down.

Frontier labs struggle with adversarial robustness

The smartest AI researchers at leading labs have not solved prompt injection because economic incentives prioritize capability growth over security. Making models smarter does not inherently make them more adversarially robust.

You can patch software bugs but not neural brains

Classical cybersecurity relies on deterministic patching, which is impossible with neural network brains. Treating AI security like traditional software engineering leads organizations to deploy flawed defenses based on false assumptions.

Assessing risk for read-only conversational chatbots

If an AI deployment is strictly a read-only chatbot without action capabilities, prompt injection poses minimal operational risk beyond reputational harm. Organizations do not need complex security layers for simple Q and A use cases.

Combining classical cybersecurity with AI security

The most effective short-term defense is proper data and action permissioning handled by classical cybersecurity professionals. Isolating execution environments, such as running generated code in dockerized containers, completely solves specific injection vectors.

The concept of control in managing malicious AI

Borrowing from alignment theory, treating an AI agent like an angry god in a box shifts focus toward containment. Security teams must assume the AI is malicious and design systems to limit the damage it can cause.

Indirect prompt injection and agentic risks

Indirect prompt injection occurs when agents processing external data, such as emails or web pages, encounter malicious instructions embedded by attackers. Browser-based agents are especially vulnerable, as browsing a malicious site can exfiltrate user account secrets.

Restricting agent permissions ahead of time with Camel

Frameworks like Camel analyze user prompts to dynamically assign minimal necessary permissions, preventing agents from performing unauthorized actions like reading emails when only writing is requested. While effective for scoped tasks, it struggles when read and write permissions are combined.

Education as a primary defense mechanism

Because silver-bullet software solutions do not exist, organizational education and awareness are vital. Teams must understand AI limitations to make informed deployment decisions rather than buying ineffective security products.

Model-level defenses and constitutional classifiers

Frontier labs have made progress in preventing harmful outputs like explosives instructions using constitutional classifiers, but solving indirect prompt injection remains exceptionally difficult. Deeper architectural changes or adversarial training during pre-training may offer future promise.

Shouting out useful tools and compliance governance

While guardrails fall short, companies focusing on compliance governance like Trustable and internal AI asset discovery like Repello provide genuine operational value. Enterprises must first know where and how many AI systems are running internally.

Market correction predictions for the AI security industry

Revenue for AI guardrail vendors is expected to dry up as enterprises realize these products do not work and open-source alternatives are readily available. A market correction is likely within the next six to twelve months.

Avoiding offensive red-research redundancy

Writing more jailbreak papers no longer contributes meaningful defensive value since it is already established that models can be broken. Researchers should focus on systemic controls and architectural containment instead.

Preparing for serious risks as agents deploy

As LLM-powered agents and robotics become widespread, the potential for real-world financial and physical harm increases dramatically. Organizations must stop relying on false-confidence guardrails and take structural security seriously.

0:00 / 1:32:41
k play/pause · f fullscreen · m mute
n next · p previous clip · t highlights/full
< > slower/faster · / search what was said
  • Prompt injection2× · first 0:00

    An attack where a user manipulates an application's system prompt to make the AI ignore its instructions.

  • Jailbreaking1× · first 5:17

    The process of tricking a standalone model into outputting restricted or harmful instructions.

  • AI red teaming2× · first 0:00

    Using automated or manual attacks to find vulnerabilities and malicious outputs in AI systems.

  • Adversarial robustness2× · first 0:00

    A measure of how well a model or system can defend itself against various attacks.

  • AI guardrails2× · first 0:00

    Models or filters placed in front of and behind an LLM to classify and block malicious inputs and outputs.

  • Camel1× · first 5:17

    A framework that restricts an agent's permissions ahead of time based on user intent.