Checking that the audit log hasn't changed
Run a short script you can read on an export of your audit log, to check its entries hang together and nothing changed since one you kept.
Nobody can change or remove an entry in your audit log from Everdeck, and you don't have to take our word for it. Every entry carries a hash: a fingerprint of what the entry says and of the entry before it. Change one word of an entry, and its fingerprint no longer matches; take an entry out, and the one after it no longer points at the one before. A script you can download, read and run yourself checks this on any export of your log.
One export, or two
- One export on its own shows that its entries hang together: each entry matches its fingerprint and points at the one before it, and no entries are missing that are too recent for retention to have removed them.
- Two exports, a new one and one you kept, show that nothing changed or went missing in between. This is the check that matters most. Someone with access to Everdeck's database could, in principle, rewrite an entry and recompute every fingerprint after it, so that a new export still hangs together on its own. An export you downloaded earlier still has the old fingerprints, and comparing the two shows the change.
So download an export now and then, and keep it.
Everdeck checks the log itself as well: new entries every few minutes, and every entry again about once a day, as far as each run's share of work reaches. Our staff are alerted to anything that doesn't add up. That check runs on our side, so the comparison with an export you kept is the one that doesn't rely on us.
How the log is chained
- Each log is a chain of its own: the account's entries (the Account tab of the Audit log) and each company's (This company).
- Every entry has a number in its chain, its seq, starting at 1, and the time it was written. Times only go forward along a chain, so the entries of the days you export are always a run of consecutive numbers.
- An entry's hash covers every one of its fields and the hash of the entry before it. It doesn't cover the entry's id or the company's name, so those can't be confirmed.
Fields an export hides
An export holds the entries as the Audit log page shows them to you. A few fields it may leave out:
- who on our staff made a change (entries by Everdeck staff say only "Everdeck staff");
- which secret changed (the last characters of a key or an app's secret), unless you manage those secrets;
- the IP address, in a company's log;
- whether the person was an owner or admin of the account, which no export shows.
For each field it shows, the export gives a salt, a random value that lets anyone check the field against the entry's hash. For each field it hides, it gives that field's own fingerprint instead, made with a salt the export doesn't include, so the hidden value can't be guessed from it. Either way the entry's hash covers the field, so a change to a hidden field shows too. Where secret hints are left out of a detail, the detail you see isn't the stored one, so the script lists those entries and says it can't confirm that text.
Entries written before we brought in this chain were chained the older way, with a hash that depended on how the database session was set up when they were written. The script can't recompute those hashes, so it lists them as entries it couldn't check. When you compare two exports, it still checks that each of those entries shows the same hash and the same values in both. On our side, Everdeck recomputes their hashes where it can and counts how many link to the entry before them, but retention removed older entries company by company, so a link that doesn't hold can't, on its own, show that anything was taken out.
Checking an export
You need Python 3.9 or later. Most Macs and Linux computers already have it; on Windows, install it from python.org. The script uses nothing but Python's own standard library and sends nothing anywhere.
- Export the log, in either format, as Exporting the audit log says: open the Audit log, select Export, choose From, To and Format, select Start export, and when the email arrives select Download. Don't open the CSV file in a spreadsheet and save it again: the spreadsheet rewrites dates, numbers and quotes, and every changed entry then shows as a problem. Check the file exactly as you downloaded it.
- Download the script: open https://everdeck.io/tools/verify-audit-export.py in your browser and save the page
(File, then Save Page As, or right-click and Save Link As from this page) as
verify-audit-export.py. Save it in the same folder as your export. You can open it in any text editor to read it: it explains its own workings at the top. - Check you have the file Everdeck serves. Its SHA-256 is
08a3f01baf4c032022abbae2a8a0468f2a8626ce501d6d41aa0b85be7fd2bce3. In a terminal in that folder, this prints it:- on a Mac:
shasum -a 256 verify-audit-export.py - on Linux:
sha256sum verify-audit-export.py - on Windows:
certutil -hashfile verify-audit-export.py SHA256
- on a Mac:
- Open a terminal in the folder that holds both files. On a Mac, open Terminal and type
cd(with a space), then drag the folder onto the window and press Return. On Windows, open the folder in File Explorer, typecmdin the address bar and press Enter. - Run the script on your export. On a Mac or Linux:
python3 verify-audit-export.py everdeck-audit-log-company-20261101-20261124.csv
On Windows, write py in place of python3. The first time you run python3 on a Mac, it may offer to
install the command line developer tools: accept, wait for them to install, and run the command again.
It ends with "No problems found." when every entry's hash holds, each links to the one before it, and no entries are missing that were too recent for retention to have removed when the file was made. Ages count to the day the export was made, whatever dates it covers, so an export of last spring made today judges its gaps by today. It also says what it couldn't check and why: entries from before the chain, fields the export hides, and numbers missing from the file that were old enough, when it was made, for retention to have removed them.
A line starting "PROBLEM" names an entry that changed after it was written, a link that doesn't hold, entries in the wrong order, or recent entries that are missing. First make sure the file is exactly as you downloaded it (not saved again from a spreadsheet); then tell us at once (see Security and data), and keep the file.
Comparing with an older export
To show that nothing went missing or was rewritten since an earlier export you kept, give the script both files:
python3 verify-audit-export.py newer-export.csv --previous older-export.csv
Every entry in both must have the same hash. An entry of the older file that falls inside the newer file's days
must still be there, unless it was old enough for retention to remove it: retention never removes a company's
entries younger than 90 days, or the account's own entries and entries by Everdeck staff younger
than 1 year. Ages are counted to when the newer file was made, not to the end of the dates it covers.
Export the same log both times (the script won't compare two different logs), with the newer export covering the
older one's days, so every entry of the older file is compared. --as-of with an earlier date and time counts
ages to then instead.
How long entries are kept, and so how far back an older export can be compared, is in How long audit entries are kept.
Still stuck?
Email [email protected] and say what you were trying to do. Or browse every guide.