← Latest papers
💻 computer science

The Impact of AI-Assisted Development on Software Security: A Study of Gemini and Developer Experience

This study of 159 developers reveals that while Google's AI tool Gemini does not significantly alter code security outcomes regardless of its version (free or paid), a developer's own programming experience remains the critical factor in producing secure software and cannot be fully replaced by AI assistance.

Original authors: Nadine Jost, Benjamin Berens, Manuel Karl, Stefan Albert Horstmann, Martin Johns, Alena Naiakshina

Published 2026-03-18
📖 5 min read🧠 Deep dive

Original authors: Nadine Jost, Benjamin Berens, Manuel Karl, Stefan Albert Horstmann, Martin Johns, Alena Naiakshina

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you are building a house. You have a team of carpenters, but there's a massive shortage of skilled workers. To keep up with demand, you decide to hire a super-fast, super-smart robot assistant (let's call him "Gemini") who can draft blueprints and cut wood in seconds.

The big question for the construction industry is: Can this robot replace the need for experienced human carpenters, especially when it comes to making the house secure against burglars?

This paper is a scientific experiment that tried to answer that question. Here is the breakdown of what they did and what they found, using simple analogies.

The Experiment: The "Linktree" Challenge

The researchers gathered 159 freelance developers (think of them as professional carpenters) and gave them a specific task: Build a simple website where users can sign up, log in, and manage a list of links (like a digital business card).

They split the carpenters into three groups:

  1. The Solo Group: No robot help. Just them and their own skills.
  2. The Free Robot Group: They could use the free version of Google's AI, Gemini.
  3. The Premium Robot Group: They could use the paid, "Advanced" version of Gemini.

They then inspected the finished websites for five common "security holes" (like unlocked doors, broken locks, or weak foundations):

  • XSS: Letting bad guys inject their own code into your site.
  • CSRF: Tricking a user into doing something they didn't mean to do.
  • Bad Input Validation: Accepting weird data that breaks the system.
  • SQL Injection: Sneaking database commands through the front door.
  • Password Storage: Storing passwords in plain text (like writing your PIN on a sticky note).

The Big Findings

1. Experience is King (The Veteran vs. The Rookie)

The Result: The most experienced developers built the safest houses, regardless of whether they used a robot or not.
The Analogy: Imagine a master carpenter who has built 1,000 houses. Even if they use a basic hammer, they know exactly where to put the nails so the roof doesn't leak. A rookie, even with a high-tech laser cutter, might still build a wobbly wall because they don't understand why the wall needs to be strong.
Takeaway: AI is a great tool, but it cannot replace the deep, gut-level intuition that comes from years of experience. If you are a junior developer, the AI can help you learn, but it can't do the critical thinking for you.

2. The Robot Didn't Make the House Safer (The "Magic Wand" Myth)

The Result: Surprisingly, the groups using the AI (both free and paid) did not build significantly safer websites than the group working alone.
The Analogy: You might think giving a carpenter a "magic wand" that auto-fixes errors would make the house bulletproof. But in this study, the magic wand just handed them a blueprint that had some hidden traps. The developers had to catch those traps themselves.
Takeaway: AI generates code quickly, but it often generates code with security holes. It didn't magically fix the security problems; it just moved the work around.

3. Free vs. Paid: Is the "Premium" Version Worth It?

The Result: There was no difference in security between the free version of Gemini and the paid "Advanced" version.
The Analogy: It's like buying a "Deluxe" box of crayons versus a "Basic" box. You might expect the Deluxe box to have colors that are safer or brighter, but when it came to drawing a secure house, both boxes produced the exact same shaky lines.
Takeaway: Companies might not need to spend extra money on the premium AI subscriptions if their main goal is just to make software more secure. The free version was just as good (or just as bad) as the paid one.

4. The "Trust" Trap

The Result: Developers generally trusted the AI, but the ones with security experience were more skeptical.
The Analogy:

  • The Novice: "The robot said the door is locked, so I believe it!" (They might miss a hidden backdoor).
  • The Veteran: "The robot said the door is locked, but I'm going to kick it to make sure." (They verify the AI's work).
    Takeaway: The more experienced you are, the less you blindly trust the AI. You use it as a starting point, then you double-check its work.

Why Did Some People Do Better with AI?

Interestingly, developers who had no prior security experience actually did slightly better when they used the AI than when they worked alone.
The Analogy: A rookie carpenter who has never seen a lock might forget to install one entirely. But if a robot says, "Hey, you need a lock here," the rookie follows the instruction and ends up with a locked door. The AI acted as a safety net for the beginners, reminding them of things they forgot.

The Final Verdict: What Should We Do?

The paper concludes with a warning for the software industry:

Don't fire your senior developers and replace them with AI.

If companies think AI can do the job of a skilled security expert, they are making a dangerous mistake.

  • AI is a Co-Pilot, not the Captain: It's great for speeding up routine tasks and helping beginners learn.
  • Human Expertise is Non-Negotiable: You still need experienced humans to look at the AI's work, spot the hidden traps, and ensure the "house" is actually secure.
  • Don't Pay for "Better" Security: If you are just looking for better security, the free version of AI is likely just as effective as the expensive one.

In short: AI is a powerful assistant, but it's not a substitute for a skilled craftsman. If you want a secure house, you still need a human who knows how to build it.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →