On November 30, the federal government said it had detected unauthorized activity on its networks over several weeks, apparently by attackers using AI-enabled tools. Global Affairs Canada found a breach in NEXCOL, the system that processes import and export permits, on November 25. The service was taken offline and restored on November 28. The government has not named the attackers or said whether any information was taken.
We are not writing this to criticize anyone. The teams who detected this, disclosed it publicly and restored a national service within days did hard, unglamorous work. We are also not writing it to say AI is the problem. We use AI every day, including to build our own product.
What we want to talk about is a gap this story makes very visible: the gap between building fast and building right.
Speed now works for everyone
People in security have started calling the last stretch “Black October.” In October, two critical flaws in PHP, the language behind roughly 70% of websites, led government agencies in Europe to take sites offline while they applied fixes. Some Canadian government pages went offline for the same reason.
The detail worth noticing is how those flaws were found. Two security firms said they identified them independently with help from AI, and one had been working on a fix since early August, well before anything went public. The same kind of tool helped defenders find a serious problem and helped attackers move faster once it was known. The tool itself is neutral. What matters is the people, the process and the intent around it.
Fast is not the same as finished
It has never been easier to produce working software. A small team can now build in a week what used to take months. We think that is good news, and we would not want to go back.
But “it works” is a low bar. When Veracode tested more than 100 language models on 80 coding tasks, 45% of the generated code contained known security flaws, and the largest models did no better than the small ones. Much of that code would look finished to anyone who did not know what to check.
That is not a reason to stop using AI to write code. It is a reason to stop treating code that runs as code that is done.
What building it right actually takes
None of this is new. It is the same work good teams have always done. AI just makes it faster and more tempting to skip.
- Assessment. Before you build, ask who would want to break this, what they would gain, and what happens to real people if they succeed. A permit system and a recipe app do not need the same answers.
- Engineering knowledge. If you cannot explain what a piece of generated code does, you cannot defend it. Someone on the team has to understand the system well enough to know where it is weak.
- Best practices. Apply security patches quickly. Give each part of the system only the access it needs. Keep logs you can actually read. Have a second person review changes. This work is not exciting, and it is still most of the job.
- Authenticity. Be honest about what your system does not do. Nothing is bulletproof, and claiming otherwise makes it harder for customers to plan for the day something fails.
- Empathy. Behind every record in a permit system is a business waiting on a shipment. Behind every emergency patch is a team working late. Build with those people in mind, not only the people who will see the demo.
How we try to apply this ourselves
We are a small Canadian team, and we use AI tools in how we build. They make us faster, and we are glad of that. They do not make us immune to mistakes. No one is.
What we try to do is keep the slower habits alongside the speed. We keep a written list of known weaknesses in our own platform and work through it. We would rather tell a client what our product cannot do than have them find out later. Some of us spent years writing PHP, so October was a useful reminder that mature, trusted software can still hold serious surprises.
In June, the Canadian Centre for Cyber Security urged organizations across Canada to act on the cyber risks linked to frontier AI, including risks that start inside an organization, such as unapproved tools and exposed data. That advice applies to vendors as much as to buyers, and it applies to us.
Building fast with AI is possible now, and that will not change. Building it right still takes skill, judgment and care for the people on the other end, and that is the standard we try to hold Discreetly AI to.
Building with AI in a regulated industry?
Discreetly AI is a private document intelligence platform that runs on infrastructure your organization controls. We are happy to have an honest conversation about what it does and does not do.
Get in touch