CYBER LIBRARY
Explore the bootcamp
Detection & responseIntermediate

Shared Modules

Shared-module abuse loads malicious code into another application's process.

3 min readUpdated 12 Oct 20267 connections
Markdown

What it means

Shared-module abuse loads malicious code into another application's process. The relevant boundary is which module was selected and why, not only the executable's identity.

An investigation example

A legitimate application loads a previously unseen library from a user-writable directory.

Evidence to examine

Review module path, provenance, hash, load order, application search behavior, and resulting actions.

A common analytical pitfall

An unfamiliar library is not automatically malicious; updates and optional plugins change module inventories.

Response considerations

Preserve the module and loading context, verify installation provenance, and correct unauthorized or unsafe loading paths.

A legitimate process can execute additional code

Applications load shared libraries to reuse functionality rather than contain every function in one executable. The loaded module executes within a process context, so trusting only the main program's name or signature can miss important behavior. The module's origin, integrity, path, and expected relationship to the application matter too.

Module loading is normal and frequent. A library from an unfamiliar location may warrant review, but legitimate plugins and development environments can also use nonstandard paths. Investigators should compare a known-good application configuration and examine the surrounding file and process events. An unsigned module is a clue, not a complete verdict.

A fictional application add-on

An academy's reporting application begins making unexpected network requests. Endpoint evidence shows that it loaded a newly created library from a user-writable folder shortly beforehand. Analysts preserve the library identity, load event, application context, file creation history, and later activity. They ask whether an approved update or plugin installation explains the change.

A library being present on disk does not establish that it loaded successfully, while a load event does not describe every action it performed. Memory, execution, and network records may add context. Do not run the recovered module on a personal machine or place it into a trusted application's directory to experiment. Use an authorized analysis route.

Follow the code boundary

Draw a fictional application with its expected libraries and one newly observed module. Mark which source controls each file and which identities can modify the directories. Explain the evidence needed to connect the new module to the unexpected behavior. A prepared event list is sufficient.

Defensive review should consider code-loading policy and writable locations along with executable allowlists. A trusted host process can still consume untrusted code if the surrounding boundary is weak. Remediation should preserve legitimate extension needs while correcting the observed loading path and the access that introduced the module.

GO TO THE SOURCE

References & further reading

Original explanations, with primary references for deeper study.

MITRE ATT&CK T1129: Shared Modules
EXPLORE THIS IDEA’S CONNECTIONS

A small part of a bigger picture.

8 notes · 20 connections
100%
Shared Modules · depth 1
Drag to pan · Pinch or use +/− to zoom · Click to preview · Double-click to read
Browse notes as a list (8)
FOLLOW ANOTHER THREADExplore the rest of the library
Start with a concept. Follow its connections.
Detection & responseAbuse Elevation Control MechanismElevation-control abuse bypasses or misuses mechanisms governing privileged execution.Making change happenAcceptance criteriaDefine observable conditions for a deliverable to be accepted.Security essentialsAccess controlUnderstand subjects, resources, permissions, and enforcement through a shared-drive example, including how access changes over time.Detection & responseAccess Token ManipulationAccess token manipulation changes or adopts operating-system security contexts.Risk & resilienceAccount Access RemovalAccount access removal disrupts legitimate users by changing, deleting, or restricting their identities.Evidence & investigationAccount DiscoveryAccount discovery enumerates identities available in a system or environment.Detection & responseAccount ManipulationAccount manipulation changes identity settings to preserve or expand access.Adversarial thinkingAcquire InfrastructureInfrastructure acquisition obtains domains, servers, or other resources used to support operations.Adversarial thinkingActive ScanningActive scanning probes target infrastructure to learn reachable services or weaknesses.Security essentialsAdversary in the middleAn intermediary may observe or alter a communication path.Security essentialsAESA symmetric block cipher whose safe use depends on its mode and implementation.Making change happenAgile deliveryUse short feedback cycles to adapt toward a useful outcome.