Skip to content

armgit / AiSOC

Public Imported from GitHub
0

Open-source AI Security Operations Center: alert fusion, LLM-agent triage, MITRE ATT&CK investigation, and a replayable decision ledger for every agent step. Self-hostable, runs with no API keys, MIT licensed. Ships an MCP server for Claude, Cursor and Continue.

3.2 KB
Raw Blame
id: mitre-car-car-2013-10-002
name: DLL Injection via Load Library
description: 'Microsoft Windows allows for processes to remotely create threads within
  other processes of the same privilege level. This functionality is provided via
  the Windows API [CreateRemoteThread](https://msdn.microsoft.com/en-us/library/windows/desktop/ms682437.aspx).
  Both Windows and third-party software use this ability for legitimate purposes.
  For example, the Windows process [csrss.exe](https://en.wikipedia.org/wiki/Client/Server_Runtime_Subsystem)
  creates threads in programs to send signals to registered callback routines. Both
  adversaries and host-based security software use this functionality to [inject DLLs](https://attack.mitre.org/techniques/T1055),
  but for very different purposes. An adversary is likely to inject into a program
  to [evade defenses](https://attack.mitre.org/tactics/TA0005) or [bypass User Account
  Control](https://attack.mitre.org/techniques/T1548/002), but a security program
  might do this to gain increased monitoring of API calls. One of the most common
  methods of [DLL Injection](https://attack.mitre.org/techniques/T1055) is through
  the Windows API [LoadLibrary](https://msdn.microsoft.com/en-us/library/windows/desktop/ms684175.aspx).


  -   Allocate memory in the target program with [VirtualAllocEx](https://msdn.microsoft.com/en-us/library/windows/desktop/aa366890.aspx)

  -   Write the name of the DLL to inject into this program with [WriteProcessMemory](https://msdn.microsoft.com/en-us/library/windows/desktop/ms681674.aspx)

  -   Create a new thread and set its entry point to [LoadLibrary](https://msdn.microsoft.com/en-us/library/windows/desktop/ms684175.aspx)
  using the API [CreateRemoteThread](https://msdn.microsoft.com/en-us/library/windows/desktop/ms682437.aspx).


  This behavior can be detected by looking for thread creations across processes,
  and resolving the entry point to determine the function name. If the function is
  `LoadLibraryA` or `LoadLibraryW`, then the intent of the remote thread is clearly
  to inject a DLL. When this is the case, the source process must be examined so that
  it can be ignored when it is both expected and a trusted process.'
severity: medium
enabled: false
tags:
  mitre:
  - T1055
  - T1548
  categories:
  - endpoint
references: []
logsource:
  category: Process DLL
detection:
  implementations:
  - name: ''
    type: pseudocode
    code: 'remote_thread = search Thread:RemoteCreate

      remote_thread = filter (start_function == "LoadLibraryA" or start_function ==
      "LoadLibraryW")

      remote_thread = filter (src_image_path != "C:\Path\To\TrustedProgram.exe")


      output remote_thread

      '
  - name: ''
    type: LogPoint
    code: 'norm_id=WindowsSysmon event_id=8 start_function IN ["LoadLibraryA", "LoadLibraryW"]
      -source_image="C:\Path\To\TrustedProgram.exe"

      '
provenance:
  source: mitre-attack/car
  source_id: CAR-2013-10-002
  source_commit: 1b922fe
  license: Apache-2.0
  license_url: https://github.com/mitre-attack/car/blob/master/LICENSE.txt
  imported_at: '2026-05-04'
  imported_by: car_importer
  upstream_path: analytics/CAR-2013-10-002.yaml
notes:
  car_status: needs_implementation