canopticonSearchFollow

AI finds the flaws in hours. Ottawa's own audits show how far behind it is on fixing them

On 30 November, the day departments owed Treasury Board a list of their critical services under a new directive on AI-era cyber attacks, Ottawa disclosed AI-assisted intrusions in its networks; an export-permit system had about 125,000 documents affected. The directive says AI collapses the time between a flaw's disclosure and its use. The government's own audits say what has to be fixed in that time: 38% of its applications rated healthy, no complete inventory of its devices, and a project to see every device that began in 2017 and runs to at least 2027.

Chris Telford, 10 min read, 17 sources

The short version

Found in hours, fixed in years.

  • AIa flaw found and used within hours
  • Ottawa's rules48 hours to a year to patch
  • its audits38% of applications healthy, no full device inventory

AI has made finding and using software flaws a matter of hours, and the federal government's own audits show a repair backlog measured in years: 38% of its applications rated healthy, no complete list of what needs patching, and a project to see every device running from 2017 to at least 2027.

Say it in thirty seconds

On the thirtieth of November, Ottawa said attackers using AI tools had been in its networks for weeks. An export-permit system had about a hundred and twenty-five thousand documents affected. The same day, departments owed Treasury Board a list of their critical services under a new directive about AI attacks. That directive says AI shrinks the time between a flaw becoming known and someone using it. The Cyber Centre says to assume it takes hours. The government's own auditors say what has to be fixed in that time: only thirty-eight percent of its applications are rated healthy, it has no complete list of the devices that need patching, and a project to see all of them started in 2017 and won't finish before 2027. Finding the flaws has become fast. Fixing them is still slow.

The thesis in full

Thesis. AI tools have made finding and using a software flaw fast and cheap: the average time from a flaw's disclosure to its use fell from 63 days in 2018 and 2019 to five days in 2023, the Canadian Centre for Cyber Security now tells organizations to assume a vulnerable system can be found and exploited within hours, and in the first month of one AI scanning programme partners found more than ten thousand serious flaws while only 75 of the first 530 disclosed to open-source maintainers had been patched. The hard part has moved to repair. On 30 November 2026, the day departments owed Treasury Board a list of their critical services under a directive written for this situation, Ottawa disclosed AI-assisted intrusions in its networks, including about 125,000 documents affected in Global Affairs Canada's export-permit system. The government's own audits describe what it has to repair: 38% of its business applications rated healthy in 2024-25, against a target of 40%; about a third of its 1,480 mission-critical applications in poor health; no complete inventory of the devices that need patching or are out of vendor support; a project to see every device that began in 2017 and is now due in 2027 at the earliest; and patch guidance that allows 48 hours for the worst flaws and two weeks for serious ones. Global Affairs itself was breached for about a month in 2024. How the intruders got in this time has not been said, and nothing published links the breach to an old system. This brief's reading is that AI has removed the cover that rarely studied, custom-built government code used to have, while repairs run on modernization schedules measured in years, so the exposure is the size of the backlog the audits describe.

How it's builtThe argument in 10 movesShow each move1Puzzle2Evidence3Evidence4Evidence5Evidence6Evidence7Limit8Objection9Claim10Conclusion
  1. PuzzleThe day departments owed Treasury Board their critical-services lists under an AI-era cyber directive, Ottawa disclosed AI-assisted intrusions[1] [2] [5]
  2. EvidenceThe Cyber Centre had warned for months: AI tools copied thousands of times, used by people with little skill, systems found and exploited within hours[1] [4]
  3. EvidenceExploitation has sped up while repair has slowed: five days to exploit in 2023, a 43-day median to fix, 75 of 530 AI-found flaws patched[10] [11] [12] [13]
  4. EvidenceOttawa's audits: 38% of applications healthy, a third of mission-critical ones in poor health, no inventory of what needs patching, device visibility not before 2027[6] [7] [8]
  5. EvidenceThe government's patch guidance allows 48 hours to a year, and says commercial scanners usually cannot check custom applications[9]
  6. EvidenceGlobal Affairs was breached for about a month in 2024, and the response was slowed by a seven-day wait for information[8] [16] [17]
  7. LimitHow the intruders got in has not been said, and nothing published ties the breach to an old system[2] [3]
  8. ObjectionThe government's strategy was judged sound, its sensors block trillions of events, and the directive is its answer[5] [8]
  9. ClaimAI removes the cover that rarely studied custom code had, while repairs run on schedules measured in years
  10. ConclusionThe exposure is the size of the backlog the audits describe; what each department listed on 30 November is the measure to ask for

