Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Adversaries may gain access and continuously communicate with victims by injecting malicious content into systems through online network traffic.
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-05 | ✗→✓ | ▲ Improved | 101% | 0% |
| case-01 | ✗→✓ | ▲ Improved | 39% | 0% |
| case-02 | ✗→✓ | ▲ Improved | 36% | 0% |
| case-03 | ✗→✓ | ▲ Improved | 26% | 0% |
| case-04 | ✗→✓ | ▲ Improved | -18% | 0% |
Adversaries may gain access and continuously communicate with victims by injecting malicious content into systems through online network traffic. Rather than luring victims to malicious payloads hosted on a compromised website (i.e., Drive-by Target followed by Drive-by Compromise), adversaries may initially access victims through compromised data-transfer channels where they can manipulate traffic and/or inject their own content. These compromised online network channels may also be used to deliver additional payloads (i.e., Ingress Tool Transfer) and other data to already compromised systems.
Adversaries may inject content to victim systems in various ways, including:
Content injection is often the result of compromised upstream communication channels, for example at the level of an internet service provider (ISP) as is the case with "lawful interception."
Platforms: Linux, macOS, Windows
The following tests are from Atomic Red Team and provide actionable ways to test this technique:
Start mitmdump and verify injected header and HTML content.
Supported Platforms: macos, linux
bashcurl -skI --proxy http://127.0.0.1:8080 http://example.com > /tmp/curl_out.txt grep "X-Atomic" /tmp/curl_out.txt || (cat /tmp/curl_out.txt && exit 1) curl -sk --proxy http://127.0.0.1:8080 http://example.com > /tmp/atomic_t1659_page.html grep -q "Atomic T1659 Injection" /tmp/atomic_t1659_page.html || (head -20 /tmp/atomic_t1659_page.html; exit 1)
Dependencies:
Start mitmdump proxy with injection script in the background.
Supported Platforms: windows
powershellcurl.exe -skI --proxy http://127.0.0.1:8080 http://example.com | Tee-Object -FilePath "$env:TEMP\curl_out.txt" if (-not (Select-String -Path "$env:TEMP\curl_out.txt" -Pattern "X-Atomic")) { Write-Error "Header not found"; exit 1 } $OutPath = "$env:TEMP\atomic_t1659_page.html" curl.exe -sk --proxy http://127.0.0.1:8080 http://example.com | Out-File -FilePath $OutPath -Encoding utf8 $Content = Get-Content -Path $OutPath -Raw if ($Content -notmatch "Atomic T1659 Injection") { exit 1 }
Dependencies:
If Atomic Red Team tests are not applicable, manually verify the technique by:
Consider blocking download/transfer and execution of potentially uncommon file types known to be used in adversary campaigns.
Where possible, ensure that online traffic is appropriately encrypted through services such as trusted VPNs.
| Finding | Severity | Impact | | -------------------------------------- | -------- | -------------- | | Content Injection technique applicable | High | Initial Access |
| CWE ID | Title | | ------ | ------------------------- | | CWE-20 | Improper Input Validation |
Other measured skills in the registry, with their headline benchmark lift.