Just in time Access
Granting elevated access only when it is needed and for a limited time, instead of leaving privileges in place permanently. It shrinks the window an attacker can use a privileged account.
Reading Time:
4 min
Just-in-time (JIT) access is an approach in which elevated privileges are granted only when they are needed, for a limited time and for a specific task, and are then removed automatically. Instead of an administrator holding powerful rights all day, every day, the rights exist only while the work is being done.
Standing privileges are among the most valuable things an attacker can steal. A privileged account that is always powerful is always worth targeting. With JIT, the same account is ordinary most of the time, so a stolen credential is far less useful outside the access window.
Standing privileges are always on until someone removes them, and they tend to accumulate and be forgotten. Just-in-time privileges are requested, time-bound and expire on their own.
Administrators, engineers with production access and support staff, and also non-human identities. A workload can receive a short-lived token for a task instead of holding a permanent key.
A smaller attack surface, a smaller blast radius, a clear audit trail where every elevation has a reason, and easier access reviews because there are fewer permanent privileges to examine. It is also a practical way to apply least privilege to powerful accounts.
Least privilege limits how much access an identity has. Just-in-time access adds time, so even that access exists only when needed. Zero trust assumes that no standing trust should be granted by default, and just-in-time access is one way to put that into practice.
Emergency, or break-glass, accounts should exist, because outages do not wait for approvals. They need strong protection, an alert whenever they are used and a review afterwards, so that a route meant for emergencies does not become an everyday shortcut.
Yes. Cloud platforms support time-bound activation of roles and short-lived credentials, which fits just-in-time access well. The same principle applies to workloads, which can receive tokens that expire instead of permanent keys.
An engineer needs to fix a production database. Instead of holding administrator rights permanently, they request them, state the ticket number, receive them for two hours and lose them automatically afterwards. If their credentials were stolen the day before, the attacker would have found an ordinary account.
It narrows when privileges exist, but not what is done while they do. An attacker who steals a session during the window, or a legitimate user who misuses the access, acts with full rights. Monitoring behaviour during elevated sessions matters as much as granting them.
Start with the most powerful accounts and the most sensitive systems. Make requests quick, keep a break-glass route, review the standing privileges that remain and monitor elevated sessions.
Sharelock shows which accounts hold standing privileges they rarely use, a natural starting point for just-in-time access, and monitors behaviour in privileged sessions down to individual transactions and queries on critical applications.
Explore more terms