AI Legacy Software Modernisation Services

Your old software is your biggest security risk. We upgrade it, and you pay only when it works.

A dedicated engineer, AI doing the heavy lifting, and a free proof of concept before you commit.

  • Joomla and WordPress backends
  • Old PHP versions and frameworks
  • Old Java backends
  • Old Angular front ends
  • .NET Framework applications

The problem

Outdated code is now the easiest way in

Many of the systems that run your business were built ten or twenty years ago, in PHP, Joomla, WordPress, Java, Angular or .NET. Vendors have stopped patching them, and Joomla and WordPress sites are now heavily targeted by newly published vulnerabilities. The people who wrote them have moved on. And attackers now use AI to find and exploit old weaknesses in minutes.

  • Security exposure

    Unpatched frameworks and libraries with known vulnerabilities.

  • Audit and regulator pressure

    Findings you can't close while the system stays as it is.

  • No room to grow

    Every new business requirement takes months, or can't be done at all.

The offer

Modern, secure software, without the risk of a big rewrite

We combine a dedicated engineer who learns your business with an AI-driven delivery team that reads, documents, tests and rewrites your code. The result is your system on a modern, supported stack that works the way your business works, with the security gaps closed and room for the features you've been waiting for.

From To (typical)
Joomla and WordPress backends Wagtail, a modern and secure Python CMS, with a lightweight Astro front end
Old PHP versions and frameworks Current, supported PHP and framework
Old Java backends Current, supported Java and frameworks
Old Angular front ends Current, supported Angular
.NET Framework applications Modern, supported .NET

The PROVEN method

Six phases from legacy to secure

A dedicated engineer leads the work with your team. Our AI-driven delivery team does the analysis, documentation, testing and code transformation at a speed manual teams can't match. Nothing goes live until your people have signed it off.

  1. Understand the business

    Profile

    About 1 week · your engineer

    Workshops with business users, IT and management; map processes, integrations and data flows; agree goals and delivery mode.

    Output: Business context brief

  2. Decode the code

    Reverse-engineer

    About 1 week · free Legacy Risk Scan

    AI reads the whole codebase, builds a system map, documents business rules in plain language, and scans for vulnerabilities and end-of-support components.

    Output: Legacy Risk Report and fixed-price quotation

  3. Design the target

    Outline

    About 1 week

    Choose the target stack with your IT team, plan module by module, and sign acceptance criteria for every module before any change.

    Output: Target architecture and roadmap

  4. Prove it on one module, free

    Validate

    2–3 weeks · free proof of concept

    Upgrade one representative module end to end and run it in your environment against the agreed criteria. No obligation.

    Output: Working, tested module

  5. Transform, test, secure

    Engineer

    Typically weeks rather than months

    Record how today's system behaves with automated tests, then upgrade one major version at a time. Every step must build and pass the same tests, and engineers approve every change.

    Output: Modernised, tested system

  6. Go live and stay secure

    Nurture

    Go-live, then ongoing

    Planned cutover with rollback and hyper-care, knowledge transfer, and optional Secure Care annual support.

    Output: A live, supported system

Legacy Risk Report

Free · about 1 week

System

Your system · Joomla / WordPress Wagtail + Astro

Modules mapped
00
Business rules documented
000
Known vulnerabilities
00
Components past end of support
00
Complexity tier
Tier B

Risk by module

Billing
Customers
Reports

Includes: system documentation and a fixed-price quotation

Test first, then upgrade

We prove today's behaviour before we change anything

Recording the expected results before any version changes gives everyone a reference that doesn't depend on the upgrade. If a result changes, there is clear evidence to find out why.

  1. 01

    Automate the tests

    AI drafts tests across the back-end services, the user portals and the APIs.

  2. 02

    Review against real work

    Engineers check the tests against how people actually use the system and fill the gaps until every defined case is automated.

  3. 03

    Record the baseline

    The full suite runs on the original system. Reviewers watch the browser journeys run and accept the results as the reference.

  4. 04

    Upgrade in small steps

    Module by module, one major version at a time, shared libraries before the services that use them. A clean build and test run are needed to move on.

  5. 05

    Replay the same tests

    The original suite runs again on the upgraded system and the results are compared with the baseline.

  6. 06

    Confirm and close

    Your team confirms the upgrade is complete and stable. The tests and playbooks stay with the system for the next upgrade.

