时间炸弹:修订间差异

跳转到导航 跳转到搜索
添加6,655字节 、​ 2026 年 8 月 1 日 (星期六)
小
小 (文本替换 - 替换“[[{{code|winver}}]]”为“{{code|winver}}”)
第 20 行: 第 20 行:
"EnableLUA"=dword:00000000
"EnableLUA"=dword:00000000
</syntaxhighlight>但是,某些版本的 Windows 包含无法正常工作或损坏的时间炸弹,并且可以在当前日期安装。他们大多来自 Microsoft 生态系统工程访问计划(Ecosystem Engineering Access Program,EEAP)的一部分。其他一些内部版本包含测试签名证书,可以在当前日期安装。
</syntaxhighlight>但是,某些版本的 Windows 包含无法正常工作或损坏的时间炸弹,并且可以在当前日期安装。他们大多来自 Microsoft 生态系统工程访问计划(Ecosystem Engineering Access Program,EEAP)的一部分。其他一些内部版本包含测试签名证书,可以在当前日期安装。
==== Detection ====
[[文件:NTexpiredcrash.png|thumb|Windows 显示 {{code|END_OF_NT_EVALUATION_PERIOD}} [[错误检查]]]]
[[File:Windows-10-build-10074-Timebomb-expired.png|thumb|Error in [[Windows 10 build 10074]] after the timebomb was activated]]
Once a timebomb is triggered, the <code>END_OF_NT_EVALUATION_PERIOD</code> [[bugcheck]] is used to reboot the system after a period of time has elapsed. The code for implementing timebombs was first added in [[Windows NT 4.0 build 1166]], which was used for evaluation releases of the final release. The first beta build to feature a modern timebomb was [[Windows 2000 build 1627|Windows 2000 build 1627.1]], although the [[Windows NT 3.5 build 756.1#Japanese version|Japanese]] and [[Windows NT 3.5 build 807.1 (Korean Beta)|Korean]] pre-release versions of [[Windows NT 3.5]] include a warning message box asking the user to install a retail copy of Windows after a certain date, unlike other builds from the era.
On [[Windows XP]] betas, attempting to log on to a user account will cause an expiration message to appear. Closing it causes an instant system crash. However, on pre-reset [[Windows Vista|Windows Longhorn]] builds, when attempting to log on after the expiration date, the system kicks the user out and returns to the logon screen. On post-reset builds, such as [[Windows Vista build 5384.4|Windows Vista build 5384]], logging on will cause an activation message to appear. Closing it logs the user off.
On [[Windows 7]] builds since [[Windows 7 build 6574|build 6574]], users can still log in to the system, but a 30-minute "reboot" cycle (that [[Blue screen of death|bugchecks]] the system) begins, so users have a chance to activate Windows or install a newer version.
[[Windows 8]] and later versions include a milder variant of the timebomb; the current operating system install will be deactivated, access to personalization options in PC settings is disabled, and the reboot cycle has increased into an hour. In addition, certain builds may place the "[[Microsoft Confidential]]" disclosure warning slightly higher than usual to indicate that the timebomb has been triggered.
Most [[Windows 10]] builds from the [[Windows 10 (original release)|original release]] to the [[Windows 10 Creators Update|Creators Update]] are flight-signed; binary signature checks take certificate expiry time into account. When the timebomb is activated, the [[Windows Boot Manager]] and related boot loaders will be rendered non-functional as a result of signature invalidation. Due to confusion arising from end-users who unknowingly installed public [[Windows Insider Program|Insider Preview]] builds that were redistributed across the Internet with little to no oversight (an issue that had persisted since [[Windows 10 build 9841]], the first Windows 10 Technical Preview release), the Windows cryptography library (<code>mincrypt</code>; statically linked to in the code integrity library and the Windows Boot Manager) was altered in [[Windows 10 build 14964 (rs_prerelease)|build 14964]] to allow expired flight code signing certificate chains and give users a chance to update to the most current Windows release.
Numerous issues are caused when attempting to use builds beyond their expiry date due to flight code signing certificates being verified outside of their intended validity period. Examples of issues caused by running these builds under the current date and time are listed below:
* Applications such as the legacy [[Windows Defender]] user interface and built-in Windows diagnostics tools will fail to start due to relevant signature checks failing;
* [[User Account Control]] may complain about untrusted executables or prevent them from running, even if the applications themselves are signed by Microsoft. This is prevalent during the [[out-of-box experience]] and when launching certain system applications such as the [[Task Manager]];
* Non-critical system drivers, such as print spoolers, will not be available post-installation. Should these be required, both drivers can be manually installed, and a driver signature enforcement check must be overridden.
==== Detection ====
The expiration date and time of the timebomb can be retrieved by checking the value of the field <code>SystemExpirationDate</code> in the structure <code>KUSER_SHARED_DATA</code>,<ref>https://learn.microsoft.com/en-us/windows-hardware/drivers/ddi/ntddk/ns-ntddk-kuser_shared_data</ref> which is accessible at address <code>0x7FFE0000</code> from the user mode.<ref>https://www.geoffchappell.com/studies/windows/km/ntoskrnl/inc/api/ntexapi_x/kuser_shared_data/index.htm</ref> If no timebomb is present, the field is set to zero; otherwise, it will be set to the file time{{efn|A file time is a 64-bit value that represents the number of 100-nanosecond intervals that have elapsed since 12:00 A.M. January 1, 1601 Coordinated Universal Time (UTC).<ref>https://learn.microsoft.com/en-us/windows/win32/sysinfo/file-times</ref>}} of the expiration date and time in UTC.
==== Technical Details and Security Research ====
On 20 January 2026, a security research whitepaper about the Windows timebomb mechanism called "TimeDefuser" was released. From the document, internal workings of timebomb can be summarized as the following:
# Upon system boot, <code>ExInitializeTimeRefresh</code> kernel function initializes hardware-system clock synchronization and retrieves expiration date using version-specific mechanisms (i.e. registry, Windows Product Activation data, product policies) and populates two private kernel globals called <code>ExpNtExpirationDate</code> and <code>ExpNtExpiratonData</code>, along with the <code>SystemExpirationDate</code> field in the <code>KUSER_SHARED_DATA</code> structure. On [[Windows Vista]] and later, this is done by a helper function called <code>ExGetExpirationDate</code>.
# In each following hour, the kernel runs the <code>ExpTimeRefreshWork</code> routine that performs hardware-system clock synchronization and additionally compares current system time against the expiration date stored in kernel memory. On Windows Vista and later, it also calls <code>ExGetExpirationDate</code>again and repopulates the fields in kernel memory that holds expiration data.
# If the expiration date has passed, it sets an internal flag called <code>ExpNextExpirationIsFatal</code> and on Windows XP and earlier, it displays an error message to the user by <code>NtRaiseHardError</code>, indicating that the build has expired.
# On subsequent execution, <code>ExpTimeRefreshWork</code> halts the system with the <code>END_OF_NT_EVALUATION_PERIOD</code> bugcheck.


== macOS ==
== macOS ==

导航菜单