On Monday 30 November, federal departments owed Treasury Board a list. Under a directive in force since 1 October, each had to name its most critical services so they could be protected first against attacks in what the directive calls the frontier artificial intelligence era [5]. That same day, the Office of the Chief Information Officer said the government had detected unauthorized activity in its networks over several weeks, that it appeared to involve AI tools, and that some public websites might go offline while security patches were installed [1]. The next day, Foreign Affairs Minister Anita Anand said a breach of the system Canada uses to issue export permits had affected about 125,000 documents and roughly 4,600 people and organizations [2].

The directive gives its own reason for existing: AI "collapses the window between vulnerability disclosure and exploitation" [5]. The government's audits, read beside it, say how much has to be fixed inside that window, and how slowly the fixing has gone.

1What happened

The warnings came first. On 29 September the Canadian Centre for Cyber Security reported suspicious activity against public websites, including the government's, with signs of AI agents at work [4]. An October bulletin described one campaign that went from choosing a target to privileged access in a cloud account in under three hours [4]. On 21 November the Cyber Centre said attackers were increasingly using automated, AI-enabled tools to find and attack internet-facing systems. The most common of them, ARTEX, an autonomous penetration-testing framework, had been copied more than 12,000 times before its developer closed the source on 8 October. The tools give people with limited skill abilities that used to take expertise, and the Cyber Centre told organizations to assume that vulnerable systems can be found and exploited within hours [4].

Global Affairs Canada detected unauthorized activity in New Export Controls Online, or NEXCOL, on 25 November, took it offline and restored it on 28 November [2]. Companies and individuals use it to apply for permits to export military and dual-use goods, signing in with a bank account or a GCKey password [2]. Anand said the attack "appears to be the result of malicious cyber threat actors using AI-enabled tools" [2]. Defence Minister David McGuinty said more than one department was affected and that the attack was contained; officials said a Department of National Defence recruitment site was also targeted; the government has not said how many departments were reached, which ones, how the intruders got in, or who they were [3]. Some public websites were taken down so patches could be applied [3]. The Cyber Centre's comment on the wave was plain: "While many of the underlying techniques and vulnerabilities are well known, AI helps threat actors find and use them more quickly, giving organizations less time to respond" [1].

Canada was not alone. The European Commission detected an attack on 22 October, and the UK's Department for Work and Pensions was disrupted in the last week of November by an attack its prime minister, Andy Burnham, said had likely used AI tools [1]. In October, governments and public bodies in the Netherlands, Finland, Denmark and France took websites offline after two flaws in PHP, a widely used web programming language, were found with the help of AI models; the flaws had sat in PHP's code for more than a decade, and about 1.5 million of 2.6 million hosts running PHP were on versions with no fix [14].

2The hard part has moved to repair

Attackers were getting faster before the new tools arrived. Mandiant measured the average time from a flaw's public disclosure to its first use by attackers at 63 days in 2018 and 2019, 44 days from 2020 to early 2021, 32 days in 2021 and 2022, and five days in 2023 [10].

Average days from a flaw's disclosure to its first use by attackers
  1. 2018–1963 days
  2. 2020–early 202144 days
  3. 2021–2232 days
  4. 20235 days

Mandiant's averages for flaws it saw exploited; 2023 excludes 15 outliers. The authors call the figures conservative, since they rest on the first reported exploitation.

Source: Mandiant (Google Cloud) [10]

Embed this chart

Paste this into your page. It shows the chart and credits the piece.

Since then, AI has sped up the finding itself. In the first month of Project Glasswing, a programme in which about fifty companies scan code with an Anthropic model, the partners found more than ten thousand high- or critical-severity flaws [11]. Of the first 530 serious flaws disclosed to open-source maintainers, 75 had been patched; a fix took two weeks on average; and some maintainers asked for disclosures to slow down because they could not keep up [11]. A Cloud Security Alliance research note drew the conclusion in June: "The primary security bottleneck has shifted from vulnerability discovery to vulnerability remediation" [12].

Repair, meanwhile, has slowed. Verizon's 2026 breach report found that the median time to resolve a vulnerability rose to 43 days from 32, and that only 26% of the flaws in the US government's list of those known to be exploited were fully remediated in 2025, down from 38% the year before [13].

That much has been said about software in general. The question for Canada is how much the federal government has to repair, and how fast it can.

3What Ottawa has to fix

