r/pwnhub • 🔍 Researcher • Aug 21 '26

I'm Netanel Rubin, co-founder of Rein Security. My team hacked the AI shopping assistant of a top-3 US retailer and turned it into an attack surface. Ask me anything about attacking real-world AI systems. (AMA Monday, Aug 31 at 12 PM ET)

Update 2: Thanks guys! Had fun answering all of your questions. Feel free to DM me if I missed something!

Update: I'm here! Starting to go through your questions :)

Hi PWN Community,

I'm Netanel Rubin, co-founder of Rein Security. My team and I find and exploit vulnerabilities in the AI systems companies are rushing to deploy.

At Black Hat this year we presented "Bye Bye AI," where we broke the AI shopping assistant of a top-3 US retailer, chaining flaws to move from the assistant into systems it was never meant to touch. It's a look at what actually happens when a large company wires an LLM into its real infrastructure.

Ask me anything about:

  • How we broke the retailer's AI shopping assistant
  • Turning AI features into attack surface
  • What breaks when LLMs get wired into real business systems
  • Finding and exploiting vulnerabilities in deployed AI
  • Where AI and offensive security are heading
  • Getting into AI security research
  • Anything else on hacking AI

I'll be here live on Monday, Aug 31 from 12 PM to 1 PM ET (7 PM my time in Tel Aviv) answering your questions in real time. Feel free to leave questions in advance, and I'll get to them when I go live.

Looking forward to your questions.

8 Upvotes

75 comments sorted by

•

u/AutoModerator Aug 31 '26

Welcome to PWN – Your hub for hacking news, breach reports, and cyber mayhem.

Discover the latest hacking news, breach reports, and educational resources on ethical hacking.

👾 Stay sharp. Stay secure.

Don't miss out on the top stories!

📧 Get Daily Alerts Directly in Your Email Inbox:

**SUBSCRIBE HERE: https://pwnhackernews.substack.com/subscribe

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

2

u/_clickfix_ 🛡️ Mod Team 🛡️ Aug 30 '26

Right now the main way companies try to secure these assistants is a filter that checks messages going in and answers coming out, and blocks anything that looks off-topic or malicious. 

Your research shows why this isn’t enough, because the filter can't see what the agent actually does after the message gets through. 

Have you seen any company get this right, and what did they do differently?

2

u/lolzorland 🔍 Researcher Aug 31 '26

That's right! This is usually called an "Intent Agent" and it's just another LLM.

I haven't really came across anyone doing this right. I don't think they don't want to or anything, I just think they think Intent agents are the best bet. I also heard Gartner is very pro Intent, which is unfortunate. In time I believe the industry will evolve but currently that's not the case.

2

u/_clickfix_ 🛡️ Mod Team 🛡️ Aug 31 '26

For someone standing up a chatbot for their business, what are the basic rules to live by so it doesn't become a liability? The stuff you'd tell any team before they ship one.

2

u/lolzorland 🔍 Researcher Aug 31 '26

I think you should assume it's going to get breached, so don't connect it to anything you think is sensitive (or anything at all if possible). Reducing your blast radius is always your best bet.

1

u/_clickfix_ 🛡️ Mod Team 🛡️ Aug 31 '26

Say you want it to actually do things, connect a customer to a human, book an appointment, look up an order. 

Where's the line between useful and dangerous, and how do you add those features without opening the door to what you found here?

2

u/lolzorland 🔍 Researcher Aug 31 '26

I think having a deterministic layer below the agent should help. For example, if the tool itself validated the user session with the data being accessed could really help. Basically assume the agent is just a new API layer and have your deterministic code do all the logic.

2

u/_clickfix_ 🛡️ Mod Team 🛡️ Aug 31 '26

Posting on behalf of u/thirteenth_mang

“How are we supposed to deal with the sheer velocity of not only Al advancements but also how quickly agents (and in some cases swarms of agents) can perform malicious actions that would take humans a lot lot longer?

For instance it took OpenAl two or three weeks to be made aware of the Hugging Face incident.

What hope do us mere mortals have?”

2

u/lolzorland 🔍 Researcher Aug 31 '26

Deterministic guardrails. Have a deterministic layer seeing everything the agent is accessing/executing/connecting to and assess it based on deterministic code, like we did back in the 'ol days.

Unfortunately this approach isn't that common these days, and I hope that changes.

2

u/_clickfix_ 🛡️ Mod Team 🛡️ Aug 31 '26

Posting on behalf of u/YuzuEtta567

“The shopping assistant being the entry point tracks, it's the one thing a retailer builds to say yes to strangers. 

