Skip to main content
Back
IntrusionAWS
2 min read

Exposed Elasticsearch servers hosted point-of-sale malware

Victim
Operators of exposed Elasticsearch servers
When
Initial access date unreportedDisclosed Sep 12, 2017
Entry
Internet-facing Elasticsearch services accepted requests without authentication.

Kromtech found point-of-sale malware on nearly 4,000 internet-facing Elasticsearch servers, almost all hosted on Amazon. The servers accepted requests without authentication. The investigation measured affected servers and did not establish how many shops or payment cards were affected.

What happened

Outside the service
Internet client
Internet
AWS-hosted servers
Elasticsearch nodes

AWS-hosted servers

  1. 1

    The search service accepts internet traffic

    At discovery

    Kromtech inspected publicly accessible Elasticsearch servers that accepted requests without authentication. It found unexpected index names associated with two point-of-sale malware families.

  2. 2

    The servers host malware packages

    At discovery

    The researchers identified malware packages hosted on the servers and found multiple packages on some hosts. They attributed nearly 99 percent of the affected servers to Amazon infrastructure.

Impact

Kromtech found nearly 4,000 affected servers, almost all on Amazon infrastructure. Its report gives no count of compromised payment terminals or stolen cards.

Could this have been prevented?

Require authentication on the search service

Kromtech identified missing authentication on the exposed search services. Operators can restrict service access to intended clients and verify who controls the network boundary for each deployment. Once malware has been found, each affected host also needs investigation and recovery.

Incident control assessments

0
Prevented
0
Contained
2
Not covered

How it could have been prevented

The same replay with the controls in place. Green marks where a step is refused, blue where it is bounded, and red where no control reaches it. Open a row to read the control, why it acts, and its caveat.

Outside the service
Internet client
Internet
AWS-hosted servers
Elasticsearch nodes

AWS-hosted servers

1 · The search service accepts internet traffic

1 Not covered

2 · The servers host malware packages

1 Not covered

Key facts

  • Kromtech reported nearly 4,000 affected Elasticsearch servers.
  • About 99 percent of the identified servers were hosted on Amazon infrastructure.
  • Some servers held more than one malware package.
  • The report did not count affected retailers or stolen payment cards.

Sources

Every fact in this breakdown comes from the public reporting below. The replay is a model of that reporting, not a reconstruction of the environment it describes.

  1. 1.
    Kromtech Discovers Massive Elasticsearch Infected Malware BotnetKromtech Security Center, Bob Diachenko · Sep 12, 2017 · ResearchOriginal investigator describes inspecting exposed Elasticsearch nodes, finding malware packages and attributing most measured hosts to AWS.
  2. 2.
    Elasticsearch Servers Hijacked to Host PoS MalwareNHS England Digital · Sep 21, 2017 · AdvisoryNational health-sector alert relaying the campaign findings and urging access restrictions.
  3. 3.
    Security group rulesAmazon Web Services · undated · Vendor reportSource ranges, rule aggregation and inbound reachability.

The estate in the replay is illustrative and drawn at the level of attack stages; the victim's real environment is not public. Verdicts describe what a control does when it is in place before the incident. They are not an assessment of the victim's security program.

More cloud attack breakdowns

All breakdowns