Engineers lead. AI does the heavy lifting.

AI speeds up dependency analysis, routine code changes, test writing and comparison runs. Engineers decide which behaviours matter to your users, interpret unclear failures, and approve versions and trade-offs. Work happens on separate upgrade branches, and nothing is released without a person's say-so.

EngineersAI delivery teamApproval gate

Set scope, priorities and the order of dependencies. Confirm how the business expects the system to behave.

Analyse modules and dependencies, find compatibility issues and draft the migration sequence.

Engineers review the module plan before any change.

Review workflows, find missing cases and check the recorded baseline.

Draft tests, report gaps, run the suite and show any differences.

Reviewers accept the coverage and baseline before versions change.

Decide how to handle failures, review code changes and approve commits.

Apply version updates and routine code changes, run builds and tests, and summarise differences.

No commit without an engineer's approval and review of the evidence.

Services

Legacy software modernisation, end to end

We keep your business rules intact and make room for what comes next.

  1. 01

    Legacy Risk Scan

    Free

    A complete map of one system: what it does, how it is built, outdated components, known vulnerabilities, end-of-support dates and a complexity score.

  2. 02

    Proof of Concept

    Free

    We upgrade one representative module so you can see working, tested code in your own environment.

  3. 03

    Full Modernisation

    The whole system moved to the agreed target stack, tested against your business rules and taken live with a rollback plan.

  4. 04

    Security Hardening

    Vulnerable dependencies replaced, secure coding standards applied, and the code ready for penetration testing.

  5. 05

    New Business Features

    Requirements your old system couldn't support, built on the new platform.

  6. 06

    Secure Care

    Annual

    Patching, dependency updates, vulnerability scanning, audit evidence and small enhancements.

Who we work with: mid-sized companies and family groups, SMEs, banks and financial institutions, insurance companies, and government and semi-government organisations, in Bahrain, Saudi Arabia and across the GCC.

Pay on success

You pay only when the upgrade works

Modernisation projects have a reputation for overrunning budgets and missing deadlines. We take that risk off the table.

StepWhat you getWhat you pay

Legacy Risk Scan

Full system map, vulnerability report, fixed-price quotation

Nothing

Proof of Concept

One module upgraded and tested in your environment

Nothing

Full Modernisation

Your whole system upgraded, tested and live

One-time fee, fixed by complexity, paid after successful acceptance

Secure Care

Ongoing patching, monitoring, audit support and enhancements

Annual contract

  • Criteria agreed first

    Acceptance criteria are agreed in writing before work starts, so success is never a matter of opinion.

  • Fixed price

    The price is fixed by the complexity tier set in the risk scan. No surprises.

  • Features quoted separately

    New business features are quoted separately, so the modernisation price stays fixed.

Bahraini SMEs may be eligible for Tamkeen support for digital projects. Ask us how.

Security & compliance

Your code and data stay under your control

We're upgrading systems precisely because security matters. So our own delivery is built around it. Affno operates an information security management system certified to ISO/IEC 27001.

  • Remote

    Our engineers work inside your environment through controlled remote access. Your code never leaves.

    Best for: Companies with data or IP concerns

  • On site

    Our engineers work at your premises, inside your own environment.

    Best for: Banks, regulated institutions and government

How we handle AI responsibly

  • We use enterprise-grade AI services under contracts that prohibit training on client code or data.
  • We never use production personal data. Testing uses masked or synthetic data.
  • Every AI-generated change is reviewed by an engineer and covered by automated tests.
  • A written AI usage policy is part of every contract.

Case study · First client

Modernising Bahrain's ship registration portal

For the Ministry of Transportation and Telecommunications we upgraded the full stack behind the Ship Registration Portal we manage, for commercial and individual vessel owners: the owner and officer portals, back-end services, shared components, workflow engine, identity and integrations.

These are live government systems. Owners had to keep submitting requests, and officers had to keep moving them through the same business rules, with existing cases kept intact. Several components had reached end of life, older dependencies carried known vulnerabilities, and maintenance was getting harder.