The government's own auditors have measured it. In 2023 the Auditor General found that only 38% of the government's approximately 7,500 applications were considered healthy, and about a third of the 1,480 designated mission-critical were in poor health [6]. The share of healthy applications had risen from 33% in 2019; at that pace, 45% would be healthy by 2030, against a target of 60% [6]. "It has been more than 24 years since the government first identified aging systems as a significant issue," the report said, and "outdated systems are also more vulnerable to security breaches" [6]. Treasury Board's own results for 2024-25 put the healthy share at 38% again, short of its 40% target [7].

In October 2025 the Auditor General turned to cyber defence. Shared Services Canada and the Communications Security Establishment did not have a complete, current inventory of the government's IT, so Shared Services lacked a full picture of which devices needed to be patched or were no longer supported by a vendor [8]. A project to give that picture began in November 2017, was due in September 2024, and would need at least three more years, to 2027 [8]. A system to detect suspicious events and respond automatically, due by March 2023, was put on hold in June 2024 [8]. Of 85 organizations required to use Shared Services' protected internet connection, 63 were using it [8].

What the audits foundFigureSource
Business applications rated healthy38% in 2024-25, against a target of 40%[7]
Mission-critical applications in poor healthabout a third of 1,480[6]
Healthy applications by 2030 at the 2023 pace45%, against a target of 60%[6]
Inventory of devices needing patches or out of vendor supportincomplete[8]
Project to see every devicebegun 2017, now due 2027 at the earliest[8]
Automated detection and response systemdue March 2023, on hold since June 2024[8]
Required organizations using the protected internet connection63 of 85[8]
From the Auditor General's 2023 and 2025 reports and Treasury Board's 2024-25 results.
Download this table (CSV)
Embed this table

Paste this into your page. It shows the table and credits the piece.

4The clock in the rules

The government's patch guidance, from the Cyber Centre, suggests deploying a fix for the most severe flaws within 48 hours, for high-severity ones within two weeks, for medium ones within three months, and for low ones within a year [9]. It also notes that commercial scanners usually cannot detect flaws in custom-built or government-built applications, so those need assessments of their own [9]. The Cyber Centre's November advice measures exposure in hours [4].

The new directive asks for more: faster patching for internet-facing and other high-risk systems, replacing, isolating or retiring unsupported technology that cannot be patched, and onboarding every endpoint to Shared Services' endpoint visibility service [5], which appears to be the project the Auditor General found running to 2027. Its first deadline, the list of critical services, fell on the day the intrusions were announced [5]. The lists are not public. Treasury Board says it will verify public-facing systems from outside [5].

How fast departments patch now is hard to see from outside. The Canada Revenue Agency's internal audit of its own patch management, published in 2026, found that patches are deployed for critical and high-risk flaws; its detailed findings on timelines are redacted [15].

5Global Affairs, again

The department that runs NEXCOL has been here before. Its internal network was reached through its VPN from about 20 December 2023 until the breach was found on 24 January 2024, and employees were told their email and files on personal and shared drives might have been compromised [16]. The Privacy Commissioner opened an investigation [17]. The Auditor General later found that during an attack in that period it took seven days to request and pass on information the response needed, and that the lack of information sharing gave the attacker prolonged access to personal information [8]. Whether the two breaches are connected has not been said.

6The government's case

The Auditor General found the government's 2024 cyber security strategy sound and comprehensive, and its defences busy: the Communications Security Establishment's network sensors blocked about 2.4 trillion suspicious events in one year [8]. McGuinty said the November attack was contained [3]. The directive itself is the government's answer to the speed the Cyber Centre describes, written two months before the intrusions came to light [5]. Nothing published so far says that NEXCOL fell to an old or unpatched flaw, or that its software is among the applications rated unhealthy.

7What it adds up to

This brief's reading is that AI has changed which systems are exposed. Custom-built government software was protected in part by the effort it took to study it: commercial scanners mostly could not, as the government's own guidance says [9], and few attackers would spend weeks on code only one department runs. The tools the Cyber Centre describes do that work for people with little skill [4]. Repairs, meanwhile, run on modernization schedules measured in years: Benefits Delivery Modernization, the programme replacing the systems that pay federal benefits, began in 2017 at an estimated $1.75 billion, and the Auditor General found a possible delay of up to four years at an estimated $3.4 billion or more [6]. Read together, the audits put the exposure at the size of the backlog they describe. What each department listed on 30 November, and how long each fix on that list will take, is the measure to ask for.

