tporadowski / redis

Native port of Redis for Windows. Redis is an in-memory database that persists on disk. The data model is key-value, but many different kind of values are supported: Strings, Lists, Sets, Sorted Sets, Hashes, Streams, HyperLogLogs. This repository contains unofficial port of Redis to Windows.
http://redis.io
Other
8.88k stars 1.09k forks source link

Windows Defender detected Backdoor:PHP/Chopper.C!dha malware #133

Closed gab99 closed 2 years ago

gab99 commented 2 years ago

Windows Server Defender detected Backdoor:PHP/Chopper.C!dha malware on the dump file C:\Program Files\Redis\dump.rdb.

image

I installed the service using the installer here
https://github.com/tporadowski/redis/releases/tag/v5.0.14.1

Is this a false alarm?

tporadowski commented 2 years ago

Was it installed for the first time? Are you running any application that is publicly available and could write data sent as input "as is" to Redis? If there is no private/critical data there - could you please share that file with me? (tomasz.poradowski@gmail.com)

gab99 commented 2 years ago

Hi @tporadowski

Thank you for your time but I am so sorry that we have managed to identify the root cause of our issue is not related to this repo.

The dump file actually contains some injected PHP codes which were later renamed/moved to a web app public folder and used as RCE attack

image

Answer to your question: This was not installed for the first time.

Our previous installation was completed using the installer here: https://github.com/microsoftarchive/redis/releases/tag/win-3.0.504

A quick summary of our post-mortem:

Hence when we reinstall with https://github.com/tporadowski/redis/releases/tag/v5.0.14.1 the previous dump file which already contains the PHP injected codes triggered the Windows Server Defender.

tporadowski commented 2 years ago

@gab99 I'm glad you sorted this out. Yet, both bind 127.0.0.1 and protected-mode yes options are delivered by default for years now.