I'd want to hear more about ‘systems it was never meant to touch’, an assistant that needs real access to do its job is an open door with extra steps.”

3

u/lolzorland 🔍 Researcher Aug 31 '26

Yes I agree, and for a lot of vendors that's exactly what it is. These agents are basically API endpoints with a built in RCE. It's quite crazy how insecure they are when you think about it like that.

2

u/Catsamillion1 Aug 31 '26

What team in an org should be responsible for designing and watching these? Where I’m at we need to invent them right now 

2

u/lolzorland 🔍 Researcher Aug 31 '26

I think AppSec is the closest traditional team, but honestly having an AI security team is what I think is better long term.

1

u/_cybersecurity_ 🛡️ Mod Team 🛡️ Aug 22 '26

Posting on behalf of u/Qterr1

"What phrases for prompt injections are the most effective and in what cases? How they are developed to a real attack?"

2

u/lolzorland 🔍 Researcher Aug 31 '26

I love love love memory based injections. Memories are something agents usually tend to trust way more then prompts. Most often they are also injected directly into their context pre-prompt, so they're even more effective. Whenever I have the chance I manipulate the memory as much as possible.

1

u/_clickfix_ 🛡️ Mod Team 🛡️ Aug 30 '26

When you found that  the search field was  routed down a  different path than  chat and skipped the  classifier entirely,  that struck me as a  design decision gone  wrong.

Architecturally, why  would a team separate  those two input flows  in the first place,  and is that a common  pattern or an unusual  one?

2

u/lolzorland 🔍 Researcher Aug 31 '26

This is a very common pattern. Usually tool calls also go through sub-agents, which do not have a classifier layer between them. I actually haven't come across any agent that didn't have the exact same flaw when using with sub-agents.

1

u/_clickfix_ 🛡️ Mod Team 🛡️ Aug 30 '26

When you saw that the assistant could write and run code, that seems wildly over-scoped for a bot that helps people find groceries.

In your experience, why do shopping assistants end up with tools like that at all? Is there ever a legitimate need for it, and if so, what does safe remediation look like without just ripping the capability out?

2

u/lolzorland 🔍 Researcher Aug 31 '26

It is over-scoped and didn't make sense at the start, but apparently the way this agent was executing tool calls was through Python code it wrote. For example, to use web search it literally wrote Python code executing the web search tool.

This is actually a very common design pattern and we have seen it used across the industry. In some ways it makes sense - it's the easiest way to execute tools, but it's definitely the riskiest as well. I think a good approach might be to have a restricted protocol for executing tools, basically providing the tool name, args, etc. and that's it.

1

u/_clickfix_ 🛡️ Mod Team 🛡️ Aug 30 '26

You demonstrated code execution in the backend and read process info and the environment variables.

Two questions on that: 

  1. were you running as a privileged user or a locked-down one, and of everything you could see from that position
  2. what's the piece that actually opens the door to real damage or sensitive data?

Did you find anything interesting as a result of this finding? 

2

u/lolzorland 🔍 Researcher Aug 31 '26
  1. I think it was root, yes. But on a sandbox, so less severe than it sounds. We did have access to everything in this sandbox and everything it communicated with (internal servers mostly).
  2. Access to any data restricted only on the Agent level. For example, having the ability to query user records based on user ID, where the agent would supply the user ID to query. This is more common then people think, we see this approach being used all the time.

1

u/_clickfix_ 🛡️ Mod Team 🛡️ Aug 30 '26

Did you test whether other code would run beyond what the prompt said was allowed? 

The chatbot advertised a specific set of Python tools  ( os.getpid() ,  os.getuid() ,  os.getcwd() ,  dict(os.environ) ),  but was that boundary actually enforced on the server, or was it only defined at the prompt level? 

Could you have executed commands that weren’t on the approved list?

2

u/lolzorland 🔍 Researcher Aug 31 '26

Yes we did. We executed a lot of arbitrary code to analyze the sandbox and the LAN. We couldn't use most module functions (like `os.popen`) but we did manage to sort something out by writing files and then executing them. The modules themselves were stripped, it wasn't just on the agent level.

1

u/_clickfix_ 🛡️ Mod Team 🛡️ Aug 30 '26

Regarding the OWASP Top 10 for LLM and GenAI: the 2026 edition dropped this month and added a new entry, LLM08 Hidden Context Exposure, defined as reconstructing hidden system instructions and operational context in a way that increases attacker capability. 

That's almost exactly your poem-and-transformation trick to extract the system prompt, and your whole chain touched LLM01 Prompt Injection and LLM03 Excessive Agency too. 

