Can AI Reverse-Engineer Trading Software, and Is AI-Assisted Development Safe?
Claims about AI copying applications (and tools promising to stop it) raise an important question for our customers: what should remain private, and how is it protected?
We would start with what the customer actually receives. A compiled EA, a Pine script and access to a hosted service expose different things. Understanding shipped code is also a separate task from stealing credentials or checking whether a bot follows its specification. Treating all of that as a contest between REA and BLA misses the decisions a developer has to make.
What REA and BLA actually demonstrate
REA, or Reverse Engineer Anything, connects AI agents to software-analysis tools through a command-line interface and Model Context Protocol. It covers native binaries, JavaScript/Electron applications, .NET assemblies and websites. For native analysis it can use tools such as Ghidra or Hopper. The AI is working with inspection tools and their output; it has not made the underlying analysis unnecessary.
BLA, or Blind LLM Agents, modifies release artefacts to make that inspection harder. Its decoys and extra structures target particular analyser limits. One concrete example in its README is an Electron ASAR sample whose enlarged header exceeds REA’s header budget. That demonstrates a failure in that analyser path, under the reported conditions.
Read the qualifications alongside the headline. BLA labels its token and cost multipliers as internal estimates. It separately reports observed analyser failures and lists native-decompilation and live-debugging paths it has not empirically tested. We would not turn those results into a promise that an EA is protected against every analyst.
Understanding behaviour is not recovering source code
The REA documentation lists pseudocode, assembly, strings, symbols, calls and references as native-analysis outputs. Its JavaScript/Electron analysis recovers modules and their relationships. The agent then uses the findings to write and test an implementation, with unknowns left to investigate.
That distinction matters when someone claims to have “recovered” a trading system. A similar-looking indicator output does not establish that the original source was recovered. It does not establish matching behaviour on every input either. Ask what was extracted from the artefact, what the agent inferred, and what was tested.
Permission still applies. The REA README’s Disclaimer section states: “REA is for lawful research, education, interoperability, software preservation, and analysis of software you own or are authorized to examine.” Understanding a feature grants no permission to copy proprietary material or bypass subscriptions. We are discussing how to defend software we are entitled to work on.
What changes for customers
If you are commissioning an EA, indicator or bot, ask for a delivery inventory. It should identify the source files, compiled releases, dependencies and external services. Establish who can access the repository, where credentials are held, how a release is verified and who will maintain its dependencies. OWASP’s supply-chain guidance covers risks across the source, build and deployment process, including the components a developer brings into it.
Then ask the developer to show where each calculation runs. Which logic reaches the terminal? What stays on a server, and what data crosses between them? Agree who administers the service and whose access is removed at handover. These are acceptance questions; they do not imply that a particular product has been compromised.
Take a hypothetical bot with a customer portal. We would want a test showing that a signed-in customer cannot retrieve another customer’s resources by changing a resource identifier. We would also test expired access, inspect logs for leaked credentials and check how a compromised credential is revoked. Revocation should not require sending a replacement master secret to every installation. The portal’s permissions, bot credentials and release process each need their own review.
The reason is practical. Someone copying a calculation creates an intellectual-property problem. Someone obtaining a valid credential may gain access without understanding the calculation at all. A bot implementing the wrong rule can fail with neither breach. OWASP’s guidance on authorisation and secret management helps turn those separate concerns into requirements.
For any protective transformation, retain the tested platform, release and workload, the threat it addresses, and the limitations that remain. Keep the results with the handover so the next maintainer can repeat the checks after an update. “AI-proof” is not enough information to accept a release.
Different platforms need different protections
In MetaTrader 5, an .mq5 file contains program source; compiling the main program produces an .ex5 executable. MetaQuotes’ compilation documentation explicitly allows distribution of the executable without the source files. Receiving an EX5 therefore does not mean receiving editable MQ5 source.
MQL5 Cloud Protector adds protection to compiled EX4/EX5 files. Compilation happens locally. The executable part is sent over a secure connection for encryption and signing; the source code is not sent to the service. MetaQuotes distinguishes this from Market protection because the resulting file is not bound to a particular computer. We would therefore settle customer licensing separately from executable protection.
Neither README establishes that REA recovers MQ5 source from a Cloud Protector-protected EX5. A native-binary capability list alone would not establish that result.
TradingView offers different controls. Its publishing documentation separates privacy from visibility. A protected script hides its source but lets other users run it. An invite-only script also limits use to people the author invites. A private publication is discoverable through its URL rather than TradingView search; that setting alone does not choose whether the source is visible. Pick both settings deliberately.
Protect the architecture, not just the file
Before adding decoys, decide which logic needs to leave trusted infrastructure. If proprietary processing can sensibly stay behind a controlled service, distributing less of it changes what a customer installation can inspect. BLA’s own technical disclaimer rejects absolute client-side secrecy and recommends keeping high-value secrets on trusted servers.
Access decisions belong there too. OWASP requires permission checks on every request and warns against making client-side checks decisive. Hiding a button or showing a local “licence valid” message does not enforce permission at the API.
Apply OWASP’s REST guidance at the endpoints: HTTPS, authorisation, validation of input types and ranges, request limits and security-event logging. Keep API keys out of URLs, where server logs can capture them. Obfuscation does nothing to repair a missing permission check.
Keep master credentials out of distributed code. Give each credential only the access it needs and provide a way to revoke it. Where the service supports short-lived secrets, use an appropriate expiry. The secrets guidance makes an easily missed point: restarting an application does not revoke a stolen credential. The backing service must expire or revoke it. Decoys can add friction to inspection after these controls are in place.
Limits and operational trade-offs
Putting logic on a server creates a dependency on that server. Decide what the bot does when a request times out, the service goes down or connectivity returns, then test those decisions before deployment.
MQL5’s WebRequest documentation gives a specific constraint: a call is synchronous, so the program waits for the response. It is available to EAs and scripts, not indicators, and cannot run in the Strategy Tester. The server URL also has to be added to the terminal’s allowed-URL list. A backtest cannot, by itself, verify that live HTTP path.
We would apply the same scrutiny to BLA. Its analyser-budget results leave other tools and human analysis outside the demonstrated claim. Its disclaimer requires staging verification against your own workloads. Check that the transformed release still behaves correctly, runs on the supported platform and can be maintained. Preserving a benchmark sample’s output does not settle those questions for your application.
Is AI-assisted development safe?
We would use AI to help write code. We would not accept its output as a release decision. GitHub’s responsible-use guidance warns that generated code can look valid while being incorrect or insecure, and calls for review and testing.
Start with a written specification, compile on the target platform and have a developer review the implementation. For a trading integration, test permission failures and malformed inputs. Disconnect it and reconnect it. Deliver the same message again and check the specified outcome. Those tests make “works correctly” something that can be examined.
There are platform-specific checks too. TradingView’s publishing documentation warns about higher-timeframe request.security() calls that combine a non-offset expression with barmerge.lookahead_on, because they introduce lookahead bias on historical bars. A script can compile and still present misleading historical results. Our AI Code Rescue scope includes repainting, backtest-versus-live mismatches, order handling and API-key security for exactly these kinds of review questions.
Keep production credentials out of prompts and development fixtures. Read the chosen provider’s data policy before sharing confidential code. REA says its analysis runs locally, but its README also notes that the agent receives the results and the model provider has its own policy. “Local analysis” does not answer the whole confidentiality question.
Packages suggested by an assistant and agent extensions also need assessment. OWASP recommends assessing suppliers, pinning reviewed dependency versions, isolating builds and monitoring vulnerabilities after deployment. Scanners help with that work. They cannot certify that every flaw has been found.
What future development should prioritise
We would ask a developer to show the boundary between the distributed code and the service, demonstrate the expected behaviour against a specification, and hand over enough evidence for someone else to maintain it. Claims that programming is finished, or that copying is impossible, do not answer those requests.
At Nexo Mechanics, Technical Advisory covers scoping and tool evaluation. Our AI Code Rescue work covers code and security review; MetaTrader and TradingView services cover platform-specific development and testing. Cloud Infrastructure covers server hardening, deployment and monitoring when the design needs a hosted component.
Before accepting the next release, ask to see what happens when access expires. That is a more useful conversation than asking which tool makes the software “AI-proof”.
Drafted with AI assistance; reviewed, edited and approved by Ionut Claudiu Fratila.