Reverse Engineering with AI

Why Rebuilding a System Is Easier Than Understanding It

Give a development team access to a working website, a collection of screenshots and recordings of its most common user journeys. With today’s AI tools, it may be possible to reproduce the interface and much of its visible behaviour in a relatively short time. The pages load, buttons respond, forms accept information, and the demonstration looks convincing. Now ask the team to explain what happens when a customer submits the same request twice, changes an address after an order has shipped, or requests a refund against a transaction that has already been adjusted.The answers may be less convincing!

The distinction is familiar to anyone who has inherited a system with incomplete documentation. Users see only one part of what the system does. Business rules, data dependencies, permissions, exceptions, and decisions made years earlier often sit behind an apparently simple screen. Some are written in code. Others survive in database constraints, integrations, operating procedures, or habits that nobody thought to document. AI can make reconstruction faster. It cannot, merely by producing a working replica, establish that those hidden decisions have been recovered.

Reverse Engineering and AI

I think this is the central difficulty in using AI for reverse engineering: we are getting better at generating plausible versions of systems before we have become equally good at establishing what we know about the originals. Reverse engineering is not new, nor does it always require access to source code. Engineers have long investigated software through observable behaviour, executable files, logs, interfaces, and data. What has changed is how quickly these fragments can be interpreted and converted into working code or specifications. That speed is useful, but it can also blur the line between observation and guess.

The research gives reasons for both optimism and caution. A study presented at the 2026 Network and Distributed System Security Symposium followed 48 people as they completed two controlled binary reverse-engineering challenges. Language models significantly improved novices’ comprehension rate, while experienced analysts saw much smaller gains. The authors also documented misleading suggestions and hallucinations. Those results concern compact security-analysis tasks, not reconstructing an entire enterprise application, but they show why human expertise still matters.

Research published by MITRE in 2025 reached a related conclusion from legacy-system modernization work. Its team used language models to generate representations of existing program logic, including requirements and diagrams. The researchers found promise in the approach, yet the automated evaluation measures they examined did not reliably align with specialists’ judgments of quality. Producing an explanation and establishing its dependability are separate activities.A useful reconstruction process should therefore begin with evidence, not with the new interface. 

Consider an aging online returns system. A team can observe the steps for locating an order, selecting an item, choosing a reason and receiving a confirmation. It may reproduce all of these perfectly. Yet the original system could handle returns differently based on payment method, fulfillment status, promotional discounts, statutory rights, or previous adjustments. An interface copied from ordinary examples gives little assurance about those cases.

Evidence-to-verification Approach

I would approach this with five connected questions that together form an evidence-to-verification approach rather than a single confidence score.

  1. What has actually been observed?
  2. Which rules have been inferred?
  3. Can you trace the reasoning?
  4. What happens when the reconstruction is deliberately challenged?
  5. What remains unknown?

Let us have a look at each of these in greater detail, along with the context and the proposition involved. 

1. What has actually been observed?

Evidence might include input-output pairs, screen recordings, API responses, event logs, database changes, and the outcomes of authorised test transactions. The purpose is to record what happened under specified conditions, rather than what someone remembers should happen. If a return was accepted on day twenty-nine, that does not prove every request before day thirty will be accepted. The observed case needs to remain attached to the conditions that produced it.

2. Which rules have been inferred?

An analyst might infer that refunds are calculated from the original item price, or that a request becomes ineligible after a fixed period. A model can offer plausible explanations for either pattern. But a rule inferred from three examples is not the same as a rule established from source code, confirmed with a domain specialist and tested against contrary cases. Every inferred rule should have a clear status: observed, supported by multiple sources, or still hypothetical.

3. Can you trace the reasoning?

If a reconstructed function rejects a refund, somebody should be able to point to the evidence supporting that decision. This is more useful than an attractive explanation written after the code has been generated. A simple record linking each important business rule to its observations, relevant technical artifacts, and tests gives reviewers something they can challenge. It also makes discrepancies easier to investigate when new evidence arrives.

4. What happens when the reconstruction is deliberately challenged?