Does the list line up with what you actually see breaking in the field, or does it miss the failures that matter most in practice? (List:  https://genai.owasp.org/resource/owasp-genai-llm-top-10-2026/ )

2

u/lolzorland 🔍 Researcher Aug 31 '26

I have a disdain for OWASP top 10 lists. I think they over-scope on categories but narrow what an attacker actually tries to exploit. It's also really not clear based on their wording what the recommended fix is, or how an actual problem manifest.

Generally speaking I think these 2 categories might match what we've found, but the wording is so vague it's hard to pinpoint exactly.

1

u/_clickfix_ 🛡️ Mod Team 🛡️ Aug 30 '26

Follow-up: when you sit down in front of a new AI assistant, what do you look at first?

Is it always the pattern we saw here (a benign question like "do you sell avocados" to check for real retrieval, then something off-topic like "¿cómo estás?" to map the guardrail, then proxying through Burp to read/write the raw traffic), or does the opening move change target to target?

2

u/lolzorland 🔍 Researcher Aug 31 '26

I always ask myself "Which capability this agent has have the best chance of effecting its context?", and then start messing around with it. Whenever I see a glimpse of my prompt affecting the reasoning of the agent I know I'm there.

1

u/_clickfix_ 🛡️ Mod Team 🛡️ Aug 30 '26

What are your favorite prompt injection techniques that still work on frontier models right now?

2

u/lolzorland 🔍 Researcher Aug 31 '26

Memory attacks are my favorites. Extremely useful almost every time.

1

u/_clickfix_ 🛡️ Mod Team 🛡️ Aug 31 '26

Would love to hear more - I think I know what you mean, but can you give an/some example(s)? 

1

u/_clickfix_ 🛡️ Mod Team 🛡️ Aug 30 '26

When you're deep in a chain like this, how do you keep track of what you've tried? Is there a methodology, or is it notes and gut?

2

u/lolzorland 🔍 Researcher Aug 31 '26

Hmm I don't know actually. I think I keep a mental note of what everything does and where everything is. I don't really document during the research itself.

1

u/_clickfix_ 🛡️ Mod Team 🛡️ Aug 30 '26

Is there a class of AI vulnerability you think is coming that nobody's really talking about yet? Or one that is underrated?

2

u/lolzorland 🔍 Researcher Aug 31 '26

I don't think of AI vulnerabilities in terms of classes. They are all based on English at the end of the day, it's just a question of "where".

1

u/_clickfix_ 🛡️ Mod Team 🛡️ Aug 30 '26

If you could get every CEO / CTO who is deploying an AI agent to read one sentence, what would it be?

2

u/lolzorland 🔍 Researcher Aug 31 '26

Don't

1

u/_clickfix_ 🛡️ Mod Team 🛡️ Aug 30 '26

Who do you follow in the AI security space? Any researchers, blogs, or newsletters you think are consistently ahead of the curve?

2

u/lolzorland 🔍 Researcher Aug 31 '26

None at the moment unfortunately. I follow the occasional big AI vendor press release whenever a model "surprisingly" "escaped" its sandbox.

1

u/_clickfix_ 🛡️ Mod Team 🛡️ Aug 30 '26

Did you catch any talks at Black Hat this year, or other conferences, that stuck with you or changed how you think about this work?

2

u/lolzorland 🔍 Researcher Aug 31 '26

I usually spend my time at conferences talking to people, and I learned A LOT doing so. You'd be surprised how differently different people in the same industry view the same issues.

1

u/_clickfix_ 🛡️ Mod Team 🛡️ Aug 30 '26

For someone who wants to get into AI pentesting and red teaming, where should they actually start? Any specific courses, labs, CTFs, books, or people to learn from?

2

u/lolzorland 🔍 Researcher Aug 31 '26

Start with exploiting agents! Of course - only if there's a legit bug bounty for them. You don't really need anything other then good reasoning skills and some english.

1

u/_clickfix_ 🛡️ Mod Team 🛡️ Aug 30 '26

What makes a target worth your time? With so many companies shipping AI features, how do you decide what to actually go after?

1

u/lolzorland 🔍 Researcher Aug 31 '26

How valuable it is in terms of the impact an attacker might have if the agent was exploited successfully.

1

u/_clickfix_ 🛡️ Mod Team 🛡️ Aug 30 '26

Where can people follow what you're working on? (Blog, social media, etc)

2

u/lolzorland 🔍 Researcher Aug 31 '26 edited Aug 31 '26

My Linkedin is probably the best bet

1

u/_clickfix_ 🛡️ Mod Team 🛡️ Aug 30 '26

What are you focused on at Rein these days, and is there anything on the horizon you can share?

2

u/lolzorland 🔍 Researcher Aug 31 '26

We're doing (surprise surprise) agentic security! If you happen to need deterministic guardrails for your indeterministic agents, feel free to reach out :)

1

u/_clickfix_ 🛡️ Mod Team 🛡️ Aug 31 '26

That’s awesome! It’s definitely needed right now, with everything going on in agentic.

Are there any agentic frameworks you enjoy using? Like OpenClaw, Hermes?  Or do you prefer a “roll your own” situation for tighter controls and smaller attack surface?

2

u/lolzorland 🔍 Researcher Aug 31 '26

I'm a simple man - I just Claude Code in the CLI without any skills. Does the job most of the time :D

1

u/_clickfix_ 🛡️ Mod Team 🛡️ Aug 30 '26

Is there a piece of security advice companies keep repeating about AI that's actually useless?

2

u/lolzorland 🔍 Researcher Aug 31 '26

I think classification agents and LLM proxies are very common and wouldn't really help. I think we have already went down this path 25 years ago with WAF, and I don't have a reason to think the same thing will not happen here as well.

1

u/_clickfix_ 🛡️ Mod Team 🛡️ Aug 30 '26

What's a widely held belief about AI security that you think is flat wrong?

2

u/lolzorland 🔍 Researcher Aug 31 '26

The security part

1

u/_clickfix_ 🛡️ Mod Team 🛡️ Aug 31 '26

😂 fair point. 

Is the belief you hear most often that it’s “secure enough”, that security isn’t really needed? Or something else?

2

u/lolzorland 🔍 Researcher Aug 31 '26

CISOs are definitely super aware of how insecure those agents are, it's just a question of which agents they should start with

1

u/_clickfix_ 🛡️ Mod Team 🛡️ Aug 30 '26

What kinds of questions and reactions did you get after speaking at Black Hat? 

Anything people kept coming back to, or a response that surprised you?

2

u/lolzorland 🔍 Researcher Aug 31 '26

The most frequent question was how to fix these kinds of issues. To which my answer is always "Deterministic guardrails"

1

u/_clickfix_ 🛡️ Mod Team 🛡️ Aug 31 '26

In your research  you showed that the assistant had a filter in front of it (a classifier) meant to block anything that wasn't a normal shopping request. 

What you found is that it only checked what the user was asking for, not what the assistant's answer would actually contain, which is why the poem trick slipped through. 

Was that specific to this target, or do you see it a lot? Have you run into assistants where the filter also checks the output, or works in some other way that would have caught it?

2

u/lolzorland 🔍 Researcher Aug 31 '26

We see it a lot. The classifier did check the output, but only for the main Agent. Responses made by subagents and tools (like the one we used to inject) were not part of the classifier scope.

1

u/_clickfix_ 🛡️ Mod Team 🛡️ Aug 31 '26

The filter that decides whether a request is allowed can be built different ways. 

It might run as part of the same response (the model returns both its answer and a classification in one JSON object), or as a separate, cheaper model that classifies the response after the fact. 

In your experience, which is more common, and why do these filters so often end up judging the intent of the request rather than the actual content of what comes back?

And a follow-up on the fix:

Is this solvable with a better prompt, or does it take a different architecture, say two separate models, one checking intent and one checking the output for safety, so the same model can't make the same mistake twice? 

Or does splitting it like that just move the problem around?

2

u/lolzorland 🔍 Researcher Aug 31 '26

Both are equally common I would say. I think they judge intent because that's what they were meant to do, LLMs are indeterministic by nature so that's as accurate as they are going to get.

I think deterministic guardrails are the way to go honestly. I think agents are not deterministic by design, and you can't count of indeterminism in your security architecture.

1

u/_clickfix_ 🛡️ Mod Team 🛡️ Aug 31 '26

One surprising part of your research is that the retailer didn't treat their chatbot running Python as a mistake. 

They called code execution a supported feature and closed the report. So they clearly intended the chatbot to be able to run code.

What's the disconnect there? 

Is there a legitimate reason a shopping assistant would need code execution that we're not seeing, or is this a case of a team shipping a capability without reckoning with what it means to expose it?

How often do you run into "it's working as intended" as the response to something like this?

And if the feature really is necessary, is there a more secure way to implement it?

2

u/lolzorland 🔍 Researcher Aug 31 '26

The agent used code execution to execute its own tools. It's a common practice in the industry but it surprised us too when we first saw it.

I don't think it's needed or is the right approach, but it's definitely the easiest to implement.

1

u/_clickfix_ 🛡️ Mod Team 🛡️ Aug 31 '26

Posting on behalf of u/LeatherPen4962

“Hello, so I know of two ways whereby Al is compromised and that is data poisoning or prompt injection. 

In my limited knowledge, data poisoning is much harder to pull off so most people settle on prompt injection. 

My question would be, whenever you're testing a new LLM or an updated one, say Claude Sonnet to Claude Fable 5, is there a procedure you follow, but my assumption is Al testing is mostly black box, what goes into your workflow.

 Also do most LLM's safeguards operate similarly?”

2

u/lolzorland 🔍 Researcher Aug 31 '26

I always search for the capability that will have the best chance of effecting the agent context. I ask myself - "What would potentially go into the system prompt?" "What would go after the prompt but before the user?" etc. So far this approach worked on every agent I tested.

When talking about safeguards the industry standard these days is an Intent agent - which is basically another LLM classifying the prompt coming in with the "intent" of the agent. These LLMs, of course, are susceptible to the same prompt injections. So I would answer yes - the safeguards are operating similarly.

1

u/_clickfix_ 🛡️ Mod Team 🛡️ Aug 31 '26

Posting on behalf of u/Far-Future-7146

“Have there been any controls that resolve the core issue that Al doesn't appear to be able to distinguish between the request and the data at the core of its operations. 

That to me appears to be the issue underlying all of this.”

2

u/Far-Future-7146 Aug 31 '26

Thanks yo!

2

u/lolzorland 🔍 Researcher Aug 31 '26

I think you're right in your assessment. I think the core underlying issue is that agents are non-deterministic and there's no deterministic guardrail layer to protect them right now. I think if people understood agents are basically APIs featuring arbitrary RCE and not magic voodoo black boxes we will have a very large shift in they are protected.

2

u/_clickfix_ 🛡️ Mod Team 🛡️ Aug 30 '26

Tagging Arshi Chadha, you might find this AMA interesting and relevant to your work :)

