Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Adversaries may tamper with SIP and trust provider components to mislead the operating system and application control tools when conducting signature validation checks.
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-02 | ✗→✓ | ▲ Improved | 39% | 0% |
| case-05 | ✗→✓ | ▲ Improved | 77% | 0% |
| case-06 | ✗→✓ | ▲ Improved | 52% | 0% |
| case-10 | ✗→✓ | ▲ Improved | 27% | 0% |
| case-11 | ✗→✓ | ▲ Improved | 81% | 0% |
> Sub-technique of: T1553
Adversaries may tamper with SIP and trust provider components to mislead the operating system and application control tools when conducting signature validation checks. In user mode, Windows Authenticode digital signatures are used to verify a file's origin and integrity, variables that may be used to establish trust in signed code (ex: a driver with a valid Microsoft signature may be handled as safe). The signature validation process is handled via the WinVerifyTrust application programming interface (API) function, which accepts an inquiry and coordinates with the appropriate trust provider, which is responsible for validating parameters of a signature.
Because of the varying executable file types and corresponding signature formats, Microsoft created software components called Subject Interface Packages (SIPs) to provide a layer of abstraction between API functions and files. SIPs are responsible for enabling API functions to create, retrieve, calculate, and verify signatures. Unique SIPs exist for most file formats (Executable, PowerShell, Installer, etc., with catalog signing providing a catch-all ) and are identified by globally unique identifiers (GUIDs).
Similar to Code Signing, adversaries may abuse this architecture to subvert trust controls and bypass security policies that allow only legitimately signed code to execute on a system. Adversaries may hijack SIP and trust provider components to mislead operating system and application control tools to classify malicious (or any) code as signed by:
Hijacking SIP or trust provider components can also enable persistent code execution, since these malicious components may be invoked by any application that performs code signing or signature validation.
Platforms: Windows
The following tests are from Atomic Red Team and provide actionable ways to test this technique:
Registers a DLL that logs signature checks, mimicking SIP hijacking. This test uses a DLL from https://github.com/gtworek/PSBits/tree/master/SIP and registers it using regsvr32, thereby causing the system to utilize it during signature checks, and logging said checks.
Supported Platforms: windows Elevation Required: Yes
cmdregsvr32.exe #{dll_payload}
Dependencies:
If Atomic Red Team tests are not applicable, manually verify the technique by:
Enable application control solutions such as AppLocker and/or Device Guard to block the loading of malicious SIP DLLs.
Ensure proper permissions are set for Registry hives to prevent users from modifying keys related to SIP and trust provider components. Components may still be able to be hijacked to suitable functions already present on disk if malicious modifications to Registry keys are not prevented.
Restrict storage and execution of SIP DLLs to protected directories, such as C:\\Windows, rather than user directories.
| Finding | Severity | Impact | | ----------------------------------------------------- | -------- | --------------- | | SIP and Trust Provider Hijacking technique applicable | High | Defense Evasion |
| CWE ID | Title | | ------- | ---------------------------- | | CWE-693 | Protection Mechanism Failure |
Other measured skills in the registry, with their headline benchmark lift.