Kingdom of Bahrain, Ministry of Transportation and Telecommunications
  • Components upgraded

    12

  • Defined test cases automated

    100%

  • Before and after

    Same test suite passed

  • End-of-life components

    All replaced

What changed

AreaWhat we did
Backend language Moved to a current long-term-support (LTS) release
Application framework Upgraded to the current supported major version
Workflow engine Migrated to a maintained open-source edition; in-progress cases carried on
Identity and sign-in Upgraded the identity server and moved to standard token validation
Owner and officer portals (front end) Upgraded to the current supported framework version
Build runtime Moved from an end-of-life version to a current LTS
Cloud storage library Replaced an unsupported library with the maintained version
Web server and JSON library Pinned to patched versions with no known advisories

Result

The Ministry's project team confirmed the upgrade was complete and stable on the new stack. The same baseline test suite passed after the upgrade, covering owner and officer journeys, API behaviour and the back-end scenarios. Replacing old components and choosing patched versions reduced exposure to known vulnerabilities.

A reusable upgrade capability

The reviewed test suite, baseline and upgrade playbooks stay with the system. The next upgrade starts by refreshing the baseline, so updates and security patches can follow sooner.

Challenges we solved

  1. 01

    Build tools out of step

    Problem: The build tooling was two major versions ahead of the portals, and five portal libraries couldn't run on the new version.

    Solution: We realigned the build tools first, then stepped through each version and replaced or removed the incompatible libraries.

  2. 02

    Live cases in the workflow engine

    Problem: Existing applications had to keep moving through their steps after the engine changed.

    Solution: The workflow database was migrated in sequence, and the existing process definitions were kept, so in-progress cases carried on.

  3. 03

    Sign-in and permissions

    Problem: The old identity adapter couldn't move to the new framework, and the identity server changed its address layout.

    Solution: We replaced it with standard token validation and tested sign-in, token refresh, sign-out and permissions for every role.

  4. 04

    Vulnerabilities in new defaults

    Problem: The new framework's default web server and JSON library still carried known advisories.

    Solution: We pinned both to patched versions instead of accepting the defaults.

  5. 05

    Storage library past end of support

    Problem: The file service relied on a cloud storage library that was no longer supported.

    Solution: We moved it to the maintained version with a simpler, safer client.

What we learned

  • Record expected behaviour on the original versions before changing anything.
  • Have people who know the real workflows review the generated tests.
  • Upgrade shared libraries before the services that use them, and check each step.
  • Test identity, workflow state and API behaviour directly. A successful build doesn't prove them.
  • Record any support exceptions alongside version decisions.

FAQ

Questions we hear most

Is the risk scan really free?

Yes. The Legacy Risk Scan and the proof of concept on one module are free and carry no obligation.

When do we pay?

You pay the one-time upgrade fee only after the upgrade passes the acceptance criteria we agreed in writing. Secure Care support is an optional annual contract.

What if nobody understands our old system anymore?

That's common, and it's exactly what the Reverse-engineer phase solves. AI reads the code and documents the business rules in plain language, and your users confirm them.

Will the upgrade disrupt our business?

We modernise module by module, run old and new side by side, and go live with a rollback plan. Your users sign off each module before it goes live.

Does our code or data leave Bahrain?

No. All work is done in your own environment, either remotely through controlled access or on site at your premises. Your code never leaves it, and production personal data is never used for development or testing.

Is AI-written code safe?

Every change is reviewed by an engineer, covered by automated tests, and scanned for security issues. The AI speeds up the work; engineers stay accountable for it.

How long does it take?

About five weeks from first meeting to a working proof of concept. Full upgrades typically take weeks rather than months, depending on size.

Do you work in Saudi Arabia and the rest of the GCC?

Yes. We are a Bahraini company serving clients across the GCC from our base in Bahrain, with remote and on-site delivery.

Find out what's hiding in your code

In 30 minutes we'll walk you through how we modernise legacy software, answer your questions, and arrange a free risk scan of one of your systems.

Or contact Suchira De Saram, Country Director:

Book a demo

Email us and we will confirm a time that suits you. No mail app? Use the options below.

Details you send us are used only to arrange your demo, in line with Bahrain's Personal Data Protection Law. Privacy policy