Alert icon Keyboard navigation enabled.
Alert icon TAB or Shift+TAB to navigate across. Down ↓ to open menu. ESC to close menu.
Alert icon Down ↓ to select section. Right → to activate. Up ↑ / Down ↓ / Tab to traverse all. ESC to exit.
BeyondTrust
Skip to content Use space or enter to skip.

What can we help you find today?

Instant Results
  • Website Results
  • Technical Documentation

Filter Options

Focus your search

Filtering by

Your recent searches:

Contact Us Chat with Sales Get Support
  • English
  • Deutsch
  • français
  • español
  • 한국어
  • português
  • Home
  • Resources
  • Blog
  • A Guide To Atom Bombing: How to Stop Code Injection Attacks current page
Link copied

A Guide To Atom Bombing: How to Stop Code Injection Attacks

Oct 20, 2017
Author:
James Maude Headshot 2024
James Maude
Field Chief Technology Officer
Blog banner default
A Guide To Atom Bombing: How to Stop Code Injection Attacks
James Maude Headshot 2024
James Maude
Field Chief Technology Officer

How to dismantle an atomic bomb

White chain icon to symbolize the ability to copy a link
Link copied
Check mark to visually show text has been copied

'Atom Bombing' is a code injection technique for Windows. It is so named because it exploits Windows atom tables and Asynchronous Procedure Calls (APCs) to evade detection by many common security solutions.

Using the atom bombing technique, threat actors are able to execute malicious code within the context of another process. This method leverages the global atom table to store the malicious code and then uses an APC to execute it within a targeted process. By attaching the code to a process's thread, atom bombing enables the attacker to run the payload when the thread enters an alterable state.

Atom bombing is an effective tactic for threat actors because it allows them to access system or network resources--and potentially elevated privileges--while also evade detection by many security tools because the execution appears to originate from a legitimate process.

Read on to learn how atom bombing works, how to configure your endpoint security solution to alert to common sequences of behavior that occur during the injection process, and the best strategies you can employ to block process injection attacks.

Why attackers leverage code injection techniques

White chain icon to symbolize the ability to copy a link
Link copied
Check mark to visually show text has been copied

Code injection can be a useful tool for an attacker as it can be used to make a legitimate application run malicious commands. As this technique exploits the design of the OS and not a bug in code it cannot be patched easily making it very desirable to attackers.

When testing the technique on Windows 10, for instance, we see that it is possible to inject shellcode into Chrome, causing it to launch calc.exe. This shellcode could just as easily provide an attacker with a remote shell to access data and launch further attacks.

blog1

Figure 1- Atomic testing

How BeyondTrust Endpoint Privilege Management Can Help Block Atom Bombing Exploits

White chain icon to symbolize the ability to copy a link
Link copied
Check mark to visually show text has been copied

Using multiple layers of security means there are many ways this attack can be contained and stopped. The most obvious one is based on the assumption that “an attacker was able to persuade a user to run a malicious executable, evil.exe”. This is the very reason that application allow listing is recommended as the #1 defence against attacks. From ransomware to atom bombing, if the payload can’t run the attack stops.

In fact, it is trivial for BeyondTrust Endpoint Privilege Management to stop the malicious .exe even with an out of the box allow list policy in place:

Blog2

Figure 2 - Allow listing blast door

For the sake of argument, let us assume that somehow the payload does run, maybe encoded into a macro script or chained with another application vulnerability. In this case the successful attack will only be able to exploit processes running in the same context as the payload. If we use privilege management to ensure the user is not using a local administrator account, we prevent the ability of the payload to elevate, or access privileged processes.

Even with access only to user mode processes, the attacker could leverage code injection in a trusted app such as Chrome to bypass application level firewalls and allow external access to user data. This is exactly why Endpoint Privilege Managment's content isolation launches websites and email attachments in a secure sandbox. Because the Endpoint Privilege Management sandbox runs under a separate restricted user account the exploit is unable to compromise processes that have access to the user data. This level of isolation provides great protection against threats such as ransomware that target user data, as well as Atom Bombing.

Blog 3

Figure 3 - Content isolation prevents exploit of a user process causing the exploit to error

How can you prevent atom bombing attacks?

White chain icon to symbolize the ability to copy a link
Link copied
Check mark to visually show text has been copied

Although the Atom Bombing approach initially appears very novel, there have been similar techniques used by malware families such as Carberp and Conflicker for several years. More commonly, we have seen NtQueueApcThread calling LoadLibraryA to import a malicious dll or pointing to an infinite loop to prevent debugging. Again, by blocking payloads, limiting privilege, and isolating content, these attacks can be prevented.

As we have seen time and time again, the key to preventing attacks both old and new is to focus on proactively protecting the endpoint, instead of relying on detection alone. If you control privileges, control execution, and isolate content, you establish a secure foundation to build on. Since Atom Bombing is primarily designed to bypass existing security controls, this shows how a proactive endpoint security strategy can underpin and protect the rest of your security stack.

For more information about defending your endpoint, contact our experts, or access a demo of BeyondTrust Endpoint Privilege Management to see how it employs innovative techniques to secure your endpoints from such threats as code injection exploits.

Latest Posts
  • Hooked on Identity (Part 2): Abusing OAuth Trust Boundaries in Okta
    Jun 12, 2026 Hooked on Identity (Part 2): Abusing OAuth Trust Boundaries in Okta
    Blog
    7m
  • Hooked on Identity: Abusing SAML Assertion Inline Hooks in Okta
    Jun 9, 2026 Hooked on Identity: Abusing SAML Assertion Inline Hooks in Okta
    Blog
    6m
  • Joining Project Glasswing: Securing the Privilege Backbone of the AI Era
    Jun 8, 2026 Joining Project Glasswing: Securing the Privilege Backbone of the AI Era
    Blog
    5m
  • The Most Common & Most Dangerous Types of Shadow IT
    Jun 5, 2026 The Most Common & Most Dangerous Types of Shadow IT
    Blog
    19m
  • 14 Password Management Best Practices
    May 28, 2026 14 Password Management Best Practices
    Blog
    12m
Related
  • BeyondTrust Enterprise Vulnerability Management Receives Five-star Review from SC Labs Expert Team
    Jun 13, 2019 BeyondTrust Enterprise Vulnerability Management Receives Five-star Review from SC Labs Expert Team
    Blog
    1m
  • Forgotten Endpoints
    Sep 9, 2019 Forgotten Endpoints
    Blog
    1m
Share this Article
  • Link
Tags
  • APC Exploitation
  • Atom Bombing Technique
  • Attack Prevention
  • Code Injection Attacks
  • Endpoint Privilege Management
  • Endpoint Security
  • evil.exe
  • Macro Script Vulnerability
  • Malicious Payload Detection
  • Misconfigurations Risk
Stay up to Date
Get the latest news, ideas, and tactics from BeyondTrust. You may unsubscribe at any time.

Keep up with BeyondTrust

Customer Support Get Started
  • LinkedIn
  • X
  • Facebook
  • Instagram
  • Add BeyondTrust as a preferred source on Google
  • Privacy
  • Security
  • Manage Cookies
  • Do Not Sell My Data
  • WEEE Compliance

Copyright © 2003 — 2026 BeyondTrust Corporation. All rights reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust Corporation is not a chartered bank or trust company, or depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.

Prefers reduced motion setting detected. Animations will now be reduced as a result.