Ask a room full of people which layer of an app matters most, and somebody eventually says “the database.” That is the right answer, and this webinar segment is Ariel explaining why โ then showing exactly how attackers get to it, and what has to stand in their way. It is a security lesson aimed squarely at people who build with AI and have never had to think about what happens when a user types something nasty into a form.
The database is the memory, so it is the target
Ariel starts with the classic three-tier model: the UI (frontend), the business layer (server side), and the data layer. Every piece of software looks like this, whether it is a website, a desktop app or a smartwatch. The database wins the “most important layer” vote because it is what makes an app stateful. Close the browser and the UI is gone; the data is what remains.
He explains stateful versus stateless with an analogy anyone using AI will recognise: open Claude Code, work for an hour, close it, open it again and ask “remember yesterday?” โ it does not. That is stateless. The fix is a handoff document the agent reads next time. Your app’s database plays exactly that role for your users. And “database” does not have to mean a monster SQL server: for a small app, plain files or SQLite are perfectly fine. Even the big engines ultimately write to files; the server is just the engine that organises and serves them.
Why the UI is never allowed to touch the data directly
The natural question from the audience: if a REST API often just copies database rows back and forth, why not let the UI query the database directly? The answer is one word: security. Ariel points out that one of the first things anyone doing a penetration test checks is whether the well-known default database ports are open on a server (and he stresses this is illegal unless you own the system or were hired and authorised to test it). The big platform vendors assume developers will make mistakes, so they build a wall: server-side code that the UI must pass through before it ever gets near the data.
Between the frontend and the database sit the server-side layers, and the first of them is filters.
SQL injection, live
Ariel takes a simple sign-up form โ name, email, phone โ and asks: how do you know the person did not send you malicious code instead of a name? He splits attacks into two families: the social kind (phishing that tricks you into handing over your credentials) and the code kind, where crafted input makes your system do something it should not. He recalls the large Sony breach of years ago, which he describes as coming down to a missed SQL injection check.
Then the demo. A login query looks up a user where username = 'haim' and password = '1234'. Now type into the username field a quote, then OR 1=1, then -- to comment out the rest. The condition is always true, the password check is gone, and the query returns the entire users table. Append another statement and you can pull the schema too โ every table and column. When a participant asks whether that would really show up in his browser, Ariel opens the browser dev tools Network tab and shows the request payload and the response: yes, that is exactly where it would land.
The rule he wants everyone to tell their AI: every query must use SQL parameters (parameterised queries), so user input can never escape into the query itself. He also mentions command injection and buffer/stack overflows as cousins of the same idea, recommends practising on legal wargame sites like OverTheWire, and mentions completing a prompt-injection challenge that tricks an AI into revealing what it should not.
A story from a hacking course he took: another student used Google dorks to find a vulnerable site, got in with SQL injection and deleted its database. Ariel’s takeaway from that offensive course was that being a hacker is a full career of its own โ and he was not about to restart his career for it.
Filters: what the server must check
On top of a web application firewall (WAF) in front of the API, the code itself has to validate every field:
- A name contains only Hebrew or English letters and spaces โ no special characters, no keywords like
UPDATEorSELECT, no profanity. - An email must be a real, valid email address. A phone must be a phone number.
- If anything fails: block the request, tell the user, log it, and alert the developer that something suspicious happened.
And the line that should be tattooed on every vibe coder: client-side validation is a recommendation, not security. You hand the whole frontend to the user as a gift. Anyone can skip your nice form and send data straight to the API. If the server did not check it, nothing was checked.
How to make Claude Code build it this way
Asked how to get Claude Code to follow these layers, Ariel’s answer is practical: hand it the layer diagram, tell it to implement it โ and know enough to tell it what to implement. It is ongoing work: every new endpoint means reminding the AI that there is a filter layer and it needs updating, and defining what “name”, “email” and “phone” actually mean for your app.
He closes with real code from his metrology lab management project: regex rules defined per field for every model (digits only, digits and dashes, English letters only), and a permission filter in C# โ an attribute placed above a controller that checks the caller’s group, permission level and scopes before the request is even allowed to reach it. Only administrators get through to the admin controller; everyone else is thrown out.
๐ฅ Roast Corner
The xkcd strip about little Bobby Tables โ the kid whose name drops the school’s student table โ came out in 2007. Nearly twenty years later, in late August 2026, someone used a SQL injection flaw in the API of Medyc, a cloud platform Polish clinics use for medical records, to copy its database. The vendor noticed more than two weeks later, then told customers to assume the encrypted fields could be read anyway “because of how the code was built” (eBuilder Security). Encryption you have to apologise for is not encryption. It is a comment that says // TODO: security.
And now we have handed the keyboard to AI agents that can generate a thousand endpoints before lunch, each one a fresh opportunity to forget the word “parameterised.” Humanity spent two decades failing to learn one lesson. The machines will fail it at scale.
As for Ariel: he took an offensive hacking course, watched a classmate drop a real database, and walked away deciding that hacking is “a whole career” he is not starting over for. Translation: the man saw the dark side, checked the hourly rate, and went back to writing regex for calibration labs. The most dangerous thing he did in this webinar was type 1=1 in front of a live audience. Truly, the Darth Vader of input validation.
๐ค AI for Humans
In Chennai, the digital therapeutics company Rewin Health launched JADHU, an AI-powered daily life-skills platform for children, teens and adults with autism, ADHD and other learning differences. Its founder said too many families are told to wait โ for a diagnosis, for a therapy slot โ and the company’s own survey found that 83% of parents feel therapy does not carry into daily life.
JADHU puts personalised practice into the home: after an initial assessment it generates a new session every morning (two 30-minute blocks), with everyday scenarios like grocery shopping or riding a bus, on a phone, a tablet or a VR headset. A lightweight wearable sensor tracks physiological signals, and when anxiety rises the platform slows down and guides the learner through calming and breathing exercises. Therapists get objective data on what happened between sessions. Small daily wins, built for independence. Source: The Hindu.

๐ฌ Comments