8Sources

  1. The Associated Press. "Canadian government detects suspected AI-assisted cyberattack, warns some services may go offline." 1 December 2026, via St. Louis Public Radio. https://www.stlpr.org/npr/2026-12-01/canadian-government-detects-suspected-ai-assisted-cyberattack
  2. Wang, T. "AI-Enabled Hackers Breach Canada's Export Control System." GovInfoSecurity, 1 December 2026. https://www.govinfosecurity.com/ai-enabled-hackers-breach-canadas-export-control-system-a-33560
  3. The Hub Staff. "Ottawa won't say how many departments were hit in AI-assisted cyberattack." The Hub, 3 December 2026. https://thehub.ca/2026/12/03/ottawa-wont-say-how-many-departments-were-hit-in-ai-assisted-cyberattack/
  4. Canadian Centre for Cyber Security. "Cyber threat actors increasingly use automated and AI-enabled tools in cyber attacks." 21 November 2026. https://www.cyber.gc.ca/en/news-events/cyber-threat-actors-increasingly-use-automated-ai-enabled-tools-cyber-attacks
  5. Treasury Board of Canada Secretariat. "Direction on Government of Canada Cyber Security Readiness in the Frontier Artificial Intelligence Era." Effective 1 October 2026. https://www.canada.ca/en/government/system/digital-government/policies-standards/spin/direction-government-canada-cyber-security-readiness-frontier-artificial-intelligence-era.html
  6. Office of the Auditor General of Canada. "Report 7—Modernizing Information Technology Systems." October 2023. https://www.canada.ca/en/auditor-general/our-work/audit-reports/parl-oag-202310-07-e.html
  7. Treasury Board of Canada Secretariat. "Question Period Note: TBS' Departmental Results Report 2024-25." 2025. https://search.open.canada.ca/qpnotes/record/tbs-sct%2CTBS-2025-QP-12-00009
  8. Office of the Auditor General of Canada. "Cyber Security of Government Networks and Systems." Report 4, October 2025. https://www.canada.ca/en/auditor-general/our-work/audit-reports/cyber-security-of-government-networks-and-systems.html
  9. Government of Canada. "Patch Management Guidance." First published 28 September 2020, last modified 12 August 2026. https://www.canada.ca/en/government/system/digital-government/online-security-privacy/patch-management-guidance.html
  10. Charrier, C., & Weiner, R. "How Low Can You Go? An Analysis of 2023 Time-to-Exploit Trends." Mandiant, Google Cloud, 15 October 2024. https://cloud.google.com/blog/topics/threat-intelligence/time-to-exploit-trends-2023
  11. Anthropic. "Project Glasswing: an initial update." 22 May 2026. https://www.anthropic.com/research/glasswing-initial-update
  12. Cloud Security Alliance. "Project Glasswing: AI Discovery Outpaces Open Source Patching Capacity." Research note, 8 June 2026. https://labs.cloudsecurityalliance.org/wp-content/uploads/2026/06/CSA_research_note_glasswing_ai_vuln_patching_deficit_20260608-csa-styled.pdf
  13. Culafi, A. "Verizon DBIR: Enterprises Face a Dangerous Vulnerability Glut." Dark Reading, 2026. https://www.darkreading.com/threat-intelligence/verizon-dbir-enterprises-vulnerability-glut
  14. Reuters. "Government websites go dark after AI-discovered flaw sparks security scramble." 21 October 2026, via The Daily Record. https://thedailyrecord.com/2026/10/21/government-websites-go-dark-after-ai-discovered-flaw-sparks-security-scramble/
  15. Canada Revenue Agency. "Internal Audit – Patch Management." Audit, Evaluation, and Risk Branch, 2026. https://www.canada.ca/en/revenue-agency/programs/about-canada-revenue-agency-cra/internal-audit-program-evaluation/internal-audit-program-evaluation-reports-2026/ia-patch-management.html
  16. "Global Affairs data breach: VPN hacked for over a month." iPhone in Canada, 30 January 2024, reporting internal memos obtained by the National Post. https://www.iphoneincanada.ca/2024/01/30/global-affairs-data-breach-vpn-hack/
  17. Office of the Privacy Commissioner of Canada. "Investigation into a data breach at Global Affairs Canada." Announcement, 26 February 2024. https://www.priv.gc.ca/en/opc-news/news-and-announcements/2024/an_240226/

Cite this

Telford, C. (2026). AI finds the flaws in hours. Ottawa's own audits show how far behind it is on fixing them. Canopticon. canopticon.com/articles/ai-finds-flaws-in-hours