Build Pipeline Compromise: When the Artifact Is the Payload
An intrusion that never touched production directly. The attacker modified a build agent, and the organisation shipped the backdoor itself through its own signed release channel.
When every tool in the intrusion ships with the operating system, signature-based detection has nothing to match. What remains is relationship, context and frequency.
Executive summary
Quick facts
Every layer of a traditional endpoint stack asks a version of the same question: is this file bad? Hash reputation, static analysis, signature matching and code signing checks all depend on the presence of an artifact that can be judged.
In an intrusion built from native tooling, that artifact does not exist. The interpreter is signed by the platform vendor. The transfer utility ships with the operating system. The scheduling mechanism is a documented administrative feature. Each component is not merely benign — it is required, and blocking it outright breaks legitimate administration.
Three telemetry sources carry most of the detection value:
| Observation | Detection value | Requires baseline |
|---|---|---|
| Binary hash | None | No |
| Parent process | High | Partially |
| Command-line content | High | Yes |
| Execution frequency | Moderate | Yes |
| Network destination | Moderate | Yes |
| Signing status | None | No |
# Detection intent, not a production rule
process_creation
| where parent_image in~ ('document_viewer', 'web_worker', 'mail_client')
| where child_image in~ ('script_host', 'command_shell', 'management_shell')
| where command_line has_any ('-enc', 'downloadstring', '-nop', 'iex')
| summarize count() by host, user, bin(timestamp, 1h)
The final aggregation matters as much as the filter. Alerting on every match produces volume that a team will eventually mute; alerting on rarity within a baseline produces something an analyst can act on.
Baselining is where most of these detections succeed or fail, and it is not glamorous work:
Confidence is assessed as moderate rather than high, for a specific reason: the techniques themselves are well established and not in dispute, but detection efficacy varies substantially with environment size, telemetry retention and administrative practice. A rule that performs well in a homogeneous estate may be unusable in one with heavy local automation.
The realistic goal is not to detect native tooling. It is to make unusual use of native tooling expensive enough to surface, which requires the boring, ongoing work of knowing what normal looks like in one specific environment.
Timeline
A scripting host or management utility executes attacker-supplied logic without dropping a distinct binary.
A signed system tool fetches the next stage, blending into legitimate administrative traffic.
A task named to resemble a platform component re-executes the chain on a schedule.
Domain and host enumeration performed entirely with commands present by default.
Sources
MITRE ATT&CK
NIST SP 800-94
Related records
An intrusion that never touched production directly. The attacker modified a build agent, and the organisation shipped the backdoor itself through its own signed release channel.
Five detections, in deployment order, with the telemetry each one needs, the noise it produces, and the tuning required before it earns a place in a queue.