Secure Conformance Checking using Token-based Replay and Homomorphic Encryption
This paper proposes a secure conformance checking approach that enables a log owner to verify process compliance against an external model without revealing sensitive event log data, by combining token-based replay with homomorphic encryption.
Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
The Big Picture: The "Secret Recipe" Problem
Imagine you are a famous chef (the Process Owner) who has a secret recipe for a perfect cake. You want to sell this recipe to a bakery (the Log Owner) so they can bake it. However, the bakery is worried: if they send you their baking logs (records of what they actually baked), you might figure out their secret customer lists or their own unique baking tricks.
On the flip side, you (the chef) don't want to send them your secret recipe in plain text, because they might steal it or share it with competitors.
The Problem: How can the bakery prove to the chef that they are following the recipe correctly without the chef seeing the bakery's logs, and without the bakery seeing the chef's secret recipe?
The Solution: This paper proposes a "magic box" (Homomorphic Encryption) that allows the bakery and the chef to check the recipe against the logs while everything stays locked inside the box.
The Core Concepts
1. The Game of Tokens (Token-Based Replay)
To check if a process is followed correctly, the paper uses a method called Token-Based Replay.
- The Analogy: Imagine a board game where you have a map (the Process Model) and a list of moves you made (the Event Log).
- How it works: You start with a specific number of "tokens" (like game pieces) on the starting square. As you read your list of moves, you move the tokens along the path on the map.
- If you can move the tokens exactly as the map says, you are "conforming" (doing it right).
- If you get stuck because there is no path for your next move, you have to "borrow" a token from the bank (add a missing token) to keep going.
- If you finish the game but have extra tokens left over on the board, that's a "remaining token" (a mistake).
- The Goal: Count how many tokens you had to borrow and how many were left over. If you borrowed zero and left zero, you followed the rules perfectly.
2. The Magic Box (Homomorphic Encryption)
This is the technology that makes the privacy possible.
- The Analogy: Imagine a locked, transparent safe. You can put a piece of paper inside, lock it, and hand it to someone else.
- The Magic: Even though the paper is locked inside, the person holding the safe can perform math on it (like adding or multiplying) without ever opening the safe or seeing the numbers.
- The Result: When they are done, they hand the safe back. You open it, and the paper now has the result of the math, but the person who did the math never saw the original numbers.
How the Paper's Method Works
The authors combined these two ideas. They turned the "Game of Tokens" into a series of math problems (matrix multiplications) that can be solved inside the "Magic Box."
Here is the step-by-step dance between the two parties:
The Setup:
- The Chef (Model Owner) prepares the map (the Petri Net) and locks it away. They also prepare a set of "rules" (matrices) that describe how tokens move on the map.
- The Bakery (Log Owner) takes their list of moves (the trace) and locks it inside the Magic Box. They also start with a "token count" of zero, locked in the box.
The Check (Step-by-Step):
- The Bakery sends the locked "next move" to the Chef.
- The Chef puts the locked move into their own locked "rulebook."
- The Chef does the math: Using the Magic Box, the Chef calculates:
- "Can this move happen?"
- "If not, how many tokens do we need to borrow?"
- "Where do the tokens end up?"
- The Chef sends the locked results back to the Bakery.
The Result:
- The Bakery unlocks the results. They now know how many tokens were borrowed and how many are left, but they never saw the Chef's secret map.
- They repeat this for every move in their log.
- Finally, they calculate a "Fitness Score" (a grade from 0 to 1) to see how well they followed the recipe.
What They Found (The Evaluation)
The authors built a prototype of this system using a tool called Zama's Concrete (a software that handles the "Magic Box" math).
- The Test: They used a fake (synthetic) set of baking logs and a small map.
- The Speed:
- Doing this without the Magic Box (plain text) took milliseconds.
- Doing this with the Magic Box (encrypted) took between 8 and 37 seconds for small logs.
- Note: They tried a version where they counted the tokens inside the Magic Box too, and it took 35 to 84 minutes. They realized this was too slow because the math for counting was too heavy for the encryption. So, they moved the counting to the "outside" (the Bakery side) to make it faster.
- The Conclusion: While it is much slower than doing it normally, it is fast enough (under a minute) to be useful in real life when privacy is critical.
Summary
This paper invents a way to check if a process is being followed correctly without anyone having to show their secrets. It turns a "token game" into math that can be solved while everything is locked in a digital safe. It's slower than the normal way, but it allows two strangers to trust each other's work without revealing their private data.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.