Common user journeys are necessary tests, but they are rarely sufficient. Difficult cases often include duplicates, partial updates, conflicting records, time boundaries, interrupted transactions, and unexpected sequences of otherwise valid actions. Differential testing, where the old and new systems are given the same authorised inputs, can reveal differences that a visual comparison will never find. The investigation should include cases selected independently of the AI-generated implementation, so that the same mistaken assumption is not copied into both code and test.

5. What remains unknown?

A team may have no way to observe a rare regulatory exception, a discontinued integration, or a historic data correction. That uncertainty should be documented, not filled with confident prose. Sometimes the sensible outcome is to replace it with an explicit limitation, a manual review step, or a decision to retain part of the original system until stronger evidence becomes available.

The above five questions are not a substitute for established testing or software assurance practices. They help prevent a convincing demonstration from being mistaken for sufficient evidence.There is also a measurement problem. Teams often report progress through the number of screens reproduced, functions translated, or tests passed. 

The key indicators

Those measures tell us something about construction, but much less about understanding.A more useful review would separate four indicators, that we need to be considered with a measured interest. 

  1. Evidence coverage
  2. Exception coverage
  3. Behavioural discrepancy
  4. Unresolved critical assumptions

Let us have a look at these indicators below…

1. Evidence Coverage

The proportion of identified, material rules that connect to a defensible source. The denominator matters. This measures the rules the team has identified; it cannot reveal all the rules nobody has found.

2. Exception coverage

The share of known, consequential edge cases tested against the original system or an independently established requirement. A high success rate on ordinary journeys should not disguise failures in a small number of cases that matter most.

3. Behavioural discrepancy

How often the old and new systems produce materially different results when given equivalent inputs and starting conditions. Classify differences, because some are intentional improvements while others are failures of reconstruction.

4. Unresolved critical assumptions

It is worth tracking how many consequential decisions still depend on an unverified rule, and whether that number is falling as the investigation continues. A system with fewer open assumptions is not automatically correct, but the team has a clearer account of its uncertainty.

Imagine a replacement that passes twenty-eight of thirty test scenarios. A headline success rate above ninety per cent sounds reassuring. But suppose the two failures involve repeat refunds and permission checks, while most passes concern straightforward navigation. The aggregate rate conceals the very behaviours that could make deployment unsafe. That is why I would avoid compressing these indicators into one universal “understanding score”. The importance of a discrepancy depends on its consequence, not simply its frequency. A minor formatting mismatch and an unauthorised financial action should not count equally.

Boundaries and constraints

One further complication is that outcomes do not always reveal state. Two versions of a system might display the same confirmation while recording different ledger entries or issuing different events to downstream services. A reconstruction should therefore compare the state left behind, not only the response seen by the user. For payment and entitlement processes, this may mean testing repeated requests, event order, permissions, rollback behaviour and audit records. Performance, accessibility and security may also matter to the definition of equivalence. None of these properties can safely be inferred from a screenshot. They need their own evidence and acceptance criteria.

The process also needs a practical boundary. Reconstructing behaviour does not mean recovering the source code, architecture or developers’ intentions. Two implementations can produce identical visible results through entirely different internal mechanisms. For many modernisation projects, reproducing the relevant behaviour may be enough. Where legal obligations, audit trails or operational resilience are involved, the definition of “relevant” has to be much more demanding.

Not ‘machine vs. human’, but ‘machine & human’

An industry case study published in 2025 described reconstructing a legacy application’s functional specifications by combining user-interface observations, binary inspection and data-lineage analysis. Its most instructive feature was not a claim that AI could discover everything, but the use of several kinds of evidence with human validation. When sources disagree, the disagreement is part of the work, not an inconvenience to remove.

I would begin a real project with a narrow, authorized slice of the original system and a written account of what must remain unchanged. Test it under normal conditions, then deliberately look for where the inferred rules fail. Record the evidence for each important behaviour before building out additional functions. Involve people who understand the business consequences, not only those who can judge whether the new application runs. Permissions and ownership matter as well. Access to a screen does not automatically grant the right to inspect protected code, extract data, or reproduce a proprietary service. The work should remain within the authority granted by the system owner, with appropriate safeguards for sensitive information.