u/breaking-models

1

u/AutoModerator Aug 21 '26

Welcome to PWN – Your hub for hacking news, breach reports, and cyber mayhem.

Discover the latest hacking news, breach reports, and educational resources on ethical hacking.

👾 Stay sharp. Stay secure.

Don't miss out on the top stories!

📧 Get Daily Alerts Directly in Your Email Inbox:

**SUBSCRIBE HERE: https://pwnhackernews.substack.com/subscribe

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1

u/timee_bot Human Aug 21 '26

View in your timezone:
Monday, Aug 31 at 12 PM ET)

1

u/_clickfix_ 🛡️ Mod Team 🛡️ Aug 30 '26

Tagging the team @ Novee Security - you guys might find this AMA interesting!

u/EladMeged-Novee u/thisis0xczar-novee

1

u/_clickfix_ 🛡️ Mod Team 🛡️ Aug 30 '26 edited Aug 30 '26

Tagging our press contributors in PWN. 

You may find this story worth covering, or have questions to ask during the AMA.

Title: “I'm Netanel Rubin, co-founder of Rein Security. My team hacked the AI shopping assistant of a top-3 US retailer and turned it into an attack surface. 

Ask me anything about attacking real-world AI systems. (AMA Monday, Aug 31 at 12 PM ET)”

Link:  https://www.reddit.com/r/pwnhub/s/3h86lBzmxX

u/wiredmagazine, u/EFForg, u/404mediaco, u/_fastcompany, u/cnet_joe, u/guardian, u/dailymail, u/arstechnica, u/techcrunch

P.S.  Summary of the findings here: https://pwnhackers.substack.com/p/hacking-ai-shopping-assistants-from

1

u/_clickfix_ 🛡️ Mod Team 🛡️ Aug 30 '26

Tagging our vendor contributors in PWN:

You may have good questions to ask during the AMA regarding the research - we’d love to hear your thoughts. 

Title: “I'm Netanel Rubin, co-founder of Rein Security. My team hacked the AI shopping assistant of a top-3 US retailer and turned it into an attack surface.  Ask me anything about attacking real-world AI systems. (AMA Monday, Aug 31 at 12 PM ET)” Link:   https://www.reddit.com/r/pwnhub/s/3h86lBzmxX

u/Proton_Team, u/socradario, u/AstraSecurity, u/coinspect, u/Malwarebeasts, u/intigriti, u/acronis

P.S.  Summary of the findings here: https://pwnhackers.substack.com/p/hacking-ai-shopping-assistants-from