Article
BRONZE SANDCASTLE: Sandboxie DLL Sideloading Chain and Detection Checks
Sophos CTU names BRONZE SANDCASTLE, a China-based group that sideloads Sandboxie DLLs. Read the infection chain, nine file pairs and a defender checklist.
Quick links
Press Enter to search, Esc to close
Attack technique
DLL hijacking is when an attacker abuses the shared library files (DLLs) that Windows programs load.
In short
DLL hijacking is when an attacker abuses the shared library files (DLLs) that Windows programs load. A trusted program is made to load a harmful DLL instead of, or alongside, the real one. This helps the attacker stay in place, gain higher privileges and avoid detection.
DLLs are libraries of code that many programs share. They are not harmful by nature, but the way programs find and load them can be abused.
MITRE describes several forms. In DLL side-loading, the attacker places a harmful DLL next to a legitimate application, so the application loads it. In search order hijacking, a harmful DLL is placed in a folder that Windows checks before the folder holding the real library. Other forms include redirecting where a program looks, using a DLL that is referenced but missing, and swapping a real DLL for a fake one.
Because the trusted program runs the code, the activity can look normal. Some harmful DLLs also load the real library, so the program seems to work as usual. If the program runs with high privileges, the harmful code runs with them too.
Procedure examples listed by MITRE ATT&CK:
Watch for trusted programs that load DLLs from folders they do not normally use.
Look for DLLs that have been swapped, added where none existed before, or set up through redirection files.
Link file changes, registry changes and module load records, so odd DLL behavior inside a trusted process stands out.
DET0201, Detection Strategy for Hijack Execution Flow for DLLs.
Block the loading of remote DLLs and keep safe DLL search mode switched on. Both are default in modern Windows.
Use tools that can block DLLs loaded by legitimate software, not only the programs themselves.
Run auditing tools that find DLL search order weaknesses on company systems, then fix them.
Keep software updated to fix side-loading flaws. Developers can add hash values to manifest files to help stop side-loading.
DLL hijacking is when an attacker abuses the shared library files (DLLs) that Windows programs load. A trusted program is made to load a harmful DLL instead of, or alongside, the real one, so the activity can look normal.
In DLL side-loading, the attacker places a harmful DLL next to a legitimate application so it loads it. In search order hijacking, the harmful DLL sits in a folder that Windows checks before the folder holding the real library.
Watch for trusted programs that load DLLs from folders they do not normally use, and for DLLs that were swapped or added. Linking file changes, registry changes and module load records makes odd behavior inside a trusted process stand out.
Block the loading of remote DLLs and keep safe DLL search mode on, use application control that can block DLLs loaded by legitimate software, audit for search order weaknesses and keep software updated.
Take control of your digital security with an exclusive demo of our AI-driven threat intelligence platform.