None of this argues for slowing reconstruction to the pace of manual documentation. AI is useful precisely because it can help analysts navigate unfamiliar code, suggest explanations, compare artefacts, and draft tests. The opportunity is to spend less effort collecting obvious details and more effort questioning the rules that carry risk.The mistake would be to treat speed of reproduction as proof of depth of understanding. A system that looks complete may still be an incomplete interpretation of the original. A system whose uncertainties are visible may be less impressive in a demonstration, but much easier to improve responsibly.

Conclusion

Reverse engineering succeeds when a team can explain not only what it has rebuilt, but which behaviours are supported by evidence, which have survived testing, and which remain assumptions. Progress is measured not by how quickly the replacement begins to resemble the original. It is how much uncertainty has been removed without pretending that the rest has disappeared.

Related Articles

Building AI-Assisted Community Operations: From Tools to Workflows

The advantage from AI over the coming years will not come from access to tools. Most tools will be accessible to most organisations at roughly equivalent cost. The advantage will come from the quality of the operational infrastructure surrounding those tools: the workflow design, the prompt architecture, the integration quality, and the trust built with the people who need to use the systems every day.

AI Is Not a Tool, It Is Cognitive Infrastructure!

There is a quiet ‘category error’ sitting at the centre of much of the AI conversation right now, and it is shaping decisions that will outlive the people making them.

We keep calling AI a tool.

Tools are picked up and put down. Tools sit in a drawer until needed. A hammer does not change what a wall is, what a house means, or how a neighbourhood feels. The framing is comfortable because it puts us in charge: we choose, we wield, we set down. I would argue, though, that it is the wrong frame. It is wrong in the way that calling electricity “a better candle” was wrong in 1890. The artefact is recognisable; the substrate it creates is not.

What we are actually building, and stitching into the daily fabric of work and life, is starting to behave more like cognitive infrastructure. Something that increasingly mediates how we perceive, decide, coordinate, and remember. You do not “use” infrastructure the way you use a tool. You live inside it. The question of who designs it, who maintains it, and who gets to question it becomes a different kind of question entirely. This distinction is not academic. It changes the strategy.

This article on artificial intelligence as a cognitive infrastructure framework is written by Rohit Mahadevu, AI and Digital Transformation Consultant at Texavi Innovative Solutions. Read on…

The Missing Metric in Agentic AI

The question is no longer simply whether an AI system can make a good decision. It is whether the organisation has designed sensible boundaries around what that decision is allowed to change.
The systems that earn greater autonomy will not necessarily be the ones that appear most intelligent. They will be the ones whose authority has been designed with enough care that an imperfect decision does not automatically become an uncontrolled consequence. This article by Rohit Mahadevu, AI and Digital Transformation Consultant at Texavi Innovative Solutions, puts the focus on the decision authority profile highlighting the five key steps in the decision making and how these optimise working with AI-based tools and solutions, read on…

The Forgotten Infrastructure of Digital Transformation

The infrastructure that makes digital transformation succeed is often different from the infrastructure that receives the most investment. Human infrastructure explains that gap. It encompasses the capabilities, trust networks, learning systems, and adaptive behaviours that enable technology investments to fulfil their intended purpose. Transformation that invests in technology without investing equally in people does not slow the rate of change. It creates an organisation that changes the appearance of work without altering its substance.

The Productivity Transfer Problem in AI

AI can make particular tasks considerably faster. It can improve quality, widen access to expertise and reduce work that people would rather not repeat. Those gains are worth pursuing. But they should not be declared complete at the moment an output leaves the screen. The proper test is whether the organisation can deliver a useful result with less total effort, fewer avoidable delays or better quality, without quietly making someone else responsible for the unfinished work. When one team saves an hour, the next question should be simple: where did that hour go? This article by Rohit Mahadevu, AI and Digital Transformation Consultant at Texavi Innovative Solutions, puts forward a new framework called ‘the Net Workflow Value model’ highlighting the focus on the actual value realised in implementing AI-based tools and solutions, read on…