I think if you asked the engineers who designed the airbus in question, could you create a "leak" warning, using just the existing sensor suite, they'd say "sure". You know the fuel level in each tank, and have a good estimate or actual flow data on engine fuel usage. Simple math says "leak" or "no leak". If that would work, it is surprising it isn't in the software.
Make it broader - before take-off, pilots enter the expected destination (or expected distance). During cruising, computers keep track of how much fuel is being used (lost) per unit of time, and projects forward to see if they can still make their expected destination or not. If the number does not reach within expected margins, then show an error. This protects against leaks, but also miscalculation of fuel needed b…
It's not as simple as "fuel per time" because fuel usage and speed change massively with altitude.
What was missing here was a big warning to the pilots (that has since been added). But it's also standard procedure at all airlines to monitor fuel and required fuel calculations, which could have helped this crew if they did it earlier.