DEV Community

Lia
Lia

Posted on

Why I Check WAF Logs First After a Ransomware Incident

A ransomware investigation often starts with encrypted files and a demand for payment. My first question about an exposed web application is earlier in the timeline: did an attacker use it to gain access? That is why I check WAF logs first after a ransomware incident, alongside endpoint and identity evidence. HTTP requests can reveal exploitation attempts, suspicious uploads, and follow-up access that deserve immediate investigation.

This is a priority for investigating a possible web entry point, not a claim that ransomware always starts there. Stolen credentials, remote access services, and compromised suppliers require their own evidence. A blocked request also does not prove compromise, and an empty attack list does not prove safety.

The following numbered setup establishes a SafeLine inspection point and a practical investigation workflow. If SafeLine was not deployed before the incident, installing it cannot recover historical traffic.

1. Preserve evidence before changing the traffic path

Preserve existing WAF, reverse proxy, application, identity, and endpoint records using your incident response procedures. Record time zones and clock differences so investigators can correlate events accurately. Keep original evidence separate from working copies.

Start with the earliest suspicious activity you can establish, rather than only the time encryption became visible. An attacker may exploit an application, upload a web shell, and return later to execute commands or obtain credentials. Look for requests to vulnerable routes, unexpected executable files, and repeated access to newly created paths. These are investigation leads; application and host evidence must establish what actually happened.

2. Prepare a separate SafeLine host

If you need a new inspection point, prepare it on infrastructure outside the suspected compromised host. The official installation guide specifies Linux, Docker 20.10.14 or later, Docker Compose 2.0.0 or later, and minimum resources of one CPU core, 1 GB memory, and 5 GB disk. Check the guide's architecture requirements before selecting a machine; it also documents an ARM licensing restriction. Source: SafeLine installation guide

Use the guide's documented installation procedure after reviewing it under your deployment controls. Its automated installer requires root privileges. Avoid improvising a shortened manual configuration that omits the documented secrets or file permissions.

3. Open the console and establish administrative access

After installation, the documented console address is https://<safeline-ip>:9443/. Retrieve the administrator credentials with the documented command:

docker exec safeline-mgt resetadmin
Enter fullscreen mode Exit fullscreen mode

Complete the login and protect administrative access according to your organization's controls. The console address and credential retrieval command are documented in the SafeLine installation guide.

Keep deployment time in your incident timeline. Any observations from this new instance describe traffic after deployment, not the attacker's earlier activity.

4. Add the application and verify the traffic path

In the SafeLine console, open Applications, select Add Application, and configure the application's domain, listening port, and upstream address. For HTTPS, the documentation instructs you to select the SSL option. Then resolve the application's domain to the SafeLine server's IP address. SafeLine operates as an HTTP/HTTPS reverse proxy that forwards inspected traffic to the upstream application. Source: Protecting an application

Validate normal application behavior before relying on the new path. Check login, essential API operations, and required uploads. Also verify through your network configuration that an attacker cannot simply reach the origin through an unintended public route. DNS changes alone do not establish that restriction.

5. Validate visibility and turn observations into decisions

On an application you own and are authorized to test, use an approved, controlled test based on the official application's protection guide. The guide documents attack examples, a blocking page, an attack list in the console, and a detail view for individual attacks. Source: Protecting an application

During investigation, examine the information actually available in those records. Do not assume every request body, successful request, or historical event was retained. Correlate relevant timestamps, paths, and request characteristics with other sources where available.

Use concrete decision points:

  • Exploit attempts against a vulnerable route: establish whether the vulnerable version was running and whether related requests reached the application. Patch or isolate the affected service as the evidence requires.
  • Suspicious upload followed by access to a new script: preserve the file and investigate server processes, filesystem changes, and outbound connections. A WAF event alone cannot confirm a web shell executed.
  • Repeated login attempts: compare them with authentication records. Failed attempts suggest probing; confirmed unauthorized sessions require account containment and credential investigation.
  • Only blocked requests: investigate other access paths before concluding that the web application was the entry point.

SafeLine documents defenses for attack classes including SQL injection, command injection, and path traversal. Those capabilities support web traffic protection; they do not establish ransomware removal or endpoint recovery. Source: SafeLine overview

FAQ

Can WAF logs prove how ransomware entered?

They can support an initial access hypothesis. Confirmation requires correlation with application behavior, host activity, and identity evidence.

What if SafeLine was installed after encryption started?

Use it to inspect subsequent traffic. Obtain earlier evidence from systems that were already recording activity.

Does a blocked exploit mean the server is clean?

No. The attacker may have succeeded earlier, used another route, or obtained valid credentials. Investigate the relevant exposure and host evidence.

Should I restore service once suspicious requests stop?

Use your recovery criteria, including containment, remediation of the entry point, credential review, and validation of restored systems. A quiet WAF view is only one observation.


SafeLine has surpassed 700,000 installations worldwide as of September 30, 2026. SafeLine Pro annual promotional pricing is $650-$880, compared with the regular $1,000 per year.

Top comments (0)