South African website hacked six days after launch due to AI coding error

A business website was compromised after a free AI tool left an admin password in plain text within the site's code.

South African website hacked six days after launch due to AI coding error
Photo: iAfrica

A South African business had its new website hacked just six days after launch because an AI tool used to build it left the admin password exposed in the site's code. The client chose to use a popular, free AI tool instead of the Domains.co.za website builder. The site looked good but much of it did not work before it was gone.

The admin password was left in plain text in the code, meaning anyone could read it by inspecting the code with a browser's developer tools. No human had checked the code before the site went live.

Attackers run automated scans around the clock for mistakes AI tools make. AI-generated vulnerabilities can be found within hours of a site going live. Ian Jansen van Rensburg, head of security engineering for Africa at Check Point Software, said criminals specifically target sites built with Claude or Google's Gemini. He added that attackers' own AI tools can read and understand the code behind these sites.

Research from Veracode and several academic studies shows that nearly half of AI-generated code contains known vulnerabilities. This incident occurs as AI use grows in South Africa. Microsoft's latest AI Diffusion report ranks South Africa 46th of 147 economies for generative AI usage as of March 2026, which is the highest in Africa.

Ravi Bhat, commercial solutions and AI officer at Microsoft South Africa, said local AI usage had risen to more than 23%. South Africa has more than 500,000 developers, alongside Egypt and Nigeria, and AI use among developers is growing. Many developers now rely on tools such as Anthropic's Claude Code to speed up coding and fix bugs.

Key facts

  • A South African website was hacked six days after launch because an AI tool left an admin password in plain text.
  • South Africa ranks 46th of 147 economies for generative AI usage as of March 2026.
  • Nearly half of AI-generated code contains known vulnerabilities.

Three perspectives

Neutral

South Africa ranks 46th of 147 economies for generative AI usage as of March 2026.

Positive

South Africa has more than 500,000 developers and AI usage has risen to more than 23%.

Negative

Attackers use AI tools to find vulnerabilities in AI-generated code at machine speed.

Your week in news, every Wednesday

The biggest stories of the week for your edition, in your inbox every Wednesday morning, your time. Free, and you can unsubscribe at any time.

Choose your news coverage

Please choose and confirm your coverage.

All sections

Edition