Understanding Overrides

What Are Overrides?

In standard Windows environments, organizations enforce screen saver and session lock policies to automatically lock workstations after a period of inactivity. However, certain applications can temporarily override these policies—preventing the screen saver from activating and the session from locking, even when the user steps away.

These overrides are often implemented by applications that need to maintain continuous operation without interruption. While useful for legitimate business purposes, they create a significant security gap: a workstation that never locks remains vulnerable to unauthorized access indefinitely.

Lockfy Enterprise provides granular governance over these overrides, allowing security teams to control which applications can prevent session locking, for how long, and under what circumstances.


Common Applications That Implement Overrides

Many legitimate business applications use Windows APIs to temporarily prevent the screen saver from activating and the system from locking. Common examples include:

Application CategoryExamplesWhy They Override
Video ConferencingZoom, Microsoft Teams, Webex, Google MeetPrevents screen lock during presentations, screen sharing, or active calls
Media PlayersVLC, Windows Media Player, presentation softwareMaintains uninterrupted playback during presentations or training sessions
Medical ImagingPACS viewers, radiology workstations, surgical displaysPrevents session interruption during critical image review or procedures
Industrial ControlSCADA systems, HMI applications, manufacturing execution systemsEnsures continuous monitoring and control without lock interruptions
Digital SignageKiosk software, digital menu boards, information displaysMaintains continuous display of content without interruption
Training & EducationE-learning platforms, simulation software, exam proctoring toolsPrevents lock during tests, simulations, or training modules
Presentation SoftwarePowerPoint, Keynote, digital whiteboardsEnsures presentations run without interruption

The Security Risk

When an application implements an override, it effectively disables automatic session locking. The security implications include:

RiskImpact
Unlimited Unattended AccessWorkstations remain unlocked indefinitely if the user steps away while an overriding application is running
Bypass of Security PolicyOrganizational screen saver and lock policies are effectively disabled
Increased Attack SurfaceAttackers have extended windows of opportunity to access unlocked systems
Compliance ViolationsRegulatory requirements for session timeouts may be circumvented

How Lockfy Governs Overrides

Lockfy Enterprise does not simply block overrides—it governs them. Security teams can define policies that determine:

Policy DimensionDescription
Allow by ApplicationSpecify which applications are permitted to override lock policies (e.g., Zoom is allowed, VLC is not)
Allow by User RoleDefine which user roles can utilize overrides (e.g., presenters allowed, general staff not allowed)
Time-Limited OverridesSet maximum override duration (e.g., overrides expire after 10 minutes regardless of application)
Environment-Based RulesDifferent policies for different environments (e.g., override allowed in conference rooms but not in open offices)
Override Audit TrailEvery override event is logged, including which application initiated it, which user, when, and for how long

Example Override Policy

EnvironmentPermitted Override ApplicationsMax DurationUser Roles
Conference RoomsZoom, Teams, PowerPoint60 minutesAll users
Training LabsE-learning platforms, simulation software30 minutesTrainers only
Open OfficeNone0 minutes (overrides blocked)All users
Control RoomSCADA, HMI applicationsUnlimitedOperators only

Is it Easy to Override Lock Policies?

To the matter of fact, it is extremely easy to do so. A single line Javascript can disable Lock Policies. And this is why we built Lockfy, to manage those overrides.

// Javascript example:
wakeLock = await navigator.wakeLock.request("screen");

// C# example:
using System;
using System.Runtime.InteropServices;

class Program
{
    // Import the Windows API function
    [DllImport("kernel32.dll")]
    private static extern uint SetThreadExecutionState(uint esFlags);

    // Flags for SetThreadExecutionState
    private const uint ES_CONTINUOUS       = 0x80000000;
    private const uint ES_SYSTEM_REQUIRED  = 0x00000001;
    private const uint ES_DISPLAY_REQUIRED = 0x00000002;

    static void Main()
    {
        try
        {
            Console.WriteLine("Preventing system sleep and display off...");

            // Request wake lock: keep system and display awake
            uint result = SetThreadExecutionState(
                ES_CONTINUOUS | ES_SYSTEM_REQUIRED | ES_DISPLAY_REQUIRED
            );

            if (result == 0)
            {
                Console.WriteLine("Failed to set execution state.");
                return;
            }

            Console.WriteLine("Wake lock active. Press ENTER to release and exit.");
            Console.ReadLine();

            // Release wake lock (restore normal behavior)
            SetThreadExecutionState(ES_CONTINUOUS);
            Console.WriteLine("Wake lock released.");
        }
        catch (Exception ex)
        {
            Console.WriteLine($"Error: {ex.Message}");
        }
    }
}

The Lockfy Difference

Traditional ApproachLockfy Enterprise
Overrides are uncontrolled and invisibleEvery override is governed by policy and fully visible
Security policies are completely bypassedPolicies adapt to operational needs without creating security gaps
No audit trail of when or why overrides occurredComplete audit trail of every override event
Unlimited override duration creates indefinite riskTime-limited overrides ensure sessions eventually lock
One-size-fits-all policy applies to all environmentsGranular, context-aware policies by application and workstation

Summary

Overrides are a necessary part of many business operations—but they should not come at the expense of security. Lockfy Enterprise provides the visibility, governance, and control needed to balance operational requirements with the security imperative of protecting unattended workstations.

Ready to Protect Your Workstations?

Book a Demo

Learn how Lockfy Enterprise can provide always-on protection for your organization.