STAR Harness case study: securing AI-generated code for a European digital payments company

How a European Payments Company Secures AI-Generated Code at Pull Request Time

How an AI-first engineering team used Bright STAR Harness to move security testing into every pull request, cut remediation time from weeks to days, and keep pace with code written by AI coding assistants.

At a Glance

CustomerA European digital payments company
IndustryFintech, digital payments
Team3-person AppSec team supporting ~140 engineers in 18 product squads
ChallengePull request volume doubled after AI coding assistants were adopted, and insecure AI-generated code was reaching production
SolutionSTAR Harness in GitHub Actions, plus STAR Plugin for developers’ AI tools
Outcome85% of findings fixed before merge, mean time to remediate down from 5 weeks to 3 days

Download the case study (PDF)

The Challenge: AI Coding Assistants Doubled the Code, Not the Reviewers

The company builds consumer and merchant payments apps for the European market. Its Head of Application Security leads a three-person team that supports around 140 engineers in 18 product squads, each with its own security champion.

Once engineers adopted AI coding assistants, pull request volume grew by roughly 2x in a few months. Security reviews could not keep up. The team also saw AI-generated code repeat the same insecure patterns: missing authorization checks, weak input validation, and secrets left in test code.

“We needed security feedback inside the pull request, without becoming the team that slows delivery down.”

Head of Application Security

The existing setup could not close the gap:

  • Nightly static analysis produced so much noise that developers had largely stopped reading it.
  • Manual review only covered a fraction of pull requests.
  • An annual penetration test found issues months after the code shipped.

The Turning Point: A Missing Ownership Check

The annual pen test found that an AI-assisted refactor had removed an ownership check from an API endpoint. The change had passed both code review and the static scanner.

During a 3-week proof of concept on two repositories, STAR Harness flagged the same pattern at pull request time, on the team’s own code. That settled the decision.

The Solution: STAR Harness in Every Pull Request

STAR Harness runs in the company’s GitHub Actions workflows and tests each change before it is merged. Findings appear in the pull request with context and suggested fix guidance, so the developer who wrote the code can fix it while it is still fresh.

  • Fast setup: Adding STAR Harness to a repository took less than a day.
  • Guided rollout: With a reusable workflow template built together with the Bright team, the company reached 40 repositories in about 6 weeks.
  • Security in the IDE: STAR Plugin and the Bright MCP server let developers review findings and fixes from their own AI coding tools.
  • Quick tuning: Early noise from generated test fixtures and mock data was solved by tuning scope per repository in the first two weeks.

The Results: From 5 Weeks to 3 Days

Security moved from after merge to inside the pull request. Most issues are now fixed by the author before review, and the security team only looks at what squads escalate.

  • 85% of STAR Harness findings are fixed before the pull request is merged.
  • About 70% fewer findings dismissed as not relevant, compared with the old static tool.
  • 5 weeks to 3 days: Mean time to remediate for code-level issues dropped from 5 weeks to 3 days.
  • About 20 hours of security review time saved every week.
  • About 150 developer hours a month no longer spent triaging noisy findings.

The team postponed a planned extra reviewer role and now spends that time on threat modelling for new payment features and on its security champions program.

Real Example: Catching a Broken Authorization Check in a Refunds Endpoint

An AI-suggested change to a refunds endpoint dropped the check that a refund belongs to the merchant requesting it. This kind of flaw, known as broken object level authorization (BOLA), is a form of broken access control and is easy to miss in review because the code still works.

STAR Harness flagged it in the pull request. The developer fixed it in minutes, and it never reached staging.

“Before, that is exactly the kind of issue we would only have learned about from a pen test.”

Head of Application Security

Compliance: Evidence That Every Change Is Tested

Pull request results give the company a clear record that every change is security tested. The team uses this as evidence for PCI DSS secure development requirements and DORA ICT risk reviews, and answers merchant and partner security questionnaires faster.

Looking Ahead

“STAR Harness lets us ship at the speed AI gives us without handing our security decisions to the autocomplete.”

Head of Application Security

With testing built into every pull request, the company can keep adopting AI coding tools while giving developers verified findings where they already work, and giving the security team clear evidence for audits and customers.

FAQ

How do you secure AI-generated code?

Test it where it enters the codebase. STAR Harness checks every pull request, including code written by AI coding assistants, and shows findings with fix guidance before the code is merged. For practical tips, see How to Write Secure AI-Generated Code.

What is broken object level authorization (BOLA)?

BOLA happens when an application lets a user access or change an object, such as a refund or an account, without checking that it belongs to them. It is one of the most common API security risks.

How long does STAR Harness take to set up?

For this team, adding STAR Harness to a repository took less than a day, and 40 repositories were covered in about 6 weeks.

See how STAR Harness tests AI-generated code in your pull requests

Explore STAR Harness

Stop testing.

Start Assuring.

Join the world’s leading companies securing the next big cyber frontier with Bright STAR.

Our clients: