For years, our application worked, grew and satisfied its customers. Like many products built quickly, it had been designed to meet business needs, not to withstand an attacker. I didn't really realize it. The first security audit, at the end of 2019, made it very clear.
The wake-up call
We had commissioned a penetration test from a specialized firm. The results were unequivocal: critical vulnerabilities, quickly exploitable, that had never been identified. A perfectly functional application can remain highly exposed if security isn't built in from the design stage.
Part of the explanation was structural. Our product had been built without a framework. The protections a modern framework provides "by default" (CSRF tokens, automatic escaping, session handling) existed only if we had written them ourselves. And we hadn't written all of them.
I chose to see that audit not as a failure, but as the best training we had ever received.
Turning a report into an action plan
The auditors spent a week in our offices. They explained the fundamentals, then tested with us, in real conditions, the protections we were putting in place. The whole team was involved and trained: that was the condition for security to become a collective reflex rather than one person's topic.
Then we had to rework the code, across thousands of files, for months, without interrupting the service:
- CSRF: tokens on every sensitive action.
- XSS: systematic escaping of displayed data.
- Permissions: access controls checked server-side, on every request.
- Authentication and secrets: hardened sessions and encryption of sensitive data.
- Backups: split per customer, encrypted, reachable only over SSH and protected against deletion.
With no ready-made framework, I had to understand each mechanism in depth to design it and fit it into a legacy codebase. That's probably where I learned the most about application security.
Later audits: improving… and staying humble
Later audits, run by other firms, confirmed the progress: the alert level was nothing like before. Then, in 2025, a new auditor found new vulnerabilities. They had been there for a long time, just less visible. Once again it took several months of work to address the most critical ones.
That second, quieter shock taught me something as important as the first:
Security is never a final state. The richer a product, the more its attack surface evolves, and a fresh pair of eyes will always find something.
What I would do differently from day one
- Build security in from the design stage, not after the first audit. Fixing afterwards costs months; thinking about it upfront costs hours.
- Rely on proven building blocks for what isn't the product's core value: a framework or well-known libraries provide baseline protections you don't need to reinvent.
- Audit regularly, and change auditors: every team has its methods, and diverse perspectives surface different vulnerabilities.
- Prioritize by criticality: not everything can be fixed at once, but major risks can't wait.
- Explain to leadership that an audit finding vulnerabilities isn't a failure: that's its job. Security needs sustained budget and time, not a one-off effort.
Key takeaways
- Software that works well isn't necessarily secure software.
- An audit is accelerated training: welcome it rather than endure it.
- Security is the whole team's business, not one person's.
- It is managed over time, like quality or technical debt.
Today, when I design a feature, I no longer ask only "does it work?", but also "how could someone abuse it?". That may be the deepest change these audits produced in me.