TTLock in Rental Apartments: Guest Codes and Former Staff
TTLock in short-term rentals: guest codes valid only for the stay, separate admins, the gateway, the lock clock and a reset when a deleted key still works.
On this page
Self check-in with a passcode on a TTLock app lock is convenient — but a former guest, a cleaner or the previous property manager can keep access, and according to researchers an electronic key deleted in the app may still open the door. After these steps you know the admins of every lock, each guest gets a code only for their dates, after check-out the code is deleted and you can see it in the records, and when access has to be revoked for certain, you have a lock reset procedure.
Plan
| Step | What we do | Time |
|---|---|---|
| 1 | List the locks, gateways and admins | 30 min |
| 2 | Secure the owner account, get rid of the “shared” password | 15 min |
| 3 | Give guests codes for their stay, not eKeys or permanent codes | 10 min per guest |
| 4 | Put the gateway on a separate network and update it | 30 min per apartment |
| 5 | Sync the lock clocks | 5 min per lock |
| 6 | Introduce a check-out routine: delete the code, check the records | 5 min per check-out |
| 7 | Give staff named codes and review the list monthly | 30 min per month |
| 8 | Prepare a lock reset procedure | 20 min |
| 9 | Verify | 30 min |
What research on TTLock has shown
- Aleph Research and CERT/CC (2024, VU#949046) found a set of vulnerabilities in locks built on the Sciener (TTLock) platform, the app and the G2 gateway. Among them: deleting an electronic key (eKey) in the app does not remove its data from the lock — whoever kept that data can go on opening the door (CVE-2023-6960); the keypad pairing key is the same across devices (CVE-2023-7003); the app does not verify that it is talking to a genuine lock (CVE-2023-7004); the server does not verify G2 gateway connections (CVE-2023-7007). As of March 2024 there was no software fix — only workarounds.
- DEF CON 34 (2026): the talk “The Ghost Key” by Yang Liu and Zhenghan Wang is about how TTLock locks enforce access validity periods. Details are in the talk materials; for practical purposes what is already known is enough: according to Aleph Research, eKey restrictions (validity period, single use) are enforced by the app, not the lock, and a shared key keeps working until the lock is reset.
What follows from this:
- An eKey deleted in the app may keep working → guests get time-limited codes, not eKeys (step 3).
- When access must be revoked for certain → reset the lock and add it again, not “delete in the app” (step 8).
- Validity periods depend on the lock clock → the clock is synced via the gateway (step 5).
- The gateway is a network device with vulnerabilities → it is not on the guest Wi-Fi and not on the network with your computers (step 4).
- Every former manager knows the shared account password → separate admins instead of a shared password (step 2).
- Without records you cannot tell who opened the door → check the records after every check-out and on any complaint (step 6).
Step 1. List the locks, gateways and admins
How to do it. In the TTLock app (or in TTLock Web — lock.ttlock.com), go through each lock → Settings and fill in:
| Apartment | Lock model | Firmware | Gateway | Main admin (account) | Other admins | eKeys issued | Permanent codes |
|---|---|---|---|---|---|---|---|
| Building A, 1205 | Kontrol Lux | 5.3.4 | G2 | apart@example.com (company account) | manager@example.com (manager) | 0 | 0 |
| Building A, 1408 | Kontrol Lux | 5.3.4 | G3 | apart@example.com (company account) | manager@example.com (manager) | 0 | 0 |
| Building B, 0703 | Kontrol Lux | 5.1.9 | none | apart@example.com (company account) | — | 1 — former manager, reset needed (step 8) | 1 — unknown, delete |
| Building B, 1911 | Kontrol Lux | 5.3.4 | G3 | apart@example.com (company account) | manager@example.com (manager), tech@example.com (technician) | 0 | 0 |
Example — replace with your own data.
The lists are in the lock’s eKeys, Passcodes, IC Cards, Fingerprints and Authorized Admin sections. Exact names depend on the app version and language.
Done when: for each lock you know the main admin and everyone who has access.
Step 2. Secure the owner account, get rid of the “shared” password
How to do it.
- The main admin of all locks is the company account, not the manager’s personal account. The account’s email or phone number belongs to the business owner.
- The password is unique, 14+ characters, stored in a password manager. If it was ever shared with staff, change it.
- Staff who manage locks get not the account password but Authorized Admin rights on the locks they need, under their own accounts. When an employee leaves, you remove their rights and everyone else keeps working.
- The account’s email or phone is the password recovery path: it belongs to the company, and two-step sign-in is enabled on that email.
Done when: the main admin is the company account, staff have their own accounts with limited rights, there is no shared password.
Step 3. Give guests codes for their stay
Why: a time-limited code stops working on its own; according to research an eKey can survive deletion; a permanent code lives forever.
How to do it.
- Each guest gets a separate time-limited code: from check-in time to check-out time plus one hour. In the app: lock → Passcodes → Generate Passcode → type Timed or Custom with a validity period.
- If you have a gateway, use a custom code via the gateway: according to the TTLock documentation, remote access management, including deleting a code, works only when the lock is connected to a gateway and online. After deleting a code, check at the door that it no longer opens (step 6).
- Do not send guests an eKey (app-based access) or permanent codes.
- Send the code in a Booking, Airbnb or WhatsApp message to the guest, together with the rule: “the code is valid until : on your check-out day.”
- Record in the bookings spreadsheet: guest, dates, code (last 2 digits), who issued it.
Done when: current guests have only time-limited codes, and no guest has an eKey or a permanent code.
Step 4. Put the gateway on a separate network and update it
How to do it.
- Connect the TTLock gateway to a separate Wi-Fi network for devices (2.4 GHz) — not the guest network and not the one your bookings laptop is on. On a TP-Link router, a separate guest network just for the gateway, with isolation; on Omada or MikroTik, a separate VLAN (guest Wi-Fi, steps 2 and 4).
- The guest Wi-Fi password and the gateway network are different. Guests are never given the gateway network password.
- Update the gateway and lock firmware: lock → Settings → Firmware Update; gateway → Gateway → gateway → Upgrade. Update next to the lock, with fresh batteries.
- Update the TTLock app on the admins’ phones.
Done when: the gateway is on a separate network, and the lock and gateway firmware are the latest.
Step 5. Sync the lock clocks
Why: the lock checks code validity periods itself, against its own clock; if the clock drifts, a code works longer than it should or doesn’t work for the guest.
How to do it. Lock → Settings → Lock Clock → Calibrate (over Bluetooth next to the lock or via the gateway). Check the account time zone — it must match the local one. Once a month, repeat for each lock or confirm that the gateway does it automatically.
Done when: the lock time matches real time to within a minute.
Step 6. Introduce a check-out routine
How to do it. After every check-out:
- Delete the guest’s code: lock → Passcodes → code → Delete (via the gateway — immediately; without a gateway — at the lock over Bluetooth).
- Check the records: lock → Records — any unlocks after check-out time.
- The cleaner opens the apartment with her own code (step 7) — her name shows in the records.
- Mark it in the bookings spreadsheet: “code deleted, records checked.”
Check: the departed guest’s code does not open the door.
Done when: every check-out in the last month has this mark.
Step 7. Give staff named codes and review the list monthly
How to do it.
- Cleaners, technicians and the manager each get their own code with a clear name (“Nino cleaning”), preferably recurring (working hours only).
- Once a month, for each lock, compare the Passcodes, eKeys, IC Cards, Fingerprints and Authorized Admin lists with the table from step 1. Delete anything unfamiliar and anyone who has left.
- When an employee leaves, delete their codes and rights the same day; if they had eKeys or admin rights, go to step 8.
Done when: each lock’s lists contain only current guests and current staff.
Step 8. Prepare a lock reset procedure
Why: the only reliable way to revoke everything stored in the lock is to reset it and add it again.
How to do it.
- When: an employee with eKeys or admin rights has left; an admin’s phone is lost; you suspect someone is opening the door without a code that shows in the records; the apartment has changed management company.
- Procedure: at the door, with fresh batteries → delete the lock in the app (Settings → Delete), if needed reset it with the button on the lock following the manufacturer’s instructions → add the lock again under the company account → issue codes to the current guest and staff.
- Keep the lock’s mechanical key in the management company’s safe, in case the battery dies or something fails after a reset.
Why a reset specifically: according to Aleph Research, a shared eKey works until the lock is reset. What else a reset erases on your model — check the manufacturer’s instructions and verify at the door: old codes and cards do not open after the reset (step 9).
Done when: the procedure is written down, mechanical keys are accounted for, and a reset has been practiced on one lock.
Step 9. Verify
| Check | Expected |
|---|---|
| Departed guest’s code | does not open |
| Guest’s code one hour before check-in | does not open |
| Lists of codes, eKeys, cards, admins | match the table |
| Gateway on the guest network? | no |
| Lock time | matches |
| After a reset — a staff member’s old code | does not open |
Done when: every row matches.
Checklist
| # | What to check | How to confirm | ☐ |
|---|---|---|---|
| 1.1 | All locks are in the table | the number of locks in the TTLock app list equals the number of rows in the step 1 table | ☐ |
| 1.2 | Each lock’s main admin is known | lock → Settings — the admin account matches the one in the table | ☐ |
| 1.3 | All access is counted | in eKeys, Passcodes, IC Cards, Fingerprints, Authorized Admin the number of entries matches the table | ☐ |
| 2.1 | The main admin is the company account | sign in to the app with the company account — all locks from the table are listed | ☐ |
| 2.2 | Password recovery leads to the owner | the account’s email or phone belongs to the company, and 2-Step Verification is enabled in that email’s security settings | ☐ |
| 2.3 | The password is unique and changed | the password is in a password manager, changed after the last employee who knew it left | ☐ |
| 2.4 | Staff have their own accounts | each lock’s Authorized Admin list contains only current staff, under their own accounts | ☐ |
| 3.1 | Guests have only time-limited codes | lock → Passcodes — every guest code shows a period, no “permanent” codes for guests | ☐ |
| 3.2 | Guests are not given eKeys | lock → eKeys — no keys in a guest’s name | ☐ |
| 3.3 | Code validity matches the booking | compare the code period with the booking dates: check-in to check-out plus one hour | ☐ |
| 3.4 | Code issuance is recorded | the bookings spreadsheet has dates, last 2 digits of the code and who issued it for every guest | ☐ |
| 4.1 | The gateway is on a separate network | in the router’s client list the gateway is on the devices network; the gateway address does not respond to ping from the guest Wi-Fi | ☐ |
| 4.2 | Guests don’t know the gateway network password | the gateway network password differs from the guest one and does not appear in any message to guests | ☐ |
| 4.3 | Lock and gateway firmware are the latest | lock → Settings → Firmware Update and Gateway → gateway → Upgrade — no new versions | ☐ |
| 4.4 | The app is updated for all admins | in the App Store or Google Play, TTLock shows “Open,” not “Update,” on every admin’s phone | ☐ |
| 5.1 | The lock clock is accurate | lock → Settings → Lock Clock — time differs from the phone clock by no more than a minute | ☐ |
| 5.2 | The account time zone is local | your time zone is selected in the app’s account settings | ☐ |
| 5.3 | Calibration is regular | a monthly calibration of each lock is in the calendar — or you’ve confirmed the gateway does it automatically | ☐ |
| 6.1 | The departed guest’s code is deleted | it’s not in Passcodes; enter the code at the door — it does not open | ☐ |
| 6.2 | Records after check-out are checked | lock → Records — after check-out time only the cleaner’s unlocks with her own code | ☐ |
| 6.3 | Check-outs are marked | every check-out in the last month has “code deleted, records checked” in the bookings spreadsheet | ☐ |
| 7.1 | Staff have named codes | Passcodes show names like “Nino cleaning,” no codes shared by several people | ☐ |
| 7.2 | The monthly review is done | the Passcodes, eKeys, IC Cards, Fingerprints, Authorized Admin lists match the step 1 table, review date recorded | ☐ |
| 7.3 | Former staff are removed | compare the staff list with the codes and admins of all locks — no one who has left | ☐ |
| 8.1 | The reset procedure is written down | the manager has a sheet: when to reset and the steps | ☐ |
| 8.2 | Mechanical keys are accounted for | the keys are in the management company’s safe, their number equals the number of locks | ☐ |
| 8.3 | A reset has been practiced | one lock has been reset and added again under the company account; a staff member’s old code does not open the door | ☐ |
| 9.1 | The final check is passed | every row of the step 9 table matches, date recorded | ☐ |
Questions
Can I do without a gateway?
Yes: time-limited codes can be generated without a gateway. But then deleting a code from the lock and checking the records is only possible at the door over Bluetooth — for a management company with dozens of apartments a gateway is practically a must.
Is a keypad lock safer than keys left with a concierge?
A keypad lock has records and time-limited codes — that’s a plus. The downside is vulnerabilities and forgotten access. With steps 3, 6 and 8 a keypad lock is easier to control than a bunch of keys.
Do codes work if the apartment loses internet?
Yes: the lock checks code validity itself, against its own clock (step 5); the internet and the gateway are only needed for remote management. While there is no connection, you can delete a code and see recent records only at the door over Bluetooth.
A guest says the code doesn’t work — why?
Most often the code’s period hasn’t started yet, the lock clock has drifted, or the account time zone isn’t local (step 5). Also, according to help pages from sellers of TTLock-platform locks, a code created without a gateway must be entered for the first time within 24 hours, otherwise the lock will no longer accept it — give a new code to a guest who arrives a day late. According to the same pages, a one-time code must be entered within 6 hours.
Can all cleaners share one code?
Better not. The records will show a single code name, and you won’t be able to tell which of them opened the door; and when one cleaner leaves, the code has to change for everyone. Per step 7, each staff member has their own named code.
What if an admin’s phone is lost?
From another device, change that account’s password (step 2) and remove the account’s Authorized Admin rights on all locks. If the phone had eKeys or admin rights, access may have gone with it — reset those locks per step 8.
Bought an apartment with TTLock or changed management company — where do I start?
Ask the previous admin to delete the lock from their account or transfer it to you: according to the TTLock documentation, a lock added by another account cannot be added until it is deleted or reset. After that, still reset the lock and add it again under the company account (step 8) — it’s the only reliable way to revoke everything stored in the lock.
How realistic is it that a stranger opens the door through a vulnerability?
According to CERT/CC, the described attacks require being near the lock, within Bluetooth range, and the simplest of them (CVE-2023-6960) also requires an eKey the person once received. So the main risk is not a random passerby but former guests and staff with eKeys and rights; steps 3, 7 and 8 protect against them.
Does a firmware update fix these vulnerabilities?
According to the CERT/CC advisory (last updated March 2024), there was no software fix, only workarounds, and the vendor did not respond. You should still update the firmware and the app (step 4), but the only way to revoke an eKey is still a lock reset (step 8).
What if the batteries die?
According to the TTLock documentation, the lock can be powered from outside through the USB port and opened with a code or the app; as a last resort, use the mechanical key from the safe (step 8). To avoid getting there, replace the batteries as soon as the app shows a low battery.
Note: The vulnerabilities are described based on publications by Aleph Research, CERT/CC and the DEF CON 34 talk, without instructions on exploiting them. App section names depend on the version.
Sources
- CERT/CC VU#949046 — Sciener (TTLock) vulnerabilities: locks, app, G2 gateway
- Aleph Research — Kontrol Lux Lock (TTLock), parts 1 and 2 (2024)
- SecurityWeek — Unpatched Sciener smart lock vulnerabilities allow hackers to open doors
- DEF CON 34 — Yang Liu, Zhenghan Wang: The Ghost Key: Illusions of Time Management in TTLock Smart Locks
- Aleph Research — Kontrol Lux Lock (TTLock), part 2: eKey restrictions are enforced by the app, not the lock
- TTLock documentation — TTLock Web FAQ (remote management and custom passcodes only via a gateway)
- TTLock documentation — app FAQ (lock added by another account, reset, USB power)
- 33lock Help — passcode types on TTLock app locks (24-hour rule, one-time passcode — 6 hours)